Function at 0x5e5e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x7f]
cmp esi, 0x78
mov dword [esp + 0x14], esi
jb 0x5e615e
xor eax, eax
push eax
push eax
push eax
mov eax, dword [edi + 0x6b]
lea ebx, [edi + 0x6b]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebx + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
sub ecx, esi
push 4
lea eax, [esp + 0x28]
mov dword [ebx + 8], ecx
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
sub dword [ebx + 8], eax
cmp eax, 4
jne 0x5e615e
push eax
lea edx, [esp + 0x20]
push str.LAME
push edx
call fcn.0069d18d
add esp, 0xc
test eax, eax
jne 0x5e615e
push eax
push eax
push eax
mov eax, dword [ebx]
add esi, 0xffffffff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebx + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
sub ecx, esi
push 1
lea eax, [esp + 0x19]
mov dword [ebx + 8], ecx
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
sub dword [ebx + 8], eax
cmp eax, 1
jne 0x5e615e
mov al, byte [esp + 0xd]
test al, al
je 0x5e5f47
cmp al, 0x64
jbe 0x5e5f4d
mov al, 0x43
mov byte [esp + 0xd], al
movzx esi, al
mov eax, 0x64
sub eax, esi
cdq
mov ecx, 0xa
idiv ecx
mov eax, 0x66666667
push 0
movzx ecx, dl
sub ecx, esi
mov byte [edi + 0x52], dl
add ecx, 0x64
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
lea ecx, [esp + 0x1c]
push ecx
add eax, edx
push 9
lea edx, [esp + 0x30]
mov byte [edi + 0x51], al
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
sub dword [ebx + 8], eax
cmp eax, 9
jne 0x5e615e
lea esi, [edi + 0x57]
lea eax, [esp + 0x24]
mov byte [esp + 0x2d], 0
call fcn.00496c10
mov ecx, 1
lea edx, [esp + 0xe]
mov esi, ebx
call fcn.005d4a80
cmp eax, 1
jne 0x5e615e
mov cl, byte [esp + 0xe]
and cl, 0xf
mov byte [edi + 0x53], cl
lea edx, [edi + 0x54]
mov ecx, eax
call fcn.005d4a80
cmp eax, 1
jne 0x5e615e
mov edi, dword [esp + 0x14]
add edi, 0x14
call fcn.005d4aa0
mov edi, dword [ebp + 8]
add edi, 0x55
mov ecx, 1
mov edx, edi
call fcn.005d4a80
cmp eax, 1
jne 0x5e615e
mov al, byte [edi]
test al, al
je 0x5e602a
cmp al, 0xff
je 0x5e602a
movzx dx, al
mov eax, dword [ebp + 8]
mov word [eax + 0x4f], dx
jmp 0x5e6041
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x4f]
cmp ax, 0xff
movzx eax, ax
jb 0x5e603f
mov eax, 0xff
mov byte [edi], al
mov edi, dword [esp + 0x14]
add edi, 0x1a
call fcn.005d4aa0
mov ecx, 2
lea edx, [esp + 0x20]
call fcn.005d4a80
cmp eax, 2
jne 0x5e615e
mov eax, dword [esp + 0x20]
and eax, 0x7ff
cmp eax, 0x3e8
jg 0x5e60cd
je case.0x5e6087.470
sub eax, 0x19a
cmp eax, 0x5a
ja case.default.0x5e60d7
movzx edx, byte [eax + 0x5e6194]
jmp dword [edx*4 + 0x5e6168]
mov eax, dword [ebp + 8]
mov byte [eax + 0x51], 1
jmp case.default.0x5e60d7
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x51], 5
jmp case.default.0x5e60d7
mov edx, dword [ebp + 8]
mov byte [edx + 0x51], 6
jmp case.default.0x5e60d7
mov eax, dword [ebp + 8]
mov byte [eax + 0x51], 7
jmp case.default.0x5e60d7
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x51], 8
jmp case.default.0x5e60d7
mov edx, dword [ebp + 8]
mov byte [edx + 0x51], 9
jmp case.default.0x5e60d7
mov eax, dword [ebp + 8]
mov byte [eax + 0x51], 3
jmp case.default.0x5e60d7
sub eax, 0x3e9
cmp eax, 6
ja case.default.0x5e60d7
jmp dword [eax*4 + 0x5e61f0]
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x51], 0
jmp case.default.0x5e60d7
mov edx, dword [ebp + 8]
mov byte [edx + 0x51], 2
jmp case.default.0x5e60d7
mov eax, dword [ebp + 8]
mov byte [eax + 0x51], 4
mov edi, dword [esp + 0x14]
add edi, 0x15
call fcn.005d4aa0
mov ecx, 3
lea edx, [esp + 0x10]
call fcn.005d4a80
cmp eax, 3
jne 0x5e615e
lea ecx, [eax - 2]
lea edx, [esp + 0xf]
call fcn.005d4a80
cmp eax, 1
jne 0x5e615e
mov dl, byte [esp + 0xf]
mov ecx, dword [ebp + 8]
movzx eax, byte [esp + 0x11]
movzx esi, byte [esp + 0x10]
shr dl, 2
and dl, 7
mov byte [ecx + 0x56], dl
mov edx, eax
shr edx, 4
shl esi, 4
add edx, esi
mov dword [ecx + 0x3b], edx
movzx edx, byte [esp + 0x12]
and eax, 0xf
shl eax, 8
add eax, edx
mov dword [ecx + 0x3f], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4