[PATCH 06/13] setupapi: Separate the entire copy operation into a helper function.