Function at 0x14000f810
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, r9
mov r15, r8
mov rsi, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], r9
mov r12, qword [rbp + 0x60]
mov qword [rcx], rdx
xor ebx, ebx
mov qword [rcx + 8], rbx
mov rax, qword [r9]
mov qword [r9], rbx
mov qword [rcx + 0x10], rax
mov rdi, 0xffffffffffffffff
mov dword [rcx + 0x18], edi
mov dword [rcx + 0x1c], ebx
mov byte [rcx + 0x20], bl
mov eax, dword [r12]
mov dword [rcx + 0x22], eax
mov qword [rcx + 0x28], rbx
mov qword [rcx + 0x30], rbx
mov qword [rcx + 0x38], rdi
mov dword [rcx + 0x40], ebx
mov dword [rcx + 0x44], 0xffffffff
mov dword [rcx + 0x48], ebx
mov qword [rcx + 0x50], rbx
mov qword [rcx + 0x58], rbx
mov qword [rcx + 0x60], rbx
mov qword [rcx + 0x68], rbx
mov qword [rcx + 0x70], rbx
mov qword [rcx + 0x78], rbx
mov dword [rcx + 0x80], edi
mov dword [rcx + 0x84], ebx
mov qword [rcx + 8], r8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], eax
mov word [rbp - 0x14], ax
lea rdx, [rbp - 0x28]
mov rcx, qword [r8]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14000f8e2
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400149c0
mov eax, dword [rbp - 0x1e]
shr rax, 0x10
movsx r8, ax
mov rdx, qword [rsi + 0x70]
mov rcx, qword [rsi + 0x68]
cmp rcx, rdx
je 0x14000f913
nop word [rax + rax]
mov dword [rcx], ebx
mov rax, qword [rcx + 8]
mov qword [rcx + 0x10], rax
add rcx, 0x20
cmp rcx, rdx
jne 0x14000f900
mov dword [rsi + 0x18], edi
mov qword [rsi + 0x28], r8
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x80], edi
mov dword [rsi + 0x84], ebx
mov rcx, qword [rsi + 0x10]
mov qword [rcx + 8], r8
mov dword [rcx + 0x10], ebx
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov byte [rcx + 0x30], 0
mov dword [rcx + 0x34], edi
mov rdi, qword [rsi + 0x70]
mov rcx, qword [rsi + 0x68]
mov rdx, rdi
sub rdx, rcx
sar rdx, 5
mov r8d, 0xbb8
cmp rdx, r8
jbe 0x14000f97f
lea rbx, [rcx + 0x17700]
mov rdx, rdi
mov rcx, rbx
call fcn.1400114b0
mov qword [rsi + 0x70], rbx
xor ebx, ebx
jmp 0x14000f9da
jae 0x14000f9da
mov rax, qword [rsi + 0x78]
sub rax, rcx
sar rax, 5
cmp rax, r8
jae 0x14000f99c
lea rcx, [rsi + 0x68]
call fcn.140011540
jmp 0x14000f9da
mov rcx, r8
sub rcx, rdx
je 0x14000f9cb
lea rax, [rdi + 0x18]
nop dword [rax + rax]
mov dword [rdi], ebx
mov qword [rax - 0x10], rbx
mov qword [rax - 8], rbx
mov qword [rax], rbx
add rdi, 0x20
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x14000f9b0
mov rdx, rdi
mov rcx, rdi
call fcn.1400114b0
mov qword [rsi + 0x70], rdi
mov rax, qword [rsi]
movsx edx, word [r12]
movzx r8d, byte [rax + 0xa]
mov rcx, qword [r15]
call fcn.140006fb0
mov qword [rbp - 0x40], 0
lea r8, [rbp - 0x40]
mov edx, 1
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x14000fa19
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400149c0
movzx eax, word [r12]
mov word [rbp - 0x40], ax
mov eax, 0xbb8
mov word [rbp - 0x3e], ax
lea rdx, [rbp - 0x40]
mov rcx, r15
call fcn.14000f720
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov dword [rbp - 0x40], eax
lea r8, [r12 + 2]
mov ecx, eax
shr ecx, 0x10
lea rdx, [rbp - 0x3e]
cmp cx, word [r8]
cmovge rdx, r8
movzx r8d, word [rdx]
lea rcx, [rbp - 0x40]
cmp ax, word [r12]
cmovge rcx, r12
movzx eax, word [rcx]
mov dword [rbp - 0x40], 0
dec ax
mov word [rbp - 0x3c], ax
dec r8w
mov word [rbp - 0x3a], r8w
lea r8, [rbp - 0x40]
mov edx, 1
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x14000faa6
lea rcx, str.SetConsoleWindowInfo_failed
call fcn.1400149c0
mov dword [rbp - 0x40], 0
mov edx, dword [rbp - 0x40]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14000fac9
lea rcx, str.SetConsoleCursorPosition_failed
call fcn.1400149c0
mov edx, 7
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x14000fae7
lea rcx, str.SetConsoleTextAttribute_failed
call fcn.1400149c0
mov rcx, qword [rsi + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], eax
mov word [rbp - 0x14], ax
lea rdx, [rbp - 0x28]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14000fb18
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400149c0
mov edx, dword [rbp - 0x28]
shr edx, 0x10
movsx r8d, dx
lea r9, [rbp - 0x28]
xor edx, edx
mov rcx, r15
call fcn.140012720
mov qword [rsi + 8], rbx
mov rdx, qword [r13]
test rdx, rdx
je 0x14000fb42
call fcn.1400047d0
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140017c90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret