Function at 0x140014e10
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov rax, qword [0x14009b3f8]
xor rax, rsp
mov qword [rbp + 0x400], rax
cmp byte [rcx + 0x1c], 0
mov rsi, rcx
jne 0x14001537f
cmp dword [rcx + 0xc28], 0
je 0x14001537f
xor eax, eax
mov qword [rsp + 0x518], r14
mov ecx, 0xfffffff5
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rbp - 0x80]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140015377
movsx ecx, word [rbp - 0x80]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x548], rbx
mov edx, 0x20
mov ebx, dword [rsp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x550], rdi
movsx edi, word [rbp - 0x7e]
imul edi, ecx
mov rcx, r14
mov qword [rsp + 0x20], rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x140015367
movzx edx, word [rbp - 0x78]
lea rax, [rsp + 0x70]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x140015367
cmp byte [rsi + 0x1c], 0
jne 0x140015367
cmp dword [rsi + 0xc28], 0
je 0x140015367
cmp dword [rsi + 0xc], 0
mov r9d, dword [rsi + 0x10]
mov qword [rsp + 0x558], r12
mov qword [rsp + 0x520], r13
mov qword [rsp + 0x510], r15
mov r15d, 0x64
lea r12d, [r15 - 0x3c]
lea eax, [r15 - 0x14]
jne 0x140014f35
cmp r9d, 1
jne 0x140014f3f
movzx r15d, ax
mov r12d, 0x1e
movsx ecx, word [rbp - 0x70]
movsx edx, word [rbp - 0x76]
movsx r8d, word [rbp - 0x74]
movsx eax, word [rbp - 0x72]
movsx r10d, word [rbp - 0x7e]
movsx r11d, word [rbp - 0x80]
mov rdi, qword [rsi]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], ecx
mov rcx, rsi
mov dword [rsp + 0x48], edx
movsx edx, word [rsi + 0xc2e]
mov dword [rsp + 0x40], r8d
lea r8, str.CLR:__d_line_minW__d__minH__d__r:c__d:_d_rect__d__d__d__d_
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
movzx r13d, r15w
movzx ebx, r12w
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x74], r13d
call qword [rdi + 0x70]
movsx edx, word [rbp - 0x6c]
lea r8, str.CLR0:_Window_dwMmaxW__d__dwMaxH__d__lines__d__cols__d
movzx edi, word [rbp - 0x72]
movzx ebx, word [rbp - 0x70]
sub di, word [rbp - 0x76]
sub bx, word [rbp - 0x74]
inc di
mov r10, qword [rsi]
inc bx
movsx r9d, word [rbp - 0x6e]
movsx eax, di
mov dword [rsp + 0x30], eax
movsx ecx, bx
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov dword [rsp + 0x20], edx
movsx edx, word [rsi + 0xc2e]
call qword [r10 + 0x70]
mov r13d, 1
cmp bx, r12w
jne 0x14001500f
cmp word [rbp - 0x80], r15w
jl 0x14001500f
cmp di, r15w
jl 0x14001500f
cmp word [rbp - 0x74], 4
je 0x140015294
mov ebx, r13d
mov rcx, r14
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
movsx edx, word [rbp - 0x80]
lea r8, str.SBS0:_Buffer_maxW__d__maxH__d__csbi.dwSize.X__d__minWidth__d
mov r10, qword [rsi]
mov dword [rsp + 0x64], eax
movsx r9d, word [rsp + 0x64]
shr eax, 0x10
movsx ecx, ax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
movsx edx, word [rsi + 0xc2e]
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [r10 + 0x70]
cmp word [rbp - 0x80], r15w
jne 0x140015071
cmp di, r15w
jne 0x140015071
movzx edi, word [rsp + 0x66]
jmp 0x140015152
mov rax, qword [rsi]
lea r8, str.SBSx:_changed_1
movsx edx, word [rsi + 0xc2e]
mov rcx, rsi
mov dword [rsp + 0x78], ebx
call qword [rax + 0x70]
movzx edi, word [rbp - 0x7e]
mov rcx, r14
mov word [rsp + 0x66], di
mov edx, dword [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov rcx, r14
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov dword [rsp + 0x74], eax
mov ebx, eax
test r13d, r13d
je 0x1400150bd
xor eax, eax
jmp 0x1400150c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsx ecx, word [rsp + 0x76]
lea r8, str.SBS1:_Buffer_maxW__d__maxH__d__pass__d__err__d
mov r10, qword [rsi]
movsx edx, word [rsi + 0xc2e]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movsx r9d, bx
call qword [r10 + 0x70]
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ebx, eax
test eax, eax
je 0x140015108
xor eax, eax
jmp 0x14001510e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsx ecx, word [rbp - 0x7e]
movsx edx, word [rbp - 0x80]
movsx r8d, word [rbp - 0x6c]
mov r10, qword [rsi]
movsx r9d, word [rbp - 0x6e]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ecx
mov rcx, rsi
mov dword [rsp + 0x28], edx
movsx edx, word [rsi + 0xc2e]
mov dword [rsp + 0x20], r8d
lea r8, str.SBS2:_Screen_maxW__d__maxH__d__r:c__d:_d__pass__d__err__d
call qword [r10 + 0x70]
mov r13d, dword [rsp + 0x78]
mov r10, qword [rsi]
lea r8, str.CLR1:_SBS:_cols__d__rows__d__changed__d__pass__d
movsx r9d, word [rsp + 0x64]
mov rcx, rsi
movsx edx, word [rsi + 0xc2e]
movsx eax, di
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call qword [r10 + 0x70]
mov r13d, 1
lea r8, [rsp + 0x68]
xor edi, edi
dec r12w
dec r15w
mov dword [rsp + 0x68], edi
mov edx, r13d
mov word [rsp + 0x6e], r12w
mov rcx, r14
mov word [rsp + 0x6c], r15w
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov ebx, eax
test eax, eax
je 0x1400151bb
mov eax, edi
jmp 0x1400151c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsx ecx, word [rsp + 0x6c]
lea r8, str.CLR2:_rect__d__d__d__d__pass__d__err__d
movsx edx, word [rsp + 0x6e]
movsx r10d, word [rsp + 0x68]
mov r11, qword [rsi]
movsx r9d, word [rsp + 0x6a]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ecx
mov rcx, rsi
mov dword [rsp + 0x28], edx
movsx edx, word [rsi + 0xc2e]
mov dword [rsp + 0x20], r10d
call qword [r11 + 0x70]
test ebx, ebx
jne 0x140015264
xor edx, edx
lea r8d, [rbx + 0x50]
lea rcx, [rbp - 0x5c]
call fcn.140035c20
lea r8, [rbp - 0x60]
mov dword [rbp - 0x60], 0x54
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetCurrentConsoleFontEx]
test eax, eax
je 0x140015260
movsx eax, word [rbp - 0x56]
lea r9, [rbp - 0x4c]
movsx ecx, word [rbp - 0x58]
lea r8, str.FNT:_Font:__s__fontIndex__d__Size__d__d._Decrease_16_to_12_to_support__mon:2
mov r10, qword [rsi]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
movsx edx, di
mov dword [rsp + 0x20], eax
call qword [r10 + 0x70]
mov dword [rsi + 0xc], r13d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rdx, 0xfffffffffffffffe
mov dword [rsp + 0x30], 5
mov rcx, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea r9d, [rdx + 6]
lea r8d, [rdx + 0x24]
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x140015296
xor edi, edi
mov word [rsp + 0x62], r13w
mov rcx, r14
mov edx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea r8, str._Status_
mov edx, 0x200
lea rcx, [rbp]
call fcn.140001150
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov r8d, eax
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
movsx eax, word [rsi + 0xc2e]
mov word [rsp + 0x62], ax
mov edx, dword [rsp + 0x60]
lea ecx, [rax + 1]
mov dword [rsi + 0x18], ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea r8, str._Messages_
mov edx, 0x200
lea rcx, [rbp]
call fcn.140001150
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov r8d, eax
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rax, qword [rsi]
lea r8, [0x14007a5a0]
movsx edx, word [rsi + 0xc2e]
mov rcx, rsi
call qword [rax + 0x70]
mov word [rsp + 0x62], di
mov rcx, r14
mov edx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov r15, qword [rsp + 0x510]
mov r13, qword [rsp + 0x520]
mov r12, qword [rsp + 0x558]
mov rdi, qword [rsp + 0x550]
mov rbx, qword [rsp + 0x548]
mov r14, qword [rsp + 0x518]
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400303d0
add rsp, 0x528
pop rsi
pop rbp
ret