Function at 0x51e030
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x51e038
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404690
xor eax, eax
push ebp
push 0x51e6e6
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040ae68
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x51e6fc
call fcn.0040bae4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x51e714
call fcn.00409e10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.004044a0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00404700
mov eax, dword [ebp - 0x20]
mov edx, 0x51e724
call fcn.004045ec
jne 0x51e0d2
mov eax, dword [ebp - 4]
call fcn.004044a0
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404740
mov eax, dword [ebp - 4]
call fcn.00409280
test al, al
je 0x51e6bb
push dword [ebp - 4]
push 0x51e724
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x24]
call fcn.00409280
test al, al
jne 0x51e126
push dword [ebp - 4]
push 0x51e724
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x28]
call fcn.00409700
push dword [ebp - 4]
push 0x51e724
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404560
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
call fcn.004044a0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00404700
mov eax, dword [ebp - 0x2c]
mov edx, 0x51e724
call fcn.004045ec
jne 0x51e17f
mov eax, dword [ebp - 8]
call fcn.004044a0
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 1
call fcn.00404740
lea eax, [ebp - 8]
mov edx, 0x51e724
call fcn.004044a8
lea eax, [ebp - 0x30]
mov ecx, 0x51e730
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x30]
call fcn.00409270
test al, al
je 0x51e1eb
push 0
push dword [ebp - 8]
push 0x51e740
push 0x51e730
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x34]
call fcn.004046a0
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x51e730
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x38]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x3c]
mov ecx, 0x51e750
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x3c]
call fcn.00409270
test al, al
je 0x51e24a
push 0
push dword [ebp - 8]
push 0x51e740
push 0x51e750
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x40]
call fcn.004046a0
push eax
lea eax, [ebp - 0x44]
mov ecx, 0x51e750
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x44]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x48]
mov ecx, 0x51e75c
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x48]
call fcn.00409270
test al, al
je 0x51e2a9
push 0
push dword [ebp - 8]
push 0x51e740
push 0x51e75c
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x4c]
call fcn.004046a0
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x51e75c
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x50]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x54]
mov ecx, 0x51e770
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x54]
call fcn.00409270
test al, al
je 0x51e308
push 0
push dword [ebp - 8]
push 0x51e740
push 0x51e770
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x58]
call fcn.004046a0
push eax
lea eax, [ebp - 0x5c]
mov ecx, 0x51e770
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x5c]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x60]
mov ecx, 0x51e784
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x60]
call fcn.00409270
test al, al
je 0x51e367
push 0
push dword [ebp - 8]
push 0x51e740
push 0x51e784
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x64]
call fcn.004046a0
push eax
lea eax, [ebp - 0x68]
mov ecx, 0x51e784
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x68]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x6c]
mov ecx, 0x51e794
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x6c]
call fcn.00409270
test al, al
je 0x51e3c6
push 0
push dword [ebp - 8]
push 0x51e740
push 0x51e794
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x70]
call fcn.004046a0
push eax
lea eax, [ebp - 0x74]
mov ecx, 0x51e794
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x74]
call fcn.004046a0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0xc]
call fcn.0051db98
mov eax, dword [ebp - 0xc]
mov edx, 0x51e7a8
call fcn.004045ec
je 0x51e6bb
mov eax, dword [ebp - 0xc]
mov edx, 0x51e7b8
call fcn.004045ec
je 0x51e6bb
mov eax, dword [ebp - 0xc]
mov edx, 0x51e7c8
call fcn.004045ec
je 0x51e6bb
mov eax, dword [ebp - 0xc]
mov edx, 0x51e7d8
call fcn.004045ec
je 0x51e6bb
xor eax, eax
push ebp
push 0x51e44a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x78]
mov ecx, 0x51e730
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x78]
call fcn.004093c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e454
lea eax, [ebp - 0x7c]
mov edx, 0x51e7e0
call fcn.004043d8
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
mov ecx, 0x51e730
mov edx, dword [ebp - 8]
call main
mov ecx, dword [ebp - 0x80]
mov eax, 3
pop edx
call fcn.0051de38
xor eax, eax
push ebp
push 0x51e4b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x84]
mov ecx, 0x51e750
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x84]
call fcn.004093c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e4c3
lea eax, [ebp - 0x88]
mov edx, 0x51e7ec
call fcn.004043d8
mov eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
mov ecx, 0x51e750
mov edx, dword [ebp - 8]
call main
mov ecx, dword [ebp - 0x8c]
mov eax, 2
pop edx
call fcn.0051de38
xor eax, eax
push ebp
push 0x51e534
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x90]
mov ecx, 0x51e75c
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x90]
call fcn.004093c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e53e
lea eax, [ebp - 0x94]
mov edx, 0x51e7f0
call fcn.004043d8
mov eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov ecx, 0x51e75c
mov edx, dword [ebp - 8]
call main
mov ecx, dword [ebp - 0x98]
mov eax, 2
pop edx
call fcn.0051de38
xor eax, eax
push ebp
push 0x51e5af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x9c]
mov ecx, 0x51e770
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0x9c]
call fcn.004093c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e5b9
lea eax, [ebp - 0xa0]
mov edx, 0x51e7fc
call fcn.004043d8
mov eax, dword [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
mov ecx, 0x51e770
mov edx, dword [ebp - 8]
call main
mov ecx, dword [ebp - 0xa4]
mov eax, 2
pop edx
call fcn.0051de38
xor eax, eax
push ebp
push 0x51e62a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa8]
mov ecx, 0x51e784
mov edx, dword [ebp - 8]
call main
mov eax, dword [ebp - 0xa8]
call fcn.004093c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e634
lea eax, [ebp - 0xac]
mov edx, 0x51e808
call fcn.004043d8
mov eax, dword [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
mov ecx, 0x51e784
mov edx, dword [ebp - 8]
call main
mov ecx, dword [ebp - 0xb0]
mov eax, 2
pop edx
call fcn.0051de38
call fcn.0051db08
test al, al
je 0x51e6b3
lea eax, [ebp - 0xb4]
mov edx, 0x51e810
call fcn.004043d8
mov eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
mov ecx, 0x51e794
mov edx, dword [ebp - 8]
call main
mov ecx, dword [ebp - 0xb8]
mov eax, 2
pop edx
call fcn.0051de38
mov eax, dword [ebp - 4]
call fcn.0051c8f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e6ed
lea eax, [ebp - 0xb8]
mov edx, 0x27
call fcn.00404204
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404204
ret