Function at 0x5357dc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5357e4
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x535bd2
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 0x535b91
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5a45d8], 0
jne 0x535862
mov eax, dword [0x5a2304]
push dword [eax]
push dword [0x5a45b4]
push 0x535bec
push dword [0x5a45b8]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x18]
call fcn.00535c4c
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x535bb7
cmp byte [0x5a45d8], 1
jne 0x5358db
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
mov ecx, 0x535bf8
call fcn.00404740
push 0
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
mov ecx, 0x535bf8
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.00535498
mov byte [ebp - 1], al
mov edx, 0x5a45c1
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 0x535bb7
lea eax, [ebp - 0x10]
mov edx, 0x535c10
call fcn.004044cc
xor ebx, ebx
lea eax, [ebp - 0x20]
call fcn.00535748
mov edx, dword [ebp - 0x20]
mov eax, 0x5a45dc
call fcn.00404488
jmp 0x535902
inc ebx
push dword [0x5a45dc]
push 0x535bec
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 0x535901
push dword [0x5a45dc]
push 0x535bec
push dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00408db8
push dword [ebp - 0x2c]
mov eax, 0x5a45dc
mov edx, 4
call fcn.004047b4
mov eax, dword [0x5a45dc]
call fcn.004099ac
test al, al
jne 0x535985
mov eax, 0x42c
call fcn.0052cdf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x535bb7
lea eax, [ebp - 0x30]
mov ecx, dword [0x5a45dc]
mov edx, 0x535c24
call fcn.00404740
mov edx, dword [ebp - 0x30]
mov eax, dword [0x5a45e0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x535c30
mov edx, dword [0x5a45dc]
call fcn.00404740
mov eax, dword [ebp - 0x34]
call fcn.004048f4
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x5a211c]
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 0x5359fb
mov eax, 0x42d
call fcn.0052cdf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x535bb7
push 0x535c48
push dword [0x5a45dc]
push 0x535c30
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004047b4
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x5a45e0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x40]
mov ecx, 0x535c30
mov edx, dword [0x5a45dc]
call fcn.00404740
mov eax, dword [ebp - 0x40]
call fcn.004094c0
mov ebx, eax
and bx, 0xfffe
lea eax, [ebp - 0x44]
mov ecx, 0x535c30
mov edx, dword [0x5a45dc]
call fcn.00404740
mov eax, dword [ebp - 0x44]
movzx edx, bx
call fcn.004094d4
lea eax, [ebp - 0x14]
mov ecx, 0x535c30
mov edx, dword [0x5a45dc]
call fcn.00404740
push 0
lea eax, [ebp - 0x48]
mov ecx, 0x535c30
mov edx, dword [0x5a45dc]
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 [0x5a45dc]
mov eax, dword [ebp - 8]
call fcn.00530b8c
test al, al
jne 0x535afb
mov eax, dword [ebp - 8]
call fcn.00403600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x535bb7
mov eax, dword [ebp - 8]
call fcn.00403600
mov eax, dword [0x5a2304]
mov edx, dword [0x5a45dc]
call fcn.00404488
mov byte [0x5a45d8], 1
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
mov ecx, 0x535bf8
call fcn.00404740
push 0
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x4c]
mov ecx, 0x535bf8
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.00535498
mov byte [ebp - 1], al
mov edx, 0x5a45c1
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 0x535bb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535bd9
lea eax, [ebp - 0x4c]
mov edx, 0x10
call fcn.00404458
ret