Function at 0x4043f0
Capabilities:
Copy file
Enumerate files on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x453c8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x368
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x388]
lea ecx, [esp + 0x34]
push eax
xor esi, esi
push str.CINIFile_::_GetINIFileName_ENTRY_:_csInstallPath___s_n
push ecx
mov dword [esp + 0x38c], esi
call fcn.0043a4a0
add esp, 0xc
mov ecx, 0x475b68
call fcn.0042f5e0
lea edx, [esp + 0x34]
mov ecx, 0x475b68
push edx
call fcn.0042f820
mov eax, dword [0x471df4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x274]
mov bl, 3
push 0x104
push eax
mov byte [esp + 0x388], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.DEVTYPE.INI
lea ecx, [esp + 0x14]
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x2c]
mov byte [esp + 0x384], 4
call fcn.0044a442
mov edi, eax
lea ecx, [esp + 0x274]
mov byte [esp + 0x380], 5
push ecx
lea ecx, [esp + 0x28]
call fcn.0044a442
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x38c], 6
call fcn.0044a5b7
push esi
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x388], 7
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x384], 8
call fcn.0044a4c1
lea ecx, [esp + 0x30]
mov byte [esp + 0x380], 7
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x380], 6
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x380], 5
call fcn.0044a3d4
mov byte [esp + 0x380], 4
lea ecx, [esp + 0x28]
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
lea ecx, [esp + 0x388]
push str..INI
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x384], 9
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x134]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [esp + 0x38c]
mov esi, eax
cmp esi, 0xffffffff
je 0x4046a1
push 0x46a404
lea ecx, [esp + 0x28]
call fcn.0044a442
push eax
lea edx, [esp + 0x38c]
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x38c], 0xa
call fcn.0044a5b7
lea ecx, [esp + 0x160]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x38c], 0xb
call fcn.0044a61d
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x384], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x380], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x380], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x380], bl
call fcn.0044a3d4
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0044a149
mov ecx, ebp
call fcn.00404220
test eax, eax
je 0x40467b
test byte [ebp + 4], 8
je 0x404667
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00449c44
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x134]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4045ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4046f7
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0044a149
mov ecx, ebp
call fcn.004041d0
test eax, eax
je 0x4046f7
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00449c44
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push str.csSystemFilePath___s_n
push edx
call fcn.0043a4a0
add esp, 0xc
lea eax, [esp + 0x34]
mov ecx, 0x475b68
push eax
call fcn.0042f820
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push esi
push str.CINIFile_::_GetINIFileName_EXIT_:_bRetVal___d_n
push ecx
call fcn.0043a4a0
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, 0x475b68
push edx
call fcn.0042f820
mov ecx, 0x475b68
call fcn.0042f5f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x380], 2
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], 1
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x380], 0
call fcn.0044a3d4
lea ecx, [esp + 0x388]
mov dword [esp + 0x380], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x378]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x374
ret 8