Function at 0x56b4d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3d28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6d5760]
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 - 4], 0
xor edi, edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov ecx, dword [0x719740]
mov eax, 0x2aaaaaab
mov esi, dword [0x71973c]
sub ecx, esi
imul ecx
mov byte [ebp - 4], 2
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x56b55f
cmp byte [ebp + 0x20], al
je 0x56b7b0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
jmp 0x56b90c
cmp byte [ebp + 0x20], 0
je 0x56b7b0
cmp esi, dword [0x719740]
je 0x56b8e3
mov edi, dword [ebp - 0x54]
jmp 0x56b580
push 0xffffffffffffffff
push 0
push 0x637f5c
lea ecx, [ebp - 0x28]
call fcn.00407830
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.00407830
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0056c360
mov edi, eax
mov byte [ebp - 4], 3
cmp edi, ebx
jae 0x56b5fd
mov eax, dword [ebp - 0x50]
cmp eax, edi
ja 0x56b5fd
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [ebp - 0x48]
jne 0x56b5f2
push 1
lea ecx, [ebp - 0x50]
call fcn.0041bf60
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
lea eax, [edi + edi*2]
lea edi, [ecx + eax*8]
jmp 0x56b60f
cmp ebx, dword [ebp - 0x48]
jne 0x56b60f
push 1
lea ecx, [ebp - 0x50]
call fcn.0041bf60
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x56b664
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [edi + 0x14], 0x10
jae 0x56b63d
mov eax, dword [edi + 0x10]
inc eax
je 0x56b647
push eax
push edi
push ebx
call fcn.005b6430
add esp, 0xc
jmp 0x56b647
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], 2
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x4c], ebx
jb 0x56b67f
push dword [ebp - 0x40]
call fcn.005b62e5
add esp, 4
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.00407830
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.0056c410
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0042e5a0
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], 2
jb 0x56b6d3
push dword [ebp - 0x40]
call fcn.005b62e5
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407830
mov ecx, edi
call fcn.0056d8c0
push 0xffffffffffffffff
push 0
lea eax, [ebx - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e5a0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0x10
jb 0x56b722
mov eax, dword [esi]
jmp 0x56b724
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x56b79c
push dword [ebp - 0x44]
lea eax, [esi + 0x18]
push esi
push dword [0x719740]
push eax
call fcn.0056b130
mov eax, dword [0x719740]
add esp, 0x10
mov dword [ebp - 0x44], eax
lea edi, [eax - 0x18]
cmp edi, eax
je 0x56b787
cmp dword [edi + 0x14], 0x10
jb 0x56b76a
push dword [edi]
call fcn.005b62e5
mov eax, dword [ebp - 0x44]
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
add edi, 0x18
cmp edi, eax
jne 0x56b757
mov eax, dword [0x719740]
sub eax, 0x18
mov dword [0x719740], eax
cmp esi, eax
je 0x56b8cf
jmp 0x56b575
add esi, 0x18
cmp esi, dword [0x719740]
jne 0x56b580
jmp 0x56b8cf
push 0xffffffffffffffff
push 0
push 0x637f5c
lea ecx, [ebp - 0x28]
call fcn.00407830
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407830
mov ebx, dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0056c360
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00482e70
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], 2
jb 0x56b814
push dword [ebp - 0x40]
call fcn.005b62e5
add esp, 4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407830
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0056c410
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0042e5a0
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], 2
jb 0x56b868
push dword [ebp - 0x40]
call fcn.005b62e5
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407830
mov ecx, ebx
call fcn.0056d8c0
mov ebx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push 0
lea eax, [ebx - 0x18]
push eax
call fcn.0042e5a0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 1
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 0x56b8cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 0x10
jb 0x56b8e0
push dword [ebp - 0x28]
call fcn.005b62e5
add esp, 4
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test edi, edi
je 0x56b90c
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.0041be30
push edi
call fcn.005b62e5
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x56b91d
push dword [ebp + 8]
call fcn.005b62e5
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.005b6a74
mov esp, ebp
pop ebp
ret 0x1c