Function at 0x539170
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x539178
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5393d5
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.00538250
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
mov eax, dword [eax + 0x68]
cmp eax, dword [ebp - 8]
jne 0x5391c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
mov dword [ebp - 0x10], eax
jmp 0x5391e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
mov eax, dword [eax + 0x68]
cmp eax, dword [ebp - 8]
jne 0x5393a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
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 [0x59f9c4]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00443500
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x59fcc4]
mov eax, dword [eax]
call fcn.00443480
mov edx, dword [ebp - 0x2c]
mov eax, 0x5393ec
pop ecx
call fcn.00495310
call fcn.00459030
cmp al, 2
jne 0x5393a5
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 [0x59f944]
mov eax, dword [eax]
mov edx, 0x42
call fcn.004ffa70
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x70]
lea edx, [ebp - 0x34]
mov eax, dword [0x59f764]
mov eax, dword [eax]
call fcn.0043ffe0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0042b390
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
add eax, 0x1f8
call fcn.00406970
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042b4d0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1f8]
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 0x5392fa
push 1
lea edx, [ebp - 0x38]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1f8]
call fcn.005526c0
mov eax, dword [ebp - 0x10]
add eax, 0x1f8
call fcn.004065ac
jmp 0x5393a5
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.0042b3e0
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
mov edx, 0x539420
call fcn.004073f0
push 0
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x200
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, 0x53943c
call fcn.00437970
mov dword [ebp - 0x14], eax
push 0x539454
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0041d070
push dword [ebp - 0x48]
push 0x539490
push dword [ebp - 0x1c]
push 0x5394b8
push dword [ebp - 0x18]
lea eax, [ebp - 0x44]
mov edx, 6
call fcn.00407478
mov edx, dword [ebp - 0x44]
mov eax, dword [0x59f8a8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004361b0
cmp dword [ebp - 0x14], 0x20
jbe 0x53939d
mov dl, 4
mov eax, dword [ebp - 0x10]
call fcn.0053a250
mov eax, dword [ebp - 0x10]
call fcn.00524ee0
mov eax, dword [ebp - 0x10]
call fcn.005213d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5393dc
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