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

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
test rcx, rcx
je 0x1400134ef
cmp qword [rcx + 0x30], 0
je 0x1400134ef
cmp qword [rcx + 0x38], 0
je 0x1400134ef
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x1400134ef
cmp qword [rbx], rcx
jne 0x1400134ef
mov r8d, dword [rbx + 8]
lea eax, [r8 - 0x2a]
cmp eax, 0x3d
ja 0x140012962
movabs rcx, 0x2002000088008001
bt rcx, rax
jb 0x140012975
cmp r8d, 0x71
je 0x140012975
cmp r8d, 0x29a
jne 0x1400134ef
cmp edi, 5
ja 0x1400134ef
cmp qword [rsi + 0x10], 0
je 0x1400134e4
cmp dword [rsi + 8], 0
je 0x140012999
cmp qword [rsi], 0
je 0x1400134e4
cmp r8d, 0x29a
jne 0x1400129ab
cmp edi, 4
jne 0x1400134e4
cmp dword [rsi + 0x18], 0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
je 0x140012a32
mov edx, dword [rbx + 0x40]
xor ebp, ebp
mov dword [rbx + 0x40], edi
cmp dword [rbx + 0x28], ebp
je 0x1400129ee
mov rcx, rsi
call fcn.140012890
cmp dword [rsi + 0x18], ebp
je 0x1400134d6
mov r9d, dword [rbx + 8]
jmp 0x140012a20
mov r9d, r8d
cmp dword [rsi + 8], ebp
jne 0x140012a20
cmp edx, 4
mov r10d, 9
mov eax, ebp
mov ecx, ebp
cmovg eax, r10d
add edx, edx
sub edx, eax
lea eax, [rdi + rdi]
cmp edi, 4
cmovg ecx, r10d
sub eax, ecx
cmp eax, edx
jg 0x140012a20
cmp edi, 4
jne 0x140012a32
cmp r9d, 0x29a
jne 0x140012a63
cmp dword [rsi + 8], ebp
je 0x140012b76
lea rax, str.buffer_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp r9d, 0x2a
jne 0x140012b76
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], 2
mov r8d, ecx
jge 0x140012ab4
mov eax, dword [rbx + 0xac]
cmp eax, 2
jl 0x140012ab4
cmp eax, 6
jge 0x140012a9e
lea eax, [r9 + 0x16]
lea edx, [rax + 0x20]
jmp 0x140012abb
jne 0x140012aaa
mov eax, 0x80
lea edx, [rax + 0x20]
jmp 0x140012abb
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x140012abb
mov eax, ebp
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0x94], ebp
je 0x140012aca
mov ecx, edx
or ecx, r8d
mov eax, 0x8421085
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
inc ecx
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
mov ecx, dword [rbx + 0x28]
inc ecx
mov dword [rbx + 0x28], ecx
cmp dword [rbx + 0x94], ebp
je 0x140012b57
movzx r8d, word [rsi + 0x4e]
mov rax, qword [rbx + 0x10]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
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
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
mov dword [rsi + 0x4c], 1
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.140012890
cmp dword [rbx + 0x28], ebp
jne 0x1400134d6
mov eax, dword [rbx + 8]
cmp eax, 0x39
jne 0x140012c5e
mov dword [rsi + 0x4c], ebp
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
inc dword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x28]
test r8, r8
jne 0x140012ced
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x140012c17
mov dl, 2
jmp 0x140012c2b
cmp dword [rbx + 0xb0], 2
jge 0x140012c29
cmp eax, 2
jl 0x140012c29
xor dl, dl
jmp 0x140012c2b
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0xa
mov rcx, rsi
inc dword [rbx + 0x28]
mov dword [rbx + 8], 0x71
call fcn.140012890
cmp dword [rbx + 0x28], ebp
jne 0x1400134d6
mov eax, dword [rbx + 8]
cmp eax, 0x45
jne 0x140012f2e
mov rcx, qword [rbx + 0x30]
cmp qword [rcx + 0x10], rbp
je 0x140012f25
mov edx, dword [rbx + 0x38]
movzx r13d, word [rcx + 0x18]
mov edi, dword [rbx + 0x28]
sub r13d, edx
mov r12d, dword [rbx + 0x18]
lea eax, [rdi + r13]
cmp eax, r12d
jbe 0x140012ecc
mov ecx, edi
nop word [rax + rax]
mov rax, qword [rbx + 0x30]
sub r12d, ecx
mov edx, dword [rbx + 0x38]
add rcx, qword [rbx + 0x10]
mov r8d, r12d
add rdx, qword [rax + 0x10]
call fcn.14005a6d4
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], ebp
je 0x140012e55
cmp ecx, edi
jbe 0x140012e55
sub ecx, edi
mov edx, edi
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x140012e4a
mov eax, ebp
jmp 0x140012e52
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, 2
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, 4
add dl, cl
cmp dword [r8], ebp
setne al
add dl, al
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dl
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 4]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 5]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 6]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 7]
mov byte [rdx + rcx], al
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x140012d9d
mov dl, 2
jmp 0x140012db1
cmp dword [rbx + 0xb0], 2
jge 0x140012daf
cmp eax, 2
jl 0x140012daf
xor dl, dl
jmp 0x140012db1
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 0xc]
mov byte [rdx + rcx], al
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc ecx
mov dword [rbx + 0x28], ecx
cmp qword [rax + 0x10], rbp
je 0x140012e0b
movzx eax, byte [rax + 0x18]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 0x19]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x140012e3b
mov rdx, qword [rbx + 0x10]
mov r8d, ecx
test rdx, rdx
jne 0x140012e30
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x45
jmp 0x140012c67
mov ecx, dword [rsi + 0x4c]
call fcn.140010630
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x45
jmp 0x140012c67
mov ecx, dword [rsi + 0x4c]
call fcn.140010630
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], r12d
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.140017b30
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x140012ea8
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.14005a6d4
add qword [rsi + 0x10], rdi
add qword [r14 + 0x20], rdi
add dword [rsi + 0x1c], r15d
sub dword [rsi + 0x18], r15d
sub dword [r14 + 0x28], r15d
jne 0x140012ea8
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x1400134d6
sub r13d, r12d
mov ecx, ebp
mov r12d, dword [rbx + 0x18]
mov edi, ebp
cmp r13d, r12d
ja 0x140012ca0
mov rcx, qword [rbx + 0x30]
mov edx, dword [rbx + 0x38]
add rdx, qword [rcx + 0x10]
mov rcx, qword [rbx + 0x10]
mov r14d, edi
add rcx, r14
mov r8d, r13d
call fcn.14005a6d4
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
add ecx, r13d
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], ebp
je 0x140012f22
cmp ecx, edi
jbe 0x140012f22
mov rdx, qword [rbx + 0x10]
sub ecx, edi
mov r8d, ecx
add rdx, r14
jne 0x140012f17
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x49
jmp 0x140012f37
mov ecx, dword [rsi + 0x4c]
call fcn.140010630
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x49
jmp 0x140012f37
cmp eax, 0x49
jne 0x140013055
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rbp
je 0x14001304c
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
nop dword [rax]
cmp r8d, dword [rbx + 0x18]
jne 0x140012fe1
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x140012f83
cmp r8d, r9d
jbe 0x140012f83
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x140012f78
mov eax, ebp
jmp 0x140012f80
mov ecx, dword [rsi + 0x4c]
call fcn.140010630
mov dword [rsi + 0x4c], eax
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.140017b30
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x140012fd2
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.14005a6d4
add qword [rsi + 0x10], rdi
add qword [r14 + 0x20], rdi
add dword [rsi + 0x1c], r15d
sub dword [rsi + 0x18], r15d
sub dword [r14 + 0x28], r15d
jne 0x140012fd2
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x1400134d6
mov r9d, ebp
mov r8d, ebp
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx edx, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test dl, dl
jne 0x140012f50
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x140013049
cmp r8d, r9d
jbe 0x140013049
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x14001303e
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x5b
jmp 0x14001305e
mov ecx, dword [rsi + 0x4c]
call fcn.140010630
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x5b
jmp 0x14001305e
cmp eax, 0x5b
jne 0x14001317a
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rbp
je 0x14001316d
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
cmp r8d, dword [rbx + 0x18]
jne 0x140013104
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x1400130a6
cmp r8d, r9d
jbe 0x1400130a6
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x14001309b
mov eax, ebp
jmp 0x1400130a3
mov ecx, dword [rsi + 0x4c]
call fcn.140010630
mov dword [rsi + 0x4c], eax
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.140017b30
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x1400130f5
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.14005a6d4
add qword [rsi + 0x10], rdi
add qword [r14 + 0x20], rdi
add dword [rsi + 0x1c], r15d
sub dword [rsi + 0x18], r15d
sub dword [r14 + 0x28], r15d
jne 0x1400130f5
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x1400134d6
mov r9d, ebp
mov r8d, ebp
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx edx, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test dl, dl
jne 0x140013073
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x14001316d
cmp r8d, r9d
jbe 0x14001316d
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x140013162
mov edi, dword [rsp + 0x58]
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
jmp 0x14001317f
mov ecx, dword [rsi + 0x4c]
call fcn.140010630
mov dword [rsi + 0x4c], eax
mov edi, dword [rsp + 0x58]
mov dword [rbx + 8], 0x67
jmp 0x14001317f
cmp eax, 0x67
jne 0x1400131e2
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x1400131ca
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rbx + 0x18]
jbe 0x1400131a6
mov rcx, rsi
call fcn.140012890
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x1400134d6
movzx eax, byte [rsi + 0x4c]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov dword [rsi + 0x4c], ebp
mov rcx, rsi
mov dword [rbx + 8], 0x71
call fcn.140012890
cmp dword [rbx + 0x28], ebp
jne 0x1400134d6
cmp dword [rsi + 8], ebp
jne 0x140013204
cmp dword [rbx + 0x9c], ebp
jne 0x140013204
test edi, edi
je 0x1400134dd
cmp dword [rbx + 8], 0x29a
je 0x1400133bb
movsxd rcx, dword [rbx + 0xac]
mov edx, edi
test ecx, ecx
jne 0x14001321b
mov rcx, rbx
call fcn.140013ac0
jmp 0x140013253
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x140013230
mov rcx, rbx
call fcn.140015080
jmp 0x140013253
cmp eax, 3
jne 0x14001323f
mov rcx, rbx
call fcn.140014bf0
jmp 0x140013253
mov rax, rcx
lea r8, fcn.140013ac0
add rax, rax
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
ja 0x140013264
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x1400134d1
cmp ecx, 1
jne 0x1400133bb
cmp edi, ecx
jne 0x140013354
mov ecx, dword [rbx + 0x1714]
mov r8d, 2
mov edx, r8d
shl dx, cl
or dx, word [rbx + 0x1710]
cmp ecx, 0xd
jle 0x1400132ec
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov word [rbx + 0x1710], dx
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rbx + 0x1711]
mov byte [rdx + rcx], al
mov eax, 0x10
movzx ecx, word [rbx + 0x1714]
add dword [rbx + 0x1714], 0xfffffff3
sub al, cl
inc dword [rbx + 0x28]
movzx ecx, al
mov r9d, dword [rbx + 0x1714]
shr r8w, cl
jmp 0x1400132fb
lea r9d, [rcx + 3]
movzx r8d, dx
mov dword [rbx + 0x1714], r9d
mov word [rbx + 0x1710], r8w
cmp r9d, 9
jle 0x140013338
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
movzx r8d, bp
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rbx + 0x1711]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
add dword [rbx + 0x1714], 0xfffffff7
jmp 0x140013342
lea eax, [r9 + 7]
mov dword [rbx + 0x1714], eax
mov rcx, rbx
mov word [rbx + 0x1710], r8w
call fcn.140017b30
jmp 0x1400133aa
cmp edi, 5
je 0x1400133aa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400171d0
cmp edi, 3
jne 0x1400133aa
mov ecx, dword [rbx + 0x74]
xor edx, edx
mov rax, qword [rbx + 0x68]
dec ecx
mov word [rax + rcx*2], bp
mov r8d, dword [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
dec r8d
add r8, r8
call fcn.14005a6ec
cmp dword [rbx + 0x9c], ebp
jne 0x1400133aa
mov dword [rbx + 0x94], ebp
mov dword [rbx + 0x84], ebp
mov dword [rbx + 0x170c], ebp
mov rcx, rsi
call fcn.140012890
cmp dword [rsi + 0x18], ebp
je 0x1400134d6
cmp edi, 4
jne 0x1400134dd
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
jg 0x1400133d3
lea eax, [rdi - 3]
jmp 0x140012a42
cmp ecx, 2
jne 0x140013463
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4e]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4f]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xc]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xd]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xe]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x1400134ac
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
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
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
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
mov rcx, rsi
call fcn.140012890
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x1400134c3
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], ebp
sete bpl
mov eax, ebp
jmp 0x140012a42
cmp dword [rsi + 0x18], ebp
jne 0x1400134dd
mov dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x140012a42
lea rax, str.stream_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffe
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret