Function at 0x140001190
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rdi, rdx
mov rsi, rcx
call fcn.140016550
test al, al
je 0x1400014ba
mov rcx, qword [rdi]
lea rdx, [rbp - 0x30]
xor eax, eax
mov qword [rsp + 0xa0], rbx
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], eax
mov word [rbp - 0x1c], ax
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400011f7
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
movzx ebx, word [rbp - 0x22]
xor r15d, r15d
mov qword [rsp + 0x68], r14
cmp word [rbp - 0x26], bx
jne 0x1400013a4
movzx eax, word [rbp - 0x20]
cmp word [rbp - 0x24], ax
jne 0x1400013a4
lea rcx, str.detectNewWindows10Console:_Initial_console_window_was_1x1____expanding_for_test
mov qword [rsp + 0xa8], r12
call fcn.1400146a0
mov rcx, qword [rdi]
mov r12d, 0x190
mov edx, r12d
xor r8d, r8d
call fcn.1400070b0
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 0x14000126d
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400146a0
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 0x14000129c
shr ebx, 0x10
lea rcx, str.SetConsoleScreenBufferSize_failed:_size__d__d_
movsx r8d, bx
mov edx, r12d
call fcn.1400146a0
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 0x1400012cc
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400146a0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov rcx, qword [rdi]
lea rdx, [rbp - 0x48]
mov ebx, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
mov word [rbp - 0x34], ax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140001305
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
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 0x14000133e
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400146a0
mov rcx, qword [rdi]
lea rdx, [rbp - 0x48]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
mov word [rbp - 0x34], ax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14000136c
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
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 0x1400014e7
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 0x1400013ce
lea rcx, str.SetConsoleCursorPosition_failed
call fcn.1400146a0
cmp byte [rsi + 8], r15b
jne 0x1400014ce
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]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
mov word [rbp - 0x34], ax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140001425
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
cmp word [rbp - 0x44], bx
jne 0x14000143b
mov eax, dword [rbp - 0x44]
shr eax, 0x10
cmp ax, r14w
jne 0x14000143b
mov bl, 1
jmp 0x14000143d
xor bl, bl
cmp byte [rsi + 8], r15b
je 0x140001461
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 0x140001481
lea rcx, str.SetConsoleCursorPosition_failed
call fcn.1400146a0
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.1400146a0
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.1400174d0
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea r8, str._console.frozen__
mov edx, 0x69
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
int3
lea r8, str.info.srWindow.Right___info.srWindow.Left___Could_not_expand_console_window_from_1x1_
mov edx, 0x63
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
int3