Function at 0x1400f4838
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.1400f45d4
xor edi, edi
test eax, eax
jne 0x1400f51e5
cmp r14d, 5
ja 0x1400f51e5
mov rbx, qword [rsi + 0x28]
cmp qword [rsi + 0x10], rdi
je 0x1400f51da
cmp dword [rsi + 8], edi
je 0x1400f488f
cmp qword [rsi], rdi
je 0x1400f51da
mov ebp, 0x29a
mov r12d, 4
cmp dword [rbx + 8], ebp
jne 0x1400f48a8
cmp r14d, r12d
jne 0x1400f51da
cmp dword [rsi + 0x18], edi
jne 0x1400f48c2
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x1400f51ea
mov r15d, 9
mov edx, dword [rbx + 0x40]
mov dword [rbx + 0x40], r14d
cmp dword [rbx + 0x28], edi
je 0x1400f48ec
mov rcx, rsi
call fcn.1400f47c4
cmp dword [rsi + 0x18], edi
jne 0x1400f4916
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x1400f51ea
cmp dword [rsi + 8], edi
jne 0x1400f4916
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 0x1400f4916
cmp r14d, r12d
jne 0x1400f48ad
cmp dword [rbx + 8], ebp
jne 0x1400f4920
cmp dword [rsi + 8], edi
jne 0x1400f48ad
cmp dword [rbx + 8], 0x2a
mov ebp, 2
lea r13d, [rbp - 1]
jne 0x1400f4a2a
mov ecx, dword [rbx + 0xa4]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0x110], ebp
jge 0x1400f496a
mov edx, dword [rbx + 0x10c]
cmp edx, ebp
jl 0x1400f496a
cmp edx, 6
jge 0x1400f495e
mov eax, r13d
jmp 0x1400f496c
cmp edx, 6
mov eax, edi
setne al
add eax, ebp
jmp 0x1400f496c
mov eax, edi
shl eax, 6
or ecx, eax
cmp dword [rbx + 0xf4], edi
je 0x1400f497c
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 0x1400f4a0e
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 dword [rsi + 0x4c], r13d
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.1400f47c4
cmp dword [rbx + 0x28], edi
jne 0x1400f48e1
cmp dword [rbx + 8], 0x39
jne 0x1400f4c97
cmp dword [0x14017c370], edi
je 0x1400f4a6f
movdqu xmm2, xmmword [rbx + 0x90]
mov eax, 0x9db42487
xorps xmm1, xmm1
movd xmm0, eax
movdqu xmmword [rbx + 0x50], xmm0
movdqu xmmword [rbx + 0x60], xmm1
movdqu xmmword [rbx + 0x70], xmm1
movdqu xmmword [rbx + 0x80], xmm1
movdqu xmmword [rbx + 0x90], xmm2
mov rax, qword [rbx]
mov dword [rax + 0x4c], edi
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 0x1400f4b54
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 0x1400f4b09
mov edx, ebp
jmp 0x1400f4b1a
cmp dword [rbx + 0x110], ebp
jge 0x1400f4b17
mov edx, edi
cmp eax, ebp
jge 0x1400f4b1a
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.1400f47c4
cmp dword [rbx + 0x28], edi
je 0x1400f4c97
jmp 0x1400f48e1
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 0x1400f4c02
mov edx, ebp
jmp 0x1400f4c13
cmp dword [rbx + 0x110], ebp
jge 0x1400f4c10
mov edx, edi
cmp eax, ebp
jge 0x1400f4c13
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 0x1400f4c6c
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 0x1400f4c8d
mov rdx, qword [rbx + 0x10]
test rdx, rdx
jne 0x1400f4c82
mov eax, edi
jmp 0x1400f4c8a
mov ecx, dword [rsi + 0x4c]
call fcn.1400b58a4
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x45
cmp dword [rbx + 8], 0x45
jne 0x1400f4d99
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x10], rdi
je 0x1400f4d92
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 0x1400f4d40
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.140112c10
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], edi
je 0x1400f4d15
cmp ecx, ebp
jbe 0x1400f4d15
sub ecx, ebp
mov edx, ebp
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x1400f4d0a
mov eax, edi
jmp 0x1400f4d12
mov ecx, dword [rsi + 0x4c]
call fcn.1400b58a4
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], r12d
mov rcx, rsi
call fcn.1400f47c4
cmp dword [rbx + 0x28], edi
jne 0x1400f48e1
mov ecx, dword [rbx + 0x28]
sub r15d, r12d
add ecx, r15d
mov ebp, edi
cmp ecx, dword [rbx + 0x18]
ja 0x1400f4cc5
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.140112c10
add dword [rbx + 0x28], r15d
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x28]
cmp dword [rax + 0x3c], edi
je 0x1400f4d8a
cmp ecx, ebp
jbe 0x1400f4d8a
sub ecx, ebp
mov edx, ebp
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x1400f4d7f
mov eax, edi
jmp 0x1400f4d87
mov ecx, dword [rsi + 0x4c]
call fcn.1400b58a4
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov ebp, 2
mov dword [rbx + 8], 0x49
cmp dword [rbx + 8], 0x49
jne 0x1400f4e64
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x1400f4e5d
mov r8d, dword [rbx + 0x28]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x1400f4e02
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400f4dee
mov eax, dword [rbx + 0x28]
cmp eax, r8d
jbe 0x1400f4dee
sub eax, r8d
mov edx, r8d
mov ecx, eax
add rdx, qword [rbx + 0x10]
jne 0x1400f4de0
mov eax, edi
jmp 0x1400f4deb
mov r8, rcx
mov ecx, dword [rsi + 0x4c]
call fcn.1400b58a4
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.1400f47c4
cmp dword [rbx + 0x28], edi
jne 0x1400f48e1
mov r8d, 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 0x1400f4db5
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400f4e5a
cmp ecx, r8d
jbe 0x1400f4e5a
sub ecx, r8d
mov edx, r8d
mov eax, ecx
add rdx, qword [rbx + 0x10]
jne 0x1400f4e4c
mov eax, edi
jmp 0x1400f4e57
mov ecx, dword [rsi + 0x4c]
mov r8, rax
call fcn.1400b58a4
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x5b
cmp dword [rbx + 8], 0x5b
jne 0x1400f4f2c
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x1400f4f25
mov r8d, dword [rbx + 0x28]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x1400f4ecd
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400f4eb9
mov eax, dword [rbx + 0x28]
cmp eax, r8d
jbe 0x1400f4eb9
sub eax, r8d
mov edx, r8d
mov ecx, eax
add rdx, qword [rbx + 0x10]
jne 0x1400f4eab
mov eax, edi
jmp 0x1400f4eb6
mov r8, rcx
mov ecx, dword [rsi + 0x4c]
call fcn.1400b58a4
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.1400f47c4
cmp dword [rbx + 0x28], edi
jne 0x1400f48e1
mov r8d, 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 0x1400f4e80
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400f4f25
cmp ecx, r8d
jbe 0x1400f4f25
sub ecx, r8d
mov edx, r8d
mov eax, ecx
add rdx, qword [rbx + 0x10]
jne 0x1400f4f17
mov eax, edi
jmp 0x1400f4f22
mov ecx, dword [rsi + 0x4c]
mov r8, rax
call fcn.1400b58a4
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
cmp dword [rbx + 8], 0x67
jne 0x1400f4f93
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1400f4f7b
mov eax, dword [rbx + 0x28]
add eax, ebp
cmp eax, dword [rbx + 0x18]
jbe 0x1400f4f56
mov rcx, rsi
call fcn.1400f47c4
cmp dword [rbx + 0x28], edi
jne 0x1400f48e1
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 dword [rsi + 0x4c], edi
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.1400f47c4
cmp dword [rbx + 0x28], edi
jne 0x1400f48e1
cmp dword [rsi + 8], edi
jne 0x1400f4fb6
cmp dword [rbx + 0xfc], edi
jne 0x1400f4fb6
test r14d, r14d
je 0x1400f50b0
cmp dword [rbx + 8], 0x29a
je 0x1400f50b0
movsxd rcx, dword [rbx + 0x10c]
mov edx, r14d
test ecx, ecx
jne 0x1400f4fce
mov rcx, rbx
call fcn.1400f5780
jmp 0x1400f5005
mov eax, dword [rbx + 0x110]
cmp eax, ebp
jne 0x1400f4fe2
mov rcx, rbx
call fcn.1400f6718
jmp 0x1400f5005
cmp eax, 3
jne 0x1400f4ff1
mov rcx, rbx
call fcn.1400f63e4
jmp 0x1400f5005
mov rax, rcx
lea r8, fcn.1400f5780
add rax, rax
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r13d
ja 0x1400f5016
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x1400f51cc
cmp ecx, r13d
jne 0x1400f50b0
cmp r14d, r13d
jne 0x1400f503a
mov rcx, rbx
call fcn.1400f7c20
jmp 0x1400f509f
cmp r14d, 5
je 0x1400f509f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400f7b24
cmp r14d, 3
jne 0x1400f509f
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.140113400
cmp dword [rbx + 0xfc], edi
jne 0x1400f509f
mov dword [rbx + 0xf4], edi
mov dword [rbx + 0xe4], edi
mov dword [rbx + 0x176c], edi
mov rcx, rsi
call fcn.1400f47c4
cmp dword [rsi + 0x18], edi
je 0x1400f48e1
cmp r14d, r12d
jne 0x1400f48e5
cmp dword [rbx + 0x2c], edi
jg 0x1400f50c6
mov eax, r13d
jmp 0x1400f51ea
cmp dword [rbx + 0x2c], ebp
jne 0x1400f515d
mov rcx, rbx
call fcn.1400b5bb8
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 0x1400f51a9
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.1400f47c4
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x1400f51c1
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x1400f51ea
cmp dword [rsi + 0x18], edi
jne 0x1400f48e5
jmp 0x1400f48e1
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