Function at 0x140008d10
Capabilities:
Manipulate console buffer

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
movsxd r13, r9d
mov r15, r8
mov r12, rdx
mov rdi, rcx
cmp r13d, 1
jl 0x14000920f
xor ebp, ebp
cmp byte [r8], 3
jne 0x140008e17
mov dword [rax + 0x20], ebp
lea rdx, [rax + 0x20]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x140008d79
lea rcx, str.GetConsoleMode_failed
call fcn.1400146a0
mov eax, ebp
jmp 0x140008d80
mov eax, dword [rsp + 0xb8]
test al, 1
je 0x140008e17
mov r10, qword [r12]
mov rcx, qword [r12 + 8]
sub rcx, r10
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140008de9
mov dword [rsp + 0xb8], ebp
lea r9, [rsp + 0xb8]
mov r8d, edx
mov rdx, r10
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x140008de0
lea rcx, str.WriteConsoleInputW_failed
call fcn.1400146a0
mov rax, qword [r12]
mov qword [r12 + 8], rax
lea rcx, str.Ctrl_C
call fcn.1400146a0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
mov edx, eax
lea rcx, str.GenerateConsoleCtrlEvent:__d
call fcn.1400146a0
mov eax, 1
jmp 0x1400091f7
mov r14d, 1
cmp byte [r15], 0x1b
jne 0x140008f55
lea rsi, [r15 + r13]
lea rbx, [r15 + 1]
cmp rbx, rsi
jne 0x140008e3d
lea ebx, [r14 - 2]
jmp 0x140008f09
cmp byte [rbx], 0x5b
je 0x140008e49
mov ebx, ebp
jmp 0x140008f09
inc rbx
cmp rbx, rsi
jne 0x140008e5b
mov ebx, 0xffffffff
jmp 0x140008f09
movsx ecx, byte [rbx]
call fcn.14001dca8
test eax, eax
jne 0x140008e6e
mov ebx, ebp
jmp 0x140008f09
mov rdi, r14
cmp rdi, 8
jge 0x140008eff
inc rbx
inc rdi
cmp rbx, rsi
je 0x140008e9f
movsx ecx, byte [rbx]
call fcn.14001dca8
test eax, eax
jne 0x140008e71
cmp byte [rbx], 0x3b
jne 0x140008eff
inc rbx
cmp rbx, rsi
jne 0x140008ea6
mov ebx, 0xffffffff
jmp 0x140008f01
movsx ecx, byte [rbx]
call fcn.14001dca8
test eax, eax
je 0x140008eff
mov rdi, r14
cmp rdi, 8
jge 0x140008eff
inc rbx
inc rdi
cmp rbx, rsi
je 0x140008e9f
movsx ecx, byte [rbx]
call fcn.14001dca8
test eax, eax
jne 0x140008eb5
cmp byte [rbx], 0x52
jne 0x140008eff
sub ebx, r15d
inc ebx
test ebx, ebx
jle 0x140008f01
lea rcx, str.Received_a_DSR_reply
call fcn.1400146a0
mov rcx, qword [rsp + 0xa0]
mov byte [rcx + 0x20], bpl
mov eax, ebx
jmp 0x1400091f7
mov ebx, ebp
mov rdi, qword [rsp + 0xa0]
movzx esi, byte [rsp + 0xc0]
test sil, sil
jne 0x140008f2e
cmp ebx, 0xffffffff
jne 0x140008f2e
lea rcx, str.Incomplete_DSR_match
call fcn.1400146a0
mov eax, ebx
jmp 0x1400091f7
mov r9d, r13d
mov r8, r15
mov rdx, r12
mov rcx, rdi
call fcn.140009230
test eax, eax
jg 0x1400091f7
test sil, sil
jne 0x140008f55
cmp eax, 0xffffffff
je 0x1400091f7
xor sil, sil
lea rdx, [rdi + 0x78]
movsd xmm0, qword [0x140037310]
movsd qword [rsp + 0x48], xmm0
mov eax, dword [0x140037318]
mov dword [rsp + 0x50], eax
mov ebx, ebp
mov r11d, ebp
test r13d, r13d
jle 0x140008ff7
mov r10, rbp
movzx r9d, byte [r10 + r15]
movsxd rcx, dword [rdx + 0xc]
cmp ecx, 8
jg 0x140008fae
mov rax, rbp
test ecx, ecx
jle 0x140008ffe
cmp byte [rdx + rax + 0x10], r9b
je 0x140008fa7
inc rax
cmp rax, rcx
jge 0x140008ffe
jmp 0x140008f96
mov rdx, qword [rdx + rax*8 + 0x18]
jmp 0x140008fba
movzx ecx, r9b
mov rax, qword [rdx + 0x10]
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x140008ffe
cmp word [rdx], bp
jne 0x140008fcd
cmp dword [rdx + 4], ebp
jne 0x140008fcd
xor cl, cl
jmp 0x140008fe2
movzx ecx, r14b
movsd xmm0, qword [rdx]
movsd qword [rsp + 0x48], xmm0
mov eax, dword [rdx + 8]
mov dword [rsp + 0x50], eax
inc r11d
mov eax, r11d
test cl, cl
cmove eax, ebx
mov ebx, eax
inc r10
cmp r10, r13
jl 0x140008f81
cmp dword [rdx + 0xc], ebp
setg sil
cmp byte [rsp + 0xc0], bpl
jne 0x140009023
test sil, sil
je 0x140009023
lea rcx, str.Incomplete_escape_sequence
call fcn.1400146a0
mov eax, 0xffffffff
jmp 0x1400091f7
test ebx, ebx
jle 0x14000907a
mov edx, dword [rsp + 0x4c]
mov r9d, edx
movzx ecx, byte [rsp + 0x50]
test cl, 8
je 0x14000903f
test cl, 2
cmovne r9d, ebp
test cl, 2
cmove ebp, r9d
movzx ecx, word [rsp + 0x50]
mov word [rsp + 0x38], cx
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], cx
mov dword [rsp + 0x20], ebp
movzx r8d, word [rsp + 0x48]
mov rdx, r12
mov rcx, qword [rsp + 0xa0]
call fcn.140009ac0
mov eax, ebx
jmp 0x1400091f7
movzx ecx, byte [r15]
cmp cl, 0x1b
jne 0x14000910b
cmp r13d, 2
jl 0x14000910b
lea r8, [r15 + 1]
movzx edx, byte [r8]
cmp dl, cl
je 0x14000910b
test dl, dl
jns 0x1400090cd
movzx eax, dl
and al, 0xe0
cmp al, 0xc0
jne 0x1400090ae
mov r14d, 2
jmp 0x1400090cd
movzx eax, dl
and al, 0xf0
cmp al, 0xe0
jne 0x1400090bf
mov r14d, 3
jmp 0x1400090cd
and dl, 0xf8
cmp dl, 0xf0
jne 0x14000910b
mov r14d, 4
lea ebx, [r14 + 1]
cmp ebx, r13d
jle 0x1400090ec
lea rcx, str.Incomplete_UTF_8_character_in_Alt__Char_
call fcn.1400146a0
mov eax, 0xffffffff
jmp 0x1400091f7
mov byte [rsp + 0x20], 1
mov r9d, r14d
mov rdx, r12
mov rcx, qword [rsp + 0xa0]
call fcn.1400097d0
mov eax, ebx
jmp 0x1400091f7
test cl, cl
jns 0x14000913f
movzx eax, cl
and al, 0xe0
cmp al, 0xc0
jne 0x140009120
mov r14d, 2
jmp 0x14000913f
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140009131
mov r14d, 3
jmp 0x14000913f
and cl, 0xf8
cmp cl, 0xf0
jne 0x140009177
mov r14d, 4
cmp r14d, r13d
jle 0x14000915a
lea rcx, str.Incomplete_UTF_8_character
call fcn.1400146a0
mov eax, 0xffffffff
jmp 0x1400091f7
mov byte [rsp + 0x20], bpl
mov r9d, r14d
mov r8, r15
mov rdx, r12
mov rcx, qword [rsp + 0xa0]
call fcn.1400097d0
jmp 0x1400091f4
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140043ea4], eax
jle 0x1400091db
lea rcx, [0x140043ea4]
call fcn.14001777c
cmp dword [0x140043ea4], 0xffffffff
jne 0x1400091db
call fcn.140014120
test al, al
je 0x1400091c8
lea rcx, str.input
call fcn.1400141c0
test al, al
mov byte [0x140043ea0], 1
jne 0x1400091cf
mov byte [0x140043ea0], 0
lea rcx, [0x140043ea4]
call fcn.14001771c
cmp byte [0x140043ea0], 0
je 0x1400091f4
movzx edx, byte [r15]
lea rcx, str.Discarding_invalid_input_byte:__02X
call fcn.1400146a0
mov eax, r14d
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.inputSize___1
mov edx, 0x181
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agentconsoleinput.cc
call fcn.140017100
int3