Function at 0x4025a0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x240
mov dl, byte [0x410f30]
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x149]
mov byte [esp + 0x148], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xe5]
mov byte [esp + 0xe4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x43e418
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
mov ebx, 1
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x25c]
mov byte [esp + 0x1b], 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [esp + 0x10], edx
jne 0x40266f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x240
ret
mov al, byte [0x439f50]
push ebp
test al, al
je 0x4027a6
mov dword [esp + 0x1c], 0x439f50
jmp 0x40268b
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x64
and ecx, 3
lea eax, [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push eax
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
call dword [sym.imp.SETUPAPI.dll_SetupOpenFileQueue]
mov ebp, eax
test ebp, ebp
je 0x402794
cmp ebp, 0xffffffff
je 0x402794
mov ecx, dword [0x43783c]
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallbackEx]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x402777
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14c]
push 4
lea eax, [esp + 0x24]
push edx
push eax
push ebp
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFilesFromInfSectionA]
test eax, eax
je 0x40273f
mov edx, dword [0x43783c]
push esi
push 0x402880
push ebp
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCommitFileQueueA]
test eax, eax
je 0x402790
mov ebx, 1
jmp 0x402741
xor ebx, ebx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov al, byte [esp + 0x13]
inc cl
add al, cl
mov byte [esp + 0x13], al
movsx eax, al
mov cl, byte [eax + 0x439f50]
lea eax, [eax + 0x439f50]
test cl, cl
mov dword [esp + 0x1c], eax
jne 0x402687
jmp 0x4027aa
push ebp
xor ebx, ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x402840
xor ebx, ebx
jmp 0x4027aa
mov eax, dword [esp + 0x14]
xor ebx, ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x40283c
mov ebp, dword [esp + 0x18]
mov edi, 0x43c660
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
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]
mov ecx, dword [esp + 0x258]
push ecx
call fcn.00405df0
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402831
xor ebx, ebx
push 0x4377d4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupTermDefaultQueueCallback]
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push ebx
lea eax, [esp + 0xec]
push str.return:_x
push eax
call fcn.004059a0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x240
ret