Function at 0x1400012a0
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp - 8], rax
movsxd r15, r8d
movsxd r13, edx
mov r14, rcx
lea eax, [r13 + 2]
imul eax, r15d
add eax, r13d
lea eax, [rax + rax*2]
movsxd rdi, eax
add rdi, 5
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
movabs rsi, 0x7fffffffffffffff
cmp rdi, rsi
ja 0x1400015ed
cmp rdi, 0xf
ja 0x140001335
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 0xf
mov r8, rdi
mov edx, 0x20
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + rdi - 0x28], r12b
jmp 0x1400013cb
mov rax, rdi
or rax, 0xf
cmp rax, rsi
jbe 0x14000136e
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003604
test rax, rax
je 0x1400015bd
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400013ab
mov rsi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x14000138b
mov rbx, r12
jmp 0x1400013ab
cmp rcx, 0x1000
jb 0x1400013a3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400015f3
jmp 0x14000134f
call fcn.140003604
mov rbx, rax
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rsi
mov r8, rdi
mov edx, 0x20
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + rdi], r12b
mov r9d, r12d
lea r11d, [r15 + 1]
lea r11d, [r15 + r11*2]
test r11d, r11d
jle 0x14000140c
mov rcx, r12
mov edx, r11d
mov r9d, r11d
nop dword [rax]
nop dword [rax + rax]
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rcx + rax], 0x23
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400013f0
movsxd rcx, r9d
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rcx + rax], 0xa
inc r9d
mov rbx, r13
test r13d, r13d
jle 0x1400014ce
movsxd rdx, r9d
nop dword [rax]
nop word [rax + rax]
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rdx + rax], 0x23
inc r9d
inc rdx
mov r8, r12
test r15d, r15d
jle 0x140001493
lea eax, [r15 + r9]
lea r9d, [rax + r15*2]
nop dword [rax + rax]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
movzx eax, byte [r8 + r14]
mov byte [rdx + rcx + 1], al
add rdx, 3
inc r8
cmp r8, r15
jl 0x140001470
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rdx + rax], 0x23
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rdx + rax + 1], 0xa
add r9d, 2
add rdx, 2
add r14, 0x64
sub rbx, 1
jne 0x140001440
test r11d, r11d
jle 0x1400014fc
movsxd rcx, r9d
mov edx, r11d
nop dword [rax]
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rcx + rax], 0x23
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400014e0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140008768], eax
jle 0x14000154b
lea rcx, [0x140008768]
call fcn.14000358c
cmp dword [0x140008768], 0xffffffff
jne 0x14000154b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x140008760], rax
lea rcx, [0x140008768]
call fcn.140003520
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
mov dword [rbp - 0x30], r12d
mov edx, r12d
mov rcx, qword [0x140008760]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x1400015c9
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003640
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140003500
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011a0
int3
call fcn.140001100
int3