Function at 0x1400012b0
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rdi, rdx
mov rsi, rcx
call fcn.140016bd0
test al, al
je 0x1400015d6
mov rcx, qword [rdi]
lea rdx, [rbp - 0x30]
xor eax, eax
mov qword [rsp + 0xa0], rbx
xorps xmm0, xmm0
mov dword [rbp - 0x20], eax
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x1c], ax
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140001316
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400149c0
movzx ebx, word [rbp - 0x22]
xor r15d, r15d
mov qword [rsp + 0x68], r14
cmp word [rbp - 0x26], bx
jne 0x1400014c1
movzx eax, word [rbp - 0x20]
cmp word [rbp - 0x24], ax
jne 0x1400014c1
lea rcx, str.detectNewWindows10Console:_Initial_console_window_was_1x1____expanding_for_test
mov qword [rsp + 0xa8], r12
call fcn.1400149c0
mov rcx, qword [rdi]
mov r12d, 0x190
mov edx, r12d
xor r8d, r8d
call fcn.140006fb0
mov rcx, qword [rdi]
lea r8, [rbp - 0x50]
mov r14d, 1
mov qword [rbp - 0x50], r15
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x14000138c
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400149c0
mov rcx, qword [rdi]
mov dword [rbp - 0x50], 0x10190
mov ebx, dword [rbp - 0x50]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
test eax, eax
jne 0x1400013bb
shr ebx, 0x10
lea rcx, str.SetConsoleScreenBufferSize_failed:_size__d__d_
movsx r8d, bx
mov edx, r12d
call fcn.1400149c0
mov rcx, qword [rdi]
lea r8, [rbp - 0x50]
mov edx, r14d
mov dword [rbp - 0x50], r15d
mov dword [rbp - 0x4c], r14d
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov r12, qword [rsp + 0xa8]
test eax, eax
jne 0x1400013eb
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400149c0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov rcx, qword [rdi]
lea rdx, [rbp - 0x48]
mov ebx, eax
xorps xmm0, xmm0
xor eax, eax
mov dword [rbp - 0x38], eax
mov word [rbp - 0x34], ax
movups xmmword [rbp - 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140001423
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400149c0
cmp word [rbp - 0x48], bx
lea r8, [rbp - 0x50]
mov rcx, qword [rdi]
mov edx, r14d
cmovl bx, word [rbp - 0x48]
dec bx
mov dword [rbp - 0x50], r15d
mov word [rbp - 0x4c], bx
mov word [rbp - 0x4a], r15w
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x14000145c
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400149c0
mov rcx, qword [rdi]
lea rdx, [rbp - 0x48]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov dword [rbp - 0x38], eax
mov word [rbp - 0x34], ax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140001489
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400149c0
mov eax, dword [rbp - 0x38]
movups xmm0, xmmword [rbp - 0x48]
mov dword [rbp - 0x20], eax
movzx eax, word [rbp - 0x34]
mov word [rbp - 0x1c], ax
movups xmmword [rbp - 0x30], xmm0
psrldq xmm0, 8
movq rcx, xmm0
mov rax, rcx
shr rcx, 0x10
shr rax, 0x30
cmp ax, cx
jle 0x140001603
movzx ebx, word [rbp - 0x22]
movzx r14d, word [rbp - 0x20]
mov rcx, qword [rdi]
mov word [rbp - 0x4e], r14w
mov word [rbp - 0x50], bx
mov edx, dword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400014eb
lea rcx, str.SetConsoleCursorPosition_failed
call fcn.1400149c0
cmp byte [rsi + 8], r15b
jne 0x1400015ea
mov rcx, qword [rsi]
xor r9d, r9d
mov edx, 0x112
mov byte [rsi + 9], 1
mov r8d, 0xfff2
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov byte [rsi + 8], 1
mov rcx, qword [rdi]
lea rdx, [rbp - 0x48]
xorps xmm0, xmm0
mov dword [rbp - 0x38], eax
movups xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x34], ax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140001541
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400149c0
cmp word [rbp - 0x44], bx
jne 0x140001557
mov eax, dword [rbp - 0x44]
shr eax, 0x10
cmp ax, r14w
jne 0x140001557
mov bl, 1
jmp 0x140001559
xor bl, bl
cmp byte [rsi + 8], r15b
je 0x14000157d
mov rcx, qword [rsi]
mov edx, 0x102
mov r9d, 0x10001
mov r8d, 0x1b
call qword [sym.imp.USER32.dll_SendMessageW]
mov byte [rsi + 8], r15b
mov rcx, qword [rdi]
mov edx, r15d
mov dword [rbp - 0x50], r15d
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14000159d
lea rcx, str.SetConsoleCursorPosition_failed
call fcn.1400149c0
test bl, bl
lea rax, str.detected
lea rdx, str.not_detected
cmovne rdx, rax
lea rcx, str.Attempting_to_detect_new_Windows_10_console_using_MARK:__s
call fcn.1400149c0
mov r14, qword [rsp + 0x68]
mov byte [rsi + 9], r15b
mov r15, qword [rsp + 0x60]
mov byte [rsi + 0xa], bl
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140017c90
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea r8, str._console.frozen__
mov edx, 0x69
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentAgent.cc
call fcn.1400178c0
int3
lea r8, str.info.srWindow.Right___info.srWindow.Left___Could_not_expand_console_window_from_1x1_
mov edx, 0x63
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentAgent.cc
call fcn.1400178c0
int3