Function at 0x51ad14
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x51ad1c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040436c
lea eax, [ebp - 0x58]
mov edx, dword [0x52c480]
call fcn.00404948
xor eax, eax
push ebp
push 0x51b034
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x569758]
call fcn.00413f14
mov eax, dword [0x569758]
mov edx, dword [eax]
call dword [edx + 0x7c]
lea eax, [ebp - 0x5c]
call fcn.0052e1c4
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 8]
mov ecx, 0x51b04c
call fcn.00404204
mov eax, dword [ebp - 8]
call fcn.004b5a98
test al, al
jne 0x51ad95
mov eax, dword [ebp - 8]
call fcn.00402a20
call fcn.004028c4
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.0052e3e4
xor eax, eax
push ebp
push 0x51add8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x51b060
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004f8728
mov eax, dword [ebp - 0x60]
call fcn.00409b08
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ade5
sub ebx, 1
jb 0x51adf5
je 0x51aee3
jmp 0x51afcb
cmp dword [ebp - 0x58], 0
je 0x51afcb
mov al, byte [0x51b064]
push eax
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x51b070
mov eax, dword [ebp - 0x58]
call fcn.0040d930
mov al, byte [0x51b064]
push eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, 0x51b07c
mov eax, dword [ebp - 0xc]
call fcn.0040d930
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0xc]
call fcn.00403fd0
push 0
push dword [ebp - 8]
push 0x51b070
push dword [ebp - 0xc]
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00404278
mov eax, dword [ebp - 0x68]
call fcn.0040437c
push eax
mov eax, dword [ebp - 0x58]
call fcn.0040437c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x51afcb
call fcn.0040b240
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x70]
call fcn.0040be58
push dword [ebp - 0x70]
push 0x51b088
push dword [ebp - 0x58]
push 0x51b060
push dword [ebp - 0x54]
push 0x51b060
push dword [ebp - 0x50]
push 0x51b060
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x4c]
call fcn.00409a68
push dword [ebp - 0x74]
push 0x51b060
push dword [ebp - 0xc]
push 0x51b060
lea eax, [ebp - 0x6c]
mov edx, 0xc
call fcn.00404278
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x569758]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x51afcb
cmp dword [ebp - 0x48], 0
je 0x51afcb
push dword [ebp - 8]
push 0x51b070
push dword [ebp - 0x44]
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00404278
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
call fcn.0051a1f0
test al, al
je 0x51af91
call fcn.0040b240
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x80]
call fcn.0040be58
push dword [ebp - 0x80]
push 0x51b094
push 0
push 0x51b060
push dword [ebp - 0x54]
push 0x51b060
mov eax, dword [ebp - 0x24]
call fcn.00535e00
lea edx, [ebp - 0x84]
call fcn.00409a68
push dword [ebp - 0x84]
push 0x51b060
push dword [ebp - 0x48]
push 0x51b060
push dword [ebp - 0x44]
push 0x51b060
push dword [ebp - 0x44]
push 0x51b060
lea eax, [ebp - 0x7c]
mov edx, 0xe
call fcn.00404278
mov edx, dword [ebp - 0x7c]
mov eax, dword [0x569758]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x51afcb
push 0x10
push 0x51b098
push 0x51b0a8
push dword [ebp - 0x48]
push 0x51b070
push dword [ebp - 0x44]
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00404278
mov eax, dword [ebp - 0x88]
call fcn.0040437c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
call fcn.0051b0e0
lea eax, [ebp - 0x8c]
call fcn.0052e1c4
lea eax, [ebp - 0x8c]
mov edx, 0x51b0d0
call fcn.004041c0
mov edx, dword [ebp - 0x8c]
mov eax, dword [0x569758]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b03b
lea eax, [ebp - 0x8c]
mov edx, 0xd
call fcn.00403f5c
lea eax, [ebp - 0x58]
mov edx, dword [0x52c480]
call fcn.00404a14
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f5c
ret