Function at 0x48e2a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x18], 0
cmp cx, word [eax + 6]
jge 0x48e6c9
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0045d030
push ebx
mov esi, eax
call fcn.0045d210
push dword [ebx]
mov di, ax
mov word [ebp - 2], di
call fcn.005960c7
lea ecx, [esi - 6]
add esp, 0xc
add ecx, eax
mov dword [ebp - 0x24], ecx
movzx ecx, di
add ecx, 0xfffffffc
cmp ecx, 0xc
ja case.0x48e2ff.5
movzx eax, byte [ecx + 0x48e6ec]
jmp dword [eax*4 + 0x48e6d0]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
push eax
push 0
push dword [ebp + 0x14]
call fcn.00595760
add esp, 0xc
jmp case.0x48e2ff.5
push ebx
call fcn.0045d210
movzx eax, ax
add esp, 4
xor edi, edi
mov dword [ebp - 0xc], eax
test eax, eax
jle case.0x48e2ff.5
lea esp, [esp]
push dword [ebx]
call fcn.00597fff
push dword [ebx]
mov esi, eax
call fcn.00597fff
add esp, 8
mov dword [ebp - 8], 0
test eax, eax
mov ecx, 0x100
cmove eax, ecx
add edi, esi
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x48e42b
mov esi, dword [ebp + 0x18]
add esi, 2
lea esi, [esi + edi*2]
add esi, edi
lea esp, [esp]
cmp edi, 0x100
jge 0x48e42b
push dword [ebx]
call fcn.00597fff
cmp word [ebp - 2], 0xb
jne 0x48e3fe
imul ecx, eax, 0xff
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi - 2], al
push dword [ebx]
call fcn.00597fff
imul ecx, eax, 0xff
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi - 1], al
push dword [ebx]
call fcn.00597fff
imul ecx, eax, 0xff
add esp, 0xc
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x48e415
mov byte [esi - 2], al
push dword [ebx]
call fcn.00597fff
mov byte [esi - 1], al
push dword [ebx]
call fcn.00597fff
add esp, 0xc
mov ecx, dword [ebp - 8]
inc edi
inc ecx
mov byte [esi], al
add esi, 3
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x48e380
dec dword [ebp - 0xc]
jne 0x48e340
jmp case.0x48e2ff.5
push ebx
call fcn.0045d210
movzx edi, ax
push ebx
mov dword [ebp - 0x10], edi
call fcn.0045d210
movzx eax, ax
xor esi, esi
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], esi
test eax, eax
jle case.0x48e2ff.5
push dword [ebx]
call fcn.00597fff
mov ecx, dword [ebp + 0xc]
add edi, esi
add esp, 4
mov dword [ebp - 0xc], eax
imul edi, dword [ecx + 8]
add edi, dword [ebp + 0x14]
test eax, eax
jle 0x48e4cd
mov edi, edi
push dword [ebx]
call fcn.00597fff
push dword [ebx]
mov esi, eax
call fcn.00597fff
add edi, esi
add esp, 8
movsx esi, al
test al, al
jle 0x48e4ac
push dword [ebx]
push 1
push esi
push edi
call fcn.00595b79
add esp, 0x10
jmp 0x48e4c3
neg esi
push esi
push dword [ebx]
call fcn.00597fff
add esp, 4
push eax
push edi
call fcn.00595760
add esp, 0xc
add edi, esi
dec dword [ebp - 0xc]
jne 0x48e480
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
inc esi
mov dword [ebp - 8], esi
cmp esi, dword [ebp - 0x14]
jl 0x48e461
jmp case.0x48e2ff.5
push ebx
call fcn.0045d210
movzx eax, ax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x20], eax
add esp, 4
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], esi
test eax, eax
jle case.0x48e2ff.5
nop
push ebx
call fcn.0045d210
movzx edx, ax
add esp, 4
mov ecx, edx
mov eax, 0xc000
and ecx, 0xc000
cmp cx, ax
jne 0x48e528
movsx eax, dx
sub edi, eax
mov dword [ebp - 8], edi
jmp 0x48e532
mov eax, 0x8000
cmp cx, ax
je 0x48e539
test cx, cx
jne 0x48e500
jmp 0x48e545
push ebx
call fcn.0045d210
add esp, 4
movzx edx, ax
mov edi, dword [ebp + 0xc]
add esi, dword [ebp - 8]
movsx eax, dx
mov dword [ebp - 0x10], 0
mov ecx, dword [edi + 0xc]
imul esi, dword [edi + 8]
imul ecx, dword [edi + 8]
mov dword [ebp - 0x1c], eax
add esi, dword [ebp + 0x14]
add ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x48e5e7
push dword [ebx]
call fcn.00597fff
push dword [ebx]
mov edi, eax
call fcn.00597fff
add esp, 8
add esi, edi
test al, al
js 0x48e5a6
movsx eax, al
lea edi, [esi + eax*2]
cmp edi, dword [ebp - 0xc]
ja 0x48e5e7
push dword [ebx]
push 2
push eax
push esi
call fcn.00595b79
add esp, 0x10
mov esi, edi
jmp 0x48e5db
movsx edi, al
neg edi
lea eax, [esi + edi*2]
cmp eax, dword [ebp - 0xc]
ja 0x48e5e7
push dword [ebx]
call fcn.00597fff
push dword [ebx]
mov byte [ebp - 1], al
call fcn.00597fff
add esp, 8
mov cl, al
test edi, edi
jle 0x48e5db
mov al, byte [ebp - 1]
mov byte [esi], al
mov byte [esi + 1], cl
add esi, 2
dec edi
jne 0x48e5d0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x1c]
jl 0x48e570
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x20]
jl 0x48e500
jmp case.0x48e2ff.5
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x10], esi
cmp dword [edi + 0xc], esi
jle case.0x48e2ff.5
push dword [ebx]
call fcn.00597fff
mov eax, dword [edi + 8]
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], 0
imul edi, esi
add edi, dword [ebp + 0x14]
test eax, eax
jle 0x48e67d
push dword [ebx]
call fcn.00597fff
add esp, 4
movsx esi, al
test al, al
jle 0x48e658
push esi
push dword [ebx]
call fcn.00597fff
add esp, 4
push eax
push edi
call fcn.00595760
add esp, 0xc
jmp 0x48e668
push dword [ebx]
neg esi
push 1
push esi
push edi
call fcn.00595b79
add esp, 0x10
mov eax, dword [ebp - 0x14]
add edi, esi
mov ecx, dword [ebp + 0xc]
add eax, esi
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 8]
jl 0x48e630
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
mov dword [ebp - 0x10], esi
cmp esi, dword [edi + 0xc]
jl 0x48e610
jmp case.0x48e2ff.5
mov eax, dword [ebp + 0xc]
push dword [ebx]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [ebp + 0x14]
call fcn.00595b79
add esp, 0x10
push 0
push dword [ebp - 0x24]
push dword [ebx]
call fcn.00595cb4
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
movsx eax, word [eax + 6]
cmp ecx, eax
jl 0x48e2c2
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret