Function at 0x48b570
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 0x48b7dd
test edi, edi
jl 0x48b7dd
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.0049e92f
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, dword [edi + 0xc]
je 0x48b7fc
mov ecx, dword [edi + 8]
cmp ecx, dword [edi]
je 0x48b7fc
movzx eax, word [edi + 0x10]
cmp ax, 4
jbe 0x48b5f4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, 3
jmp 0x48b7df
xor ecx, ecx
mov dword [ebp - 0x14], 0
cmp cx, ax
jae 0x48b7d5
mov eax, dword [ebp - 0x14]
mov edx, dword [edi + 0x14]
movsx ecx, word [edx + eax*2]
call fcn.0048b390
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 2
lea esi, [edi + 0x154]
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48b805
mov cx, word [esi]
rol cx, 8
movzx eax, cx
mov word [esi], cx
cmp ax, 1
jne 0x48b76e
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
mov dword [ebp - 0xc], 0
lea eax, [esi + esi]
call fcn.004a1730
mov eax, esp
mov dword [ebp - 0x18], eax
test eax, eax
je 0x48b7f5
mov dword [ebp - 8], 0
test esi, esi
jbe 0x48b6cb
mov esi, eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 2
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48b805
mov dx, word [esi]
rol dx, 8
movzx eax, dx
mov word [esi], dx
cmp ax, word [ebp - 0xc]
jbe 0x48b6b7
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 0x48b681
movzx eax, word [ebp - 0xc]
call fcn.004a1730
mov esi, esp
xor eax, eax
cmp esi, eax
je 0x48b7f5
mov edx, dword [ebx + 0x59c]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call fcn.004a1276
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x59c]
push eax
push 2
push 1
push esi
call fcn.0049e588
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 0x48b741
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 0x48b722
cmp eax, ecx
jae 0x48b74f
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.0049e92f
add esp, 0xc
jmp 0x48b7c2
test ax, ax
jne 0x48b805
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.004a1276
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.0048c220
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x59c]
push 0
push eax
push ecx
call fcn.0049e92f
add esp, 0x10
mov eax, dword [ebp - 0x14]
movzx edx, word [edi + 0x10]
inc eax
cmp eax, edx
mov dword [ebp - 0x14], eax
jl 0x48b606
mov edx, dword [ebp + 0xc]
call fcn.0048a770
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ca20
mov esp, ebp
pop ebp
ret 8
mov eax, 4
jmp 0x48b7df
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, 3
jmp 0x48b7df