Function at 0x140003c50
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, r8d
mov edi, edx
mov r13, rcx
cmp edx, 1
jl 0x140003eae
cmp ebx, 1
jl 0x140003eae
mov eax, 0x9c4
cmp edx, eax
cmovg edi, eax
mov eax, 0x7d0
cmp ebx, eax
cmovg ebx, eax
movzx eax, byte [rcx + 0x48]
lea r14, [rcx + 0x40]
mov qword [rbp - 0x48], r14
movzx r12d, byte [r14 + 8]
mov byte [rbp - 0x40], r12b
mov ecx, 0xfff2
lea r15d, [rcx + 3]
cmp al, r12b
je 0x140003d1c
test al, al
je 0x140003cfd
mov r8d, r15d
cmp byte [r14 + 9], 0
cmovne r8d, ecx
xor r9d, r9d
mov edx, 0x112
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_SendMessageW]
mov byte [r14 + 8], 1
jmp 0x140003d1c
mov edx, 0x102
mov r9d, 0x10001
mov r8d, 0x1b
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_SendMessageW]
mov byte [r14 + 8], 0
mov word [rbp - 0x60], di
mov word [rbp - 0x5e], bx
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
mov word [rbp - 0x24], ax
lea rdx, [rbp - 0x58]
mov rcx, r13
call fcn.140003b90
nop
mov rsi, qword [r13 + 0x68]
mov rbx, qword [rbp - 0x58]
mov qword [rsi + 8], rbx
mov edi, dword [rbp - 0x60]
mov dword [rsi + 0x22], edi
lea r8, [rbp - 0x38]
mov dl, 1
mov rcx, rsi
call fcn.140010260
mov qword [rsi + 8], 0
mov rcx, qword [r13 + 0xa8]
mov rax, qword [rbp - 0x2e]
mov qword [rcx + 0xec], rax
mov rsi, qword [r13 + 0x70]
test rsi, rsi
je 0x140003da6
mov rax, qword [r13 + 0x78]
mov qword [rsi + 8], rax
mov dword [rsi + 0x22], edi
lea r8, [rbp - 0x38]
mov dl, 1
mov rcx, rsi
call fcn.140010260
mov qword [rsi + 8], 0
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
mov eax, 4
mov word [rbp - 0x20], ax
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
mov word [rbp - 0x24], ax
lea rdx, [rbp - 0x38]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140003dea
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
mov eax, dword [rbp - 0x38]
mov dword [rbp - 0x1c], eax
mov dword [rbp - 0x5c], 0
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea r9, [rbp - 0x5c]
mov r8d, 1
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
nop
cmp byte [rbx + 8], 0
je 0x140003e29
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10
mov rcx, rbx
call fcn.140017530
nop
cmp r12b, byte [r14 + 8]
je 0x140003e69
mov rcx, qword [r14]
test r12b, r12b
je 0x140003e90
cmp byte [r14 + 9], 0
mov eax, 0xfff2
cmovne r15, rax
xor r9d, r9d
mov r8, r15
mov edx, 0x112
call qword [sym.imp.USER32.dll_SendMessageW]
mov byte [r14 + 8], 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400174d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x102
mov r9d, 0x10001
mov r8d, 0x1b
call qword [sym.imp.USER32.dll_SendMessageW]
mov byte [r14 + 8], 0
jmp 0x140003e69
lea r8, str.cols___1__rows___1
mov edx, 0x227
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
int3