Function at 0x402780
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x1d8
mov dl, byte [0x411d80]
push ebx
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe1]
mov byte [esp + 0xe0], 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 + 0x19]
mov byte [esp + 0x18], 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 + 0x7d]
mov byte [esp + 0x7c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xe0]
mov ebp, 1
push eax
push 0x104
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x1e8]
push 0
push 2
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402815
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d8
ret
mov al, byte [0x40e088]
push esi
test al, al
je 0x402936
mov dword [esp + 0x18], 0x40e088
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x64
and ecx, 3
lea edx, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
call dword [sym.imp.SETUPAPI.dll_SetupOpenFileQueue]
mov esi, eax
test esi, esi
je 0x402927
cmp esi, 0xffffffff
je 0x402927
mov eax, dword [0x40b910]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallbackEx]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x402911
lea ecx, [esp + 0xe4]
push 4
lea edx, [esp + 0x20]
push ecx
push edx
push esi
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFilesFromInfSectionA]
test eax, eax
je 0x4028d9
mov eax, dword [0x40b910]
push edi
push 0x402b60
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCommitFileQueueA]
test eax, eax
je 0x402923
mov ebp, 1
jmp 0x4028db
xor ebp, ebp
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
mov al, byte [esp + 0x13]
inc dl
add al, dl
mov byte [esp + 0x13], al
movsx eax, al
mov cl, byte [eax + 0x40e088]
lea eax, [eax + 0x40e088]
test cl, cl
mov dword [esp + 0x18], eax
jne 0x40282b
jmp 0x40293a
push esi
xor ebp, ebp
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x402961
xor ebp, ebp
jmp 0x40293e
push ebx
xor ebp, ebp
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov edi, dword [esp + 0x14]
jmp 0x402961
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
push 0
push 0x410798
push 0x40b914
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402956
xor ebp, ebp
push 0x40b8a8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupTermDefaultQueueCallback]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push ebp
lea eax, [esp + 0x84]
push str.return:_x
push eax
call fcn.00403bef
add esp, 0xc
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1d8
ret