Function at 0x651da4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x651dac
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x652121
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x65dc94]
call fcn.0040a140
push dword [0x65dc94]
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xc]
mov eax, 0x652138
call fcn.0040cf7c
push dword [ebp - 0xc]
push 0x652148
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x652154
call fcn.0040cf7c
push dword [ebp - 0x10]
push 0x652160
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x14]
mov eax, 0x65216c
call fcn.0040cf7c
push dword [ebp - 0x14]
push 0x652178
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x18]
mov eax, 0x652184
call fcn.0040cf7c
push dword [ebp - 0x18]
push 0x652190
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x1c]
mov eax, 0x65219c
call fcn.0040cf7c
push dword [ebp - 0x1c]
push 0x6521a8
lea eax, [ebp - 4]
mov edx, 0xb
call fcn.00404f70
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x3d8]
call fcn.004b5590
push dword [ebp - 0x20]
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x24]
mov eax, 0x652138
call fcn.0040cf7c
push dword [ebp - 0x24]
push 0x652148
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x28]
mov eax, 0x652154
call fcn.0040cf7c
push dword [ebp - 0x28]
push 0x652160
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x2c]
mov eax, 0x65216c
call fcn.0040cf7c
push dword [ebp - 0x2c]
push 0x652178
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x30]
mov eax, 0x652184
call fcn.0040cf7c
push dword [ebp - 0x30]
push 0x652190
call fcn.0040c12c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x34]
mov eax, 0x65219c
call fcn.0040cf7c
push dword [ebp - 0x34]
push 0x6521a8
lea eax, [ebp - 8]
mov edx, 0xb
call fcn.00404f70
mov esi, dword [ebx + 0x2fc]
mov eax, 0x6521b8
call fcn.00650ec4
xor eax, eax
push ebp
push 0x6520d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a368
mov eax, dword [ebx + 0x300]
call fcn.00480a98
push 0x6521d4
push dword [0x65dc88]
push 0x652214
push 0x652220
push dword [0x65dc8c]
push 0x652214
push 0x652234
push 0x652254
push dword [0x65dc84]
push 0x652214
lea eax, [ebp - 0x3c]
mov edx, 0xa
call fcn.00404f70
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00405490
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x300]
call fcn.004994f8
mov eax, dword [ebx + 0x300]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, esi
call fcn.0048c7b4
push 0x65226c
push dword [0x65dc90]
push 0x652288
push 0x652294
lea ecx, [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006427dc
push dword [ebp - 0x44]
push 0x6522ac
push 0x6522b8
lea ecx, [ebp - 0x48]
xor edx, edx
mov eax, 0x6522e4
call fcn.006427dc
push dword [ebp - 0x48]
push 0x6522fc
push 0x652308
lea eax, [ebp - 0x40]
mov edx, 0xa
call fcn.00404f70
mov eax, dword [ebp - 0x40]
push eax
mov eax, esi
call fcn.004a44cc
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, esi
call fcn.004a43f4
push 0x652330
push dword [ebp - 4]
push 0x652354
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404f70
mov eax, dword [ebp - 0x4c]
call fcn.00650ec4
xor eax, eax
push ebp
push 0x6520c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, dword [ebx + 0x3d8]
call fcn.0064d634
cmp dword [ebp - 0x50], 0
je 0x6520b8
push 0
mov eax, dword [ebp - 8]
call fcn.004050a8
push eax
mov eax, dword [ebp - 4]
call fcn.004050a8
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6520cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6520f1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x652128
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00404c0c
lea eax, [ebp - 0x38]
call fcn.00405314
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00404c0c
ret