Function at 0x5d0460
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x5d0468
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d06fe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 4]
call fcn.005d2b30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
mov eax, dword [eax + 0x78]
cmp eax, dword [ebp - 8]
jne 0x5d04b2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
mov dword [ebp - 0x10], eax
jmp 0x5d04d3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
mov eax, dword [eax + 0x78]
cmp eax, dword [ebp - 8]
jne 0x5d06a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.00607310
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea edx, [ebp - 0x28]
mov eax, dword [0x653ef0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0044e6d0
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [0x65442c]
mov eax, dword [eax]
call fcn.0044e650
mov edx, dword [ebp - 0x30]
mov eax, 0x5d0718
pop ecx
call fcn.00630380
call fcn.0063e6c0
cmp al, 2
jne 0x5d06a9
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov al, byte [0x5d0740]
push eax
push 0
mov eax, dword [ebp - 8]
lea ecx, [eax + 4]
mov eax, dword [0x653e44]
mov eax, dword [eax]
mov edx, 0x42
call fcn.005e1390
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x98]
lea edx, [ebp - 0x38]
mov eax, dword [0x653b08]
mov eax, dword [eax]
call fcn.0044af10
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00432af0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
add eax, 0x264
call fcn.00406e48
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00432d80
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x264]
call fcn.0040786c
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0040767c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040767c
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x5d05fe
push 1
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.00607bb0
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x40]
or ecx, 0xffffffff
call fcn.005ee970
mov eax, dword [ebp - 0x10]
add eax, 0x264
call fcn.00406a84
jmp 0x5d06a9
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.00607bb0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00432b40
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x18]
mov edx, 0x5d0750
call fcn.0040786c
push 0
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x25c
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, 0x5d076c
call fcn.004416d0
mov dword [ebp - 0x14], eax
push 0x5d0784
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.0041b3a4
push dword [ebp - 0x50]
push 0x5d07d0
push dword [ebp - 0x1c]
push 0x5d07f8
push dword [ebp - 0x18]
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.004078f4
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043edc0
cmp dword [ebp - 0x14], 0
jne 0x5d06a1
mov dl, 4
mov eax, dword [ebp - 8]
call fcn.00603070
mov eax, dword [ebp - 0x10]
call fcn.005b3e70
mov eax, dword [ebp - 0x10]
call fcn.005b7ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d0705
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00406ae4
lea eax, [ebp - 0x48]
call fcn.00406a84
lea eax, [ebp - 0x44]
call fcn.00406a84
lea eax, [ebp - 0x40]
call fcn.00406a84
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00406ae4
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00406ae4
lea eax, [ebp - 0xc]
call fcn.00406a84
ret