Function at 0x10003e10
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x524
test eax, eax
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupLogErrorA]
push ebp
push esi
push edi
jle 0x10003efc
mov edi, dword [esp + 0x53c]
mov ebp, dword [esp + 0x540]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x53c]
cmp dword [eax], 0
je 0x10003eea
mov ecx, dword [edi]
lea edx, [esp + 0x124]
push ecx
push 0x1000dbb4
push edx
call fcn.10005dd0
mov eax, dword [edi]
add esp, 0xc
lea ecx, [esp + 0x32c]
push eax
push ebp
push str._s_s
push ecx
call fcn.10005dd0
add esp, 0x10
lea edx, [esp + 0x32c]
lea eax, [esp + 0x124]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10003eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x32c]
lea edx, [esp + 0x124]
mov esi, eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str.Copy_file_from__s_to__s_fails_
push eax
call fcn.10005dd0
add esp, 0x10
lea ecx, [esp + 0x24]
push 2
push ecx
call ebx
push esi
lea edx, [esp + 0x28]
push str.Copy_file_fails_with_error_code__d
push edx
call fcn.10005dd0
add esp, 0xc
lea eax, [esp + 0x24]
push 2
push eax
call ebx
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10003e3e
push 0
push 2
push 0
push str..migrate.inf
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x10003f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x524
ret
lea ecx, [esp + 0x14]
push ecx
push 0
push str.Migration_Paths
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x10004083
mov ebp, dword [esp + 0x544]
push 0
lea edx, [esp + 0x22c]
push 0x104
push edx
lea eax, [esp + 0x20]
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x10004067
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x430]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x430]
push ecx
call fcn.10005ef0
add esp, 4
test ebp, ebp
je 0x10003fcb
lea edx, [esp + 0x430]
push str.SYSTEMMAPI
push edx
call fcn.10005e70
add esp, 8
test eax, eax
jne 0x10004067
lea eax, [esp + 0x228]
push 0x5c
push eax
call fcn.10005e40
add esp, 8
test eax, eax
je 0x10004067
inc eax
lea ecx, [esp + 0x124]
push eax
push 0x1000dbb4
push ecx
call fcn.10005dd0
add esp, 0xc
lea edx, [esp + 0x228]
lea eax, [esp + 0x124]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10004067
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x228]
lea edx, [esp + 0x124]
mov esi, eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str.Copy_file_from__s_to__s_fails_
push eax
call fcn.10005dd0
add esp, 0x10
lea ecx, [esp + 0x24]
push 2
push ecx
call ebx
push esi
lea edx, [esp + 0x28]
push str.Copy_file_fails_with_error_code__d
push edx
call fcn.10005dd0
add esp, 0xc
lea eax, [esp + 0x24]
push 2
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x10003f4b
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x524
ret