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

Disassembly:
mov dword [rsp + 0x10], edx
push rsi
sub rsp, 0x50
mov r8d, edx
mov rsi, rcx
test rcx, rcx
je 0x18012af40
cmp qword [rcx + 0x30], 0
je 0x18012af40
cmp qword [rcx + 0x38], 0
je 0x18012af40
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x18012af40
cmp qword [rax], rcx
jne 0x18012af40
mov ecx, dword [rax + 8]
lea eax, [rcx - 0x2a]
cmp eax, 0x3d
ja 0x18012a13f
movabs rdx, 0x2002000088008001
bt rdx, rax
jb 0x18012a150
cmp ecx, 0x71
je 0x18012a150
cmp ecx, 0x29a
jne 0x18012af40
cmp r8d, 5
ja 0x18012af40
cmp qword [rsi + 0x10], 0
mov qword [rsp + 0x70], rbx
mov rbx, qword [rsi + 0x28]
je 0x18012af25
cmp dword [rsi + 8], 0
je 0x18012a17e
cmp qword [rsi], 0
je 0x18012af25
cmp dword [rbx + 8], 0x29a
jne 0x18012a191
cmp r8d, 4
jne 0x18012af25
cmp dword [rsi + 0x18], 0
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
je 0x18012a266
mov edx, dword [rbx + 0x40]
xor ebp, ebp
mov dword [rbx + 0x40], r8d
cmp dword [rbx + 0x28], ebp
je 0x18012a221
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012a216
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012a216
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rsi + 0x18], ebp
je 0x18012af17
jmp 0x18012a253
cmp dword [rsi + 8], ebp
jne 0x18012a253
cmp edx, 4
mov r9d, 9
mov eax, ebp
mov ecx, ebp
cmovg eax, r9d
add edx, edx
sub edx, eax
lea eax, [r8 + r8]
cmp r8d, 4
cmovg ecx, r9d
sub eax, ecx
cmp eax, edx
jg 0x18012a253
cmp r8d, 4
jne 0x18012a266
mov eax, dword [rbx + 8]
cmp eax, 0x29a
jne 0x18012a29f
cmp dword [rsi + 8], ebp
je 0x18012a3f9
lea rax, str.buffer_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov r15, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
cmp eax, 0x2a
jne 0x18012a3f9
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], 2
mov r8d, ecx
jge 0x18012a2f0
mov eax, dword [rbx + 0xac]
cmp eax, 2
jl 0x18012a2f0
cmp eax, 6
jge 0x18012a2da
mov eax, 0x40
lea edx, [rax + 0x20]
jmp 0x18012a2f7
jne 0x18012a2e6
mov eax, pe_nt_image_headers64
lea edx, [rax + 0x20]
jmp 0x18012a2f7
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x18012a2f7
mov eax, ebp
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0x94], ebp
je 0x18012a306
mov ecx, r8d
or ecx, edx
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 0x18012a393
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 dword [rbx + 8], 0x71
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012a3f0
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012a3f0
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x18012af17
cmp dword [rbx + 8], 0x39
jne 0x18012a698
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 0x18012a538
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], bpl
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
mov ecx, eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
mov ecx, eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
mov ecx, eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
mov ecx, eax
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 0x18012a4a8
mov dl, 2
jmp 0x18012a4bc
cmp dword [rbx + 0xb0], 2
jge 0x18012a4ba
cmp eax, 2
jl 0x18012a4ba
xor dl, dl
jmp 0x18012a4bc
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
inc dword [rbx + 0x28]
mov dword [rbx + 8], 0x71
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012a52a
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012a52a
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x18012af17
jmp 0x18012a698
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
mov eax, dword [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
inc eax
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], eax
mov r8d, eax
movzx eax, byte [rdx + 4]
mov byte [r8 + rcx], al
mov eax, dword [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
inc eax
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], eax
mov r8d, eax
movzx eax, byte [rdx + 5]
mov byte [r8 + rcx], al
mov eax, dword [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
inc eax
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], eax
mov r8d, eax
movzx eax, byte [rdx + 6]
mov byte [r8 + rcx], al
mov eax, dword [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
inc eax
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x28], eax
mov r8d, eax
movzx eax, byte [rdx + 7]
mov byte [r8 + rcx], al
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x18012a600
mov dl, 2
jmp 0x18012a614
cmp dword [rbx + 0xb0], 2
jge 0x18012a612
cmp eax, 2
jl 0x18012a612
xor dl, dl
jmp 0x18012a614
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 0x18012a66a
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 0x18012a68e
mov rdx, qword [rbx + 0x10]
mov r8d, ecx
test rdx, rdx
jne 0x18012a683
mov eax, ebp
jmp 0x18012a68b
mov ecx, dword [rsi + 0x4c]
call fcn.18012ccf0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x45
mov ecx, dword [rbx + 8]
lea r13, [rbx + 0x30]
cmp ecx, 0x45
jne 0x18012a80c
mov rax, qword [r13]
cmp qword [rax + 0x10], rbp
je 0x18012a803
movzx r14d, word [rax + 0x18]
sub r14d, dword [rbx + 0x38]
mov edi, dword [rbx + 0x28]
mov r12d, dword [rbx + 0x18]
mov r9d, edi
mov dword [rsp + 0x60], r14d
lea eax, [rdi + r14]
cmp eax, r12d
jbe 0x18012a7a7
mov ecx, edi
nop dword [rax]
mov rax, qword [r13]
sub r12d, ecx
mov edx, dword [rbx + 0x38]
add rcx, qword [rbx + 0x10]
mov r8d, r12d
add rdx, qword [rax + 0x10]
call fcn.180298b10
mov rax, qword [r13]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], ebp
je 0x18012a729
cmp ecx, edi
jbe 0x18012a729
sub ecx, edi
mov edx, edi
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x18012a71e
mov eax, ebp
jmp 0x18012a726
mov ecx, dword [rsi + 0x4c]
call fcn.18012ccf0
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], r12d
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012a77c
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012a77c
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
mov r9d, dword [rbx + 0x28]
test r9d, r9d
jne 0x18012af17
mov r14d, dword [rsp + 0x60]
mov edi, ebp
sub r14d, r12d
mov ecx, ebp
mov r12d, dword [rbx + 0x18]
mov dword [rsp + 0x60], r14d
cmp r14d, r12d
ja 0x18012a6e0
mov rax, qword [r13]
mov edx, dword [rbx + 0x38]
mov ecx, r9d
add rcx, qword [rbx + 0x10]
add rdx, qword [rax + 0x10]
mov r8d, r14d
call fcn.180298b10
mov ecx, dword [rbx + 0x28]
mov rax, qword [r13]
add ecx, r14d
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], ebp
je 0x18012a800
cmp ecx, edi
jbe 0x18012a800
sub ecx, edi
mov edx, edi
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x18012a7f5
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x49
jmp 0x18012a815
mov ecx, dword [rsi + 0x4c]
call fcn.18012ccf0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x49
jmp 0x18012a815
cmp ecx, 0x49
jne 0x18012a934
mov rax, qword [r13]
cmp qword [rax + 0x20], rbp
je 0x18012a91f
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
nop word [rax + rax]
cmp r8d, dword [rbx + 0x18]
jne 0x18012a8c1
mov rax, qword [r13]
cmp dword [rax + 0x3c], ebp
je 0x18012a863
cmp r8d, r9d
jbe 0x18012a863
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x18012a858
mov eax, ebp
jmp 0x18012a860
mov ecx, dword [rsi + 0x4c]
call fcn.18012ccf0
mov dword [rsi + 0x4c], eax
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012a8b2
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012a8b2
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x18012af17
mov r9d, ebp
mov r8d, ebp
mov ecx, dword [rbx + 0x38]
mov rax, qword [r13]
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 0x18012a830
mov rax, qword [r13]
cmp dword [rax + 0x3c], ebp
je 0x18012a91c
cmp r8d, r9d
jbe 0x18012a91c
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x18012a911
mov eax, ebp
jmp 0x18012a919
mov ecx, dword [rsi + 0x4c]
call fcn.18012ccf0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov rdx, rbx
mov dword [rbx + 8], 0x5b
add rdx, 0x18
mov qword [rsp + 0x60], rdx
jmp 0x18012a949
lea rax, [rbx + 0x18]
mov qword [rsp + 0x60], rax
mov rdx, rax
cmp ecx, 0x5b
jne 0x18012aa70
mov rax, qword [r13]
lea r12, [rbx + 0x10]
cmp qword [rax + 0x30], rbp
je 0x18012aa62
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
cmp r8d, dword [rdx]
jne 0x18012a9f2
mov rax, qword [r13]
cmp dword [rax + 0x3c], ebp
je 0x18012a994
cmp r8d, r9d
jbe 0x18012a994
sub r8d, r9d
mov edx, r9d
add rdx, qword [r12]
jne 0x18012a989
mov eax, ebp
jmp 0x18012a991
mov ecx, dword [rsi + 0x4c]
call fcn.18012ccf0
mov dword [rsi + 0x4c], eax
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012a9e3
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012a9e3
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x18012af17
mov r9d, ebp
mov r8d, ebp
mov ecx, dword [rbx + 0x38]
mov rax, qword [r13]
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 [r12]
mov byte [rcx + rax], dl
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test dl, dl
je 0x18012aa2a
mov rdx, qword [rsp + 0x60]
jmp 0x18012a962
mov rax, qword [r13]
cmp dword [rax + 0x3c], ebp
je 0x18012aa62
cmp r8d, r9d
jbe 0x18012aa62
sub r8d, r9d
mov edx, r9d
add rdx, qword [r12]
jne 0x18012aa57
mov rdx, qword [rsp + 0x60]
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
jmp 0x18012aa7d
mov ecx, dword [rsi + 0x4c]
call fcn.18012ccf0
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsp + 0x60]
mov dword [rbx + 8], 0x67
jmp 0x18012aa7d
lea r12, [rbx + 0x10]
cmp ecx, 0x67
jne 0x18012ab71
mov rax, qword [r13]
cmp dword [rax + 0x3c], ebp
je 0x18012ab12
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rdx]
jbe 0x18012aaee
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012aae3
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012aae3
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x18012af17
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 dword [rbx + 8], 0x71
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012ab68
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012ab68
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x18012af17
mov edi, dword [rsp + 0x68]
cmp dword [rsi + 8], ebp
jne 0x18012ab97
cmp dword [rbx + 0x9c], ebp
jne 0x18012ab97
test edi, edi
je 0x18012af1e
cmp dword [rbx + 8], 0x29a
je 0x18012ad99
movsxd rcx, dword [rbx + 0xac]
mov edx, edi
test ecx, ecx
jne 0x18012abae
mov rcx, rbx
call fcn.18012b4f0
jmp 0x18012abe6
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x18012abc3
mov rcx, rbx
call fcn.18012ca10
jmp 0x18012abe6
cmp eax, 3
jne 0x18012abd2
mov rcx, rbx
call fcn.18012c5e0
jmp 0x18012abe6
mov rax, rcx
lea r8, fcn.18012b4f0
add rax, rax
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
ja 0x18012abf7
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x18012af12
cmp ecx, 1
jne 0x18012ad99
cmp edi, ecx
jne 0x18012ace7
mov ecx, dword [rbx + 0x1714]
mov r8d, 2
mov edx, r8d
shl dx, cl
or dx, word [rbx + 0x1710]
cmp ecx, 0xd
jle 0x18012ac7f
mov ecx, dword [rbx + 0x28]
mov rax, qword [r12]
mov word [rbx + 0x1710], dx
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [r12]
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 0x18012ac8e
lea r9d, [rcx + 3]
movzx r8d, dx
mov dword [rbx + 0x1714], r9d
cmp r9d, 9
jle 0x18012accb
mov ecx, dword [rbx + 0x28]
mov rax, qword [r12]
mov word [rbx + 0x1710], r8w
mov byte [rcx + rax], r8b
movzx r8d, bp
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [r12]
movzx eax, byte [rbx + 0x1711]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
add dword [rbx + 0x1714], 0xfffffff7
jmp 0x18012acd5
lea eax, [r9 + 7]
mov dword [rbx + 0x1714], eax
mov rcx, rbx
mov word [rbx + 0x1710], r8w
call fcn.18012ff00
jmp 0x18012ad3d
cmp edi, 5
je 0x18012ad3d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.18012f590
cmp edi, 3
jne 0x18012ad3d
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.1802991c0
cmp dword [rbx + 0x9c], ebp
jne 0x18012ad3d
mov dword [rbx + 0x94], ebp
mov dword [rbx + 0x84], ebp
mov dword [rbx + 0x170c], ebp
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012ad90
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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
mov edi, dword [rsp + 0x68]
jne 0x18012ad90
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rsi + 0x18], ebp
je 0x18012af17
cmp edi, 4
jne 0x18012af1e
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
jg 0x18012adb1
lea eax, [rdi - 3]
jmp 0x18012a276
cmp ecx, 2
jne 0x18012ae51
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4c]
mov rcx, qword [r12]
mov byte [rdx + rcx], al
mov eax, dword [rbx + 0x28]
mov rcx, qword [r12]
inc eax
mov dword [rbx + 0x28], eax
mov edx, eax
movzx eax, byte [rsi + 0x4d]
mov byte [rdx + rcx], al
mov eax, dword [rbx + 0x28]
mov rcx, qword [r12]
inc eax
mov dword [rbx + 0x28], eax
mov edx, eax
movzx eax, byte [rsi + 0x4e]
mov byte [rdx + rcx], al
mov eax, dword [rbx + 0x28]
mov rcx, qword [r12]
inc eax
mov dword [rbx + 0x28], eax
mov edx, eax
movzx eax, byte [rsi + 0x4f]
mov byte [rdx + rcx], al
mov eax, dword [rbx + 0x28]
mov rcx, qword [r12]
inc eax
mov dword [rbx + 0x28], eax
mov edx, eax
movzx eax, byte [rsi + 0xc]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xd]
mov rcx, qword [r12]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xe]
mov rcx, qword [r12]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [r12]
movzx eax, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x18012aea6
movzx r8d, word [rsi + 0x4e]
mov ecx, dword [rbx + 0x28]
mov edx, r8d
mov rax, qword [r12]
shr edx, 8
mov byte [rcx + rax], dl
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
mov ecx, eax
mov rax, qword [r12]
mov byte [rcx + rax], r8b
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
movzx r8d, word [rsi + 0x4c]
mov ecx, eax
mov edx, r8d
mov rax, qword [r12]
shr edx, 8
mov byte [rcx + rax], dl
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
mov ecx, eax
mov rax, qword [r12]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.18012ff00
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x18012aef8
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.180298b10
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 0x18012aef8
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x18012af04
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], ebp
sete bpl
mov eax, ebp
jmp 0x18012a276
cmp dword [rsi + 0x18], ebp
jne 0x18012af1e
mov dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x18012a276
mov rbx, qword [rsp + 0x70]
lea rax, str.stream_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffe
add rsp, 0x50
pop rsi
ret
mov eax, 0xfffffffe
add rsp, 0x50
pop rsi
ret