Function at 0x14007a5d0
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
mov r14d, edx
mov rsi, rcx
call fcn.14007b4d0
xor edi, edi
test eax, eax
jne 0x14007af27
cmp r14d, 5
ja 0x14007af27
mov rbx, qword [rsi + 0x28]
cmp qword [rsi + 0x10], rdi
je 0x14007af1c
cmp dword [rsi + 8], edi
je 0x14007a627
cmp qword [rsi], rdi
je 0x14007af1c
mov ebp, 0x29a
mov r12d, 4
cmp dword [rbx + 8], ebp
jne 0x14007a640
cmp r14d, r12d
jne 0x14007af1c
cmp dword [rsi + 0x18], edi
jne 0x14007a65a
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x14007af2c
mov r15d, 9
mov edx, dword [rbx + 0x40]
mov dword [rbx + 0x40], r14d
cmp dword [rbx + 0x28], edi
je 0x14007a684
mov rcx, rsi
call fcn.14007bc80
cmp dword [rsi + 0x18], edi
jne 0x14007a6ae
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x14007af2c
cmp dword [rsi + 8], edi
jne 0x14007a6ae
cmp edx, r12d
mov eax, edi
mov ecx, edi
cmovg eax, r15d
add edx, edx
sub edx, eax
lea eax, [r14 + r14]
cmp r14d, r12d
cmovg ecx, r15d
sub eax, ecx
cmp eax, edx
jg 0x14007a6ae
cmp r14d, r12d
jne 0x14007a645
cmp dword [rbx + 8], ebp
jne 0x14007a6b8
cmp dword [rsi + 8], edi
jne 0x14007a645
cmp dword [rbx + 8], 0x2a
mov ebp, 2
lea r13d, [rbp - 1]
jne 0x14007a7cd
mov ecx, dword [rbx + 0xa4]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0x110], ebp
jge 0x14007a702
mov edx, dword [rbx + 0x10c]
cmp edx, ebp
jl 0x14007a702
cmp edx, 6
jge 0x14007a6f6
mov eax, r13d
jmp 0x14007a704
cmp edx, 6
mov eax, edi
setne al
add eax, ebp
jmp 0x14007a704
mov eax, edi
shl eax, 6
or ecx, eax
cmp dword [rbx + 0xf4], edi
je 0x14007a714
or ecx, 0x20
mov eax, 0x8421085
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
add ecx, r13d
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
cmp dword [rbx + 0xf4], edi
je 0x14007a7a6
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140079250
mov dword [rsi + 0x4c], eax
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.14007bc80
cmp dword [rbx + 0x28], edi
jne 0x14007a679
cmp dword [rbx + 8], 0x39
jne 0x14007a9f8
mov rcx, rbx
call fcn.140079620
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
add dword [rbx + 0x28], r13d
mov r8, qword [rbx + 0x30]
test r8, r8
jne 0x14007a8be
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r13d
mov eax, dword [rbx + 0x10c]
cmp eax, r15d
jne 0x14007a873
mov edx, ebp
jmp 0x14007a884
cmp dword [rbx + 0x110], ebp
jge 0x14007a881
mov edx, edi
cmp eax, ebp
jge 0x14007a884
mov edx, r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0xa
mov rcx, rsi
add dword [rbx + 0x28], r13d
mov dword [rbx + 8], 0x71
call fcn.14007bc80
cmp dword [rbx + 0x28], edi
je 0x14007a9f8
jmp 0x14007a679
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, bpl
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, r12b
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], r13d
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], r13d
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], r13d
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], r13d
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], r13d
mov eax, dword [rbx + 0x10c]
cmp eax, r15d
jne 0x14007a96c
mov edx, ebp
jmp 0x14007a97d
cmp dword [rbx + 0x110], ebp
jge 0x14007a97a
mov edx, edi
cmp eax, ebp
jge 0x14007a97d
mov edx, r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
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], r13d
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x28]
cmp qword [rax + 0x10], rdi
je 0x14007a9d6
mov al, byte [rax + 0x18]
mov rcx, qword [rbx + 0x10]
mov byte [r8 + rcx], al
add dword [rbx + 0x28], r13d
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], r13d
mov r8d, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14007a9ee
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rsi + 0x4c]
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x45
cmp dword [rbx + 8], 0x45
jne 0x14007aaef
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x10], rdi
je 0x14007aae8
movzx r15d, word [rax + 0x18]
sub r15d, dword [rbx + 0x38]
mov ebp, dword [rbx + 0x28]
mov ecx, ebp
add ecx, r15d
cmp ecx, dword [rbx + 0x18]
jbe 0x14007aa9c
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov r12d, dword [rbx + 0x18]
mov edx, dword [rbx + 0x38]
sub r12d, ecx
add rcx, qword [rbx + 0x10]
add rdx, qword [rax + 0x10]
mov r8d, r12d
call fcn.1402e2940
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x18]
mov dword [rbx + 0x28], r8d
cmp dword [rax + 0x3c], edi
je 0x14007aa71
cmp r8d, ebp
jbe 0x14007aa71
mov ecx, dword [rsi + 0x4c]
sub r8d, ebp
mov edx, ebp
add rdx, qword [rbx + 0x10]
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], r12d
mov rcx, rsi
call fcn.14007bc80
cmp dword [rbx + 0x28], edi
jne 0x14007a679
mov ecx, dword [rbx + 0x28]
sub r15d, r12d
add ecx, r15d
mov ebp, edi
cmp ecx, dword [rbx + 0x18]
ja 0x14007aa26
mov r12d, 4
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x38]
mov ecx, dword [rbx + 0x28]
add rcx, qword [rbx + 0x10]
add rdx, qword [rax + 0x10]
mov r8d, r15d
call fcn.1402e2940
add dword [rbx + 0x28], r15d
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x28]
cmp dword [rax + 0x3c], edi
je 0x14007aae0
cmp r8d, ebp
jbe 0x14007aae0
mov ecx, dword [rsi + 0x4c]
sub r8d, ebp
mov edx, ebp
add rdx, qword [rbx + 0x10]
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov ebp, 2
mov dword [rbx + 8], 0x49
cmp dword [rbx + 8], 0x49
jne 0x14007abaa
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x14007aba3
mov r9d, dword [rbx + 0x28]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x14007ab50
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14007ab3c
mov eax, dword [rbx + 0x28]
cmp eax, r9d
jbe 0x14007ab3c
mov ecx, dword [rsi + 0x4c]
sub eax, r9d
mov edx, r9d
mov r8d, eax
add rdx, qword [rbx + 0x10]
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14007bc80
cmp dword [rbx + 0x28], edi
jne 0x14007a679
mov r9d, edi
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx edx, byte [rax + rcx]
lea eax, [rcx + 1]
mov ecx, dword [rbx + 0x28]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
test edx, edx
jne 0x14007ab0b
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14007aba0
cmp ecx, r9d
jbe 0x14007aba0
sub ecx, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x5b
cmp dword [rbx + 8], 0x5b
jne 0x14007ac62
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x14007ac5b
mov r9d, dword [rbx + 0x28]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x14007ac0b
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14007abf7
mov eax, dword [rbx + 0x28]
cmp eax, r9d
jbe 0x14007abf7
mov ecx, dword [rsi + 0x4c]
sub eax, r9d
mov edx, r9d
mov r8d, eax
add rdx, qword [rbx + 0x10]
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14007bc80
cmp dword [rbx + 0x28], edi
jne 0x14007a679
mov r9d, edi
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx edx, byte [rax + rcx]
lea eax, [rcx + 1]
mov ecx, dword [rbx + 0x28]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
test edx, edx
jne 0x14007abc6
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14007ac5b
cmp ecx, r9d
jbe 0x14007ac5b
sub ecx, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
cmp dword [rbx + 8], 0x67
jne 0x14007acd5
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14007acbd
mov eax, dword [rbx + 0x28]
add eax, ebp
cmp eax, dword [rbx + 0x18]
jbe 0x14007ac8c
mov rcx, rsi
call fcn.14007bc80
cmp dword [rbx + 0x28], edi
jne 0x14007a679
mov edx, dword [rbx + 0x28]
xor r8d, r8d
mov al, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
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], r13d
xor ecx, ecx
call fcn.1400795d0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.14007bc80
cmp dword [rbx + 0x28], edi
jne 0x14007a679
cmp dword [rsi + 8], edi
jne 0x14007acf8
cmp dword [rbx + 0xfc], edi
jne 0x14007acf8
test r14d, r14d
je 0x14007adf2
cmp dword [rbx + 8], 0x29a
je 0x14007adf2
movsxd rcx, dword [rbx + 0x10c]
mov edx, r14d
test ecx, ecx
jne 0x14007ad10
mov rcx, rbx
call fcn.140079960
jmp 0x14007ad47
mov eax, dword [rbx + 0x110]
cmp eax, ebp
jne 0x14007ad24
mov rcx, rbx
call fcn.14007b530
jmp 0x14007ad47
cmp eax, 3
jne 0x14007ad33
mov rcx, rbx
call fcn.14007b700
jmp 0x14007ad47
mov rax, rcx
lea r8, fcn.140079960
add rax, rax
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r13d
ja 0x14007ad58
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x14007af0e
cmp ecx, r13d
jne 0x14007adf2
cmp r14d, r13d
jne 0x14007ad7c
mov rcx, rbx
call fcn.14007c980
jmp 0x14007ade1
cmp r14d, 5
je 0x14007ade1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14007ce40
cmp r14d, 3
jne 0x14007ade1
mov ecx, dword [rbx + 0xd4]
xor edx, edx
mov rax, qword [rbx + 0xc8]
sub ecx, r13d
mov word [rax + rcx*2], di
mov r8d, dword [rbx + 0xd4]
mov rcx, qword [rbx + 0xc8]
sub r8d, r13d
add r8, r8
call fcn.1402e2e70
cmp dword [rbx + 0xfc], edi
jne 0x14007ade1
mov dword [rbx + 0xf4], edi
mov dword [rbx + 0xe4], edi
mov dword [rbx + 0x176c], edi
mov rcx, rsi
call fcn.14007bc80
cmp dword [rsi + 0x18], edi
je 0x14007a679
cmp r14d, r12d
jne 0x14007a67d
cmp dword [rbx + 0x2c], edi
jg 0x14007ae08
mov eax, r13d
jmp 0x14007af2c
cmp dword [rbx + 0x2c], ebp
jne 0x14007ae9f
mov rcx, rbx
call fcn.1400795f0
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4e]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4f]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xc]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xd]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xe]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x14007aeeb
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
mov rcx, rsi
call fcn.14007bc80
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x14007af03
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x14007af2c
cmp dword [rsi + 0x18], edi
jne 0x14007a67d
jmp 0x14007a679
mov rax, qword [str.stream_error]
mov qword [rsi + 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