Function at 0x50c00c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x50c015
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50c22a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004053cc
mov eax, dword [ebp - 8]
call fcn.0040c2fc
test al, al
je 0x50c1fa
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0040c7f4
lea eax, [ebp - 0x44]
call fcn.0049eca0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0047d018
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
mov ecx, 0x50c240
call fcn.004056e8
mov eax, dword [ebp - 0x14]
call fcn.0040c30c
test al, al
jne 0x50c091
mov eax, dword [ebp - 0x14]
call fcn.0040c330
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040c7bc
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.0047cbac
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040569c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040569c
pop ecx
sub ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00405900
push dword [ebp - 0x4c]
push 0x50c250
call fcn.0040e3c0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x50]
mov eax, 0x50c25c
call fcn.0040f068
push dword [ebp - 0x50]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov edx, 5
call fcn.0040575c
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040589c
push eax
mov eax, dword [ebp - 8]
call fcn.0040589c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x50c1f2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0047cf9c
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040c728
mov eax, dword [ebp - 0x54]
call fcn.0040589c
push eax
mov eax, dword [0x518b1c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x34]
jne 0x50c174
cmp eax, dword [ebp - 0x38]
jae 0x50c1ac
jmp 0x50c176
jge 0x50c1ac
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x50c274
call fcn.0040d110
mov eax, dword [ebp - 0x58]
call fcn.0047d63c
jmp 0x50c1f2
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0
lea edx, [ebp - 0x84]
mov ecx, 2
mov eax, 0x50c2b4
call fcn.0040d110
mov eax, dword [ebp - 0x6c]
call fcn.0047d63c
mov eax, dword [ebp - 8]
call fcn.0040c56c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c231
lea eax, [ebp - 0x6c]
call fcn.004053cc
lea eax, [ebp - 0x58]
mov edx, 8
call fcn.004053f0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004053f0
ret