Function at 0x18005464c
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 r14d, edx
mov rsi, rcx
test rcx, rcx
je 0x180054f4b
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x180054f4b
cmp edx, 5
ja 0x180054f4b
cmp qword [rcx + 0x10], rdi
je 0x180054f40
cmp qword [rcx], rdi
jne 0x1800546a7
cmp dword [rcx + 8], edi
jne 0x180054f40
cmp dword [rbx + 8], 0x29a
mov ebp, 4
jne 0x1800546be
cmp r14d, ebp
jne 0x180054f40
cmp dword [rcx + 0x18], edi
jne 0x1800546d8
mov rax, qword [0x18005f698]
mov qword [rcx + 0x20], rax
mov eax, 0xfffffffb
jmp 0x180054f50
cmp dword [rbx + 8], 0x2a
mov r13d, 2
mov r15d, dword [rbx + 0x40]
mov qword [rbx], rsi
mov dword [rbx + 0x40], r14d
lea r12d, [r13 - 1]
jne 0x180054a12
cmp dword [rbx + 0x2c], r13d
jne 0x180054921
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180052f8c
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 0x1800547e0
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 0x1800547a5
mov edx, r13d
jmp 0x1800547b7
cmp dword [rbx + 0xb0], r13d
jge 0x1800547b5
mov edx, edi
cmp eax, r13d
jge 0x1800547b7
mov edx, ebp
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 0x180054a12
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, bpl
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 0x18005488f
mov edx, r13d
jmp 0x1800548a1
cmp dword [rbx + 0xb0], r13d
jge 0x18005489f
mov edx, edi
cmp eax, r13d
jge 0x1800548a1
mov edx, ebp
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 0x1800548fa
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 0x180054912
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rsi + 0x4c]
call fcn.180052f8c
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x45
jmp 0x180054a12
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], r13d
jge 0x180054958
mov edx, dword [rbx + 0xac]
cmp edx, r13d
jl 0x180054958
cmp edx, 6
jge 0x18005494b
mov eax, r12d
jmp 0x18005495a
cmp edx, 6
mov eax, edi
setne al
add eax, r13d
jmp 0x18005495a
mov eax, edi
shl eax, 6
or ecx, eax
cmp dword [rbx + 0x94], edi
je 0x18005496a
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 0x180054a03
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 fcn.180052cac
mov dword [rsi + 0x4c], eax
cmp dword [rbx + 8], 0x45
mov ebp, 0x49
jne 0x180054ae6
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x10], rdi
je 0x180054ae3
movzx eax, word [rax + 0x18]
mov r10d, dword [rbx + 0x28]
cmp dword [rbx + 0x38], eax
jae 0x180054aad
mov ecx, dword [rbx + 0x28]
cmp ecx, dword [rbx + 0x18]
jne 0x180054a7d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180054a6a
cmp ecx, r10d
jbe 0x180054a6a
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.180052f8c
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.180055ab4
mov ecx, dword [rbx + 0x28]
mov r10d, ecx
cmp ecx, dword [rbx + 0x18]
je 0x180054aad
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 0x180054a3c
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180054ad4
mov r8d, dword [rbx + 0x28]
cmp r8d, r10d
jbe 0x180054ad4
mov ecx, dword [rsi + 0x4c]
sub r8d, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
call fcn.180052f8c
mov dword [rsi + 0x4c], eax
mov rax, qword [rbx + 0x30]
mov ecx, dword [rax + 0x18]
cmp dword [rbx + 0x38], ecx
jne 0x180054ae6
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], ebp
cmp dword [rbx + 8], ebp
jne 0x180054ba0
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x180054b99
mov edx, dword [rbx + 0x28]
mov r8d, dword [rbx + 0x28]
cmp r8d, dword [rbx + 0x18]
jne 0x180054b41
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180054b2c
cmp r8d, edx
jbe 0x180054b2c
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.180052f8c
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.180055ab4
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x180054b6b
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx ebp, byte [rax + rcx]
lea eax, [rcx + 1]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov ecx, r8d
mov byte [rcx + rax], bpl
add dword [rbx + 0x28], r12d
test ebp, ebp
je 0x180054b6e
jmp 0x180054b00
mov ebp, r12d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180054b92
mov r8d, dword [rbx + 0x28]
cmp r8d, edx
jbe 0x180054b92
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.180052f8c
mov dword [rsi + 0x4c], eax
test ebp, ebp
jne 0x180054ba0
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x5b
cmp dword [rbx + 8], 0x5b
jne 0x180054c58
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x180054c51
mov edx, dword [rbx + 0x28]
mov r8d, dword [rbx + 0x28]
cmp r8d, dword [rbx + 0x18]
jne 0x180054bfc
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180054be7
cmp r8d, edx
jbe 0x180054be7
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.180052f8c
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.180055ab4
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x180054c26
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx ebp, byte [rax + rcx]
lea eax, [rcx + 1]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov ecx, r8d
mov byte [rcx + rax], bpl
add dword [rbx + 0x28], r12d
test ebp, ebp
je 0x180054c29
jmp 0x180054bbb
mov ebp, r12d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180054c4d
mov r8d, dword [rbx + 0x28]
cmp r8d, edx
jbe 0x180054c4d
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.180052f8c
mov dword [rsi + 0x4c], eax
test ebp, ebp
jne 0x180054c58
mov dword [rbx + 8], 0x67
cmp dword [rbx + 8], 0x67
jne 0x180054cbc
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x180054cb5
mov eax, dword [rbx + 0x28]
add eax, r13d
cmp eax, dword [rbx + 0x18]
jbe 0x180054c7a
mov rcx, rsi
call fcn.180055ab4
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rbx + 0x18]
ja 0x180054cbc
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.180052f8c
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x71
cmp dword [rbx + 0x28], edi
je 0x180054cd9
mov rcx, rsi
call fcn.180055ab4
cmp dword [rsi + 0x18], edi
jne 0x180054d1e
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x180054f50
cmp dword [rsi + 8], edi
jne 0x180054d1e
cmp r15d, 4
lea edx, [r15 + r15]
mov r8d, 9
mov eax, edi
cmovg eax, r8d
mov ecx, edi
sub edx, eax
lea eax, [r14 + r14]
cmp r14d, 4
cmovg ecx, r8d
sub eax, ecx
cmp eax, edx
jg 0x180054d1e
cmp r14d, 4
je 0x180054d1e
mov rax, qword [0x18005f698]
mov qword [rsi + 0x20], rax
jmp 0x1800546ce
mov ebp, 0x29a
cmp dword [rbx + 8], ebp
jne 0x180054d2f
cmp dword [rsi + 8], edi
je 0x180054d34
jmp 0x180054d0e
cmp dword [rsi + 8], edi
jne 0x180054d4e
cmp dword [rbx + 0x9c], edi
jne 0x180054d4e
test r14d, r14d
je 0x180054e1c
cmp dword [rbx + 8], ebp
je 0x180054e1c
mov eax, dword [rbx + 0xb0]
mov edx, r14d
mov rcx, rbx
cmp eax, r13d
jne 0x180054d66
call fcn.1800553a0
jmp 0x180054d87
cmp eax, 3
jne 0x180054d72
call fcn.180055554
jmp 0x180054d87
movsxd rax, dword [rbx + 0xac]
lea r8, [0x18005f7c8]
add rax, rax
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r12d
ja 0x180054d94
mov dword [rbx + 8], ebp
test ecx, 0xfffffffd
je 0x180054f32
cmp ecx, r12d
jne 0x180054e1c
cmp r14d, r12d
jne 0x180054db4
mov rcx, rbx
call fcn.180055e10
jmp 0x180054e0b
cmp r14d, 5
je 0x180054e0b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1800561d4
cmp r14d, 3
jne 0x180054e0b
mov ecx, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub ecx, r12d
mov word [rax + rcx*2], di
mov edx, dword [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
lea edx, [rdx*2 - 2]
call fcn.1800532d8
cmp dword [rbx + 0x9c], edi
jne 0x180054e0b
mov dword [rbx + 0x94], edi
mov dword [rbx + 0x84], edi
mov dword [rbx + 0x170c], edi
mov rcx, rsi
call fcn.180055ab4
cmp dword [rsi + 0x18], edi
je 0x180054cce
cmp r14d, 4
jne 0x180054cd2
cmp dword [rbx + 0x2c], edi
jg 0x180054e33
mov eax, r12d
jmp 0x180054f50
cmp dword [rbx + 0x2c], r13d
jne 0x180054ec3
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 0x180054f0f
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.180055ab4
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x180054f27
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x180054f50
cmp dword [rsi + 0x18], edi
jne 0x180054cd2
jmp 0x180054cce
mov rax, qword [0x18005f680]
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