Function at 0x4abeb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
cmp eax, 2
push edi
jne 0x4abeea
cmp dword [esi + 0xc], ebx
jge 0x4abee1
push 1
push 0x7ffffff
push esi
call fcn.004abeb0
mov eax, dword [esi + 0x24]
add esp, 0xc
add eax, dword [esi + 0x20]
mov dword [esi + 0xc], eax
mov ebp, dword [esp + 0x18]
add ebp, dword [esi + 0xc]
jmp 0x4abefb
cmp eax, 1
mov ebp, dword [esp + 0x18]
jne 0x4abefb
mov ecx, dword [esi + 0x24]
add ecx, dword [esi + 0x20]
add ebp, ecx
mov eax, dword [esi + 0x20]
cmp ebp, eax
jl 0x4abf17
sub ebp, eax
cmp ebp, dword [esi + 0x28]
jg 0x4ac011
pop edi
mov dword [esi + 0x24], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4abfa6
push eax
call fcn.004fb710
add esp, 4
cmp dword [esi + 8], ebx
je 0x4abf8b
mov edx, dword [esi + 4]
mov eax, dword [esi]
shl edx, 0xb
not edx
and edx, 0x8000
push edx
push eax
call fcn.005037a2
mov edi, eax
add esp, 8
cmp edi, ebx
jl 0x4abf83
mov ecx, dword [esi + 8]
push ebx
push ecx
push edi
call fcn.00502fa7
add esp, 0xc
test byte [esi + 4], 0x10
mov eax, 0x54efb0
jne 0x4abf6e
mov eax, 0x54efb4
push eax
push edi
call fcn.004fb9d0
add esp, 8
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x4ac00b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test byte [esi + 4], 0x10
mov eax, 0x54efb8
jne 0x4abf9b
mov eax, 0x54efbc
mov edx, dword [esi]
push eax
push edx
call fcn.004fb9b0
jmp 0x4abf75
mov eax, dword [esi + 0x1c]
push eax
call fcn.004fb250
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
push ebx
push ecx
push edx
call fcn.00501924
mov eax, dword [esi + 0x1c]
push 0x38
push ebx
push eax
call fcn.00418060
mov ecx, dword [esi + 0x1c]
push 0x38
push 0x54efc0
push ecx
call fcn.004f9b40
mov edi, eax
add esp, 0x28
cmp edi, ebx
je 0x4ac00b
mov edx, dword [esi + 0x1c]
push edx
call fcn.00418550
mov eax, dword [esi]
push edi
push eax
push str.Failed_to_initialize_compress_for_file___s___ii__n
push 1
push 0x7d3
mov dword [esi + 0x1c], ebx
call fcn.00442f20
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], ebx
mov edi, 0x2000
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4ac030
mov ecx, dword [esi + 0x30]
push edi
push ecx
push eax
call fcn.004fba10
add esp, 0xc
jmp 0x4ac0b0
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 4], ebx
jbe 0x4ac062
mov edx, dword [esi + 0x30]
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x10], edi
mov ecx, dword [esi + 0x1c]
push 2
push ecx
call fcn.004f9c50
add esp, 8
cmp eax, ebx
jne 0x4ac09b
mov ecx, dword [esi + 0x1c]
mov eax, edi
sub eax, dword [ecx + 0x10]
cmp eax, ebx
jg 0x4ac0b4
mov eax, dword [esi + 0x2c]
cmp eax, ebx
jle 0x4ac072
sub eax, dword [ecx + 8]
je 0x4ac0b0
cmp eax, edi
jle 0x4ac074
mov eax, edi
mov edx, dword [esi + 0x14]
push edx
push eax
mov eax, dword [esi + 0x34]
push 1
push eax
call fcn.00501672
add esp, 0x10
cmp eax, ebx
jle 0x4ac0d1
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x34]
mov dword [ecx], edx
mov ecx, dword [esi + 0x1c]
mov dword [ecx + 4], eax
jmp 0x4ac030
push eax
push str.inflate_failed__d_n
push 1
push 0x7d4
call fcn.00442f20
add esp, 0x10
cmp eax, ebx
jle 0x4ac0d1
mov ecx, dword [esi + 0x28]
add dword [esi + 0x20], ecx
sub ebp, ecx
cmp ebp, eax
mov dword [esi + 0x28], eax
jge 0x4ac016
pop edi
mov dword [esi + 0x24], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x28]
pop edi
mov dword [esi + 0x24], edx
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret