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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov ebp, edx
mov rsi, rcx
test rcx, rcx
je 0x1800028fa
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x1800028fa
cmp edx, 5
ja 0x1800028fa
cmp qword [rcx + 0x10], rdi
je 0x1800028ef
cmp qword [rcx], rdi
jne 0x180002076
cmp dword [rcx + 8], edi
jne 0x1800028ef
cmp dword [rbx + 8], 0x29a
mov r14d, 4
jne 0x18000208e
cmp ebp, r14d
jne 0x1800028ef
cmp dword [rcx + 0x18], edi
jne 0x1800020a8
mov rax, qword [str.buffer_error]
mov qword [rcx + 0x20], rax
mov eax, 0xfffffffb
jmp 0x1800028ff
cmp dword [rbx + 8], 0x2a
mov r13d, 2
mov r15d, dword [rbx + 0x40]
mov qword [rbx], rsi
mov dword [rbx + 0x40], ebp
lea r12d, [r13 - 1]
jne 0x1800023e3
cmp dword [rbx + 0x2c], r13d
jne 0x1800022f2
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
add dword [rbx + 0x28], r12d
mov r8, qword [rbx + 0x30]
test r8, r8
jne 0x1800021b0
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov eax, dword [rbx + 0xac]
cmp eax, 9
jne 0x180002174
mov edx, r13d
jmp 0x180002187
cmp dword [rbx + 0xb0], r13d
jge 0x180002184
mov edx, edi
cmp eax, r13d
jge 0x180002187
mov edx, r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0xb
add dword [rbx + 0x28], r12d
mov dword [rbx + 8], 0x71
jmp 0x1800023e3
mov rax, qword [r8 + 0x30]
neg rax
mov eax, dword [r8 + 0x3c]
sbb dl, dl
and dl, 0x10
neg eax
mov rax, qword [r8 + 0x20]
sbb cl, cl
and cl, r13b
add dl, cl
neg rax
mov rax, qword [r8 + 0x10]
sbb cl, cl
and cl, 8
add dl, cl
neg rax
sbb cl, cl
and cl, r14b
add dl, cl
mov ecx, dword [rbx + 0x28]
cmp dword [r8], edi
setne al
add dl, al
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 4]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 5]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 6]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 7]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov eax, dword [rbx + 0xac]
cmp eax, 9
jne 0x18000225f
mov edx, r13d
jmp 0x180002272
cmp dword [rbx + 0xb0], r13d
jge 0x18000226f
mov edx, edi
cmp eax, r13d
jge 0x180002272
mov edx, r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 0xc]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x28]
cmp qword [rax + 0x10], rdi
je 0x1800022cb
mov al, byte [rax + 0x18]
mov rcx, qword [rbx + 0x10]
mov byte [r8 + rcx], al
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 0x19]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov r8d, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1800022e3
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rsi + 0x4c]
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x45
jmp 0x1800023e3
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], r13d
jge 0x180002329
mov edx, dword [rbx + 0xac]
cmp edx, r13d
jl 0x180002329
cmp edx, 6
jge 0x18000231c
mov eax, r12d
jmp 0x18000232b
cmp edx, 6
mov eax, edi
setne al
add eax, r13d
jmp 0x18000232b
mov eax, edi
shl eax, 6
or ecx, eax
cmp dword [rbx + 0x94], edi
je 0x18000233b
or ecx, 0x20
mov eax, 0x8421085
mov dword [rbx + 8], 0x71
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
add ecx, r12d
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
cmp dword [rbx + 0x94], edi
je 0x1800023d4
movzx r8d, word [rsi + 0x4e]
mov ecx, dword [rbx + 0x28]
mov edx, r8d
mov rax, qword [rbx + 0x10]
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
movzx r8d, word [rsi + 0x4c]
mov edx, dword [rbx + 0x28]
mov ecx, r8d
mov rax, qword [rbx + 0x10]
shr ecx, 8
mov byte [rdx + rax], cl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call section..text
mov dword [rsi + 0x4c], eax
cmp dword [rbx + 8], 0x45
mov r14d, 0x49
jne 0x1800024b9
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x10], rdi
je 0x1800024b5
movzx eax, word [rax + 0x18]
mov r10d, dword [rbx + 0x28]
cmp dword [rbx + 0x38], eax
jae 0x18000247f
mov ecx, dword [rbx + 0x28]
cmp ecx, dword [rbx + 0x18]
jne 0x18000244f
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x18000243c
cmp ecx, r10d
jbe 0x18000243c
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.180003374
mov ecx, dword [rbx + 0x28]
mov r10d, ecx
cmp ecx, dword [rbx + 0x18]
je 0x18000247f
mov rax, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x38]
mov r8d, ecx
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rax + 0x10]
mov al, byte [r9 + rdx]
mov byte [r8 + rcx], al
add dword [rbx + 0x28], r12d
add dword [rbx + 0x38], r12d
mov rax, qword [rbx + 0x30]
movzx ecx, word [rax + 0x18]
cmp dword [rbx + 0x38], ecx
jb 0x18000240e
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1800024a6
mov r8d, dword [rbx + 0x28]
cmp r8d, r10d
jbe 0x1800024a6
mov ecx, dword [rsi + 0x4c]
sub r8d, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
mov rax, qword [rbx + 0x30]
mov ecx, dword [rax + 0x18]
cmp dword [rbx + 0x38], ecx
jne 0x1800024b9
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], r14d
cmp dword [rbx + 8], r14d
jne 0x180002577
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x180002570
mov edx, dword [rbx + 0x28]
mov r8d, dword [rbx + 0x28]
cmp r8d, dword [rbx + 0x18]
jne 0x180002515
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180002500
cmp r8d, edx
jbe 0x180002500
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.180003374
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x180002541
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx r14d, byte [rax + rcx]
lea eax, [rcx + 1]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov ecx, r8d
mov byte [rcx + rax], r14b
add dword [rbx + 0x28], r12d
test r14d, r14d
je 0x180002544
jmp 0x1800024d4
mov r14d, r12d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180002568
mov r8d, dword [rbx + 0x28]
cmp r8d, edx
jbe 0x180002568
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
test r14d, r14d
jne 0x180002577
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x5b
cmp dword [rbx + 8], 0x5b
jne 0x180002632
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x18000262b
mov edx, dword [rbx + 0x28]
mov r8d, dword [rbx + 0x28]
cmp r8d, dword [rbx + 0x18]
jne 0x1800025d3
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1800025be
cmp r8d, edx
jbe 0x1800025be
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.180003374
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x1800025ff
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx r14d, byte [rax + rcx]
lea eax, [rcx + 1]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov ecx, r8d
mov byte [rcx + rax], r14b
add dword [rbx + 0x28], r12d
test r14d, r14d
je 0x180002602
jmp 0x180002592
mov r14d, r12d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180002626
mov r8d, dword [rbx + 0x28]
cmp r8d, edx
jbe 0x180002626
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
test r14d, r14d
jne 0x180002632
mov dword [rbx + 8], 0x67
cmp dword [rbx + 8], 0x67
jne 0x180002696
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x18000268f
mov eax, dword [rbx + 0x28]
add eax, r13d
cmp eax, dword [rbx + 0x18]
jbe 0x180002654
mov rcx, rsi
call fcn.180003374
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rbx + 0x18]
ja 0x180002696
mov al, byte [rsi + 0x4c]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rsi + 0x4d]
mov byte [rdx + rcx], al
xor edx, edx
add dword [rbx + 0x28], r12d
xor ecx, ecx
call fcn.1800012e0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x71
cmp dword [rbx + 0x28], edi
je 0x1800026b3
mov rcx, rsi
call fcn.180003374
cmp dword [rsi + 0x18], edi
jne 0x1800026d2
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x1800028ff
cmp dword [rsi + 8], edi
jne 0x1800026d2
cmp ebp, r15d
jg 0x1800026d2
cmp ebp, 4
je 0x1800026d2
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
jmp 0x18000209e
mov r14d, 0x29a
cmp dword [rbx + 8], r14d
jne 0x1800026e5
cmp dword [rsi + 8], edi
je 0x1800026ea
jmp 0x1800026c2
cmp dword [rsi + 8], edi
jne 0x180002704
cmp dword [rbx + 0x9c], edi
jne 0x180002704
test ebp, ebp
je 0x1800027cc
cmp dword [rbx + 8], r14d
je 0x1800027cc
mov eax, dword [rbx + 0xb0]
mov edx, ebp
mov rcx, rbx
cmp eax, r13d
jne 0x18000271b
call fcn.180002cfc
jmp 0x18000273c
cmp eax, 3
jne 0x180002727
call fcn.180002e6c
jmp 0x18000273c
movsxd rax, dword [rbx + 0xac]
lea r8, [0x18000f318]
add rax, rax
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r12d
ja 0x18000274a
mov dword [rbx + 8], r14d
test ecx, 0xfffffffd
je 0x1800028e1
cmp ecx, r12d
jne 0x1800027cc
cmp ebp, r12d
jne 0x18000276a
mov rcx, rbx
call fcn.180009e7c
jmp 0x1800027bb
cmp ebp, 5
je 0x1800027bb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.18000a434
cmp ebp, 3
jne 0x1800027bb
mov ecx, dword [rbx + 0x74]
xor edx, edx
mov rax, qword [rbx + 0x68]
sub ecx, r12d
mov word [rax + rcx*2], di
mov r8d, dword [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
sub r8d, r12d
add r8, r8
call sub.VCRUNTIME140.dll_memset
cmp dword [rbx + 0x9c], edi
jne 0x1800027bb
mov dword [rbx + 0x94], edi
mov dword [rbx + 0x84], edi
mov rcx, rsi
call fcn.180003374
cmp dword [rsi + 0x18], edi
je 0x1800026a8
cmp ebp, 4
jne 0x1800026ac
cmp dword [rbx + 0x2c], edi
jg 0x1800027e2
mov eax, r12d
jmp 0x1800028ff
cmp dword [rbx + 0x2c], r13d
jne 0x180002872
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4e]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4f]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xc]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xd]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xe]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x1800028be
movzx r8d, word [rsi + 0x4e]
mov ecx, dword [rbx + 0x28]
mov edx, r8d
mov rax, qword [rbx + 0x10]
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
movzx r8d, word [rsi + 0x4c]
mov edx, dword [rbx + 0x28]
mov ecx, r8d
mov rax, qword [rbx + 0x10]
shr ecx, 8
mov byte [rdx + rax], cl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
mov rcx, rsi
call fcn.180003374
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x1800028d6
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x1800028ff
cmp dword [rsi + 0x18], edi
jne 0x1800026ac
jmp 0x1800026a8
mov rax, qword [str.stream_error]
mov qword [rcx + 0x20], rax
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret