Function at 0x48ba10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e2204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
movsx eax, word [ebx + 0x1c]
push esi
push edi
mov edi, ecx
cmp edi, eax
jge 0x48bc7d
test edi, edi
jl 0x48bc7d
mov edx, dword [ebx + 0x59c]
imul edi, edi, 0x168
add edi, dword [ebx + 0x18c]
push 0
mov ecx, dword [edi + 0x164]
push ecx
push edx
call fcn.0049edbf
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, dword [edi + 0xc]
je 0x48bc9c
mov ecx, dword [edi + 8]
cmp ecx, dword [edi]
je 0x48bc9c
movzx eax, word [edi + 0x10]
cmp ax, 4
jbe 0x48ba94
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, 3
jmp 0x48bc7f
xor ecx, ecx
mov dword [ebp - 0x14], 0
cmp cx, ax
jae 0x48bc75
mov eax, dword [ebp - 0x14]
mov edx, dword [edi + 0x14]
movsx ecx, word [edx + eax*2]
call fcn.0048b830
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 2
lea esi, [edi + 0x154]
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48bca5
mov cx, word [esi]
rol cx, 8
movzx eax, cx
mov word [esi], cx
cmp ax, 1
jne 0x48bc0e
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
mov dword [ebp - 0xc], 0
lea eax, [esi + esi]
call fcn.004a1bd0
mov eax, esp
mov dword [ebp - 0x18], eax
test eax, eax
je 0x48bc95
mov dword [ebp - 8], 0
test esi, esi
jbe 0x48bb6b
mov esi, eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 2
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48bca5
mov dx, word [esi]
rol dx, 8
movzx eax, dx
mov word [esi], dx
cmp ax, word [ebp - 0xc]
jbe 0x48bb57
movzx eax, ax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
inc eax
add esi, 2
mov dword [ebp - 8], eax
cmp eax, ecx
jb 0x48bb21
movzx eax, word [ebp - 0xc]
call fcn.004a1bd0
mov esi, esp
xor eax, eax
cmp esi, eax
je 0x48bc95
mov edx, dword [ebx + 0x59c]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call fcn.004a1716
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x59c]
push eax
push 2
push 1
push esi
call fcn.0049ea18
mov cl, byte [esi + 1]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov byte [edx + eax], cl
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
add esp, 0x14
xor eax, eax
cmp ecx, 2
jl 0x48bbe1
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + eax*2]
add dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + eax*2 + 2]
add dword [ebp - 0x10], edx
add eax, 2
lea edx, [ecx - 1]
cmp eax, edx
jb 0x48bbc2
cmp eax, ecx
jae 0x48bbef
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
add dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x59c]
add eax, ecx
add eax, dword [ebp - 8]
push 0
push eax
push edx
call fcn.0049edbf
add esp, 0xc
jmp 0x48bc62
test ax, ax
jne 0x48bca5
mov esi, dword [edi + 8]
sub esi, dword [edi]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
imul esi, eax
mov eax, dword [ebx + 0x59c]
inc esi
push eax
and esi, 0xfffffffe
call fcn.004a1716
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x59c]
add ecx, edx
call fcn.0048c6c0
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x59c]
push 0
push eax
push ecx
call fcn.0049edbf
add esp, 0x10
mov eax, dword [ebp - 0x14]
movzx edx, word [edi + 0x10]
inc eax
cmp eax, edx
mov dword [ebp - 0x14], eax
jl 0x48baa6
mov edx, dword [ebp + 0xc]
call fcn.0048ac10
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ceb0
mov esp, ebp
pop ebp
ret 8
mov eax, 4
jmp 0x48bc7f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, 3
jmp 0x48bc7f