Function at 0x4f1a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push dword [ebx]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4f1ad6
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
cmp dword [eax], 0x494b414d
jne 0x4f1cff
cmp dword [eax + 4], 0x20203230
jne 0x4f1cff
push dword [ebx]
lea eax, [esi + 0x34]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4f1ac1
mov byte [esi + 0x38], 0
lea eax, [esi + 0x39]
push dword [ebx]
push 1
push 0x13
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4f1ac1
push edi
mov byte [esi + 0x4c], 0
xor edi, edi
lea esp, [esp]
push dword [ebx]
call fcn.00597fff
add esp, 4
cmp eax, 0x1a
je 0x4f1b48
inc edi
cmp edi, 0x200
jl 0x4f1b30
cmp edi, 0x200
je 0x4f1cd6
push dword [ebx]
call fcn.005960c7
mov dword [esi + 0x28], eax
push dword [ebx]
call fcn.00597fff
mov byte [esi], al
push dword [ebx]
call fcn.00597fff
mov byte [esi + 1], al
push dword [ebx]
call fcn.00597fff
mov byte [esi + 2], al
push dword [ebx]
call fcn.00597fff
push ebx
mov byte [esi + 3], al
call fcn.0045d210
push ebx
mov word [esi + 4], ax
call fcn.0045d210
push ebx
mov word [esi + 8], ax
call fcn.0045d210
push ebx
mov word [esi + 6], ax
call fcn.0045d210
push ebx
mov word [esi + 0xa], ax
call fcn.0045d030
push ebx
mov dword [esi + 0x14], eax
call fcn.0045d030
push ebx
mov dword [esi + 0x18], eax
call fcn.0045d030
push ebx
mov dword [esi + 0x1c], eax
call fcn.0045d030
push ebx
mov dword [esi + 0x20], eax
call fcn.0045d030
mov dword [ebp - 8], eax
add esp, 0x38
cmp byte [esi + 3], 0x80
mov dword [esi + 0x24], eax
movzx eax, word [esi + 4]
sbb ebx, ebx
cdq
and ebx, 4
add ebx, 4
idiv ebx
mov edi, eax
movzx eax, word [esi + 6]
cdq
idiv ebx
imul edi, ebx
lea ecx, [eax + 1]
imul ecx, ebx
mov word [esi + 0xc], di
dec ecx
movzx eax, cx
mov word [esi + 0xe], cx
movzx ecx, di
sub eax, ecx
mov dword [ebp - 0x14], eax
lea edi, [eax + 1]
mov eax, ebx
cdq
and edx, 3
mov ebx, dword [esi + 0x28]
lea ecx, [edx + eax]
mov eax, edi
sar ecx, 2
cdq
idiv ecx
mov dx, word [esi + 0xa]
lea ecx, [ebx + 0x20]
sub dx, word [esi + 8]
inc dx
mov word [esi + 0x10], ax
mov word [esi + 0x12], dx
cmp dword [esi + 0x14], ecx
movzx edi, dx
cmova ecx, dword [esi + 0x14]
mov dword [esi + 0x2c], ecx
movzx ecx, ax
mov eax, ecx
mov dword [ebp - 0x10], edi
shr eax, 5
imul eax, edi
inc eax
add dword [esi + 0x2c], eax
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x2c]
jbe 0x4f1c6f
mov dword [esi + 0x2c], eax
mov edx, ecx
shr edx, 1
mov eax, edx
imul eax, edi
mov edi, dword [esi + 0x20]
add dword [esi + 0x2c], eax
cmp edi, dword [esi + 0x2c]
jbe 0x4f1c86
mov dword [esi + 0x2c], edi
mov eax, dword [ebp - 0x10]
imul eax, ecx
shl ecx, 4
mov dword [esi + 0x30], ecx
add dword [esi + 0x2c], eax
cmp byte [esi], 0
jne 0x4f1cd6
cmp dword [ebp - 0x14], 0
jle 0x4f1cd6
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
lea eax, [edx - 1]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
inc eax
imul eax, dword [ebp - 0x10]
add eax, dword [esi + 0x14]
add eax, ebx
cmp eax, ecx
ja 0x4f1cd6
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
add eax, ebx
cmp eax, ecx
ja 0x4f1cd6
lea eax, [edi + ebx]
add eax, dword [ebp - 8]
cmp eax, ecx
jbe 0x4f1cec
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret