Function at 0x14000f8c0
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r9
mov rdi, r8
mov rbx, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], r9
mov r15, qword [rbp + 0x60]
mov qword [rcx], rdx
xor r12d, r12d
mov qword [rcx + 8], r12
mov rax, qword [r9]
mov qword [r9], r12
mov qword [rcx + 0x10], rax
mov r13, 0xffffffffffffffff
mov dword [rcx + 0x18], r13d
mov dword [rcx + 0x1c], r12d
mov byte [rcx + 0x20], r12b
mov eax, dword [r15]
mov dword [rcx + 0x22], eax
mov qword [rcx + 0x28], r12
mov qword [rcx + 0x30], r12
mov qword [rcx + 0x38], r13
mov dword [rcx + 0x40], r12d
mov dword [rcx + 0x44], 0xffffffff
mov dword [rcx + 0x48], r12d
mov qword [rcx + 0x50], r12
mov qword [rcx + 0x58], r12
mov qword [rcx + 0x60], r12
mov qword [rcx + 0x68], r12
mov qword [rcx + 0x70], r12
mov qword [rcx + 0x78], r12
mov dword [rcx + 0x80], r13d
mov dword [rcx + 0x84], r12d
mov qword [rcx + 8], r8
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
mov word [rbp - 0xc], ax
lea rdx, [rbp - 0x20]
mov rcx, qword [r8]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14000f9a6
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
mov r8d, dword [rbp - 0x16]
shr r8, 0x10
mov rdx, qword [rbx + 0x70]
mov rax, qword [rbx + 0x68]
cmp rax, rdx
je 0x14000f9d4
nop dword [rax + rax]
mov dword [rax], r12d
mov rcx, qword [rax + 8]
mov qword [rax + 0x10], rcx
add rax, 0x20
cmp rax, rdx
jne 0x14000f9c0
mov dword [rbx + 0x18], r13d
movsx rax, r8w
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], r12
mov qword [rbx + 0x38], r13
mov dword [rbx + 0x80], r13d
mov dword [rbx + 0x84], r12d
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 8], rax
mov dword [rcx + 0x10], r12d
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov byte [rcx + 0x30], 0
mov dword [rcx + 0x34], r13d
lea rcx, [rbx + 0x68]
call fcn.1400113c0
mov rax, qword [rbx]
movsx edx, word [r15]
movzx r8d, byte [rax + 0xa]
mov rcx, qword [rdi]
call fcn.1400070b0
mov qword [rbp - 0x40], r12
lea r8, [rbp - 0x40]
mov edx, 1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x14000fa55
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400146a0
movzx eax, word [r15]
mov word [rbp - 0x40], ax
mov eax, 0xbb8
mov word [rbp - 0x3e], ax
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14000f7d0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
movzx r8d, word [r15 + 2]
mov ecx, eax
shr ecx, 0x10
cmp cx, r8w
cmovl r8w, cx
movzx ecx, word [r15]
cmp ax, cx
cmovl cx, ax
mov dword [rbp - 0x40], r12d
dec cx
mov word [rbp - 0x3c], cx
dec r8w
mov word [rbp - 0x3a], r8w
lea r8, [rbp - 0x40]
mov edx, 1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x14000facf
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400146a0
mov dword [rbp - 0x40], r12d
mov edx, r12d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14000faef
lea rcx, str.SetConsoleCursorPosition_failed
call fcn.1400146a0
mov edx, 7
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x14000fb0d
lea rcx, str.SetConsoleTextAttribute_failed
call fcn.1400146a0
mov rcx, qword [rbx + 8]
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
mov word [rbp - 0xc], ax
lea rdx, [rbp - 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14000fb3f
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
mov edx, dword [rbp - 0x20]
shr edx, 0x10
movsx r8d, dx
lea r9, [rbp - 0x20]
xor edx, edx
mov rcx, rdi
call fcn.140012710
mov qword [rbx + 8], r12
mov rdx, qword [r14]
test rdx, rdx
je 0x14000fb68
call fcn.1400047b0
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400174d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret