Function at 0x53aea0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b10c8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x695e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
xor ebx, ebx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov edi, dword [0x6caf54]
mov eax, 0x2aaaaaab
mov esi, dword [0x6caf50]
mov ecx, edi
sub ecx, esi
mov byte [ebp - 4], 1
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x53b0dc
cmp esi, edi
je 0x53b0dc
push 0xffffffffffffffff
push 0
push 0x5f8674
lea ecx, [ebp - 0x28]
call fcn.00403dc0
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.00403dc0
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push eax
call fcn.0053b8c0
mov edi, eax
mov byte [ebp - 4], 2
cmp edi, ebx
jae 0x53af9e
mov eax, dword [ebp - 0x4c]
cmp eax, edi
ja 0x53af9e
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [ebp - 0x44]
jne 0x53af93
push 1
lea ecx, [ebp - 0x4c]
call fcn.00418640
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
lea eax, [edi + edi*2]
lea edi, [ecx + eax*8]
jmp 0x53afb0
cmp ebx, dword [ebp - 0x44]
jne 0x53afb0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00418640
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x53b005
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [edi + 0x14], 0x10
jae 0x53afde
mov eax, dword [edi + 0x10]
inc eax
je 0x53afe8
push eax
push edi
push ebx
call fcn.005856f0
add esp, 0xc
jmp 0x53afe8
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
add ebx, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x48], ebx
jb 0x53b020
push dword [ebp - 0x40]
call fcn.0058559d
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebx - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00456830
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0x10
jb 0x53b045
mov eax, dword [esi]
jmp 0x53b047
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x53b0bc
push dword [ebp - 0x50]
lea eax, [esi + 0x18]
push esi
push dword [0x6caf54]
push eax
call fcn.0053a3c0
mov eax, dword [0x6caf54]
add esp, 0x10
mov dword [ebp - 0x50], eax
lea edi, [eax - 0x18]
cmp edi, eax
je 0x53b0b0
lea ebx, [ebx]
cmp dword [edi + 0x14], 0x10
jb 0x53b093
push dword [edi]
call fcn.0058559d
mov eax, dword [ebp - 0x50]
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
add edi, 0x18
cmp edi, eax
jne 0x53b080
mov eax, dword [0x6caf54]
sub eax, 0x18
mov dword [0x6caf54], eax
cmp esi, eax
jmp 0x53b0c5
add esi, 0x18
cmp esi, dword [0x6caf54]
jne 0x53af20
cmp dword [ebp - 0x14], 0x10
jb 0x53b0dc
push dword [ebp - 0x28]
call fcn.0058559d
add esp, 4
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test esi, esi
je 0x53b108
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00418510
push esi
call fcn.0058559d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00585d34
mov esp, ebp
pop ebp
ret