Function at 0x52079a
Capabilities:
Copy file

Disassembly:
push 0x48
mov eax, 0x586e83
call fcn.0055ddbc
mov ebx, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov ecx, dword [0x6b23bc]
mov eax, ecx
mov esi, dword [0x6b23b8]
sub eax, esi
push 0x18
pop edi
cdq
idiv edi
xor edi, edi
mov byte [ebp - 4], 2
inc edi
test eax, eax
jne 0x5207f2
cmp byte [ebp + 0x20], al
je 0x5208fe
jmp 0x5209ce
cmp byte [ebp + 0x20], 0
je 0x5208fe
cmp esi, ecx
je 0x5209ce
push 0xffffffffffffffff
push 0
push 0x5cecd0
lea ecx, [ebp - 0x28]
call fcn.00406721
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0040e392
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00521094
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0046852c
push 0
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004066dd
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0040e392
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00521108
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00422f3a
push 0
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004066dd
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0040e392
mov ecx, ebx
call fcn.00521c34
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push 0
add eax, 0xffffffe8
push eax
call fcn.00422f3a
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0x10
jb 0x5208ba
mov eax, dword [esi]
jmp 0x5208bc
mov eax, esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x5208e1
push esi
lea eax, [ebp - 0x44]
mov ecx, 0x6b23b8
push eax
call fcn.00521fe2
mov esi, dword [eax]
mov eax, dword [0x6b23bc]
jmp 0x5208f1
mov eax, dword [0x6b23bc]
add esi, 0x18
cmp esi, eax
je 0x5209ce
cmp esi, eax
jne 0x520804
jmp 0x5209ce
push 0xffffffffffffffff
push 0
push 0x5cecd0
lea ecx, [ebp - 0x28]
call fcn.00406721
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040e392
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00521094
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.0046852c
push 0
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004066dd
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040e392
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00521108
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00422f3a
push 0
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004066dd
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0040e392
mov ecx, ebx
call fcn.00521c34
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push 0
add eax, 0xffffffe8
push eax
call fcn.00422f3a
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x5209ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.004066dd
lea ecx, [ebp - 0x50]
call fcn.004156dc
push 0
push edi
lea ecx, [ebp + 8]
call fcn.004066dd
call fcn.0055dd7a
ret 0x1c