Function at 0x405700
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x42def8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, ecx
push edi
push 0x43fc78
mov ecx, ebx
call fcn.00422b96
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.0042371b
mov edi, dword [esp + 0x3c]
push ebp
push 0x40
lea ecx, [esp + 0x1c]
mov eax, dword [edi]
mov dword [esp + 0x34], ebp
push eax
call fcn.0042382d
test eax, eax
je 0x40586a
lea ecx, [esp + 0x14]
call fcn.00423a48
push 0x43fc78
lea ecx, [esp + 0x44]
call fcn.00422a7b
mov eax, dword [edi]
push 0x5c
mov ecx, edi
mov byte [esp + 0x30], 3
mov ebp, dword [eax - 8]
call fcn.00420766
sub ebp, eax
lea ecx, [esp + 0x10]
dec ebp
push ebp
push ecx
mov ecx, edi
call fcn.00420672
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
and eax, 0xff
push edx
push eax
lea ecx, [esp + 0x48]
push str._c:_s
push ecx
mov byte [esp + 0x3c], 4
call fcn.00420ad5
mov edx, dword [esp + 0x50]
mov eax, dword [edi]
add esp, 0x10
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4058ce
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405951
mov ebp, dword [esp + 0x34]
mov eax, dword [esi + 0x1c]
push 0xfffffffffffffffe
push ebp
push 0x5ff
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x43fc78
lea ecx, [esp + 0x3c]
call fcn.00422a7b
push 0x43b48c
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x38], 7
call fcn.00422ca2
push eax
lea ecx, [esi + ebp*4 + 0x47c]
mov byte [esp + 0x30], 8
call fcn.00422b46
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 7
call fcn.00422a0d
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 4
call fcn.00422a0d
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push ebp
push 0x5ff
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x40]
push ebx
push eax
push edi
mov ecx, esi
call fcn.004059a0
mov esi, eax
jmp 0x405956
push 0x43fc78
lea ecx, [esp + 0x38]
call fcn.00422a7b
push 0x43b47c
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x38], 1
call fcn.00422ca2
push eax
mov ecx, ebx
mov byte [esp + 0x30], 2
call fcn.00422b46
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], 1
call fcn.00422a0d
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0
call fcn.00422a0d
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00423770
mov eax, ebp
jmp 0x405985
push 0x43fc78
lea ecx, [esp + 0x38]
call fcn.00422a7b
push 0x43b46c
lea edx, [esp + 0x48]
push eax
push edx
mov byte [esp + 0x38], 5
call fcn.00422ca2
push eax
mov ecx, ebx
mov byte [esp + 0x30], 6
call fcn.00422b46
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], 5
call fcn.00422a0d
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 4
call fcn.00422a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.00422a0d
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 0
call fcn.00422a0d
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00423770
xor eax, eax
jmp 0x405985
mov esi, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.00422a0d
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 0
call fcn.00422a0d
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00423770
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14