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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.1811ed0f
test eax, eax
jne 0x1811f7b4
mov edi, dword [ebx + 0x1c]
xor edx, edx
cmp dword [ebx + 0xc], edx
je 0x1811f7ad
cmp dword [ebx + 4], edx
je 0x1811f01c
cmp dword [ebx], edx
je 0x1811f7ad
cmp dword [ebx + 0x10], edx
je 0x1811f04f
mov dword [edi + 0x28], 4
cmp dword [edi + 0x14], edx
je 0x1811f03d
call fcn.1811efa1
xor edx, edx
cmp dword [ebx + 0x10], edx
je 0x1811f7a5
cmp dword [edi + 4], 0x29a
jne 0x1811f05d
cmp dword [ebx + 4], edx
je 0x1811f120
mov dword [ebx + 0x18], str.buffer_error
push 0xfffffffffffffffb
jmp 0x1811f7b6
cmp dword [edi + 4], 0x2a
jne 0x1811f120
cmp dword [edi + 0x18], edx
jne 0x1811f078
mov dword [edi + 4], 0x71
jmp 0x1811f120
mov ecx, dword [edi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [edi + 0x88], 2
mov esi, ecx
jge 0x1811f0bc
mov eax, dword [edi + 0x84]
cmp eax, 2
jl 0x1811f0bc
cmp eax, 6
jge 0x1811f0a6
push 0x40
pop eax
push 0x60
jmp 0x1811f0c0
jne 0x1811f0b2
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x1811f0c1
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x1811f0c1
mov eax, edx
push 0x20
pop edx
or ecx, eax
cmp dword [edi + 0x6c], 0
je 0x1811f0cd
mov ecx, edx
or ecx, esi
push 0x1f
mov eax, ecx
xor edx, edx
pop esi
div esi
push esi
sub ecx, edx
pop eax
lea edx, [eax + ecx]
mov ecx, edi
call fcn.1811ef7d
cmp dword [edi + 0x6c], 0
je 0x1811f100
movzx edx, word [ebx + 0x32]
mov ecx, edi
call fcn.1811ef7d
movzx edx, word [ebx + 0x30]
mov ecx, edi
call fcn.1811ef7d
mov dword [ebx + 0x30], 1
mov ecx, ebx
mov dword [edi + 4], 0x71
call fcn.1811efa1
xor edx, edx
cmp dword [edi + 0x14], edx
jne 0x1811f7a5
cmp dword [edi + 4], 0x39
jne 0x1811f325
mov dword [ebx + 0x30], edx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
push 0x1f
pop edx
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], 0x8b
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], 8
mov edx, dword [edi + 0x14]
mov esi, dword [edi + 0x1c]
inc edx
mov dword [edi + 0x14], edx
test esi, esi
jne 0x1811f200
mov eax, dword [edi + 8]
mov byte [edx + eax], 0
xor edx, edx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 0x14], ecx
mov byte [ecx + eax], dl
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 0x14], ecx
mov byte [ecx + eax], dl
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 0x14], ecx
mov byte [ecx + eax], dl
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 0x14], ecx
mov byte [ecx + eax], dl
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x84]
inc edx
mov dword [edi + 0x14], edx
cmp eax, 9
jne 0x1811f1b8
mov cl, 2
jmp 0x1811f1cc
cmp dword [edi + 0x88], 2
jge 0x1811f1ca
cmp eax, 2
jl 0x1811f1ca
xor cl, cl
jmp 0x1811f1cc
mov cl, 4
mov eax, dword [edi + 8]
mov byte [edx + eax], cl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], 0xa
mov ecx, ebx
inc dword [edi + 0x14]
mov dword [edi + 4], 0x71
call fcn.1811efa1
xor edx, edx
cmp dword [edi + 0x14], edx
jne 0x1811f7a5
jmp 0x1811f325
cmp dword [esi + 0x24], 0
sete cl
dec cl
and cl, 0x10
cmp dword [esi + 0x2c], 0
sete al
dec al
and al, 2
add cl, al
cmp dword [esi + 0x1c], 0
sete al
dec al
and al, 8
add cl, al
cmp dword [esi + 0x10], 0
sete al
dec al
and al, 4
add cl, al
cmp dword [esi], 0
setne al
add cl, al
mov eax, dword [edi + 8]
mov byte [edx + eax], cl
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
inc edx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], edx
mov al, byte [eax + 4]
mov byte [edx + ecx], al
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
inc edx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], edx
mov al, byte [eax + 5]
mov byte [edx + ecx], al
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
inc edx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], edx
mov al, byte [eax + 6]
mov byte [edx + ecx], al
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
inc edx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], edx
mov al, byte [eax + 7]
mov byte [edx + ecx], al
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x84]
inc edx
mov dword [edi + 0x14], edx
cmp eax, 9
jne 0x1811f2a3
mov cl, 2
jmp 0x1811f2b7
cmp dword [edi + 0x88], 2
jge 0x1811f2b5
cmp eax, 2
jl 0x1811f2b5
xor cl, cl
jmp 0x1811f2b7
mov cl, 4
mov eax, dword [edi + 8]
mov byte [edx + eax], cl
inc dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [eax + 0xc]
mov byte [edx + ecx], al
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
inc edx
mov dword [edi + 0x14], edx
cmp dword [eax + 0x10], 0
je 0x1811f300
mov ecx, dword [edi + 8]
mov al, byte [eax + 0x14]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [eax + 0x15]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1811f319
mov ecx, dword [ebx + 0x30]
push edx
mov edx, dword [edi + 8]
call fcn.1812217a
pop ecx
mov dword [ebx + 0x30], eax
xor edx, edx
mov dword [edi + 4], 0x45
mov dword [edi + 0x20], edx
mov ecx, dword [edi + 4]
lea esi, [edi + 0x1c]
mov dword [ebp - 4], esi
cmp ecx, 0x45
jne 0x1811f42d
mov eax, dword [esi]
cmp dword [eax + 0x10], edx
je 0x1811f424
movzx eax, word [eax + 0x14]
sub eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0xc]
mov dword [ebp - 8], eax
add eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
cmp eax, edx
jbe 0x1811f3d6
mov eax, dword [esi]
sub edx, ecx
push edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 8]
add eax, ecx
push eax
call fcn.18136c60
mov eax, dword [esi]
add esp, 0xc
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x1811f3a4
mov eax, dword [ebp - 0xc]
cmp ecx, eax
jbe 0x1811f3a4
mov edx, dword [edi + 8]
sub ecx, eax
push ecx
mov ecx, dword [ebx + 0x30]
add edx, eax
call fcn.1812217a
pop ecx
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x10]
mov ecx, ebx
add dword [edi + 0x20], eax
call fcn.1811efa1
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1811f7a5
and dword [ebp - 0xc], eax
xor ecx, ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov edx, dword [edi + 0xc]
mov dword [ebp - 8], eax
cmp eax, edx
ja 0x1811f35e
jmp 0x1811f3d9
mov eax, dword [ebp - 8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 8]
add eax, dword [ebp - 0x14]
push eax
call fcn.18136c60
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [esi]
add esp, 0xc
add ecx, dword [edi + 0x14]
mov dword [edi + 0x14], ecx
cmp dword [eax + 0x2c], edx
je 0x1811f421
mov eax, dword [ebp - 0xc]
cmp ecx, eax
jbe 0x1811f421
mov edx, dword [edi + 8]
sub ecx, eax
push ecx
mov ecx, dword [ebx + 0x30]
add edx, eax
call fcn.1812217a
pop ecx
mov dword [ebx + 0x30], eax
xor edx, edx
mov dword [edi + 0x20], edx
mov dword [edi + 4], 0x49
jmp 0x1811f436
cmp ecx, 0x49
jne 0x1811f4ff
mov eax, dword [esi]
cmp dword [eax + 0x1c], edx
je 0x1811f4ee
mov edx, dword [edi + 0x14]
lea eax, [edi + 8]
mov ecx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [edi + 0xc]
jne 0x1811f493
mov eax, dword [esi]
cmp dword [eax + 0x2c], 0
je 0x1811f47a
cmp ecx, edx
jbe 0x1811f47a
sub ecx, edx
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebx + 0x30]
mov edx, dword [edx]
add edx, dword [ebp - 8]
call fcn.1812217a
pop ecx
mov dword [ebx + 0x30], eax
mov ecx, ebx
call fcn.1811efa1
cmp dword [edi + 0x14], 0
jne 0x1811f7a5
xor eax, eax
and dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov byte [ecx + eax], dl
mov ecx, dword [edi + 0x14]
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [edi + 0x14], ecx
test dl, dl
je 0x1811f4c5
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x1811f44f
mov eax, dword [esi]
cmp dword [eax + 0x2c], 0
je 0x1811f4ea
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x1811f4ea
mov edx, dword [ebp - 0xc]
sub ecx, eax
push ecx
mov ecx, dword [ebx + 0x30]
mov edx, dword [edx]
add edx, eax
call fcn.1812217a
pop ecx
mov dword [ebx + 0x30], eax
and dword [edi + 0x20], 0
mov eax, edi
mov dword [edi + 4], 0x5b
lea edx, [eax + 0xc]
mov dword [ebp - 0xc], edx
jmp 0x1811f50e
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
cmp ecx, 0x5b
jne 0x1811f5c6
mov eax, dword [esi]
cmp dword [eax + 0x24], 0
je 0x1811f5bd
mov ecx, dword [edi + 0x14]
lea edx, [edi + 8]
mov dword [ebp - 0x10], ecx
mov esi, ecx
mov dword [ebp - 0x14], edx
cmp esi, dword [edi + 0xc]
jne 0x1811f566
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x2c], 0
je 0x1811f54f
cmp esi, ecx
jbe 0x1811f54f
mov edx, dword [edx]
sub esi, ecx
add edx, ecx
mov ecx, dword [ebx + 0x30]
push esi
call fcn.1812217a
pop ecx
mov dword [ebx + 0x30], eax
mov ecx, ebx
call fcn.1811efa1
cmp dword [edi + 0x14], 0
jne 0x1811f7a5
and dword [ebp - 0x10], 0
xor esi, esi
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [ecx]
mov byte [esi + eax], dl
mov esi, dword [edi + 0x14]
inc esi
mov dword [edi + 0x14], esi
test dl, dl
je 0x1811f595
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x1811f525
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x2c], 0
je 0x1811f5ba
mov eax, dword [ebp - 0x10]
cmp esi, eax
jbe 0x1811f5ba
mov edx, dword [ecx]
sub esi, eax
mov ecx, dword [ebx + 0x30]
add edx, eax
push esi
call fcn.1812217a
pop ecx
mov dword [ebx + 0x30], eax
mov esi, dword [ebp - 4]
mov dword [edi + 4], 0x67
jmp 0x1811f5cb
cmp ecx, 0x67
jne 0x1811f62a
mov eax, dword [esi]
cmp dword [eax + 0x2c], 0
je 0x1811f611
mov edx, dword [edi + 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [edx + 2]
cmp eax, dword [ecx]
jbe 0x1811f5f2
mov ecx, ebx
call fcn.1811efa1
mov edx, dword [edi + 0x14]
test edx, edx
jne 0x1811f7a5
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0x30]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0x31]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
and dword [ebx + 0x30], 0
mov ecx, ebx
mov dword [edi + 4], 0x71
call fcn.1811efa1
xor edx, edx
cmp dword [edi + 0x14], edx
jne 0x1811f7a5
cmp dword [ebx + 4], edx
jne 0x1811f641
cmp dword [edi + 0x74], edx
jne 0x1811f641
cmp dword [edi + 4], 0x29a
je 0x1811f6de
cmp dword [edi + 0x84], edx
jne 0x1811f656
push 4
push edi
lfence
call fcn.1811fa00
jmp 0x1811f695
mov eax, dword [edi + 0x88]
cmp eax, 2
jne 0x1811f66a
mov ecx, edi
call fcn.18120744
jmp 0x1811f697
cmp eax, 3
jne 0x1811f678
mov ecx, edi
call fcn.1812052b
jmp 0x1811f697
lfence
imul eax, dword [edi + 0x84], 0xc
push 4
push edi
mov esi, dword [eax + 0x1819e4f0]
mov ecx, esi
call dword [0x181663e8]
call esi
pop ecx
pop ecx
cmp eax, 2
je 0x1811f6a1
cmp eax, 3
jne 0x1811f6a8
mov dword [edi + 4], 0x29a
test eax, eax
je 0x1811f79f
cmp eax, 2
je 0x1811f79f
cmp eax, 1
jne 0x1811f6de
push 0
push 0
xor edx, edx
mov ecx, edi
call fcn.18121703
pop ecx
pop ecx
mov ecx, ebx
call fcn.1811efa1
cmp dword [ebx + 0x10], 0
je 0x1811f7a5
cmp dword [edi + 0x18], 0
jg 0x1811f6ec
xor eax, eax
inc eax
jmp 0x1811f7b7
cmp dword [edi + 0x18], 2
jne 0x1811f76c
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x30]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x31]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x32]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x33]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 8]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 9]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0xa]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0xb]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
jmp 0x1811f782
movzx edx, word [ebx + 0x32]
mov ecx, edi
call fcn.1811ef7d
movzx edx, word [ebx + 0x30]
mov ecx, edi
call fcn.1811ef7d
mov ecx, ebx
call fcn.1811efa1
mov eax, dword [edi + 0x18]
test eax, eax
jle 0x1811f795
neg eax
mov dword [edi + 0x18], eax
xor eax, eax
cmp dword [edi + 0x14], eax
sete al
jmp 0x1811f7b7
cmp dword [ebx + 0x10], 0
jne 0x1811f7a9
or dword [edi + 0x28], 0xffffffff
xor eax, eax
jmp 0x1811f7b7
mov dword [ebx + 0x18], str.stream_error
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret