Function at 0x50cba8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x50cbb0
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ce40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.00406abc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x50ce05
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 0
jl 0x50ce05
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x24]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + edx*4 + 8]
call fcn.00405464
mov eax, dword [ebp - 0x10]
call fcn.0040c2fc
test al, al
je 0x50cdc4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0040c7f4
lea eax, [ebp - 0x4c]
call fcn.0049eca0
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x18]
mov ecx, 0x50ce54
call fcn.004056e8
mov eax, dword [ebp - 0x18]
call fcn.0040c30c
test al, al
jne 0x50cc53
mov eax, dword [ebp - 0x18]
call fcn.0040c330
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040c7bc
push dword [ebp - 0x18]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040569c
push eax
mov eax, dword [ebp - 0x20]
call fcn.0040569c
pop ecx
sub ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00405900
push dword [ebp - 0x50]
push 0x50ce64
call fcn.0040e3c0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x54]
mov eax, 0x50ce70
call fcn.0040f068
push dword [ebp - 0x54]
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.0040575c
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0040589c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040589c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x50cda2
mov eax, dword [ebp - 0x10]
call fcn.0047cf9c
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x1c]
call fcn.0040c728
mov eax, dword [ebp - 0x58]
call fcn.0040589c
push eax
mov eax, dword [0x518b1c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x44]
jne 0x50cd25
cmp eax, dword [ebp - 0x48]
jae 0x50cd5b
jmp 0x50cd27
jge 0x50cd5b
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 1
mov eax, 0x50ce88
call fcn.0040d110
mov eax, dword [ebp - 0x5c]
call fcn.0047d63c
jmp 0x50cda2
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x88]
mov ecx, 2
mov eax, 0x50cec8
call fcn.0040d110
mov eax, dword [ebp - 0x70]
call fcn.0047d63c
mov eax, dword [ebp - 0x10]
call fcn.0040c56c
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
lea eax, [edx + eax*4 + 8]
mov edx, dword [ebp - 0x1c]
call fcn.00405420
jmp 0x50cdf8
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
lea edx, [ebp - 0x94]
xor ecx, ecx
mov eax, 0x50cf0c
call fcn.0040d110
mov eax, dword [ebp - 0x8c]
call fcn.0047d63c
dec dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0xffffffff
jne 0x50cbf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ce47
lea eax, [ebp - 0x8c]
call fcn.004053cc
lea eax, [ebp - 0x70]
call fcn.004053cc
lea eax, [ebp - 0x5c]
mov edx, 5
call fcn.004053f0
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.004053f0
ret