Function at 0x5e6690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x984], 0
lea ebx, [edi + 0x984]
mov dword [ebp - 0x10], ebx
jne 0x5e66c3
mov eax, dword [ebx + 0x14]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xf
add eax, 0x11
movzx eax, ax
jmp 0x5e66d6
xor ecx, ecx
cmp dword [ebx + 0x14], 3
setne cl
lea ecx, [ecx*8 + 9]
movzx eax, cx
mov esi, edx
push 0
lea edx, [ebp - 0xc]
push edx
mov edx, dword [esi + 0x6b]
movzx eax, ax
push eax
add esi, 0x6b
lea ecx, [ebp - 0x3e]
push ecx
push edx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
sub dword [esi + 8], eax
mov esi, dword [ebx]
movzx eax, byte [ebp - 0x3e]
movzx ecx, byte [ebp - 0x3d]
test esi, esi
sete dl
shl eax, 8
or eax, ecx
add dl, 8
movsx ebx, dl
mov ecx, 0x10
sub ecx, ebx
sar eax, cl
mov ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, ebx
mov ebx, dword [ebp - 0xc]
shl ebx, cl
sub ebx, 1
and eax, ebx
xor ebx, ebx
cmp dword [edi + 0x998], 3
mov edi, esi
setne bl
mov dword [ebp - 0x14], eax
movsx ax, dl
add ebx, 1
neg edi
sbb edi, edi
add edi, 2
test esi, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
je 0x5e6760
mov cl, bl
jmp 0x5e676a
cmp ebx, 1
sete cl
lea ecx, [ecx + ecx + 3]
movsx dx, cl
add ax, dx
test ebx, ebx
mov edx, dword [ebp + 8]
mov word [ebp - 0x40], ax
jle 0x5e67b6
lea ecx, [edx + 0x814]
mov esi, ebx
jmp 0x5e6790
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx - 4], 0
mov dword [ecx - 8], 0
add ecx, 0xc0
sub esi, 1
jne 0x5e6790
cmp edi, 2
jne 0x5e6886
test ebx, ebx
jle 0x5e6886
lea edi, [edx + 0x874]
mov esi, ebx
nop
movzx edx, ax
mov bl, dl
shr edx, 3
movzx edx, byte [ebp + edx - 0x3e]
and bl, 7
mov ecx, 7
sub cl, bl
shr edx, cl
add ax, 1
mov word [ebp - 0x40], ax
mov ecx, 7
and edx, 1
mov dword [edi - 8], edx
movzx edx, ax
mov bl, dl
shr edx, 3
movzx edx, byte [ebp + edx - 0x3e]
and bl, 7
sub cl, bl
shr edx, cl
add ax, 1
mov word [ebp - 0x40], ax
mov ecx, 7
and edx, 1
mov dword [edi - 4], edx
movzx edx, ax
mov bl, dl
shr edx, 3
movzx edx, byte [ebp + edx - 0x3e]
and bl, 7
sub cl, bl
shr edx, cl
add ax, 1
mov word [ebp - 0x40], ax
mov ecx, 7
and edx, 1
mov dword [edi], edx
movzx edx, ax
mov bl, dl
shr edx, 3
movzx edx, byte [ebp + edx - 0x3e]
and bl, 7
sub cl, bl
shr edx, cl
add ax, 1
add edi, 0xc0
mov word [ebp - 0x40], ax
and edx, 1
sub esi, 1
mov dword [edi - 0xbc], edx
jne 0x5e67d0
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], 0
jle 0x5e68e5
add edx, 0x804
mov dword [ebp - 0xc], edx
lea ebx, [ebx]
xor esi, esi
test ebx, ebx
jle 0x5e68cc
mov edi, edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [edi], eax
push ecx
lea eax, [ebp - 0x40]
mov dword [edi + 4], esi
call fcn.005e6920
add esi, 1
add edi, 0xc0
cmp esi, ebx
jl 0x5e68a8
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add eax, 1
add edx, 0x60
cmp eax, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
jl 0x5e68a0
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x9b8]
cmp word [edi], 0
jne 0x5e68f3
mov edi, edx
mov esi, dword [ebp - 0x10]
call fcn.005d4ad0
mov edx, dword [ebp + 8]
mov ecx, edi
mov edi, dword [ebp - 0x18]
push eax
push edx
mov edx, dword [ebp - 0x14]
call fcn.005d4bc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4