Function at 0x181143a5
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.181141ae
test eax, eax
jne 0x18114bb3
mov edi, dword [ebx + 0x1c]
cmp dword [ebx + 0xc], eax
je 0x18114bac
cmp dword [ebx + 4], eax
je 0x181143d6
cmp dword [ebx], eax
je 0x18114bac
cmp dword [ebx + 0x10], 0
je 0x1811440e
cmp dword [edi + 0x14], 0
mov dword [edi + 0x28], 4
je 0x181143f8
call fcn.1811435d
cmp dword [ebx + 0x10], 0
je 0x18114ba4
cmp dword [edi + 4], 0x29a
push 0x1f
pop edx
jne 0x1811441c
cmp dword [ebx + 4], 0
je 0x181144ce
mov dword [ebx + 0x18], str.buffer_error
push 0xfffffffffffffffb
jmp 0x18114bb5
cmp dword [edi + 4], 0x2a
jne 0x181144ce
mov ecx, dword [edi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [edi + 0x88], 2
mov esi, ecx
jge 0x1811446a
mov eax, dword [edi + 0x84]
cmp eax, 2
jl 0x1811446a
cmp eax, 6
jge 0x18114454
push 0x40
pop eax
push 0x60
jmp 0x1811446e
jne 0x18114460
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x1811446f
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x1811446f
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [edi + 0x6c], 0
je 0x1811447b
mov ecx, edx
or ecx, esi
mov eax, ecx
xor edx, edx
push 0x1f
pop esi
div esi
sub ecx, edx
lea edx, [esi + ecx]
mov ecx, edi
call fcn.18114339
cmp dword [edi + 0x6c], 0
je 0x181144ac
movzx edx, word [ebx + 0x32]
mov ecx, edi
call fcn.18114339
movzx edx, word [ebx + 0x30]
mov ecx, edi
call fcn.18114339
mov dword [ebx + 0x30], 1
mov ecx, ebx
mov dword [edi + 4], 0x71
call fcn.1811435d
cmp dword [edi + 0x14], 0
jne 0x18114ba4
push 0x1f
pop edx
cmp dword [edi + 4], 0x39
jne 0x181146d9
and dword [ebx + 0x30], 0
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
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 0x181145ab
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 0x18114564
mov cl, 2
jmp 0x18114578
cmp dword [edi + 0x88], 2
jge 0x18114576
cmp eax, 2
jl 0x18114576
xor cl, cl
jmp 0x18114578
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.1811435d
cmp dword [edi + 0x14], 0
jne 0x18114ba4
jmp 0x181146d9
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 0x1811464e
mov cl, 2
jmp 0x18114662
cmp dword [edi + 0x88], 2
jge 0x18114660
cmp eax, 2
jl 0x18114660
xor cl, cl
jmp 0x18114662
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 0x181146ab
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 0x181146ce
cmp dword [edi + 8], 0
jne 0x181146be
xor eax, eax
jmp 0x181146cb
mov ecx, dword [ebx + 0x30]
push edx
mov edx, dword [edi + 8]
call fcn.181176c2
pop ecx
mov dword [ebx + 0x30], eax
and dword [edi + 0x20], 0
mov dword [edi + 4], 0x45
mov edx, dword [edi + 4]
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], ecx
cmp edx, 0x45
jne 0x1811480b
mov eax, dword [ecx]
cmp dword [eax + 0x10], 0
je 0x18114802
movzx eax, word [eax + 0x14]
sub eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
mov edx, dword [edi + 0xc]
mov dword [ebp - 8], eax
add eax, esi
mov dword [ebp - 0x14], esi
cmp eax, edx
jbe 0x181147a6
mov eax, esi
mov dword [ebp - 0xc], eax
jmp 0x1811471d
mov eax, esi
sub edx, eax
mov eax, dword [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, dword [ebp - 0xc]
push eax
call fcn.1812c180
mov eax, dword [edi + 0x1c]
add esp, 0xc
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x18114768
cmp ecx, esi
jbe 0x18114768
mov edx, dword [edi + 8]
sub ecx, esi
add edx, esi
jne 0x1811475b
xor eax, eax
jmp 0x18114765
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.181176c2
pop ecx
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x10]
mov ecx, ebx
add dword [edi + 0x20], eax
call fcn.1811435d
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x18114ba4
mov eax, dword [ebp - 8]
xor ecx, ecx
sub eax, dword [ebp - 0x10]
xor esi, esi
mov edx, dword [edi + 0xc]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0x1c]
mov dword [ebp - 8], eax
cmp eax, edx
ja 0x1811471b
lea ecx, [edi + 0x1c]
jmp 0x181147a9
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ecx]
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.1812c180
mov edx, dword [edi + 0x14]
lea ecx, [edi + 0x1c]
mov eax, dword [ecx]
add esp, 0xc
add edx, dword [ebp - 8]
mov dword [edi + 0x14], edx
cmp dword [eax + 0x2c], 0
je 0x181147fe
cmp edx, esi
jbe 0x181147fe
mov eax, dword [edi + 8]
sub edx, esi
add eax, esi
mov esi, dword [ebx + 0x30]
jne 0x181147ea
xor eax, eax
jmp 0x181147fb
push edx
mov edx, eax
mov ecx, esi
lfence
call fcn.181176c2
pop ecx
lea ecx, [edi + 0x1c]
mov dword [ebx + 0x30], eax
and dword [edi + 0x20], 0
mov dword [edi + 4], 0x49
jmp 0x18114814
cmp edx, 0x49
jne 0x181148ea
mov eax, dword [ecx]
cmp dword [eax + 0x1c], 0
je 0x181148d9
mov edx, dword [edi + 0x14]
lea eax, [edi + 8]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebp - 8], eax
cmp esi, dword [edi + 0xc]
jne 0x18114870
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x18114859
cmp esi, edx
jbe 0x18114859
mov eax, dword [ebp - 8]
sub esi, edx
mov eax, dword [eax]
add eax, edx
je 0x18114856
mov ecx, dword [ebx + 0x30]
mov edx, eax
push esi
call fcn.181176c2
pop ecx
mov dword [ebx + 0x30], eax
mov ecx, ebx
call fcn.1811435d
cmp dword [edi + 0x14], 0
jne 0x18114ba4
and dword [ebp - 0xc], 0
xor esi, esi
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov byte [esi + eax], dl
mov esi, dword [edi + 0x14]
inc esi
mov dword [edi + 0x14], esi
test dl, dl
je 0x181148a2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
jmp 0x1811482b
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x181148d5
mov eax, dword [ebp - 0xc]
cmp esi, eax
jbe 0x181148d5
mov edx, dword [ebp - 8]
sub esi, eax
mov edx, dword [edx]
add edx, eax
mov eax, dword [ebx + 0x30]
jne 0x181148c3
xor eax, eax
jmp 0x181148d2
push esi
mov ecx, eax
lfence
call fcn.181176c2
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x30], eax
and dword [edi + 0x20], 0
mov eax, edi
mov dword [edi + 4], 0x5b
lea esi, [eax + 0xc]
mov dword [ebp - 0x14], esi
jmp 0x181148f9
lea esi, [edi + 0xc]
mov dword [ebp - 0x14], esi
cmp edx, 0x5b
jne 0x181149c6
mov eax, dword [ecx]
cmp dword [eax + 0x24], 0
je 0x181149ba
mov edx, dword [edi + 0x14]
lea eax, [edi + 8]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebp - 8], eax
cmp esi, dword [edi + 0xc]
jne 0x18114955
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x1811493e
cmp esi, edx
jbe 0x1811493e
mov eax, dword [ebp - 8]
sub esi, edx
mov eax, dword [eax]
add eax, edx
je 0x1811493b
mov ecx, dword [ebx + 0x30]
mov edx, eax
push esi
call fcn.181176c2
pop ecx
mov dword [ebx + 0x30], eax
mov ecx, ebx
call fcn.1811435d
cmp dword [edi + 0x14], 0
jne 0x18114ba4
and dword [ebp - 0xc], 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 - 4]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov byte [esi + eax], dl
mov esi, dword [edi + 0x14]
inc esi
mov dword [edi + 0x14], esi
test dl, dl
je 0x18114987
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
jmp 0x18114910
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x181149ba
mov eax, dword [ebp - 0xc]
cmp esi, eax
jbe 0x181149ba
mov edx, dword [ebp - 8]
sub esi, eax
mov edx, dword [edx]
add edx, eax
mov eax, dword [ebx + 0x30]
jne 0x181149a8
xor eax, eax
jmp 0x181149b7
push esi
mov ecx, eax
lfence
call fcn.181176c2
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x30], eax
mov esi, dword [ebp - 0x14]
mov dword [edi + 4], 0x67
jmp 0x181149cb
cmp edx, 0x67
jne 0x18114a26
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x18114a0e
mov edx, dword [edi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi]
jbe 0x181149ef
mov ecx, ebx
call fcn.1811435d
mov edx, dword [edi + 0x14]
test edx, edx
jne 0x18114ba4
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.1811435d
cmp dword [edi + 0x14], 0
jne 0x18114ba4
cmp dword [ebx + 4], 0
jne 0x18114a3f
cmp dword [edi + 0x74], 0
jne 0x18114a3f
cmp dword [edi + 4], 0x29a
je 0x18114add
cmp dword [edi + 0x84], 0
jne 0x18114a55
push 4
push edi
lfence
call fcn.181150a0
jmp 0x18114a94
mov eax, dword [edi + 0x88]
cmp eax, 2
jne 0x18114a69
mov ecx, edi
call fcn.18115cec
jmp 0x18114a96
cmp eax, 3
jne 0x18114a77
mov ecx, edi
call fcn.18115b02
jmp 0x18114a96
lfence
imul eax, dword [edi + 0x84], 0xc
push 4
push edi
mov esi, dword [eax + 0x18191818]
mov ecx, esi
call dword [0x1815b3d4]
call esi
pop ecx
pop ecx
cmp eax, 2
je 0x18114aa0
cmp eax, 3
jne 0x18114aa7
mov dword [edi + 4], 0x29a
test eax, eax
je 0x18114b9e
cmp eax, 2
je 0x18114b9e
cmp eax, 1
jne 0x18114add
push 0
push 0
xor edx, edx
mov ecx, edi
call fcn.18116bd4
pop ecx
pop ecx
mov ecx, ebx
call fcn.1811435d
cmp dword [ebx + 0x10], 0
je 0x18114ba4
cmp dword [edi + 0x18], 0
jg 0x18114aeb
xor eax, eax
inc eax
jmp 0x18114bb6
cmp dword [edi + 0x18], 2
jne 0x18114b6b
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 0x18114b81
movzx edx, word [ebx + 0x32]
mov ecx, edi
call fcn.18114339
movzx edx, word [ebx + 0x30]
mov ecx, edi
call fcn.18114339
mov ecx, ebx
call fcn.1811435d
mov eax, dword [edi + 0x18]
test eax, eax
jle 0x18114b94
neg eax
mov dword [edi + 0x18], eax
xor eax, eax
cmp dword [edi + 0x14], eax
sete al
jmp 0x18114bb6
cmp dword [ebx + 0x10], 0
jne 0x18114ba8
or dword [edi + 0x28], 0xffffffff
xor eax, eax
jmp 0x18114bb6
mov dword [ebx + 0x18], str.stream_error
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret