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

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push r15
sub rsp, 0x40
mov r15d, edx
mov rsi, rcx
test rcx, rcx
je 0x14001046a
cmp qword [rcx + 0x30], 0
je 0x14001046a
cmp qword [rcx + 0x38], 0
je 0x14001046a
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x14001046a
cmp qword [rbx], rcx
jne 0x14001046a
mov ecx, dword [rbx + 8]
cmp ecx, 0x2a
je 0x14000f803
lea eax, [rcx - 0x39]
cmp eax, 0x38
ja 0x14000f7f7
movabs rdx, 0x100400400011001
bt rdx, rax
jb 0x14000f803
cmp ecx, 0x29a
jne 0x14001046a
cmp qword [rsi + 0x10], 0
je 0x14001045f
cmp dword [rsi + 8], 0
je 0x14000f81e
cmp qword [rsi], 0
je 0x14001045f
cmp ecx, 0x29a
jne 0x14000f830
cmp r15d, 4
jne 0x14001045f
cmp dword [rsi + 0x18], 0
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
je 0x14000f930
mov edx, dword [rbx + 0x40]
xor r13d, r13d
mov dword [rbx + 0x40], r15d
cmp dword [rbx + 0x28], r13d
je 0x14000f8e7
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x14000f8b6
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x14000f8b6
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
cmp dword [rsi + 0x18], r13d
jne 0x14000f91c
mov dword [rbx + 0x40], 0xffffffff
xor eax, eax
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x70]
mov r14, qword [rsp + 0x20]
add rsp, 0x40
pop r15
pop rsi
pop rbx
ret
cmp dword [rsi + 8], r13d
jne 0x14000f91c
cmp edx, 4
mov r8d, 9
mov eax, r13d
mov ecx, r13d
cmovg eax, r8d
add edx, edx
sub edx, eax
lea eax, [r15 + r15]
cmp r15d, 4
cmovg ecx, r8d
sub eax, ecx
cmp eax, edx
jg 0x14000f91c
cmp r15d, 4
jne 0x14000f930
mov eax, dword [rbx + 8]
cmp eax, 0x29a
jne 0x14000f942
cmp dword [rsi + 8], r13d
je 0x14000fac2
lea rax, str.buffer_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x14000f8c5
cmp eax, 0x2a
jne 0x14000fac2
cmp dword [rbx + 0x2c], r13d
jne 0x14000f95d
mov dword [rbx + 8], 0x71
jmp 0x14000fac2
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], 2
mov r8d, ecx
jge 0x14000f9ab
mov eax, dword [rbx + 0xac]
cmp eax, 2
jl 0x14000f9ab
cmp eax, 6
jge 0x14000f991
mov eax, 0x40
mov edx, 0x60
jmp 0x14000f9b3
jne 0x14000f99f
mov eax, 0x80
mov edx, 0xa0
jmp 0x14000f9b3
mov eax, 0xc0
mov edx, 0xe0
jmp 0x14000f9b3
mov eax, r13d
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0x94], r13d
je 0x14000f9c3
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
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r8b
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp dword [rbx + 0x94], r13d
je 0x14000fa5b
movzx r8d, word [rsi + 0x4e]
mov ecx, eax
mov edx, r8d
mov rax, qword [rbx + 0x10]
shr edx, 8
mov byte [rcx + rax], dl
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r8b
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx r8d, word [rsi + 0x4c]
mov ecx, r8d
shr ecx, 8
mov byte [rdx + rax], cl
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
mov dword [rsi + 0x4c], 1
mov dword [rbx + 8], 0x71
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x14000fab8
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x14000fab8
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
cmp dword [rbx + 0x28], r13d
jne 0x14000f8bc
cmp dword [rbx + 8], 0x39
jne 0x14000fd66
xor r8d, r8d
lea rdi, [rsi + 0x4c]
xor edx, edx
xor ecx, ecx
call fcn.14000ee10
mov dword [rdi], eax
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], 0x8b
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], 8
mov r8d, dword [rbx + 0x28]
mov r9, qword [rbx + 0x30]
inc r8d
mov dword [rbx + 0x28], r8d
test r9, r9
jne 0x14000fc13
mov rax, qword [rbx + 0x10]
mov byte [r8 + rax], r13b
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r13b
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r13b
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r13b
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r13b
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x14000fb80
mov dl, 2
jmp 0x14000fb94
cmp dword [rbx + 0xb0], 2
jge 0x14000fb92
cmp eax, 2
jl 0x14000fb92
xor dl, dl
jmp 0x14000fb94
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], 0xa
inc dword [rbx + 0x28]
mov dword [rbx + 8], 0x71
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x14000fc04
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x14000fc04
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
cmp dword [rbx + 0x28], r13d
jne 0x14000f8bc
jmp 0x14000fd66
mov rax, qword [r9 + 0x30]
neg rax
mov eax, dword [r9 + 0x3c]
sbb dl, dl
and dl, 0x10
neg eax
mov rax, qword [r9 + 0x10]
sbb cl, cl
and cl, 2
add dl, cl
neg rax
mov rax, qword [r9 + 0x20]
sbb cl, cl
and cl, 4
add dl, cl
neg rax
sbb cl, cl
and cl, 8
add dl, cl
cmp dword [r9], r13d
setne al
add dl, al
mov rax, qword [rbx + 0x10]
mov byte [r8 + rax], dl
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc edx
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], edx
movzx eax, byte [rax + 4]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc edx
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], edx
movzx eax, byte [rax + 5]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc edx
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], edx
movzx eax, byte [rax + 6]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc edx
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], edx
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 0x14000fccb
mov dl, 2
jmp 0x14000fce3
cmp dword [rbx + 0xb0], 2
jge 0x14000fce1
lea rdi, [rsi + 0x4c]
cmp eax, 2
jl 0x14000fce1
xor dl, dl
jmp 0x14000fce3
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc edx
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], edx
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], r13
je 0x14000fd41
movzx eax, byte [rax + 0x18]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc edx
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], edx
movzx eax, byte [rax + 0x19]
mov byte [rdx + rcx], al
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
mov ecx, eax
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r13d
je 0x14000fd5b
mov rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rdi]
call fcn.14000ee10
mov dword [rdi], eax
mov dword [rbx + 0x38], r13d
mov dword [rbx + 8], 0x45
mov eax, dword [rbx + 8]
cmp eax, 0x45
jne 0x14000feaf
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x10], r13
je 0x14000fea6
movzx r12d, word [rax + 0x18]
sub r12d, dword [rbx + 0x38]
mov edi, dword [rbx + 0x28]
mov r15d, dword [rbx + 0x18]
mov ecx, edi
lea eax, [rdi + r12]
cmp eax, r15d
jbe 0x14000fe59
nop
mov rax, qword [rbx + 0x30]
sub r15d, ecx
mov edx, dword [rbx + 0x38]
add rcx, qword [rbx + 0x10]
mov r8d, r15d
add rdx, qword [rax + 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], r13d
je 0x14000fde4
cmp ecx, edi
jbe 0x14000fde4
sub ecx, edi
mov edx, edi
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.14000ee10
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], r15d
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x14000fe37
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x14000fe37
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x14000f8bc
sub r12d, r15d
mov edi, r13d
mov r15d, dword [rbx + 0x18]
lea eax, [rcx + r12]
cmp eax, r15d
ja 0x14000fda0
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x38]
add rcx, qword [rbx + 0x10]
mov r8d, r12d
add rdx, qword [rax + 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
add ecx, r12d
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], r13d
je 0x14000fe9d
cmp ecx, edi
jbe 0x14000fe9d
sub ecx, edi
mov edx, edi
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.14000ee10
mov dword [rsi + 0x4c], eax
mov r15d, dword [rsp + 0x68]
mov dword [rbx + 0x38], r13d
mov dword [rbx + 8], 0x49
jmp 0x14000feb8
cmp eax, 0x49
jne 0x14000ffc0
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], r13
je 0x14000ffb7
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
nop dword [rax]
cmp r8d, dword [rbx + 0x18]
jne 0x14000ff5d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r13d
je 0x14000fefe
cmp r8d, r9d
jbe 0x14000fefe
mov ecx, dword [rsi + 0x4c]
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
call fcn.14000ee10
mov dword [rsi + 0x4c], eax
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x14000ff4d
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x14000ff4d
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov r8d, dword [rbx + 0x28]
test r8d, r8d
jne 0x14000f8bc
mov r9d, r13d
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 0x14000fed0
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r13d
je 0x14000ffb3
cmp r8d, r9d
jbe 0x14000ffb3
mov ecx, dword [rsi + 0x4c]
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
call fcn.14000ee10
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], r13d
mov dword [rbx + 8], 0x5b
jmp 0x14000ffc9
cmp eax, 0x5b
jne 0x1400100cc
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], r13
je 0x1400100c3
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
nop
cmp r8d, dword [rbx + 0x18]
jne 0x14001006d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r13d
je 0x14001000e
cmp r8d, r9d
jbe 0x14001000e
mov ecx, dword [rsi + 0x4c]
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
call fcn.14000ee10
mov dword [rsi + 0x4c], eax
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x14001005d
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x14001005d
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov r8d, dword [rbx + 0x28]
test r8d, r8d
jne 0x14000f8bc
mov r9d, r13d
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 0x14000ffe0
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r13d
je 0x1400100c3
cmp r8d, r9d
jbe 0x1400100c3
mov ecx, dword [rsi + 0x4c]
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
call fcn.14000ee10
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
jmp 0x1400100d5
cmp eax, 0x67
jne 0x1400101da
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r13d
je 0x14001017a
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rbx + 0x18]
jbe 0x140010148
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x14001013d
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x14001013d
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x14000f8bc
movzx eax, byte [rsi + 0x4c]
xor r8d, r8d
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0x4d]
mov byte [rdx + rcx], al
xor edx, edx
inc dword [rbx + 0x28]
xor ecx, ecx
call fcn.14000ee10
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x71
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x1400101d0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x1400101d0
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
cmp dword [rbx + 0x28], r13d
jne 0x14000f8bc
cmp dword [rsi + 8], r13d
jne 0x1400101ff
cmp dword [rbx + 0x9c], r13d
jne 0x1400101ff
test r15d, r15d
je 0x14000f8c3
cmp dword [rbx + 8], 0x29a
je 0x1400102da
movsxd rcx, dword [rbx + 0xac]
mov edx, r15d
test ecx, ecx
jne 0x140010217
mov rcx, rbx
call fcn.140010ab0
jmp 0x14001024f
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x14001022c
mov rcx, rbx
call fcn.140012060
jmp 0x14001024f
cmp eax, 3
jne 0x14001023b
mov rcx, rbx
call fcn.140011c10
jmp 0x14001024f
mov rax, rcx
lea r8, fcn.140010ab0
add rax, rax
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
ja 0x140010260
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x140010450
cmp ecx, 1
jne 0x1400102da
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140015a90
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x1400102d0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x1400102d0
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
cmp dword [rsi + 0x18], r13d
je 0x14000f8bc
cmp r15d, 4
jne 0x14000f8c3
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
jg 0x1400102f5
mov eax, 1
jmp 0x14000f8c5
cmp ecx, 2
jne 0x140010393
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0x4d]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0x4e]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0x4f]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0xc]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0xd]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0xe]
mov byte [rdx + rcx], al
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx eax, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x1400103e2
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
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r8b
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc edx
mov dword [rbx + 0x28], edx
movzx r8d, word [rsi + 0x4c]
mov ecx, r8d
shr ecx, 8
mov byte [rdx + rax], cl
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
mov rbp, qword [rsi + 0x28]
mov rcx, rbp
call fcn.140015be0
mov r14d, dword [rsi + 0x18]
cmp dword [rbp + 0x28], r14d
cmovbe r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x140010434
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x10], rdi
add qword [rbp + 0x20], rdi
add dword [rsi + 0x1c], r14d
sub dword [rsi + 0x18], r14d
sub dword [rbp + 0x28], r14d
jne 0x140010434
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x140010440
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], r13d
sete r13b
mov eax, r13d
jmp 0x14000f8c5
cmp dword [rsi + 0x18], r13d
jne 0x14000f8c3
jmp 0x14000f8bc
lea rax, str.stream_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffe
add rsp, 0x40
pop r15
pop rsi
pop rbx
ret