Function at 0x4ba9e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
push esi
add eax, 7
mov dword [ebp - 0x28], ecx
cdq
push edi
push dword [ecx]
and edx, 7
mov dword [ebp - 0x30], 0
push 1
push 9
lea esi, [edx + eax]
lea eax, [ebp - 0x10]
sar esi, 3
push eax
mov dword [ebp - 0x24], esi
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4bac9f
cmp byte [ebp - 0x10], 0x5a
jne 0x4bac89
lea eax, [ebp - 0xf]
push eax
call fcn.004ba860
add esp, 4
lea edi, [eax - 8]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x38], edi
cmp word [eax], 0xeed3
jne 0x4baa65
cmp byte [eax + 2], 0xee
je 0x4bac9f
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa8d3
jne 0x4baa79
cmp byte [ecx + 2], 0x5f
je 0x4bac9f
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa8d3
jne 0x4baa8d
cmp byte [ecx + 2], 0x7b
je 0x4bac9f
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa7d3
jne 0x4baaa1
cmp byte [ecx + 2], 0x7b
je 0x4bac9f
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa6d3
jne 0x4baab5
cmp byte [ecx + 2], 0x7b
je 0x4bac9f
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xacd3
jne 0x4babd3
cmp byte [ecx + 2], 0x7b
jne 0x4babd3
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x1c]
push 1
push 0xc
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4bac9f
lea eax, [ebp - 0x1c]
push eax
call fcn.004ba860
add esp, 4
mov dword [ebp - 0x30], eax
test al, 7
jne 0x4bac9f
lea eax, [ebp - 0x1a]
push eax
call fcn.004ba860
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x2c], ebx
call fcn.004ba860
add esp, 8
mov dword [ebp + 0x18], eax
test al, 7
jne 0x4bac9f
lea eax, [ebp - 0x16]
push eax
call fcn.004ba860
mov dword [ebp + 0x1c], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004ba860
mov edx, eax
lea eax, [ebp - 0x12]
push eax
mov dword [ebp - 0x20], edx
call fcn.004ba860
add esp, 0xc
mov esi, eax
cmp edx, 0xffff
je 0x4babce
cmp esi, 0xffff
je 0x4babce
mov ecx, dword [ebp + 0x14]
lea eax, [esi + ebx]
cmp eax, ecx
jl 0x4bab6d
mov esi, ecx
sub esi, ebx
dec esi
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
lea eax, [edx*8]
cmp ecx, eax
cmovg ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov ecx, ebx
imul ecx, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
add ecx, dword [ebp - 0x34]
add eax, ecx
mov dword [ebp - 0x3c], eax
test esi, esi
jle 0x4babce
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x20], eax
push eax
push 0
push ebx
call fcn.00595760
mov eax, dword [ebp - 0x20]
add esp, 0xc
add ebx, edi
dec esi
jne 0x4babb4
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x2c]
sub edi, 0xc
jmp 0x4bac3b
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xeed3
jne 0x4bac66
cmp byte [ecx + 2], 0x7b
jne 0x4bac66
mov eax, dword [ebp - 0x30]
mov ecx, ebx
cdq
and edx, 7
imul ecx, esi
lea esi, [edx + eax]
mov eax, dword [ebp + 0x18]
add ecx, dword [ebp - 0x34]
cdq
and edx, 7
sar esi, 3
add eax, edx
add esi, ecx
sar eax, 3
mov dword [ebp - 0x2c], eax
cmp edi, eax
jl 0x4bac3b
cmp ebx, dword [ebp + 0x14]
jge 0x4bac76
mov ecx, dword [ebp - 0x28]
push dword [ecx]
push 1
push eax
push esi
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4bac9f
mov eax, dword [ebp - 0x2c]
inc ebx
add esi, dword [ebp - 0x24]
sub edi, eax
dec dword [ebp + 0x1c]
cmp edi, eax
jge 0x4bac11
push 1
push edi
mov edi, dword [ebp - 0x28]
push dword [edi]
call fcn.00595cb4
push dword [edi]
lea eax, [ebp - 0x10]
push 1
push 9
push eax
call fcn.00595b79
add esp, 0x1c
test eax, eax
je 0x4bac9f
mov esi, dword [ebp - 0x24]
jmp 0x4baa35
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa9d3
jne 0x4bac9f
cmp byte [ecx + 2], 0x7b
jne 0x4bac9f
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
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
mov ecx, dword [ebp - 4]
mov eax, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret