Function at 0x4e7eb9
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4e85cd
cmp dword [edi + 0xc], 0
je 0x4e85c5
cmp dword [edi], 0
jne 0x4e7ee4
cmp dword [edi + 4], 0
jne 0x4e85c5
cmp dword [edi + 0x10], 0
jne 0x4e7ef9
mov eax, dword [str.buffer_error]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffb
jmp 0x4e85cf
mov eax, dword [esi + 4]
mov dword [esi], edi
mov dword [esi + 0x28], 4
push 0x71
pop ebp
cmp eax, 0x2a
jne 0x4e8189
cmp dword [esi + 0x18], 2
jne 0x4e80f6
and dword [edi + 0x30], 0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [ecx + eax], 0x1f
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0x8b
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 8
inc dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
test edx, edx
jne 0x4e7fcc
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x14]
cmp eax, 9
jne 0x4e7f9b
mov cl, 2
jmp 0x4e7faf
cmp dword [esi + 0x88], 2
jge 0x4e7fad
cmp eax, 2
jl 0x4e7fad
xor cl, cl
jmp 0x4e7faf
mov cl, 4
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0xb
mov eax, ebp
inc dword [esi + 0x14]
jmp 0x4e80ee
cmp dword [edx + 0x24], 0
sete cl
dec cl
and cl, 0x10
cmp dword [edx + 0x2c], 0
sete al
dec al
and al, 2
add cl, al
cmp dword [edx + 0x1c], 0
sete al
dec al
and al, 8
add cl, al
cmp dword [edx + 0x10], 0
sete al
dec al
and al, 4
add cl, al
cmp dword [edx], 0
setne al
add cl, al
mov eax, dword [esi + 8]
mov byte [ebx + eax], cl
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov al, byte [eax + 4]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov al, byte [eax + 5]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 6]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 7]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x14]
cmp eax, 9
jne 0x4e806a
mov cl, 2
jmp 0x4e807e
cmp dword [esi + 0x88], 2
jge 0x4e807c
cmp eax, 2
jl 0x4e807c
xor cl, cl
jmp 0x4e807e
mov cl, 4
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 0xc]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov ebx, dword [esi + 0x14]
cmp dword [eax + 0x10], 0
je 0x4e80c9
mov al, byte [eax + 0x14]
mov ecx, dword [esi + 8]
mov byte [ebx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 0x15]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4e80e7
mov edx, dword [esi + 8]
test edx, edx
jne 0x4e80da
xor eax, eax
jmp 0x4e80e4
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004e79fc
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
push 0x45
pop eax
mov dword [esi + 4], eax
jmp 0x4e8189
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov ebx, ecx
jge 0x4e813a
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0x4e813a
cmp eax, 6
jge 0x4e8124
push 0x40
pop eax
push 0x60
jmp 0x4e813e
jne 0x4e8130
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x4e813f
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x4e813f
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x4e814b
mov ecx, ebx
or ecx, edx
mov eax, ecx
mov dword [esi + 4], ebp
push 0x1f
pop ebx
xor edx, edx
div ebx
sub ecx, edx
lea edx, [ebx + ecx]
mov ecx, esi
call fcn.004e7e4a
cmp dword [esi + 0x6c], 0
je 0x4e817f
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.004e7e4a
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.004e7e4a
mov dword [edi + 0x30], 1
mov eax, dword [esi + 4]
cmp eax, 0x45
jne 0x4e8244
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x10], 0
je 0x4e823e
mov ebp, dword [esi + 0x14]
mov ebx, ebp
jmp 0x4e81ff
cmp ebx, dword [esi + 0xc]
jne 0x4e81e0
cmp dword [ecx + 0x2c], 0
je 0x4e81cf
cmp ebx, ebp
jbe 0x4e81cf
mov edx, dword [esi + 8]
sub ebx, ebp
add edx, ebp
jne 0x4e81c2
xor eax, eax
jmp 0x4e81cc
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004e79fc
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.004e7e6e
mov ebx, dword [esi + 0x14]
mov ebp, ebx
cmp ebx, dword [esi + 0xc]
je 0x4e8208
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0x20]
mov al, byte [edx + eax]
mov byte [ebx + ecx], al
mov ebx, dword [esi + 0x14]
inc ebx
inc dword [esi + 0x20]
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
movzx eax, word [ecx + 0x14]
cmp dword [esi + 0x20], eax
jb 0x4e81a6
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], 0
je 0x4e8232
cmp ebx, ebp
jbe 0x4e8232
mov edx, dword [esi + 8]
sub ebx, ebp
add edx, ebp
jne 0x4e8222
xor eax, eax
jmp 0x4e822c
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004e79fc
pop ecx
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
cmp eax, dword [ecx + 0x14]
jne 0x4e827e
and dword [esi + 0x20], 0
push 0x49
pop eax
mov dword [esi + 4], eax
cmp eax, 0x49
jne 0x4e8310
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x4e830a
mov ebp, dword [esi + 0x14]
mov ebx, ebp
cmp ebx, dword [esi + 0xc]
jne 0x4e82a1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4e8290
cmp ebx, ebp
jbe 0x4e8290
mov edx, dword [esi + 8]
sub ebx, ebp
add edx, ebp
jne 0x4e8283
xor eax, eax
jmp 0x4e828d
mov eax, dword [esi + 4]
jmp 0x4e8244
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004e79fc
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.004e7e6e
mov ebx, dword [esi + 0x14]
mov ebp, ebx
cmp ebx, dword [esi + 0xc]
je 0x4e82d0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + eax]
movzx eax, dl
mov dword [esp + 0x10], eax
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
cmp dword [esp + 0x10], 0
mov dword [esi + 0x14], ebx
jne 0x4e825f
jmp 0x4e82d8
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4e82ff
cmp ebx, ebp
jbe 0x4e82ff
mov edx, dword [esi + 8]
sub ebx, ebp
add edx, ebp
jne 0x4e82f2
xor eax, eax
jmp 0x4e82fc
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004e79fc
pop ecx
mov dword [edi + 0x30], eax
cmp dword [esp + 0x10], 0
jne 0x4e834b
and dword [esi + 0x20], 0
push 0x5b
pop eax
mov dword [esi + 4], eax
xor ebx, ebx
cmp eax, 0x5b
jne 0x4e83f0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x4e83e6
mov ebp, dword [esi + 0x14]
mov ebx, ebp
cmp ebx, dword [esi + 0xc]
jne 0x4e836e
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4e835d
cmp ebx, ebp
jbe 0x4e835d
mov edx, dword [esi + 8]
sub ebx, ebp
add edx, ebp
jne 0x4e8350
xor eax, eax
jmp 0x4e835a
mov eax, dword [esi + 4]
jmp 0x4e8310
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004e79fc
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.004e7e6e
mov ebx, dword [esi + 0x14]
mov ebp, ebx
cmp ebx, dword [esi + 0xc]
je 0x4e839d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x24]
mov dl, byte [ecx + eax]
movzx eax, dl
mov dword [esp + 0x10], eax
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
cmp dword [esp + 0x10], 0
mov dword [esi + 0x14], ebx
jne 0x4e832c
jmp 0x4e83a5
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4e83cc
cmp ebx, ebp
jbe 0x4e83cc
mov edx, dword [esi + 8]
sub ebx, ebp
add edx, ebp
jne 0x4e83bf
xor eax, eax
jmp 0x4e83c9
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004e79fc
pop ecx
mov dword [edi + 0x30], eax
cmp dword [esp + 0x10], 0
jne 0x4e83df
push 0x67
mov dword [esi + 4], 0x67
pop eax
jmp 0x4e83e2
mov eax, dword [esi + 4]
xor ebx, ebx
jmp 0x4e83f0
push 0x67
mov dword [esi + 4], 0x67
pop eax
cmp eax, 0x67
jne 0x4e8443
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x4e843c
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x4e8417
mov ecx, edi
call fcn.004e7e6e
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp eax, ecx
ja 0x4e8443
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x30]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x31]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov dword [edi + 0x30], ebx
mov dword [esi + 4], 0x71
cmp dword [esi + 0x14], ebx
je 0x4e845f
mov ecx, edi
call fcn.004e7e6e
cmp dword [edi + 0x10], ebx
jne 0x4e845f
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0x4e85d0
mov ebp, 0x29a
cmp dword [esi + 4], ebp
jne 0x4e8473
cmp dword [edi + 4], ebx
je 0x4e8478
jmp 0x4e7eea
cmp dword [edi + 4], ebx
jne 0x4e8482
cmp dword [esi + 0x74], ebx
jne 0x4e8482
cmp dword [esi + 4], ebp
je 0x4e84f6
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0x4e8496
mov ecx, esi
call fcn.004e93d7
jmp 0x4e84b6
cmp eax, 3
jne 0x4e84a4
mov ecx, esi
call fcn.004e91f8
jmp 0x4e84b6
imul eax, dword [esi + 0x84], 0xc
push 4
push esi
call dword [eax + 0x555888]
pop ecx
pop ecx
cmp eax, 2
je 0x4e84c0
cmp eax, 3
jne 0x4e84c3
mov dword [esi + 4], ebp
test eax, eax
je 0x4e85b7
cmp eax, 2
je 0x4e85b7
cmp eax, 1
jne 0x4e84f6
push ebx
push ebx
xor edx, edx
mov ecx, esi
call fcn.004ea34d
pop ecx
pop ecx
mov ecx, edi
call fcn.004e7e6e
cmp dword [edi + 0x10], ebx
je 0x4e8454
cmp dword [esi + 0x18], 0
jg 0x4e8504
xor eax, eax
inc eax
jmp 0x4e85d0
cmp dword [esi + 0x18], 2
jne 0x4e8584
mov ecx, dword [esi + 0x14]
mov al, byte [edi + 0x30]
mov edx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x31]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x32]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x33]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 8]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 9]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0xa]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0xb]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
jmp 0x4e859a
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.004e7e4a
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.004e7e4a
mov ecx, edi
call fcn.004e7e6e
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x4e85ad
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], ebx
sete al
jmp 0x4e85d0
cmp dword [edi + 0x10], ebx
jne 0x4e8458
jmp 0x4e8454
mov eax, dword [str.stream_error]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret