Function at 0x523f88
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x523f90
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x52425b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x50], 0x21
jne 0x524118
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x1185], 0
je 0x524118
push 0x12c
call sub.kernel32.dll_Sleep_2
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x48]
call fcn.00522064
mov esi, eax
inc esi
je 0x524240
xor eax, eax
push ebp
push 0x524069
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0x40]
mov eax, ebx
call fcn.0052436c
mov esi, eax
mov eax, dword [0x542d44]
mov eax, dword [eax]
mov eax, dword [eax + 0x1380]
shl eax, 0xa
cmp eax, esi
jge 0x52405f
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x40]
call fcn.00415cac
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00414ea8
mov eax, dword [ebp - 0xc]
push eax
push 0x524278
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x50]
call fcn.00414ea8
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, ebx
call fcn.00524570
mov byte [ebx + 0x4c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52407d
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x40]
call fcn.00415cac
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 4]
mov eax, ebx
call fcn.00524420
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00415bb0
mov eax, dword [ebp - 0x18]
call fcn.00415728
push 0
mov eax, dword [ebp - 4]
call fcn.0040785c
push eax
mov eax, dword [ebx + 0x40]
call fcn.0040785c
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x524118
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x40]
call fcn.00415cac
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x44]
call fcn.004077d0
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004077d0
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
call fcn.00522064
mov esi, eax
cmp esi, 0xffffffff
je 0x524114
mov eax, dword [ebx + 0x48]
mov edx, esi
call fcn.00522010
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
call fcn.00522064
mov esi, eax
cmp esi, 0xffffffff
jne 0x5240f8
mov byte [ebx + 0x4c], 1
cmp dword [ebx + 0x50], 0x22
jne 0x524240
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x1186], 0
je 0x524240
cmp byte [ebx + 0x4c], 0
jne 0x524240
xor eax, eax
push ebp
push 0x5241c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0x40]
mov eax, ebx
call fcn.0052436c
mov esi, eax
mov eax, dword [0x542d44]
mov eax, dword [eax]
mov eax, dword [eax + 0x1380]
shl eax, 0xa
cmp eax, esi
jge 0x5241b8
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x40]
call fcn.00415cac
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.00414ea8
mov eax, dword [ebp - 0x24]
push eax
push 0x524278
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x50]
call fcn.00414ea8
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov eax, ebx
call fcn.00524570
mov byte [ebx + 0x4c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5241d3
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x40]
call fcn.00415cac
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 4]
mov eax, ebx
call fcn.00524420
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00415bb0
mov eax, dword [ebp - 0x30]
call fcn.00415728
push 0
mov eax, dword [ebp - 4]
call fcn.0040785c
push eax
mov eax, dword [ebx + 0x40]
call fcn.0040785c
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x524240
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x40]
call fcn.00415cac
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x44]
call fcn.004077d0
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004077d0
mov byte [ebx + 0x4c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524262
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.004077c8
ret