Function at 0x566ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613b50
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6f7f90]
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 0x566bdc
xor al, al
jmp 0x566e51
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x566bfa
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.005c0a50
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.0047a1a0
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.005ea827
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x566c47
xor al, al
jmp 0x566e51
mov eax, dword [ebp + 8]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
push ecx
call fcn.005ea827
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x566c78
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], 0
xor al, al
jmp 0x566e51
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x566cf8
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 0x566d08
mov al, 1
jmp 0x566e51
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.005c0a30
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 0x566d51
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
jne 0x566d68
xor al, al
jmp 0x566e51
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.005ea827
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0xc]
je 0x566dcc
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005c0a50
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 0x566e51
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x566e4f
mov dword [ebp - 0x1c], 0
jmp 0x566de6
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 0x566e4f
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 0x566ddd
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