Function at 0x51e3fc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x51e404
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x51e7f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
call fcn.00404434
xor eax, eax
push ebp
push 0x51e7b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5a558c], 0
jne 0x51e482
mov eax, dword [0x5a3304]
push dword [eax]
push dword [0x5a5568]
push 0x51e80c
push dword [0x5a556c]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x18]
call fcn.0051e86c
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e7d7
cmp byte [0x5a558c], 1
jne 0x51e4fb
mov edx, dword [0x5a3304]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
mov ecx, 0x51e818
call fcn.00404740
push 0
mov edx, dword [0x5a3304]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
mov ecx, 0x51e818
call fcn.00404740
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x41a94c]
call fcn.0041f99c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.0051e0b8
mov byte [ebp - 1], al
mov edx, 0x5a5575
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
call fcn.00403600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e7d7
lea eax, [ebp - 0x10]
mov edx, 0x51e830
call fcn.004044cc
xor ebx, ebx
lea eax, [ebp - 0x20]
call fcn.0051e368
mov edx, dword [ebp - 0x20]
mov eax, 0x5a5590
call fcn.00404488
jmp 0x51e522
inc ebx
push dword [0x5a5590]
push 0x51e80c
push dword [ebp - 0x10]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00408db8
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x24]
call fcn.004093b4
test al, al
jne 0x51e521
push dword [0x5a5590]
push 0x51e80c
push dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00408db8
push dword [ebp - 0x2c]
mov eax, 0x5a5590
mov edx, 4
call fcn.004047b4
mov eax, dword [0x5a5590]
call fcn.004099ac
test al, al
jne 0x51e5a5
mov eax, 0x42c
call fcn.0053d400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e7d7
lea eax, [ebp - 0x30]
mov ecx, dword [0x5a5590]
mov edx, 0x51e844
call fcn.00404740
mov edx, dword [ebp - 0x30]
mov eax, dword [0x5a5594]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x51e850
mov edx, dword [0x5a5590]
call fcn.00404740
mov eax, dword [ebp - 0x34]
call fcn.004048f4
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x5a311c]
mov eax, dword [eax]
call fcn.004a327c
mov eax, dword [ebp - 0x38]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x51e61b
mov eax, 0x42d
call fcn.0053d400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e7d7
push 0x51e868
push dword [0x5a5590]
push 0x51e850
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004047b4
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x5a5594]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x40]
mov ecx, 0x51e850
mov edx, dword [0x5a5590]
call fcn.00404740
mov eax, dword [ebp - 0x40]
call fcn.004094c0
mov ebx, eax
and bx, 0xfffe
lea eax, [ebp - 0x44]
mov ecx, 0x51e850
mov edx, dword [0x5a5590]
call fcn.00404740
mov eax, dword [ebp - 0x44]
movzx edx, bx
call fcn.004094d4
lea eax, [ebp - 0x14]
mov ecx, 0x51e850
mov edx, dword [0x5a5590]
call fcn.00404740
push 0
lea eax, [ebp - 0x48]
mov ecx, 0x51e850
mov edx, dword [0x5a5590]
call fcn.00404740
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x41a94c]
call fcn.0041f99c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
sub eax, 4
sbb edx, 0
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.0041f4a4
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.0041f4a4
mov edx, dword [0x5a5590]
mov eax, dword [ebp - 8]
call fcn.00519394
test al, al
jne 0x51e71b
mov eax, dword [ebp - 8]
call fcn.00403600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e7d7
mov eax, dword [ebp - 8]
call fcn.00403600
mov eax, dword [0x5a3304]
mov edx, dword [0x5a5590]
call fcn.00404488
mov byte [0x5a558c], 1
mov edx, dword [0x5a3304]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
mov ecx, 0x51e818
call fcn.00404740
push 0
mov edx, dword [0x5a3304]
mov edx, dword [edx]
lea eax, [ebp - 0x4c]
mov ecx, 0x51e818
call fcn.00404740
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x41a94c]
call fcn.0041f99c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.0051e0b8
mov byte [ebp - 1], al
mov edx, 0x5a5575
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
call fcn.00403600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e7d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e7f9
lea eax, [ebp - 0x4c]
mov edx, 0x10
call fcn.00404458
ret