Function at 0x566b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62bb20
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x708dfc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 0
jne 0x566b5c
xor al, al
jmp 0x566dd1
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x566b7a
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.005bcc20
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0
call fcn.00476650
mov byte [ebp - 0x15], al
mov ecx, dword [ebp + 8]
push ecx
push 1
push 4
mov edx, dword [ebp - 0x2c]
add edx, 8
push edx
call fcn.005e6f57
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x566bc7
xor al, al
jmp 0x566dd1
mov eax, dword [ebp + 8]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
push ecx
call fcn.005e6f57
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x566bf8
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], 0
xor al, al
jmp 0x566dd1
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x566c78
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
shr edx, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
shl ecx, 0x18
or ecx, edx
and ecx, 0xff00ff00
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
shr eax, 0x18
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 8]
shl edx, 8
or edx, eax
and edx, 0xff00ff
or edx, ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
shr edx, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
shl ecx, 0x18
or ecx, edx
and ecx, 0xff00ff00
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
shr eax, 0x18
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0xc]
shl edx, 8
or edx, eax
and edx, 0xff00ff
or edx, ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0xc], 0
jne 0x566c88
mov al, 1
jmp 0x566dd1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
shl eax, 1
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005bcc00
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], edx
jmp 0x566cd1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
jne 0x566ce8
xor al, al
jmp 0x566dd1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
push 8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call fcn.005e6f57
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0xc]
je 0x566d4c
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005bcc20
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], 0
xor al, al
jmp 0x566dd1
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x566dcf
mov dword [ebp - 0x1c], 0
jmp 0x566d66
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
shl edx, 1
cmp dword [ebp - 0x1c], edx
jae 0x566dcf
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
shr eax, 8
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 4]
mov esi, dword [ebp - 0x1c]
mov edx, dword [edx + esi*4]
shl edx, 0x18
or edx, eax
and edx, 0xff00ff00
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov esi, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4]
shr eax, 0x18
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 4]
mov edi, dword [ebp - 0x1c]
mov esi, dword [esi + edi*4]
shl esi, 8
or esi, eax
and esi, 0xff00ff
or esi, edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], esi
jmp 0x566d5d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4