Function at 0x5e0b30
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x48]
mov dword [esp + 4], eax
test byte [eax], 8
jne 0x5e0b4e
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
pop ecx
ret
push ebx
lea ebx, [esi + 0x1c]
push ebx
push esi
call fcn.005e10d0
add esp, 8
test eax, eax
je 0x5e0da7
lea eax, [esi + 0x20]
push eax
push esi
call fcn.005e10d0
add esp, 8
test eax, eax
je 0x5e0da7
lea eax, [esi + 0x24]
push eax
push esi
call fcn.005e10d0
add esp, 8
test eax, eax
je 0x5e0da7
lea eax, [esi + 0x28]
push eax
push esi
call fcn.005e10d0
add esp, 8
test eax, eax
je 0x5e0da7
mov ecx, dword [esi + 0x48]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5e0bc3
push 1
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x5e0bd4
push dword [ecx + 0x38]
lea eax, [esp + 0x18]
push 1
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 1
je 0x5e0bf9
push dword [esi + 0x30]
mov dword [esi + 0x40], 0x66
call fcn.005e1980
add esp, 4
mov dword [esi + 0x30], 0
xor eax, eax
pop ebp
pop ebx
pop esi
pop ecx
ret
mov cl, byte [esp + 0x14]
mov al, cl
shr al, 6
and al, 1
push edi
movzx edi, cl
mov byte [esi + 0x2c], al
and edi, 7
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5e0c29
push eax
call fcn.005e1980
mov cl, byte [esp + 0x1c]
add esp, 4
mov dword [esi + 0x30], 0
test cl, cl
jns 0x5e0cc9
lea ecx, [edi + 1]
mov eax, 1
shl eax, cl
push 0
push eax
call fcn.005e1a30
add esp, 8
mov dword [esi + 0x30], eax
test eax, eax
je 0x5e0d63
xor ebx, ebx
cmp dword [eax], ebx
jbe 0x5e0cc6
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5e0c79
push 3
lea ecx, [esp + 0x1c]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x5e0c8a
push dword [ecx + 0x38]
lea eax, [esp + 0x1c]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
jne 0x5e0ce9
mov eax, dword [esi + 0x30]
inc ebx
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x18]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x19]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x1a]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x30]
cmp ebx, dword [eax]
jb 0x5e0c60
lea ebx, [esi + 0x1c]
mov ecx, dword [esi + 0x34]
push 0x24
test ecx, ecx
je 0x5e0d0a
mov eax, dword [esi + 0x18]
inc eax
push eax
push ecx
call fcn.005e1ad0
add esp, 0xc
test eax, eax
je 0x5e0d63
mov dword [esi + 0x34], eax
jmp 0x5e0d1a
push dword [esi + 0x30]
call fcn.005e1980
add esp, 4
mov dword [esi + 0x40], 0x66
mov dword [esi + 0x30], 0
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x5e0d63
mov eax, dword [esi + 0x18]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x34]
lea edi, [eax + ecx*4]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5e0d72
push dword [eax + 0xc]
push dword [eax]
call fcn.005e1a30
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
jne 0x5e0d72
pop edi
pop ebp
pop ebx
mov dword [esi + 0x40], 0x6d
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x24]
inc dword [esi + 0x18]
push esi
mov dword [ecx + 0x34], eax
call fcn.005e14e0
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
pop ebx
xor eax, eax
pop esi
pop ecx
ret