Function at 0x140019940
Capabilities:
Manipulate console buffer

Disassembly:
mov r11, rsp
push rbp
push rbx
push r12
push r13
push r15
lea rbp, [r11 - 0x528]
sub rsp, 0x600
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov qword [rbp - 0x78], rcx
mov r12, r9
mov qword [rsp + 0x40], rcx
mov r13, r8
mov r15, rdx
test rcx, rcx
je 0x14001a92c
test rdx, rdx
je 0x14001a92c
mov qword [r11 + 0x10], rsi
mov ebx, 1
mov qword [r11 - 0x30], rdi
lea rsi, [0x140084260]
mov qword [r11 - 0x38], r14
xor r14d, r14d
mov edx, r14d
mov dword [0x140082cdc], edx
mov rax, qword [rsp + 0x40]
lea r10, str.e__1_2c
lea rdi, str.e_2_5R
mov r11d, 0x100
lea r9, [0x140000000]
movzx r8d, byte [rax]
cmp r8d, 0x7e
ja case.0x1400199f4.28
movzx eax, byte [r9 + r8 + 0x1a9dc]
mov ecx, dword [r9 + rax*4 + 0x1a968]
add rcx, r9
jmp rcx
or dword [0x140084288], 1
jmp case.0x1400199f4.6
or dword [0x140084288], 2
jmp case.0x1400199f4.6
or dword [0x140084288], 4
jmp case.0x1400199f4.6
or dword [0x140084288], 8
jmp case.0x1400199f4.6
or dword [0x140084288], 0x10
jmp case.0x1400199f4.6
or dword [0x140084288], 0x20
jmp case.0x1400199f4.6
or dword [0x140084288], 0x40
jmp case.0x1400199f4.6
cmp qword [rsp + 0x40], r15
jae 0x140019ac5
mov edx, 3
lea rcx, [0x140082c7c]
call fcn.140040e24
mov rcx, qword [rsp + 0x40]
lea rdx, [0x140082c7c]
mov r8, rax
call fcn.14003f31c
test eax, eax
je 0x140019ac5
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140019ac5
cmp rax, r15
jae 0x140019abd
mov edx, 3
lea rcx, [0x140082c7c]
call fcn.140040e24
mov rcx, qword [rsp + 0x40]
lea rdx, [0x140082c7c]
mov r8, rax
call fcn.14003f31c
test eax, eax
je 0x140019abd
inc qword [rsp + 0x40]
cmp qword [rsp + 0x40], 0
jne case.0x1400199f4.22
mov edx, 3
lea rcx, [0x140082c7c]
call fcn.140040e24
mov rcx, qword [rsp + 0x40]
mov edx, ebx
dec rcx
mov dword [0x140082cdc], ebx
add rax, rcx
mov qword [rsp + 0x40], rax
jmp case.0x1400199f4.6
test byte [0x140084288], 0x20
je case.0x1400199f4.0
cmp dword [0x140084260], 0
jne 0x140019b0f
mov dword [0x140084260], ebx
mov ebx, dword [0x140084260]
neg ebx
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
movzx eax, word [rbp + 0x3c]
add bx, word [rbp + 0x3e]
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], bx
call fcn.140014780
mov edx, dword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
jmp case.0x1400199f4.0
test byte [0x140084288], 0x20
je case.0x1400199f4.0
cmp dword [0x140084260], 0
jne 0x140019b76
mov dword [0x140084260], ebx
mov ebx, dword [0x140084260]
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
movzx eax, word [rbp + 0x54]
add bx, word [rbp + 0x56]
mov word [rsp + 0x5c], ax
mov word [rsp + 0x5e], bx
call fcn.140014780
mov edx, dword [rsp + 0x5c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
jmp case.0x1400199f4.0
test byte [0x140084288], 0x20
je case.0x1400199f4.0
cmp dword [0x140084260], 0
jne 0x140019bdb
mov dword [0x140084260], ebx
mov ebx, dword [0x140084260]
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
add bx, word [rbp + 0x6c]
movzx eax, word [rbp + 0x6e]
mov word [rsp + 0x60], bx
mov word [rsp + 0x62], ax
call fcn.140014780
mov edx, dword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
jmp case.0x1400199f4.0
test byte [0x140084288], 0x20
je 0x140019c97
cmp dword [0x140084260], 0
jne 0x140019c3c
mov dword [0x140084260], ebx
mov ebx, dword [0x140084260]
neg ebx
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14001a312
add bx, word [rbp + 0x84]
movzx eax, word [rbp + 0x86]
mov word [rsp + 0x64], bx
mov word [rsp + 0x66], ax
call fcn.140014780
mov edx, dword [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov dword [0x14008425c], r14d
jmp 0x14001a899
cmp dword [0x140084288], 0
jne 0x14001a312
mov edx, dword [0x1400a4e48]
mov ecx, dword [0x1400a4e40]
call fcn.140014fd0
mov dword [0x14008425c], r14d
jmp 0x14001a899
or dword [0x140084254], r11d
mov edx, ebx
mov dword [0x140082cdc], ebx
jmp case.0x1400199f4.6
and dword [0x140084254], 0xfffffeff
mov edx, ebx
mov dword [0x140082cdc], ebx
jmp case.0x1400199f4.6
test byte [0x140084288], 1
je 0x140019f98
cmp dword [0x140084260], 4
jne case.0x1400199f4.25
cmp dword [0x140084264], 7
jne case.0x1400199f4.25
mov rsi, qword [0x140084230]
mov rbx, rsi
call fcn.140014780
test rax, rax
jne 0x140019d2f
mov rbx, r14
jmp 0x140019e08
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140019d4d
mov rbx, r14
jmp 0x140019e08
test rsi, rsi
jne 0x140019d6b
mov ecx, 0x18
call fcn.14003d014
mov rbx, rax
test rax, rax
je 0x14001a930
mov qword [rax], r14
mov rcx, qword [rbp - 0x4e]
mov rdi, qword [rbx]
mov qword [rbx + 0x10], rcx
movsx ecx, word [rbp - 0x4e]
movsx eax, word [rbp - 0x4c]
movsx edx, word [rbp - 0x4a]
sub edx, ecx
movsx ecx, word [rbp - 0x48]
sub ecx, eax
inc edx
mov word [rbx + 8], dx
inc ecx
mov word [rbx + 0xa], cx
movzx eax, word [rbp - 0x54]
sub ax, word [rbp - 0x4e]
mov word [rbx + 0xc], ax
movzx eax, word [rbp - 0x52]
sub ax, word [rbp - 0x4c]
mov word [rbx + 0xe], ax
test rdi, rdi
jne 0x140019de3
movsxd rcx, ecx
movsxd rax, edx
imul rcx, rax
shl rcx, 2
call fcn.14003d014
mov qword [rbx], rax
mov rdi, rax
test rax, rax
jne 0x140019de3
cmp rbx, rsi
je 0x140019dde
mov rcx, rbx
call fcn.14003d000
mov rbx, r14
jmp 0x140019e08
call fcn.140014780
mov r9d, dword [0x140084238]
mov rcx, rax
mov r8d, dword [rbx + 8]
lea rax, [rbp - 0x4e]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
mov qword [0x140084230], rbx
lea rsi, [0x140084260]
test byte [0x140084288], 1
je 0x140019f98
cmp dword [0x140084260], 4
jne 0x140019f50
cmp dword [0x140084264], 7
jne 0x140019f46
mov r14, qword [0x140084230]
mov dword [rsp + 0x48], 0
call fcn.140014780
test rax, rax
je case.0x1400199f4.0
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
movsx eax, word [rbp - 0x1e]
movsx ecx, word [rbp - 0x1c]
movsx esi, word [rbp - 0x1a]
sub esi, eax
mov word [rsp + 0x4a], cx
mov word [rsp + 0x48], ax
inc esi
mov eax, ecx
movsx ecx, word [rbp - 0x18]
sub ecx, eax
inc ecx
imul esi, ecx
call fcn.140014780
mov r9d, dword [rsp + 0x48]
mov rcx, rax
lea rax, [rsp + 0x78]
mov r8d, esi
mov dl, 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov rdi, qword [r14]
call fcn.140014780
movzx edx, word [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.140014780
mov r9d, dword [rsp + 0x48]
mov rcx, rax
movzx edx, word [rdi + 2]
lea rax, [rsp + 0x78]
mov r8d, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
call fcn.140014780
mov r9d, dword [0x140084238]
mov rcx, rax
mov r8d, dword [r14 + 8]
lea rax, [rbp - 0x1e]
mov rdx, qword [r14]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
call fcn.140014780
mov rcx, rax
lea r8, [r14 + 0x10]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
movsx edx, word [r14 + 0xe]
movsx ecx, word [r14 + 0xc]
call fcn.1400151e0
jmp case.0x1400199f4.0
or dword [0x140084254], 0x400
cmp dword [0x140084258], 0
mov edi, r14d
jle case.0x1400199f4.0
mov rbx, rsi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rsp + 0x40]
mov edx, r14d
mov ecx, dword [rbx]
cmp byte [rax], 0x68
sete dl
call fcn.140019740
inc edi
lea rbx, [rbx + 4]
cmp edi, dword [0x140084258]
jl 0x140019f70
jmp case.0x1400199f4.0
test byte [0x140084288], 0x20
je case.0x1400199f4.0
cmp dword [0x140084260], 0x14
jne 0x140019ff4
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0x68
jne 0x140019fd4
mov eax, dword [0x140084254]
bts eax, 9
mov dword [0x140082cb4], r14d
mov dword [0x140084254], eax
jmp case.0x1400199f4.0
mov eax, 1
mov dword [0x140082cb4], eax
mov eax, dword [0x140084254]
btr eax, 9
mov dword [0x140084254], eax
jmp case.0x1400199f4.0
cmp dword [0x140084260], 4
jne case.0x1400199f4.0
and dword [0x140084254], 0xfffffbff
jmp case.0x1400199f4.0
mov ecx, dword [0x140084260]
test ecx, ecx
je 0x14001a099
mov edi, r14d
jle 0x14001a312
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a040
mov ebx, 0xffffffff
jmp 0x14001a04c
movsx eax, word [rbp - 0x64]
movsx ebx, word [rbp - 0x60]
sub ebx, eax
inc ebx
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a067
mov ecx, r14d
jmp 0x14001a071
movsx eax, word [rbp - 0x64]
movsx ecx, word [rbp - 0x6a]
sub ecx, eax
mov edx, dword [0x1400a4e40]
add edx, 0xfffffffe
add edx, ebx
dec ecx
call fcn.140014d90
inc edi
cmp edi, dword [0x140084260]
jl 0x14001a023
mov dword [0x14008425c], r14d
jmp 0x14001a899
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a0b4
mov ebx, r14d
jmp 0x14001a0be
movsx eax, word [rbp - 0x64]
movsx ebx, word [rbp - 0x6a]
sub ebx, eax
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a0de
mov ecx, 0xffffffff
jmp 0x14001a0f0
movsx eax, word [rbp + 0xa4]
movsx ecx, word [rbp + 0xa8]
sub ecx, eax
inc ecx
mov eax, dword [0x1400a4e40]
add eax, 0xfffffffe
add ecx, eax
cmp ebx, ecx
jg 0x14001a312
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a120
mov ebx, 0xffffffff
jmp 0x14001a12c
movsx eax, word [rbp - 0x64]
movsx ebx, word [rbp - 0x60]
sub ebx, eax
inc ebx
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a163
mov edx, dword [0x1400a4e40]
mov ecx, r14d
add edx, 0xfffffffe
add edx, ebx
dec ecx
call fcn.140014d90
mov dword [0x14008425c], r14d
jmp 0x14001a899
mov edx, dword [0x1400a4e40]
movsx eax, word [rbp - 0x64]
add edx, 0xfffffffe
movsx ecx, word [rbp - 0x6a]
add edx, ebx
sub ecx, eax
dec ecx
call fcn.140014d90
mov dword [0x14008425c], r14d
jmp 0x14001a899
call int.140014840
jmp 0x14001a899
test byte [0x140084288], 0x20
je 0x14001a312
mov ecx, dword [0x140084260]
lea edx, [rcx - 1]
test ecx, ecx
jg 0x14001a1b2
mov edx, r14d
mov eax, dword [0x140084264]
lea ecx, [rax - 1]
test eax, eax
jg 0x14001a1c2
mov ecx, r14d
call fcn.1400151e0
mov dword [0x14008425c], r14d
jmp 0x14001a899
mov ecx, dword [0x140084260]
test ecx, ecx
je 0x14001a255
mov edi, r14d
jle 0x14001a312
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a201
mov ebx, r14d
jmp 0x14001a20b
movsx eax, word [rbp - 0x64]
movsx ebx, word [rbp - 0x6a]
sub ebx, eax
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a226
mov ecx, r14d
jmp 0x14001a230
movsx eax, word [rbp - 0x64]
movsx ecx, word [rbp - 0x6a]
sub ecx, eax
mov edx, dword [0x1400a4e40]
sub edx, ecx
mov ecx, ebx
call fcn.140014d90
inc edi
cmp edi, dword [0x140084260]
jl 0x14001a1e6
mov dword [0x14008425c], r14d
jmp 0x14001a899
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a272
mov ebx, 0xffffffff
jmp 0x14001a27e
movsx eax, word [rbp - 0x64]
movsx ebx, word [rbp - 0x60]
sub ebx, eax
inc ebx
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a29c
mov edx, r14d
jmp 0x14001a2ac
movsx eax, word [rbp + 0xbc]
movsx edx, word [rbp + 0xb6]
sub edx, eax
mov ecx, dword [0x1400a4e40]
add ecx, 0xfffffffe
add ecx, ebx
cmp edx, ecx
jg 0x14001a312
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a2d6
mov ebx, r14d
jmp 0x14001a2e0
movsx eax, word [rbp - 0x64]
movsx ebx, word [rbp - 0x6a]
sub ebx, eax
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a2fb
mov ecx, r14d
jmp 0x14001a305
movsx eax, word [rbp - 0x64]
movsx ecx, word [rbp - 0x6a]
sub ecx, eax
mov edx, dword [0x1400a4e40]
sub edx, ebx
call fcn.140014d90
mov dword [0x14008425c], r14d
jmp 0x14001a899
test byte [0x140084288], 0x20
je 0x14001a3ee
mov ecx, dword [0x140084260]
test ecx, ecx
je 0x14001a5c1
sub ecx, 1
je 0x14001a4fe
cmp ecx, 1
jne case.0x1400199f4.0
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
mov word [rsp + 0x68], r14w
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a389
mov ecx, r14d
jmp 0x14001a393
movsx eax, word [rbp - 0x64]
movsx ecx, word [rbp - 0x6a]
sub ecx, eax
mov word [rsp + 0x6a], cx
call fcn.140014780
mov r9d, dword [rsp + 0x68]
mov rcx, rax
mov r8d, dword [0x1400a4e44]
lea rax, [rsp + 0x7c]
movzx edx, word [rbp + 0xd0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
call fcn.140014780
mov r9d, dword [rsp + 0x68]
mov rcx, rax
mov r8d, dword [0x1400a4e44]
lea rax, [rsp + 0x7c]
mov dl, 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
jmp case.0x1400199f4.0
cmp dword [0x140084288], 0
jne case.0x1400199f4.0
mov dword [0x140084288], 0x80
jmp case.0x1400199f4.0
mov ecx, dword [0x140084260]
test ecx, ecx
je 0x14001a508
sub ecx, 1
je 0x14001a430
cmp ecx, 1
jne case.0x1400199f4.0
call fcn.140014b90
jmp case.0x1400199f4.0
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
mov dword [rsp + 0x6c], 0
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a46d
mov ecx, r14d
jmp 0x14001a477
movsx eax, word [rbp - 0x64]
movsx ecx, word [rbp - 0x6a]
sub ecx, eax
movsx edi, word [rbp - 0xe]
movsx eax, word [rbp - 0x10]
sub edi, ecx
dec edi
imul edi, eax
call fcn.140014780
mov ebx, dword [rsp + 0x6c]
mov rcx, rax
lea rax, [rbp - 0x80]
mov r9d, ebx
mov r8d, edi
mov qword [rsp + 0x20], rax
mov dl, 0x20
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a4c4
mov ecx, r14d
jmp 0x14001a4ce
movsx eax, word [rbp - 0x64]
movsx ecx, word [rbp - 0x6a]
sub ecx, eax
movsx edi, word [rbp - 0xe]
movsx eax, word [rbp - 0x10]
sub edi, ecx
dec edi
imul edi, eax
call fcn.140014780
movzx edx, word [rbp - 8]
mov rcx, rax
lea rax, [rbp - 0x80]
mov r9d, ebx
mov r8d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
call fcn.1400150d0
jmp case.0x1400199f4.0
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
mov word [rsp + 0x70], r14w
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a543
mov esi, r14d
jmp 0x14001a54d
movsx eax, word [rbp - 0x64]
movsx esi, word [rbp - 0x6a]
sub esi, eax
movsx edi, word [rbp - 0x30]
inc si
add si, word [rbp - 0x34]
movsx eax, si
sub edi, eax
mov word [rsp + 0x72], si
movsx eax, word [rbp - 0x40]
inc edi
imul edi, eax
call fcn.140014780
mov r9d, dword [rsp + 0x70]
mov rcx, rax
lea rax, [rbp - 0x7c]
mov r8d, edi
mov dl, 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx edi, word [rbp - 0x30]
movsx eax, si
sub edi, eax
movsx eax, word [rbp - 0x40]
inc edi
imul edi, eax
call fcn.140014780
mov r9d, dword [rsp + 0x70]
mov rcx, rax
movzx edx, word [rbp - 0x38]
lea rax, [rbp - 0x7c]
mov r8d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
call fcn.140014c40
jmp case.0x1400199f4.0
cmp dword [0x140084258], 1
jne case.0x1400199f4.0
cmp dword [0x140084260], 5
jne 0x14001a604
test r13, r13
je case.0x1400199f4.0
mov qword [r13], rdi
test r12, r12
je case.0x1400199f4.0
mov qword [r12], 6
jmp case.0x1400199f4.0
cmp dword [0x140084260], 6
jne case.0x1400199f4.0
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ebx, r14d
test eax, eax
je 0x14001a62e
movsx ebx, word [rbp - 0x6c]
call fcn.140014780
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a649
mov ecx, r14d
jmp 0x14001a653
movsx eax, word [rbp - 0x64]
movsx ecx, word [rbp - 0x6a]
sub ecx, eax
inc ecx
lea eax, [rbx + 1]
mov dword [rsp + 0x28], eax
lea r9, str.e__d__dR
mov dword [rsp + 0x20], ecx
mov edx, 0xff
lea rcx, [0x1400a4d20]
mov r8, 0xffffffffffffffff
call fcn.140018ee0
test eax, eax
lea rcx, [0x1400a4d20]
cmove rcx, r14
test rcx, rcx
je case.0x1400199f4.0
test r13, r13
je case.0x1400199f4.0
mov qword [r13], rcx
test r12, r12
je case.0x1400199f4.0
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14001a6b2
mov qword [r12], rax
jmp case.0x1400199f4.0
cmp dword [0x140084288], 0x20
jne case.0x1400199f4.0
test r13, r13
je case.0x1400199f4.0
mov qword [r13], r10
test r12, r12
je case.0x1400199f4.0
mov qword [r12], 7
jmp case.0x1400199f4.0
mov esi, dword [0x140084260]
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x1400199f4.0
movzx edi, word [rbp + 0x24]
mov dword [rsp + 0x74], 0x10100
lea eax, [rdi + rsi]
mov word [rsp + 0x50], ax
movzx eax, word [rbp + 0x26]
mov word [rsp + 0x52], ax
mov word [rsp + 0x56], ax
movzx eax, word [rbp + 0x2e]
mov word [rsp + 0x54], ax
call fcn.140014780
mov r9d, dword [0x140084238]
lea rdx, [rbp + 0xe0]
mov r8d, dword [rsp + 0x74]
mov rcx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
call fcn.140014c40
sub word [rsp + 0x54], si
mov word [rsp + 0x50], di
call fcn.140014780
mov r9d, dword [0x140084238]
lea rdx, [rbp + 0xe0]
mov r8d, dword [rsp + 0x74]
mov rcx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
jmp case.0x1400199f4.0
test r8b, r8b
je 0x14001a926
mov ecx, r8d
call fcn.14003f020
test eax, eax
je 0x14001a926
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov r8d, 0xa
call fcn.140040d70
movsxd rdx, dword [0x140084258]
dec qword [rsp + 0x40]
mov dword [rsi + rdx*4], eax
cmp edx, 0xa
jge 0x14001a7f1
inc dword [0x140084258]
test byte [0x140084288], 0x5e
je 0x14001a80b
mov eax, 1
mov edx, eax
mov dword [0x140082cdc], eax
mov ebx, eax
jmp 0x14001a811
mov edx, dword [0x140082cdc]
cmp dword [0x140084288], 0
jne case.0x1400199f4.6
mov ecx, dword [0x140084260]
sub ecx, 7
je 0x14001a841
cmp ecx, 1
jne case.0x1400199f4.0
mov edx, dword [0x1400a4c48]
mov ecx, dword [0x1400a4c4c]
call fcn.1400151e0
jmp case.0x1400199f4.0
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
mov eax, r14d
je 0x14001a85e
movsx eax, word [rbp + 0xc]
mov dword [0x1400a4c4c], eax
call fcn.140014780
mov rcx, rax
lea rdx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001a87f
mov ecx, r14d
jmp 0x14001a889
movsx eax, word [rbp + 0x14]
movsx ecx, word [rbp + 0xe]
sub ecx, eax
mov dword [0x1400a4c48], ecx
xor r14d, r14d
lea rsi, [0x140084260]
mov eax, 1
mov edx, eax
mov dword [0x140082cdc], eax
mov ebx, eax
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
cmp rax, r15
jae 0x14001a8c3
test edx, edx
jne 0x14001a8c7
jmp 0x1400199b2
test edx, edx
je 0x14001a926
xorps xmm0, xmm0
mov dword [0x140084258], r14d
xor ecx, ecx
mov dword [0x140084288], r14d
movups xmmword [0x140084260], xmm0
mov qword [0x140084280], rcx
movups xmmword [0x140084270], xmm0
mov rdi, qword [rsp + 0x5f8]
mov rsi, qword [rsp + 0x638]
mov r14, qword [rsp + 0x5f0]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1400313f0
add rsp, 0x600
pop r15
pop r13
pop r12
pop rbx
pop rbp
ret
mov rax, qword [rbp - 0x78]
jmp 0x14001a8ef
xor eax, eax
jmp 0x14001a907
lea rax, str.out_of_memory
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.ConSaveScreenHandle
mov qword [rsp + 0x28], r14
lea rcx, str.C:__w1_scontribwin32win32compatconsole.c
mov r8d, 0x5b5
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3