Function at 0x538560
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x538568
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5387cd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 4]
call fcn.00537640
mov eax, dword [ebp - 4]
call fcn.004592f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x68]
cmp eax, dword [ebp - 8]
jne 0x5385ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17c]
mov dword [ebp - 0x10], eax
jmp 0x5385db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x184]
mov eax, dword [eax + 0x68]
cmp eax, dword [ebp - 8]
jne 0x53879d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x184]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea edx, [ebp - 0x28]
mov eax, dword [0x59e9c0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00443710
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x59ecb4]
mov eax, dword [eax]
call fcn.00443690
mov edx, dword [ebp - 0x2c]
mov eax, 0x5387e4
pop ecx
call fcn.00494e30
call fcn.00459070
cmp al, 2
jne 0x53879d
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push 0
push 0
mov eax, dword [ebp - 8]
lea ecx, [eax + 4]
mov eax, dword [0x59e944]
mov eax, dword [eax]
mov edx, 0x42
call fcn.004feeb0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x70]
lea edx, [ebp - 0x34]
mov eax, dword [0x59e764]
mov eax, dword [eax]
call fcn.004401f0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0042b540
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
add eax, 0x1f0
call fcn.00406970
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042b680
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1f0]
call fcn.004073f0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00407200
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407200
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x5386f2
push 1
lea edx, [ebp - 0x38]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1f0]
call fcn.00551a30
mov eax, dword [ebp - 0x10]
add eax, 0x1f0
call fcn.004065ac
jmp 0x53879d
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0042b590
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
mov edx, 0x538818
call fcn.004073f0
push 0
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x1f8
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, 0x538834
call fcn.00437b20
mov dword [ebp - 0x14], eax
push 0x53884c
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0041d09c
push dword [ebp - 0x48]
push 0x538888
push dword [ebp - 0x1c]
push 0x5388b0
push dword [ebp - 0x18]
lea eax, [ebp - 0x44]
mov edx, 6
call fcn.00407478
mov edx, dword [ebp - 0x44]
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00436360
cmp dword [ebp - 0x14], 0x20
jbe 0x538795
mov dl, 4
mov eax, dword [ebp - 0x10]
call fcn.00539660
mov eax, dword [ebp - 0x10]
call fcn.005241e0
mov eax, dword [ebp - 0x10]
call fcn.005206d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5387d4
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.0040660c
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040660c
lea eax, [ebp - 0xc]
call fcn.004065ac
ret