Function at 0x527f10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x527f18
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5282bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x52827f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5895b8], 0
jne 0x527f8d
mov eax, dword [0x5872d0]
push dword [eax]
push dword [0x589594]
push 0x5282d8
push dword [0x589598]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x14]
call fcn.00528338
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5282a2
cmp byte [0x5895b8], 1
jne 0x527ff1
push 0
mov edx, dword [0x5872d0]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, 0x5282e4
call fcn.00404740
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x41a8d4]
call fcn.0041f924
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00527bcc
mov byte [ebp - 1], al
mov edx, 0x5895a1
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 0x5282a2
lea eax, [ebp - 0x10]
mov edx, 0x5282fc
call fcn.004044cc
xor ebx, ebx
lea eax, [ebp - 0x1c]
call fcn.00527e7c
mov edx, dword [ebp - 0x1c]
mov eax, 0x5895bc
call fcn.00404488
jmp 0x528018
inc ebx
push dword [0x5895bc]
push 0x5282d8
push dword [ebp - 0x10]
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00408d88
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x20]
call fcn.00409384
test al, al
jne 0x528017
push dword [0x5895bc]
push 0x5282d8
push dword [ebp - 0x10]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00408d88
push dword [ebp - 0x28]
mov eax, 0x5895bc
mov edx, 4
call fcn.004047b4
mov eax, dword [0x5895bc]
call fcn.00409934
test al, al
jne 0x52809b
mov eax, 0x42c
call fcn.0051c7ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5282a2
lea eax, [ebp - 0x2c]
mov ecx, dword [0x5895bc]
mov edx, 0x528310
call fcn.00404740
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x5895c0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
lea eax, [ebp - 0x30]
mov ecx, 0x52831c
mov edx, dword [0x5895bc]
call fcn.00404740
mov eax, dword [ebp - 0x30]
call fcn.004048f4
push eax
lea edx, [ebp - 0x34]
mov eax, dword [0x5870e8]
mov eax, dword [eax]
call fcn.004a25f4
mov eax, dword [ebp - 0x34]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x528111
mov eax, 0x42d
call fcn.0051c7ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5282a2
push 0x528334
push dword [0x5895bc]
push 0x52831c
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004047b4
mov edx, dword [ebp - 0x38]
mov eax, dword [0x5895c0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x3c]
mov ecx, 0x52831c
mov edx, dword [0x5895bc]
call fcn.00404740
mov eax, dword [ebp - 0x3c]
call fcn.00409490
mov ebx, eax
and bx, 0xfffe
lea eax, [ebp - 0x40]
mov ecx, 0x52831c
mov edx, dword [0x5895bc]
call fcn.00404740
mov eax, dword [ebp - 0x40]
movzx edx, bx
call fcn.004094a4
push 0
lea eax, [ebp - 0x44]
mov ecx, 0x52831c
mov edx, dword [0x5895bc]
call fcn.00404740
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x41a8d4]
call fcn.0041f924
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.0041f42c
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.0041f42c
mov edx, dword [0x5895bc]
mov eax, dword [ebp - 8]
call fcn.00523678
test al, al
jne 0x5281fe
mov eax, dword [ebp - 8]
call fcn.00403600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5282a2
mov eax, dword [ebp - 8]
call fcn.00403600
mov eax, dword [0x5872d0]
mov edx, dword [0x5895bc]
call fcn.00404488
mov byte [0x5895b8], 1
push 0
mov edx, dword [0x5872d0]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, 0x5282e4
call fcn.00404740
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x41a8d4]
call fcn.0041f924
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00527bcc
mov byte [ebp - 1], al
mov edx, 0x5895a1
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 0x5282a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5282c4
lea eax, [ebp - 0x48]
mov edx, 0xf
call fcn.00404458
ret