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

Disassembly:
sub esp, 0x240
mov dl, byte [0x415688]
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], dl
mov byte [esp + 0x7c], 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 + 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 + 0x19]
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 + 0xe1]
mov ebx, 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x144]
mov byte [esp + 0xb], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x24c]
push 0
push 2
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [esp + 0xc], edx
jne 0x403281
pop edi
xor eax, eax
pop ebx
add esp, 0x240
ret
mov al, byte [0x413818]
push ebp
test al, al
push esi
je 0x4033b9
mov dword [esp + 0x1c], 0x413818
jmp 0x40329e
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 0x4033a7
cmp ebp, 0xffffffff
je 0x4033a7
mov ecx, dword [0x410e80]
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 0x40338a
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 0x403352
mov edx, dword [0x410e80]
push esi
push 0x403660
push ebp
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCommitFileQueueA]
test eax, eax
je 0x4033a3
mov ebx, 1
jmp 0x403354
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 + 0x413818]
lea eax, [eax + 0x413818]
test cl, cl
mov dword [esp + 0x1c], eax
jne 0x40329a
jmp 0x4033bd
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 0x40344d
xor ebx, ebx
jmp 0x4033bd
mov eax, dword [esp + 0x14]
xor ebx, ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x403449
mov ebp, dword [esp + 0x18]
mov edi, 0x413c00
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
push 0x411004
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404890
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]
push 0x411004
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40343e
xor ebx, ebx
push 0x410f88
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 ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push ebx
lea edx, [esp + 0xec]
push str.return:_x
push edx
call fcn.004043c0
add esp, 0xc
mov eax, ebx
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x240
ret