Function at 0x14002da10
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
movapd xmmword [rbp + 0x100], xmm11
movapd xmmword [rbp + 0xf0], xmm10
movapd xmmword [rbp + 0xe0], xmm9
movapd xmmword [rbp + 0xd0], xmm8
movapd xmmword [rbp + 0xc0], xmm7
movapd xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov esi, dword [rcx + 8]
lea edx, [rsi - 0x3b9aca00]
cmp edx, 3
mov eax, 1
cmovb eax, edx
test eax, eax
je 0x14002dcd1
cmp eax, 1
jne 0x14002dd7b
mov rdi, qword [rcx]
mov r14, qword [rcx + 0x10]
movzx ebx, byte [rcx + 0x18]
movzx r15d, byte [rcx + 0x28]
mov qword [rbp - 0x18], 0
mov rax, qword [0x1400d6378]
shl rax, 1
test rax, rax
jne 0x14002e6d8
mov byte [rbp - 0x20], r15b
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x60], rsi
mov byte [rbp + 0x80], bl
lea rcx, [r14 + 0x10]
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x98], r14
call fcn.14002d330
movzx eax, ax
cvtsi2sd xmm6, eax
mov qword [rbp], 8
xorpd xmm0, xmm0
movupd xmmword [rbp + 8], xmm0
mov r8, qword [rbp + 0x98]
mov r9, qword [r8 + 0xa0]
mov rax, qword [r8 + 0xb0]
lea rax, [r9 + rax*8]
mov qword [rbp + 0x78], rax
mov r10d, 8
xor r14d, r14d
movdqa xmm7, xmmword [0x14009e720]
movapd xmm8, xmmword [0x14009e730]
movsd xmm9, qword [0x14009e6a0]
xorpd xmm11, xmm11
movsd xmm10, qword [0x14009e6a8]
mov rbx, 0xffffffffffffffff
xor r13d, r13d
jmp 0x14002db85
mov r10, qword [rbp + 0x88]
mov r9, qword [rbp + 0x70]
add r9, 8
mov qword [r10 + r14*8], r15
mov r14, qword [rbp + 0x10]
inc r14
mov qword [rbp + 0x10], r14
mov r13, qword [rbp + 0x68]
add r13, r12
cmp r9, qword [rbp + 0x78]
je 0x14002de30
mov r15, qword [r9]
mov rdx, qword [r8 + 0x80]
cmp r15, rdx
jae 0x14002ee3b
mov rax, qword [r8 + 0x70]
lea rcx, [r15 + r15*2]
shl rcx, 4
cmp byte [rax + rcx + 0x28], 0
je 0x14002de30
cmp byte [rax + rcx + 0x21], 2
mov qword [rbp + 0x68], r13
mov qword [rbp + 0x70], r9
mov qword [rbp + 0x88], r10
je 0x14002dc90
add rax, rcx
mov r13, qword [rax + 0x18]
test r13, r13
je 0x14002dc90
mov rsi, qword [rax + 8]
xor r12d, r12d
xor edi, edi
nop dword [rax]
lea rax, [rdi + rdi*2]
mov rcx, qword [rsi + rax*8]
mov rdx, qword [rsi + rax*8 + 0x10]
mov byte [rbp + 0xa4], 1
call fcn.140017040
movq xmm1, rax
punpckldq xmm1, xmm7
subpd xmm1, xmm8
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 0x3f
movapd xmm1, xmm0
subsd xmm1, xmm9
cvttsd2si rdx, xmm1
and rdx, rcx
or rdx, rax
ucomisd xmm0, xmm11
mov eax, 0
cmovae rax, rdx
ucomisd xmm0, xmm10
cmova rax, rbx
add r12, rax
inc rdi
cmp rdi, r13
jne 0x14002dbf0
mov r8, qword [rbp + 0x98]
add qword [r8 + 0xd0], r12
cmp r14, qword [rbp + 8]
jne 0x14002db60
jmp 0x14002dcab
xor r12d, r12d
mov r8, qword [rbp + 0x98]
add qword [r8 + 0xd0], r12
cmp r14, qword [rbp + 8]
jne 0x14002db60
mov byte [rbp + 0xa4], 1
mov rcx, rbp
mov rdx, r14
call fcn.1400537f0
mov r10, qword [rbp]
mov r14, qword [rbp + 0x10]
mov r8, qword [rbp + 0x98]
jmp 0x14002db67
mov rbx, qword [rcx + 0x10]
mov r14, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x20]
mov rax, qword [0x1400d6378]
shl rax, 1
test rax, rax
jne 0x14002e6fb
mov r15, qword [rsi + 0x18]
mov rax, qword [r14]
mov qword [rbp + 0x98], rax
test r15, r15
mov qword [rbp + 0x70], rsi
je 0x14002df23
cmp byte [rsi + 0x20], 0
je 0x14002df23
mov rcx, qword [rbx]
movzx edx, byte [rbx + 8]
mov r8, qword [rbp + 0x98]
call fcn.140033540
test rax, rax
jne 0x14002e669
xor esi, esi
sub qword [rbp + 0x98], r15
jbe 0x14002e726
mov rdi, qword [rbp + 0x70]
cmp byte [rdi + 0x21], 0
je 0x14002e72a
mov rax, qword [rbp + 0x98]
lea rsi, [rax + 1]
nop dword [rax]
dec rsi
je 0x14002e71f
mov rcx, qword [rbx]
call fcn.140033690
test rax, rax
je 0x14002dd60
jmp 0x14002e669
mov rsi, qword [rcx + 0x10]
mov r13, qword [rcx + 0x18]
mov rdi, qword [rcx + 0x20]
mov rbx, qword [rcx + 0x28]
mov rax, qword [0x1400d6378]
shl rax, 1
test rax, rax
jne 0x14002e70d
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x70], rdi
mov r14, qword [rdi]
mov qword [rbp + 0x98], rax
test rax, rax
mov qword [rbp + 0x68], rbx
je 0x14002e158
cmp byte [rbx + 0x20], 0
je 0x14002e158
mov rcx, rsi
mov rdx, r14
call qword [r13 + 0x40]
test rax, rax
jne 0x14002e669
xor eax, eax
mov rbx, qword [rbp + 0x98]
sub r14, rbx
jbe 0x14002e897
mov r12, qword [rbp + 0x68]
cmp byte [r12 + 0x21], 0
je 0x14002e89b
lea rdi, [r14 + 1]
lea rbx, [0x1400b7ec8]
nop word [rax + rax]
dec rdi
je 0x14002e88b
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call qword [r13 + 0x60]
test rax, rax
je 0x14002de10
jmp 0x14002e669
mov rsi, qword [rbp - 0x18]
test rsi, rsi
mov rax, qword [rbp + 0x58]
je 0x14002de70
mov rax, qword [rax]
cmp rax, 3
je 0x14002de4b
test rax, rax
jne 0x14002de65
mov rax, qword [r8 + 0x18]
add rax, qword [r8 + 0xd0]
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
mov qword [r8 + 0x18], rcx
mov qword [r8 + 0xd0], 0
mov rdi, qword [r8 + 0xc8]
test rdi, rdi
je 0x14002e1be
mov r14, qword [r8 + 0xb8]
xor ebx, ebx
xorpd xmm11, xmm11
mov r15, 0xffffffffffffffff
xor r12d, r12d
nop dword [rax + rax]
lea rax, [r12 + r12*2]
mov rcx, qword [r14 + rax*8]
mov rdx, qword [r14 + rax*8 + 0x10]
mov byte [rbp + 0xa4], 1
call fcn.140017040
movq xmm1, rax
punpckldq xmm1, xmm7
subpd xmm1, xmm8
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 0x3f
movapd xmm1, xmm0
subsd xmm1, xmm9
cvttsd2si rdx, xmm1
and rdx, rcx
or rdx, rax
ucomisd xmm0, xmm11
mov eax, 0
cmovae rax, rdx
ucomisd xmm0, xmm10
cmova rax, r15
add rbx, rax
inc r12
cmp r12, rdi
jne 0x14002dea0
jmp 0x14002e1c0
xor r8d, r8d
mov rax, qword [rbp + 0x98]
sub rax, 1
cmovae r8, rax
mov rcx, qword [rbx]
movzx edx, byte [rbx + 8]
mov qword [rbp + 0x78], r8
call fcn.140033540
test rax, rax
jne 0x14002e669
cmp qword [rbp + 0x98], 0
je 0x14002e6ab
mov r12, qword [sym.imp.kernel32.dll_GetStdHandle]
xorpd xmm6, xmm6
lea rdi, [rbp + 0x20]
mov rsi, qword [rbp + 0x98]
mov qword [rbp + 0x88], r14
jmp 0x14002dfcb
mov rax, qword [rbx]
xor ecx, ecx
cmp byte [rax + 0x40], 0
sete cl
or ecx, 0xfffffff4
call r12
movapd xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x2e], 0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14002e151
movsx r8, word [rbp + 0x26]
inc r8
mov rcx, qword [rbx]
movzx edx, byte [rbx + 8]
call fcn.140016ee0
test rax, rax
jne 0x14002e669
cmp byte [rbx + 8], 0
je 0x14002dffd
mov rcx, qword [rbx]
mov r8d, 5
lea rdx, [0x14009f7dc]
call fcn.1400194d0
test rax, rax
jne 0x14002e669
dec rsi
jne 0x14002e0b5
jmp 0x14002e6ab
mov rax, qword [rbx]
xor ecx, ecx
cmp byte [rax + 0x40], 0
sete cl
or ecx, 0xfffffff4
mov r13, r12
call r12
mov r12, rax
movapd xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x2e], 0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14002e0a9
movzx eax, word [rbp + 0x28]
mov word [rbp + 0x68], ax
movzx eax, word [rbp + 0x2e]
sub ax, word [rbp + 0x2a]
movzx r14d, word [rbp + 0x26]
mov dword [rbp + 0x20], 0
mov rdi, r15
movsx r15d, ax
shl r14d, 0x10
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, r12
mov dl, 0x20
mov r8d, r15d
mov r9d, r14d
call qword [sym.imp.kernel32.dll_FillConsoleOutputCharacterA]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, r12
movzx edx, word [rbp + 0x68]
mov r8d, r15d
mov r15, rdi
lea rdi, [rbp + 0x20]
mov r9d, r14d
call qword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
mov rcx, r12
mov edx, r14d
mov r14, qword [rbp + 0x88]
call qword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
mov r12, r13
dec rsi
je 0x14002e6ab
cmp byte [rbx + 8], 0
je 0x14002df7b
mov qword [rbp - 0x18], 1
lea rax, [rbp - 0x18]
mov qword [rbp], rax
lea rax, [fcn.14001a3e0]
mov qword [rbp + 8], rax
lea rax, [0x14009f9d8]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 2
mov qword [rbp + 0x40], 0
mov rax, rbp
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 1
lea rcx, [rbp - 0x50]
mov rdx, rdi
call fcn.140015890
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, qword [rbx]
mov qword [rbp + 0x68], rdx
call fcn.1400194d0
cmp qword [rbp - 0x48], 0
je 0x14002dfc2
mov rcx, qword [0x1400d62c0]
xor edx, edx
mov r8, qword [rbp + 0x68]
mov rdi, rax
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rdi
lea rdi, [rbp + 0x20]
jmp 0x14002dfc2
xor eax, eax
jmp 0x14002dfc2
xor ebx, ebx
mov rax, r14
sub rax, 1
cmovae rbx, rax
mov r15, qword [r13 + 0x40]
mov rcx, rsi
mov rdx, rbx
call r15
test rax, rax
jne 0x14002e669
test r14, r14
je 0x14002e6c5
mov r12, qword [r13 + 0x70]
mov rdi, r14
nop dword [rax + rax]
mov rcx, rsi
call r12
test rax, rax
jne 0x14002e669
dec rdi
je 0x14002e6c5
mov edx, 1
mov rcx, rsi
call qword [r13 + 0x48]
test rax, rax
je 0x14002e190
jmp 0x14002e669
xor ebx, ebx
cmp byte [rbp - 0x20], 0
setne al
test rbx, rbx
setne r8b
or r8b, al
mov byte [rbp + 0xa4], 1
mov rax, qword [rbp + 0x60]
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0x58]
mov r9, qword [rbp + 0x18]
call fcn.14002d490
cmp dword [rbp + 0x28], 0x3b9aca03
jne 0x14002e265
cmp qword [rbp + 8], 0
je 0x14002e214
mov r8, qword [rbp]
mov rcx, qword [0x1400d62c0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
test rsi, rsi
je 0x14002e5e9
mov rsi, qword [rbp - 0x18]
mov rdi, qword [rbp - 8]
add rsi, 8
mov rbx, qword [sym.imp.kernel32.dll_HeapFree]
mov r14, qword [rbp + 0x98]
jmp 0x14002e244
add rsi, 0x18
sub rdi, 1
jb 0x14002e5a1
cmp qword [rsi], 0
je 0x14002e240
mov r8, qword [rsi - 8]
mov rcx, qword [0x1400d62c0]
xor edx, edx
call rbx
jmp 0x14002e240
movupd xmm0, xmmword [rbp + 0x20]
movupd xmm1, xmmword [rbp + 0x30]
movups xmm2, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x30], xmm2
movapd xmmword [rbp - 0x40], xmm1
movapd xmmword [rbp - 0x50], xmm0
mov byte [rbp + 0x97], 1
mov byte [rbp + 0x96], 1
lea rcx, [rbp - 0x50]
call fcn.14002d900
mov qword [rbp + 0x60], rdx
mov rdi, rax
mov rsi, rax
mov qword [rax], rbx
mov r15, qword [rbp + 0x98]
movzx eax, byte [r15 + 0xd9]
mov byte [rdi + 0x21], al
mov rbx, qword [rbp - 0x18]
test rbx, rbx
mov qword [rbp + 0x78], rdi
je 0x14002e3b1
lea rcx, [rdi + 8]
mov r14, qword [rbp - 8]
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov byte [rbp + 0xa5], 1
mov rdx, rbx
mov r8, r14
call fcn.14002d0b0
xor esi, esi
test r14, r14
je 0x14002e3a0
xorpd xmm11, xmm11
mov r15, 0xffffffffffffffff
xor r12d, r12d
nop word [rax + rax]
lea rax, [r12 + r12*2]
mov rcx, qword [rbx + rax*8]
mov rdx, qword [rbx + rax*8 + 0x10]
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov byte [rbp + 0xa5], 1
call fcn.140017040
movq xmm1, rax
punpckldq xmm1, xmm7
subpd xmm1, xmm8
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 0x3f
movapd xmm1, xmm0
subsd xmm1, xmm9
cvttsd2si rdx, xmm1
and rdx, rcx
or rdx, rax
ucomisd xmm0, xmm11
mov eax, 0
cmovae rax, rdx
ucomisd xmm0, xmm10
cmova rax, r15
add rsi, rax
inc r12
cmp r12, r14
jne 0x14002e310
mov rax, qword [rbp + 0x78]
add qword [rax], rsi
mov rsi, rax
mov r15, qword [rbp + 0x98]
add rdi, 8
mov r14, qword [r15 + 0xb8]
mov rbx, qword [r15 + 0xc8]
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
sub rax, rdx
cmp rax, rbx
jae 0x14002e402
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov byte [rbp + 0xa5], 1
mov rcx, rdi
mov r8, rbx
call fcn.140099c20
mov rsi, qword [rbp + 0x78]
mov rdx, qword [rsi + 0x18]
mov r15, qword [rbp + 0x98]
lea rcx, [rdx + rdx*2]
shl rcx, 3
add rcx, qword [rsi + 8]
lea rax, [rbx*8]
lea r8, [rax + rax*2]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 0x18], rbx
mov qword [r15 + 0xc8], 0
mov rsi, qword [r15 + 0xa0]
mov rax, qword [r15 + 0xb0]
lea rbx, [rsi + rax*8]
nop word cs:[rax + rax]
cmp rsi, rbx
je 0x14002e4b0
mov rcx, qword [rsi]
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax + 0x80]
cmp rcx, rdx
jae 0x14002ee53
add rsi, 8
mov rax, qword [rax + 0x70]
lea rcx, [rcx + rcx*2]
shl rcx, 4
cmp byte [rax + rcx + 0x21], 2
je 0x14002e450
add rax, rcx
mov rdx, qword [rax + 8]
mov r8, qword [rax + 0x18]
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov byte [rbp + 0xa5], 1
mov rcx, rdi
call fcn.14002d0b0
jmp 0x14002e450
mov byte [rbp + 0xa7], 0
mov byte [rbp + 0xa6], 1
mov byte [rbp + 0xa5], 1
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x60]
call fcn.14002f4c0
mov byte [rbp + 0xa7], 0
mov byte [rbp + 0xa6], 0
mov byte [rbp + 0xa5], 1
lea rcx, [rbp - 0x50]
call fcn.14002da10
mov qword [rbp + 0x88], rax
mov rax, qword [rbp]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x18], rax
mov rsi, qword [rbp + 0x10]
shl rsi, 3
xor edi, edi
mov rbx, qword [rbp + 0x58]
nop word cs:[rax + rax]
cmp rsi, rdi
je 0x14002e53b
mov rax, qword [rbp + 0x70]
mov rdx, qword [rax + rdi]
add rdi, 8
mov rcx, rbx
call fcn.140027c30
jmp 0x14002e520
cmp qword [rbp + 0x18], 0
je 0x14002e555
mov rcx, qword [0x1400d62c0]
xor edx, edx
mov r8, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rsi, qword [rbp - 0x18]
test rsi, rsi
mov r14, qword [rbp + 0x98]
je 0x14002e606
mov rdi, qword [rbp - 8]
add rsi, 8
mov rbx, qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14002e584
add rsi, 0x18
sub rdi, 1
jb 0x14002e5c2
cmp qword [rsi], 0
je 0x14002e580
mov r8, qword [rsi - 8]
mov rcx, qword [0x1400d62c0]
xor edx, edx
call rbx
jmp 0x14002e580
cmp qword [rbp - 0x10], 0
je 0x14002e632
mov r8, qword [rbp - 0x18]
mov rcx, qword [0x1400d62c0]
xor eax, eax
mov qword [rbp + 0x88], rax
jmp 0x14002e5d4
cmp qword [rbp - 0x10], 0
je 0x14002e63b
mov r8, qword [rbp - 0x18]
mov rcx, qword [0x1400d62c0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
movzx ebx, byte [rbp + 0x80]
test bl, bl
jne 0x14002e659
jmp 0x14002e646
xor eax, eax
mov qword [rbp + 0x88], rax
mov r14, qword [rbp + 0x98]
movzx ebx, byte [rbp + 0x80]
test bl, bl
jne 0x14002e659
jmp 0x14002e646
mov rax, qword [rbx]
cmp rax, 3
je 0x14002e614
test rax, rax
jne 0x14002e63b
mov rax, qword [r14 + 0x18]
xor ecx, ecx
sub rax, r13
cmovae rcx, rax
mov qword [r14 + 0x18], rcx
movzx ebx, byte [rbp + 0x80]
test bl, bl
jne 0x14002e659
jmp 0x14002e646
xor eax, eax
mov qword [rbp + 0x88], rax
movzx ebx, byte [rbp + 0x80]
test bl, bl
jne 0x14002e659
mov rax, qword [0x1400d6378]
shl rax, 1
test rax, rax
jne 0x14002eb57
mov rcx, r14
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rbp + 0x88]
movaps xmm6, xmmword [rbp + 0xb0]
movaps xmm7, xmmword [rbp + 0xc0]
movaps xmm8, xmmword [rbp + 0xd0]
movaps xmm9, xmmword [rbp + 0xe0]
movaps xmm10, xmmword [rbp + 0xf0]
movaps xmm11, xmmword [rbp + 0x100]
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbx]
movzx edx, byte [rbx + 8]
mov r8, qword [rbp + 0x78]
call fcn.140033540
test rax, rax
jne 0x14002e669
jmp 0x14002dd31
mov rcx, rsi
mov rdx, rbx
call r15
test rax, rax
jne 0x14002e669
jmp 0x14002ddda
call fcn.14009bf70
test al, al
jne 0x14002daba
xor eax, eax
mov qword [rbp + 0x88], rax
test bl, bl
jne 0x14002e659
jmp 0x14002e646
call fcn.14009bf70
test al, al
jne 0x14002dcf0
jmp 0x14002eb50
call fcn.14009bf70
test al, al
jne 0x14002dd9e
jmp 0x14002eb50
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0x70]
mov rax, qword [rbx]
xor ecx, ecx
cmp byte [rax + 0x40], 0
sete cl
or ecx, 0xfffffff4
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov r12d, 0x18
cmp rax, 0xffffffffffffffff
mov qword [rbp + 0x58], rsi
je 0x14002e77f
xorpd xmm0, xmm0
movapd xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x2e], 0
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14002e77f
movzx eax, word [rbp + 0x30]
sub ax, word [rbp + 0x2c]
inc eax
movzx r12d, ax
mov rax, qword [rbx]
xor ecx, ecx
cmp byte [rax + 0x40], 0
sete cl
or ecx, 0xfffffff4
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov si, 0x4f
cmp rax, 0xffffffffffffffff
je 0x14002e7ca
xorpd xmm0, xmm0
movapd xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x2e], 0
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14002e7ca
movzx esi, word [rbp + 0x2e]
sub si, word [rbp + 0x2a]
inc esi
test r15, r15
je 0x14002e990
mov qword [rbp + 0x68], r12
movzx eax, si
mov qword [rbp + 0x78], rax
xorps xmm6, xmm6
cvtsi2sd xmm6, eax
mov r13, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rbp + 0x98], rax
mov rcx, qword [r13]
mov rdx, qword [r13 + 0x10]
call fcn.140017040
mov rdi, rax
mov rsi, qword [r13 + 0x10]
test rsi, rsi
je 0x14002e972
movq xmm1, rdi
punpckldq xmm1, xmmword [0x14009e720]
subpd xmm1, xmmword [0x14009e730]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 0x3f
movapd xmm1, xmm0
subsd xmm1, qword [0x14009e6a0]
cvttsd2si rdx, xmm1
and rdx, rcx
or rdx, rax
xor eax, eax
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
cmovae rax, rdx
ucomisd xmm0, qword [0x14009e6a8]
mov r12, 0xffffffffffffffff
cmovbe r12, rax
cmp r12, 1
adc r12, 0
jmp 0x14002e978
mov rax, r14
mov rbx, qword [rbp + 0x98]
jmp 0x14002e89b
mov r12, qword [rbp + 0x68]
mov qword [rbp + 0x58], rax
mov rcx, rsi
call qword [r13 + 0x38]
mov edi, eax
mov rcx, rsi
call qword [r13 + 0x30]
test rbx, rbx
je 0x14002ea6b
movzx r14d, di
movzx eax, ax
mov qword [rbp + 0x78], rax
cvtsi2sd xmm6, eax
mov rbx, qword [r12 + 8]
mov rax, qword [r12]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
call fcn.140017040
mov r15, qword [rbx + 0x10]
test r15, r15
mov qword [rbp + 0x80], rax
je 0x14002ea57
movq xmm1, rax
punpckldq xmm1, xmmword [0x14009e720]
subpd xmm1, xmmword [0x14009e730]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 0x3f
movapd xmm1, xmm0
subsd xmm1, qword [0x14009e6a0]
cvttsd2si rdx, xmm1
and rdx, rcx
or rdx, rax
xor eax, eax
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
cmovae rax, rdx
ucomisd xmm0, qword [0x14009e6a8]
mov rdi, 0xffffffffffffffff
cmovbe rdi, rax
cmp rdi, 1
adc rdi, 0
jmp 0x14002ea5c
mov r12d, 1
cmp qword [rbp + 0x98], 0
jne 0x14002ea19
cmp r12, qword [rbp + 0x68]
jbe 0x14002ea19
mov qword [rbp + 0x88], r14
xor r15d, r15d
xor esi, esi
lea rdx, [0x1400b1750]
lea rcx, [rbp + 0x20]
mov r8, rsi
call fcn.140015c40
mov rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
mov rcx, qword [rbx]
mov qword [rbp + 0x98], rdx
call fcn.1400194d0
test rax, rax
mov rsi, qword [rbp + 0x88]
jne 0x14002ea9c
cmp qword [rbp + 0x28], 0
je 0x14002e9f3
mov rcx, qword [0x1400d62c0]
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rbx]
call fcn.140033920
test rax, rax
jne 0x14002e669
add r15, qword [rbp + 0x58]
mov rax, qword [rbp + 0x70]
sub r15, qword [rax]
mov qword [rsi], r15
xor eax, eax
jmp 0x14002e669
mov rdx, qword [r13]
mov rcx, qword [rbx]
mov r8, rsi
call fcn.1400194d0
test rax, rax
jne 0x14002e669
mov qword [rbp + 0x88], r14
xor esi, esi
mov rax, qword [rbp + 0x78]
sub rax, rdi
cmovae rsi, rax
cmp r15, 1
jne 0x14002eb6e
mov r15, r12
jmp 0x14002e99c
mov edi, 1
cmp qword [rbp + 0x88], 0
jne 0x14002eac8
cmp rdi, r14
jbe 0x14002eac8
xor r15d, r15d
xor r8d, r8d
lea rdx, [0x1400b1750]
lea rcx, [rbp + 0x20]
call fcn.140015c40
mov rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
mov rcx, rsi
mov qword [rbp + 0x98], rdx
call qword [r13 + 0x68]
test rax, rax
je 0x14002eb14
cmp qword [rbp + 0x28], 0
je 0x14002e669
mov rcx, qword [0x1400d62c0]
xor edx, edx
mov r8, qword [rbp + 0x98]
mov rsi, rax
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rsi
jmp 0x14002e669
mov qword [rbp + 0x18], r14
mov rdx, qword [rbx]
mov r14, qword [r13 + 0x68]
mov rcx, rsi
mov r8, r15
call r14
test rax, rax
jne 0x14002e669
mov qword [rbp + 0x60], r14
xor r8d, r8d
mov rax, qword [rbp + 0x78]
sub rax, qword [rbp + 0x80]
cmovae r8, rax
mov rcx, qword [rbp + 0x98]
cmp rcx, 1
jne 0x14002eccc
mov r15, rdi
jmp 0x14002ea71
cmp qword [rbp + 0x28], 0
je 0x14002eb31
mov rcx, qword [0x1400d62c0]
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, rsi
call qword [r13 + 0x78]
test rax, rax
jne 0x14002e669
add r15, qword [rbp + 0x58]
sub r15, qword [r12]
mov rax, qword [rbp + 0x70]
mov qword [rax], r15
xor eax, eax
jmp 0x14002e669
call fcn.14009bf70
test al, al
jne 0x14002e659
mov byte [r14 + 8], 1
jmp 0x14002e659
lea rax, [r15 + r15*2]
lea rax, [rax*8]
add rax, r13
mov qword [rbp + 0x80], rax
add r13, 0x18
mov eax, 2
sub rax, r15
mov qword [rbp + 0x60], rax
mov r14d, 1
xor esi, esi
movdqa xmm7, xmmword [0x14009e720]
movapd xmm8, xmmword [0x14009e730]
movsd xmm9, qword [0x14009e6a0]
xorpd xmm10, xmm10
movsd xmm11, qword [0x14009e6a8]
mov rcx, qword [r13]
mov rdx, qword [r13 + 0x10]
call fcn.140017040
mov rdi, rax
cmp qword [r13 + 0x10], 0
mov r15d, 1
je 0x14002ec48
movq xmm1, rdi
punpckldq xmm1, xmm7
subpd xmm1, xmm8
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movapd xmm1, xmm0
subsd xmm1, xmm9
ucomisd xmm0, xmm10
jb 0x14002ec2d
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
cvttsd2si rax, xmm1
and rax, rdx
or rax, rcx
jmp 0x14002ec2f
xor eax, eax
ucomisd xmm0, xmm11
mov r15, 0xffffffffffffffff
ja 0x14002ec40
mov r15, rax
cmp r15, 1
adc r15, 0
add r15, r12
mov rcx, qword [rbp + 0x98]
cmp rcx, r14
ja 0x14002ec67
mov rax, r15
sub rax, rcx
cmp rax, qword [rbp + 0x68]
ja 0x14002ea4f
mov rcx, qword [rbx]
call fcn.140033690
test rax, rax
jne 0x14002e669
mov rdx, qword [r13]
mov r8, qword [r13 + 0x10]
mov rcx, qword [rbx]
call fcn.1400194d0
test rax, rax
jne 0x14002e669
mov rax, qword [rbp + 0x78]
sub rax, rdi
mov ecx, 0
cmovae rcx, rax
mov rax, qword [rbp + 0x60]
add rax, r14
cmp rax, 1
cmove rsi, rcx
add r13, 0x18
inc r14
mov r12, r15
cmp r13, qword [rbp + 0x80]
jne 0x14002ebc4
jmp 0x14002e99c
lea rax, [rcx + rcx*2]
lea rax, [rbx + rax*8]
mov qword [rbp - 0x20], rax
add rbx, 0x18
mov eax, 2
sub rax, rcx
mov qword [rbp - 0x58], rax
mov r14d, 1
xor r8d, r8d
movapd xmm7, xmmword [0x14009e720]
movapd xmm8, xmmword [0x14009e730]
movsd xmm9, qword [0x14009e6a0]
xorpd xmm10, xmm10
movsd xmm11, qword [0x14009e6a8]
mov qword [rbp + 0x80], r8
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
call fcn.140017040
mov qword [rbp + 0x98], rax
cmp qword [rbx + 0x10], 0
mov r15d, 1
je 0x14002eda9
movsd xmm1, qword [rbp + 0x98]
unpcklps xmm1, xmm7
subpd xmm1, xmm8
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movapd xmm1, xmm0
subsd xmm1, xmm9
ucomisd xmm0, xmm10
jb 0x14002ed8e
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
cvttsd2si rax, xmm1
and rax, rdx
or rax, rcx
jmp 0x14002ed90
xor eax, eax
ucomisd xmm0, xmm11
mov r15, 0xffffffffffffffff
ja 0x14002eda1
mov r15, rax
cmp r15, 1
adc r15, 0
add r15, rdi
mov rcx, qword [rbp + 0x88]
cmp rcx, r14
ja 0x14002edc8
mov rax, r15
sub rax, rcx
cmp rax, qword [rbp + 0x18]
ja 0x14002ee76
mov rcx, rsi
lea rdx, [0x1400b7ec8]
xor r8d, r8d
call qword [r13 + 0x60]
test rax, rax
jne 0x14002e669
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call qword [rbp + 0x60]
test rax, rax
jne 0x14002e669
mov rax, qword [rbp + 0x78]
sub rax, qword [rbp + 0x98]
mov ecx, 0
cmovae rcx, rax
mov rax, qword [rbp - 0x58]
add rax, r14
cmp rax, 1
mov r8, qword [rbp + 0x80]
cmove r8, rcx
add rbx, 0x18
inc r14
mov rdi, r15
cmp rbx, qword [rbp - 0x20]
jne 0x14002ed19
jmp 0x14002ea71
mov byte [rbp + 0xa4], 1
lea r8, [0x1400a2350]
mov rcx, r15
call fcn.140099330
jmp 0x14002ee74
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov byte [rbp + 0xa5], 1
lea r8, [0x1400a2368]
call fcn.140099330
ud2
mov r15, rdi
mov r8, qword [rbp + 0x80]
jmp 0x14002ea71