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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
call fcn.1811a081
test eax, eax
jne 0x1811a9f5
cmp edx, 5
ja 0x1811a9f5
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0x1811a9ed
cmp dword [edi + 4], eax
je 0x1811a1e6
cmp dword [edi], eax
je 0x1811a9ed
cmp dword [esi + 4], 0x29a
jne 0x1811a1f8
cmp edx, 4
jne 0x1811a9ed
cmp dword [edi + 0x10], eax
je 0x1811a26a
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], edx
cmp dword [esi + 0x14], eax
je 0x1811a21f
mov ecx, edi
call fcn.1811a161
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x1811a9e5
mov ebx, dword [esi + 4]
jmp 0x1811a256
mov ebx, dword [esi + 4]
cmp dword [edi + 4], eax
jne 0x1811a256
mov dword [ebp - 4], 9
cmp edx, 4
jg 0x1811a236
mov dword [ebp - 4], eax
cmp ecx, 4
jle 0x1811a23e
push 9
pop eax
mov ebx, dword [esi + 4]
add ecx, ecx
sub ecx, eax
lea eax, [edx + edx]
sub eax, dword [ebp - 4]
cmp eax, ecx
jg 0x1811a254
cmp edx, 4
jne 0x1811a26a
xor eax, eax
push 0x1f
pop edx
cmp ebx, 0x29a
jne 0x1811a279
cmp dword [edi + 4], eax
je 0x1811a32a
mov eax, dword [str.buffer_error]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffb
jmp 0x1811a9f7
cmp ebx, 0x2a
jne 0x1811a32a
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov ebx, ecx
jge 0x1811a2c6
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0x1811a2c6
cmp eax, 6
jge 0x1811a2b0
push 0x40
pop eax
push 0x60
jmp 0x1811a2ca
jne 0x1811a2bc
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x1811a2cb
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x1811a2cb
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x1811a2d7
mov ecx, edx
or ecx, ebx
mov eax, ecx
xor edx, edx
push 0x1f
pop ebx
div ebx
sub ecx, edx
lea edx, [ebx + ecx]
mov ecx, esi
call fcn.1811a13d
cmp dword [esi + 0x6c], 0
je 0x1811a308
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.1811a13d
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.1811a13d
mov dword [edi + 0x30], 1
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.1811a161
cmp dword [esi + 0x14], 0
jne 0x1811a9e5
push 0x1f
pop edx
mov eax, dword [esi + 4]
cmp eax, 0x39
jne 0x1811a52e
and dword [edi + 0x30], 0
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], 0x8b
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 8
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
test ebx, ebx
jne 0x1811a402
mov eax, dword [esi + 8]
mov byte [edx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x1811a3bb
mov cl, 2
jmp 0x1811a3cd
cmp dword [esi + 0x88], 2
jge 0x1811a3cb
mov cl, bl
cmp eax, 2
jge 0x1811a3cd
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], 0xa
mov ecx, edi
inc dword [esi + 0x14]
mov dword [esi + 4], 0x71
call fcn.1811a161
cmp dword [esi + 0x14], ebx
jne 0x1811a9e5
mov eax, dword [esi + 4]
jmp 0x1811a530
cmp dword [ebx + 0x24], 0
sete cl
dec cl
and cl, 0x10
cmp dword [ebx + 0x2c], 0
sete al
dec al
and al, 2
add cl, al
cmp dword [ebx + 0x1c], 0
sete al
dec al
and al, 8
add cl, al
cmp dword [ebx + 0x10], 0
sete al
dec al
and al, 4
add cl, al
cmp dword [ebx], 0
setne al
add cl, al
mov eax, dword [esi + 8]
mov byte [edx + 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
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x1811a4a1
mov cl, 2
jmp 0x1811a4b7
cmp dword [esi + 0x88], 2
jge 0x1811a4b5
cmp eax, 2
jl 0x1811a4b5
xor ebx, ebx
mov cl, bl
jmp 0x1811a4b9
mov cl, 4
xor ebx, ebx
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 edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
cmp dword [eax + 0x10], ebx
je 0x1811a504
mov al, byte [eax + 0x14]
mov ecx, dword [esi + 8]
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 + 0x15]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x1811a523
cmp dword [esi + 8], 0
jne 0x1811a513
mov eax, ebx
jmp 0x1811a520
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [esi + 8]
call fcn.1811734a
pop ecx
mov dword [edi + 0x30], eax
push 0x45
pop eax
mov dword [esi + 0x20], ebx
mov dword [esi + 4], eax
jmp 0x1811a530
xor ebx, ebx
cmp eax, 0x45
jne 0x1811a635
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], ebx
je 0x1811a62b
movzx edx, word [eax + 0x14]
sub edx, dword [esi + 0x20]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], edx
lea eax, [ebx + edx]
cmp eax, ecx
jbe 0x1811a5db
mov eax, ebx
mov dword [ebp - 0x10], ebx
sub ecx, eax
mov eax, dword [esi + 0x1c]
push ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x10]
push eax
call fcn.18124020
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x1811a5ad
cmp ecx, ebx
jbe 0x1811a5ad
mov edx, dword [esi + 8]
sub ecx, ebx
add edx, ebx
jne 0x1811a5a0
xor eax, eax
jmp 0x1811a5aa
push ecx
mov ecx, dword [edi + 0x30]
call fcn.1811734a
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, edi
add dword [esi + 0x20], eax
call fcn.1811a161
cmp dword [esi + 0x14], 0
jne 0x1811a9e5
mov edx, dword [ebp - 4]
xor eax, eax
sub edx, dword [ebp - 0xc]
xor ebx, ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
cmp edx, ecx
ja 0x1811a561
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push edx
mov eax, dword [eax + 0x10]
add eax, ecx
push eax
mov eax, dword [esi + 8]
add eax, ebx
push eax
call fcn.18124020
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [esi + 0x1c]
add ecx, dword [esi + 0x14]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x1811a626
cmp ecx, ebx
jbe 0x1811a626
mov edx, dword [esi + 8]
sub ecx, ebx
add edx, ebx
jne 0x1811a619
xor eax, eax
jmp 0x1811a623
push ecx
mov ecx, dword [edi + 0x30]
call fcn.1811734a
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 0x20], ebx
push 0x49
mov dword [esi + 4], 0x49
pop eax
cmp eax, 0x49
jne 0x1811a6f6
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], ebx
je 0x1811a6ec
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0x1811a695
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1811a67e
cmp ebx, ecx
jbe 0x1811a67e
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x1811a671
xor eax, eax
jmp 0x1811a67b
mov ecx, dword [edi + 0x30]
push ebx
call fcn.1811734a
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.1811a161
cmp dword [esi + 0x14], 0
jne 0x1811a9e5
and dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + 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
mov dword [esi + 0x14], ebx
test dl, dl
je 0x1811a6bd
mov ecx, dword [ebp - 4]
jmp 0x1811a652
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1811a6e7
mov eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x1811a6e7
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x1811a6da
xor eax, eax
jmp 0x1811a6e4
mov ecx, dword [edi + 0x30]
push ebx
call fcn.1811734a
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 0x20], ebx
push 0x5b
mov dword [esi + 4], 0x5b
pop eax
cmp eax, 0x5b
jne 0x1811a7b4
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x1811a7aa
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0x1811a756
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1811a73f
cmp ebx, ecx
jbe 0x1811a73f
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x1811a732
xor eax, eax
jmp 0x1811a73c
mov ecx, dword [edi + 0x30]
push ebx
call fcn.1811734a
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.1811a161
cmp dword [esi + 0x14], 0
jne 0x1811a9e5
and dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x24]
mov dl, byte [ecx + 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
mov dword [esi + 0x14], ebx
test dl, dl
je 0x1811a77e
mov ecx, dword [ebp - 4]
jmp 0x1811a713
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1811a7a8
mov eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x1811a7a8
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x1811a79b
xor eax, eax
jmp 0x1811a7a5
mov ecx, dword [edi + 0x30]
push ebx
call fcn.1811734a
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
push 0x67
mov dword [esi + 4], 0x67
pop eax
cmp eax, 0x67
jne 0x1811a813
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x1811a7fc
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0x1811a7de
mov ecx, edi
call fcn.1811a161
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x1811a9e5
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 ecx, edi
mov dword [esi + 4], 0x71
call fcn.1811a161
cmp dword [esi + 0x14], ebx
jne 0x1811a9e5
cmp dword [edi + 4], ebx
jne 0x1811a837
cmp dword [esi + 0x74], ebx
mov ebx, dword [ebp - 8]
jne 0x1811a83a
test ebx, ebx
je 0x1811a915
cmp dword [esi + 4], 0x29a
je 0x1811a915
jmp 0x1811a83a
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x84]
test ecx, ecx
jne 0x1811a84d
push ebx
push esi
call fcn.1811ae70
jmp 0x1811a87e
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0x1811a863
mov edx, ebx
mov ecx, esi
call fcn.1811baf5
jmp 0x1811a880
cmp eax, 3
jne 0x1811a873
mov edx, ebx
mov ecx, esi
call fcn.1811b891
jmp 0x1811a880
imul eax, ecx, 0xc
push ebx
push esi
call dword [eax + 0x18170038]
pop ecx
pop ecx
cmp eax, 2
je 0x1811a88a
cmp eax, 3
jne 0x1811a891
mov dword [esi + 4], 0x29a
test eax, eax
je 0x1811a9df
cmp eax, 2
je 0x1811a9df
cmp eax, 1
jne 0x1811a915
cmp ebx, eax
jne 0x1811a8b4
mov ecx, esi
call fcn.181203f0
jmp 0x1811a904
cmp ebx, 5
je 0x1811a904
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.181202ff
pop ecx
pop ecx
cmp ebx, 3
jne 0x1811a904
mov eax, dword [esi + 0x44]
xor edx, edx
mov ecx, dword [esi + 0x4c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.181237a0
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x74], eax
jne 0x1811a904
mov dword [esi + 0x6c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x16b4], eax
mov ecx, edi
call fcn.1811a161
cmp dword [edi + 0x10], 0
je 0x1811a9e5
cmp ebx, 4
jne 0x1811a9e9
cmp dword [esi + 0x18], 0
jg 0x1811a92c
xor eax, eax
inc eax
jmp 0x1811a9f8
cmp dword [esi + 0x18], 2
jne 0x1811a9ac
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x30]
mov ecx, 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 0x1811a9c2
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.1811a13d
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.1811a13d
mov ecx, edi
call fcn.1811a161
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x1811a9d5
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0x1811a9f8
cmp dword [edi + 0x10], 0
jne 0x1811a9e9
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0x1811a9f8
mov eax, dword [str.stream_error]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret