Function at 0x1400a1ef0
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.1400a2df0
xor edi, edi
test eax, eax
jne 0x1400a2847
cmp r14d, 5
ja 0x1400a2847
mov rbx, qword [rsi + 0x28]
cmp qword [rsi + 0x10], rdi
je 0x1400a283c
cmp dword [rsi + 8], edi
je 0x1400a1f47
cmp qword [rsi], rdi
je 0x1400a283c
mov ebp, 0x29a
mov r12d, 4
cmp dword [rbx + 8], ebp
jne 0x1400a1f60
cmp r14d, r12d
jne 0x1400a283c
cmp dword [rsi + 0x18], edi
jne 0x1400a1f7a
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x1400a284c
mov r15d, 9
mov edx, dword [rbx + 0x40]
mov dword [rbx + 0x40], r14d
cmp dword [rbx + 0x28], edi
je 0x1400a1fa4
mov rcx, rsi
call fcn.1400a35a0
cmp dword [rsi + 0x18], edi
jne 0x1400a1fce
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x1400a284c
cmp dword [rsi + 8], edi
jne 0x1400a1fce
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 0x1400a1fce
cmp r14d, r12d
jne 0x1400a1f65
cmp dword [rbx + 8], ebp
jne 0x1400a1fd8
cmp dword [rsi + 8], edi
jne 0x1400a1f65
cmp dword [rbx + 8], 0x2a
mov ebp, 2
lea r13d, [rbp - 1]
jne 0x1400a20ed
mov ecx, dword [rbx + 0xa4]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0x110], ebp
jge 0x1400a2022
mov edx, dword [rbx + 0x10c]
cmp edx, ebp
jl 0x1400a2022
cmp edx, 6
jge 0x1400a2016
mov eax, r13d
jmp 0x1400a2024
cmp edx, 6
mov eax, edi
setne al
add eax, ebp
jmp 0x1400a2024
mov eax, edi
shl eax, 6
or ecx, eax
cmp dword [rbx + 0xf4], edi
je 0x1400a2034
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 0x1400a20c6
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.1400a53e0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.1400a35a0
cmp dword [rbx + 0x28], edi
jne 0x1400a1f99
cmp dword [rbx + 8], 0x39
jne 0x1400a2318
mov rcx, rbx
call fcn.1400a57b0
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 0x1400a21de
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 0x1400a2193
mov edx, ebp
jmp 0x1400a21a4
cmp dword [rbx + 0x110], ebp
jge 0x1400a21a1
mov edx, edi
cmp eax, ebp
jge 0x1400a21a4
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.1400a35a0
cmp dword [rbx + 0x28], edi
je 0x1400a2318
jmp 0x1400a1f99
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 0x1400a228c
mov edx, ebp
jmp 0x1400a229d
cmp dword [rbx + 0x110], ebp
jge 0x1400a229a
mov edx, edi
cmp eax, ebp
jge 0x1400a229d
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 0x1400a22f6
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 0x1400a230e
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rsi + 0x4c]
call fcn.1400a5760
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x45
cmp dword [rbx + 8], 0x45
jne 0x1400a240f
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x10], rdi
je 0x1400a2408
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 0x1400a23bc
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.140082000
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x18]
mov dword [rbx + 0x28], r8d
cmp dword [rax + 0x3c], edi
je 0x1400a2391
cmp r8d, ebp
jbe 0x1400a2391
mov ecx, dword [rsi + 0x4c]
sub r8d, ebp
mov edx, ebp
add rdx, qword [rbx + 0x10]
call fcn.1400a5760
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], r12d
mov rcx, rsi
call fcn.1400a35a0
cmp dword [rbx + 0x28], edi
jne 0x1400a1f99
mov ecx, dword [rbx + 0x28]
sub r15d, r12d
add ecx, r15d
mov ebp, edi
cmp ecx, dword [rbx + 0x18]
ja 0x1400a2346
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.140082000
add dword [rbx + 0x28], r15d
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x28]
cmp dword [rax + 0x3c], edi
je 0x1400a2400
cmp r8d, ebp
jbe 0x1400a2400
mov ecx, dword [rsi + 0x4c]
sub r8d, ebp
mov edx, ebp
add rdx, qword [rbx + 0x10]
call fcn.1400a5760
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov ebp, 2
mov dword [rbx + 8], 0x49
cmp dword [rbx + 8], 0x49
jne 0x1400a24ca
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x1400a24c3
mov r9d, dword [rbx + 0x28]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x1400a2470
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400a245c
mov eax, dword [rbx + 0x28]
cmp eax, r9d
jbe 0x1400a245c
mov ecx, dword [rsi + 0x4c]
sub eax, r9d
mov edx, r9d
mov r8d, eax
add rdx, qword [rbx + 0x10]
call fcn.1400a5760
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.1400a35a0
cmp dword [rbx + 0x28], edi
jne 0x1400a1f99
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 0x1400a242b
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400a24c0
cmp ecx, r9d
jbe 0x1400a24c0
sub ecx, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.1400a5760
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x5b
cmp dword [rbx + 8], 0x5b
jne 0x1400a2582
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x1400a257b
mov r9d, dword [rbx + 0x28]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x1400a252b
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400a2517
mov eax, dword [rbx + 0x28]
cmp eax, r9d
jbe 0x1400a2517
mov ecx, dword [rsi + 0x4c]
sub eax, r9d
mov edx, r9d
mov r8d, eax
add rdx, qword [rbx + 0x10]
call fcn.1400a5760
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.1400a35a0
cmp dword [rbx + 0x28], edi
jne 0x1400a1f99
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 0x1400a24e6
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400a257b
cmp ecx, r9d
jbe 0x1400a257b
sub ecx, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.1400a5760
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
cmp dword [rbx + 8], 0x67
jne 0x1400a25f5
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400a25dd
mov eax, dword [rbx + 0x28]
add eax, ebp
cmp eax, dword [rbx + 0x18]
jbe 0x1400a25ac
mov rcx, rsi
call fcn.1400a35a0
cmp dword [rbx + 0x28], edi
jne 0x1400a1f99
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.1400a5760
mov dword [rsi + 0x4c], eax
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.1400a35a0
cmp dword [rbx + 0x28], edi
jne 0x1400a1f99
cmp dword [rsi + 8], edi
jne 0x1400a2618
cmp dword [rbx + 0xfc], edi
jne 0x1400a2618
test r14d, r14d
je 0x1400a2712
cmp dword [rbx + 8], 0x29a
je 0x1400a2712
movsxd rcx, dword [rbx + 0x10c]
mov edx, r14d
test ecx, ecx
jne 0x1400a2630
mov rcx, rbx
call fcn.1400a1280
jmp 0x1400a2667
mov eax, dword [rbx + 0x110]
cmp eax, ebp
jne 0x1400a2644
mov rcx, rbx
call fcn.1400a2e50
jmp 0x1400a2667
cmp eax, 3
jne 0x1400a2653
mov rcx, rbx
call fcn.1400a3020
jmp 0x1400a2667
mov rax, rcx
lea r8, fcn.1400a1280
add rax, rax
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r13d
ja 0x1400a2678
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x1400a282e
cmp ecx, r13d
jne 0x1400a2712
cmp r14d, r13d
jne 0x1400a269c
mov rcx, rbx
call fcn.1400a3980
jmp 0x1400a2701
cmp r14d, 5
je 0x1400a2701
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400a3e40
cmp r14d, 3
jne 0x1400a2701
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.140082560
cmp dword [rbx + 0xfc], edi
jne 0x1400a2701
mov dword [rbx + 0xf4], edi
mov dword [rbx + 0xe4], edi
mov dword [rbx + 0x176c], edi
mov rcx, rsi
call fcn.1400a35a0
cmp dword [rsi + 0x18], edi
je 0x1400a1f99
cmp r14d, r12d
jne 0x1400a1f9d
cmp dword [rbx + 0x2c], edi
jg 0x1400a2728
mov eax, r13d
jmp 0x1400a284c
cmp dword [rbx + 0x2c], ebp
jne 0x1400a27bf
mov rcx, rbx
call fcn.1400a5780
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 0x1400a280b
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.1400a35a0
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x1400a2823
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x1400a284c
cmp dword [rsi + 0x18], edi
jne 0x1400a1f9d
jmp 0x1400a1f99
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