Function at 0x5d5200
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x70623d
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov esi, dword [esp + 0xec]
mov edi, dword [esp + 0xe8]
cmp dword [esi + 0x14], 8
jb 0x5d5252
mov ecx, dword [esi]
jmp 0x5d5254
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x5d525e
mov edx, dword [edi]
jmp 0x5d5260
mov edx, edi
xor eax, eax
cmp byte [esp + 0xf0], al
sete al
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5d5543
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d553f
push str.Failed_to_copy_the_file__s_to__s
lea ecx, [esp + 0xb8]
call fcn.00418040
xor eax, eax
mov dword [esp + 0xe0], 0
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov dword [esp + 0x40], eax
mov byte [esp + 0xe0], 1
call fcn.005eae80
test eax, eax
je 0x5d5300
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xb8]
push ecx
mov ecx, eax
call fcn.005ecae0
mov ebx, eax
test ebx, ebx
jne 0x5d5312
lea eax, [esp + 0xb4]
push eax
call fcn.005ed1e0
add esp, 4
mov ebx, eax
call fcn.005c92f0
mov dword [esp + 0x14], eax
mov byte [esp + 0xe0], 2
call fcn.005c92f0
mov dword [esp + 0x18], eax
mov byte [esp + 0xe0], 3
call fcn.005c92f0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0
push str.wx.sys_error
lea ecx, [esp + 0x98]
mov byte [esp + 0xe4], 4
call fcn.00418040
sub esp, 0xc
mov ecx, esi
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0041f670
sub esp, 0xc
mov ecx, edi
mov eax, esp
mov dword [esp + 0x60], esp
push eax
call fcn.0041f670
push 0
mov byte [esp + 0xfc], 7
mov dword [esp + 0x68], 1
mov dword [esp + 0x70], str....._srccommon_filefn.cpp
mov dword [esp + 0x78], str.wxCopyFile
mov dword [esp + 0x74], 0x422
mov dword [esp + 0x7c], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x88], 0
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov dword [esp + 0xa4], eax
mov byte [esp + 0xf8], 8
lea eax, [esp + 0x2c]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x70]
call fcn.0049dde0
mov ecx, eax
mov byte [esp + 0xfc], 9
call fcn.005d4660
push dword [esp + 0x8c]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov byte [esp + 0xe4], 5
call esi
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x5d546b
push dword [esp + 0x74]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
lea ecx, [esp + 0x54]
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
call fcn.00439c40
push dword [esp + 0xac]
call esi
add esp, 4
cmp dword [esp + 0xa8], 8
jb 0x5d54b6
push dword [esp + 0x94]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
lea ecx, [esp + 0x14]
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov byte [esp + 0xe0], 1
call fcn.00420020
push dword [esp + 0x40]
call esi
add esp, 4
cmp dword [esp + 0x3c], 8
jb 0x5d5503
push dword [esp + 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xcc]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call esi
add esp, 4
cmp dword [esp + 0xc8], 8
jb 0x5d553f
push dword [esp + 0xb4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x5d5545
mov al, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xd4
ret