Function at 0x140026780
Capabilities:
Manipulate console buffer
Query environment variable
Set console window title

Disassembly:
push rbp
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
cmp word [0x14023b09c], 0x5b
jne 0x14002764f
movzx eax, word [0x14023b0a0]
mov qword [rsp + 0x4d8], rdi
cmp ax, 0x3f
jne 0x14002682e
movzx eax, word [0x14023b0a4]
mov ecx, 0xfffb
sub ax, 0x68
test cx, ax
jne case.default.0x140026891
cmp dword [0x14023b0a8], 1
jne case.default.0x140026891
cmp dword [0x14023b0b0], 0x19
jne case.default.0x140026891
mov rcx, qword [0x14023b090]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
mov rcx, qword [0x14023b090]
lea rdx, [rsp + 0x60]
xor edi, edi
cmp word [0x14023b0a4], 0x68
sete dil
mov dword [rsp + 0x64], edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov rdi, qword [rsp + 0x4d8]
add rsp, 0x4f0
pop rbp
ret
test ax, ax
jne case.default.0x140026891
mov rcx, qword [0x14023b090]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [0x14023b0a4]
add eax, 0xffffffc0
cmp eax, 0x35
ja case.default.0x140026891
mov qword [rsp + 0x4e8], rbx
mov qword [rsp + 0x4e0], rsi
mov qword [rsp + 0x4d0], r14
lea r14, [0x140000000]
cdqe
movzx eax, byte [r14 + rax + 0x276e8]
mov ecx, dword [r14 + rax*4 + 0x27690]
add rcx, r14
jmp rcx
xor edi, edi
cmp dword [0x14023b0a8], edi
jne 0x1400268ae
mov ebx, 1
mov dword [0x14023b0b0], edi
mov dword [0x14023b0a8], ebx
cmp dword [0x14023b0a8], edi
mov esi, edi
jle 0x140026a47
mov qword [rsp + 0x4c8], r15
lea rbx, [0x14023b0b0]
nop dword [rax + rax]
movsxd rcx, dword [rbx]
lea eax, [rcx - 0x1e]
cmp eax, 7
ja 0x1400268e9
sub cl, 0x1e
mov byte [0x14023b508], cl
jmp case.0x14002691c.9
lea eax, [rcx - 0x28]
cmp eax, 7
ja 0x1400268ff
sub cl, 0x28
mov byte [0x14023b509], cl
jmp case.0x14002691c.9
cmp ecx, 0x31
ja case.0x14002691c.9
movzx eax, byte [r14 + rcx + 0x27748]
mov ecx, dword [r14 + rax*4 + 0x27720]
add rcx, r14
jmp rcx
mov r8d, 4
mov dword [rbp + 0x400], 0x37
lea rdx, [rbp + 0x400]
lea rcx, str.ANSICON_DEF
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edx, edx
lea rcx, [rbp + 0x400]
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov byte [0x14023b50e], dil
mov ecx, eax
test eax, eax
jns 0x14002696b
mov byte [0x14023b50e], 1
neg ecx
mov r8d, dword [rbx]
movsxd rdx, ecx
cmp r8d, 0x31
je 0x14002698c
mov rax, rdx
and eax, 7
movzx eax, byte [rax + r14 + 0x1a67f0]
mov byte [0x14023b508], al
cmp r8d, 0x27
je case.0x14002691c.9
sar rdx, 4
and edx, 7
movzx eax, byte [rdx + r14 + 0x1a67f0]
mov byte [0x14023b509], al
test r8d, r8d
jne case.0x14002691c.9
cmp dword [0x14023b0a8], 1
jne 0x1400269d7
movzx eax, cl
mov word [0x14023b50c], di
and al, 8
and cl, 0x80
mov byte [0x14023b50a], al
mov byte [0x14023b50b], cl
jmp case.0x14002691c.9
mov word [0x14023b50a], di
mov word [0x14023b50c], di
jmp case.0x14002691c.9
mov byte [0x14023b50a], 8
jmp case.0x14002691c.9
mov byte [0x14023b50b], 0x80
jmp case.0x14002691c.9
mov byte [0x14023b50c], 1
jmp case.0x14002691c.9
mov byte [0x14023b50d], 1
jmp case.0x14002691c.9
mov byte [0x14023b50a], dil
jmp case.0x14002691c.9
mov byte [0x14023b50b], dil
jmp case.0x14002691c.9
mov byte [0x14023b50c], dil
jmp case.0x14002691c.9
mov byte [0x14023b50d], dil
inc esi
add rbx, 4
cmp esi, dword [0x14023b0a8]
jl 0x1400268d0
mov r15, qword [rsp + 0x4c8]
cmp byte [0x14023b50d], dil
je 0x140026ac0
cmp byte [0x14023b50c], dil
je 0x140026a8e
movzx ecx, byte [0x14023b508]
movzx eax, byte [rcx + r14 + 0x1a67e8]
or al, byte [rcx + r14 + 0x1a67e0]
cmp byte [0x14023b50a], dil
movzx edx, al
je 0x140026b39
mov eax, 0x88
or dx, ax
jmp 0x140026b39
movzx ecx, byte [0x14023b509]
movzx eax, byte [rcx + r14 + 0x1a67e8]
or al, byte [rcx + r14 + 0x1a67e0]
cmp byte [0x14023b50b], dil
movzx edx, al
je 0x140026b39
mov eax, 0x88
or dx, ax
jmp 0x140026b39
cmp byte [0x14023b50c], dil
je 0x140026b0b
movzx eax, byte [0x14023b509]
movzx ecx, byte [0x14023b508]
movzx eax, byte [rax + r14 + 0x1a67e0]
or al, byte [rcx + r14 + 0x1a67e8]
cmp byte [0x14023b50a], dil
movzx edx, al
je 0x140026afc
mov eax, 0x80
or dx, ax
cmp byte [0x14023b50b], dil
je 0x140026b39
or dx, 8
jmp 0x140026b39
movzx ecx, byte [0x14023b509]
movzx eax, byte [0x14023b508]
movzx ecx, byte [rcx + r14 + 0x1a67e8]
or cl, byte [rax + r14 + 0x1a67e0]
or cl, byte [0x14023b50b]
or cl, byte [0x14023b50a]
movzx edx, cl
cmp byte [0x14023b50e], dil
je 0x140026b5a
movzx ecx, dx
movzx eax, dx
and cx, 0xf
shr ax, 4
shl cx, 4
movzx edx, cx
or dx, ax
mov rcx, qword [0x14023b090]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp case.0x140026891.73
mov eax, dword [0x14023b0a8]
xor edi, edi
test eax, eax
jne 0x140026b8d
mov ecx, edi
mov ebx, 1
mov dword [0x14023b0b0], ecx
mov dword [0x14023b0a8], ebx
jmp 0x140026b9c
cmp eax, 1
jne case.0x140026891.73
mov ecx, dword [0x14023b0b0]
test ecx, ecx
je 0x140026c98
sub ecx, 1
je 0x140026c48
cmp ecx, 1
jne case.0x140026891.73
movsx eax, word [rsp + 0x32]
mov dl, 0x20
mov rcx, qword [0x14023b090]
mov dword [rbp + 0x400], edi
movsx edi, word [rsp + 0x30]
mov ebx, dword [rbp + 0x400]
mov r9d, ebx
imul edi, eax
lea rax, [rbp + 0x408]
mov qword [rsp + 0x20], rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movzx edx, word [rsp + 0x38]
lea rax, [rbp + 0x408]
mov rcx, qword [0x14023b090]
mov r9d, ebx
mov r8d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov edx, ebx
mov rcx, qword [0x14023b090]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rbx, qword [rsp + 0x4e8]
mov rsi, qword [rsp + 0x4e0]
mov r14, qword [rsp + 0x4d0]
mov rdi, qword [rsp + 0x4d8]
add rsp, 0x4f0
pop rbp
ret
movsx eax, word [rsp + 0x36]
mov dl, 0x20
mov rcx, qword [0x14023b090]
mov dword [rbp + 0x400], edi
movsx edi, word [rsp + 0x30]
mov r9d, dword [rbp + 0x400]
imul edi, eax
movsx eax, word [rsp + 0x34]
add edi, eax
lea rax, [rbp + 0x408]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov r9d, dword [rbp + 0x400]
lea r8d, [rdi + 1]
jmp 0x140026e55
movsx eax, word [rsp + 0x36]
mov dl, 0x20
movsx ebx, word [rsp + 0x32]
mov r9d, dword [rsp + 0x34]
sub ebx, eax
movsx eax, word [rsp + 0x30]
mov rcx, qword [0x14023b090]
imul ebx, eax
movsx eax, r9w
sub ebx, eax
lea rax, [rbp + 0x408]
mov qword [rsp + 0x20], rax
lea r8d, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
lea r8d, [rbx - 1]
jmp 0x140026e50
mov eax, dword [0x14023b0a8]
xor edi, edi
test eax, eax
jne 0x140026d00
mov ecx, edi
mov ebx, 1
mov dword [0x14023b0b0], ecx
mov dword [0x14023b0a8], ebx
jmp 0x140026d0f
cmp eax, 1
jne case.0x140026891.73
mov ecx, dword [0x14023b0b0]
test ecx, ecx
je 0x140026dc5
sub ecx, 1
je 0x140026d72
cmp ecx, 1
jne case.0x140026891.73
movzx eax, word [rsp + 0x36]
mov dl, 0x20
movsx r8d, word [rsp + 0x30]
mov rcx, qword [0x14023b090]
mov word [rbp + 0x402], ax
lea rax, [rbp + 0x408]
mov word [rbp + 0x400], di
mov r9d, dword [rbp + 0x400]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx r8d, word [rsp + 0x30]
mov r9d, dword [rbp + 0x400]
jmp 0x140026e55
movzx eax, word [rsp + 0x36]
mov dl, 0x20
movsx r8d, word [rsp + 0x34]
mov rcx, qword [0x14023b090]
inc r8d
mov word [rbp + 0x402], ax
lea rax, [rbp + 0x408]
mov word [rbp + 0x400], di
mov r9d, dword [rbp + 0x400]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx r8d, word [rsp + 0x34]
mov r9d, dword [rbp + 0x400]
inc r8d
jmp 0x140026e55
movsx ebx, word [rsp + 0x30]
mov dl, 0x20
mov r9d, dword [rsp + 0x34]
mov rcx, qword [0x14023b090]
movsx eax, r9w
sub ebx, eax
lea rax, [rbp + 0x408]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
lea r8d, [rbx + 1]
jmp 0x140026e50
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x140026e17
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x140026e26
cmp eax, 1
jne case.0x140026891.73
mov ebx, dword [0x14023b0b0]
mov r9d, dword [rsp + 0x34]
lea rax, [rbp + 0x408]
mov rcx, qword [0x14023b090]
mov r8d, ebx
mov dl, 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov r8d, dword [0x14023b0b0]
mov r9d, dword [rsp + 0x34]
movzx edx, word [rsp + 0x38]
lea rax, [rbp + 0x408]
mov rcx, qword [0x14023b090]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
jmp case.0x140026891.73
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x140026e95
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x140026e9e
cmp eax, 1
jne case.0x140026891.73
movzx ecx, word [rsp + 0x36]
xor edi, edi
movzx eax, word [rsp + 0x30]
dec ax
mov word [rbp + 0x41a], cx
mov word [rbp + 0x41c], ax
movzx eax, word [rsp + 0x32]
dec ax
mov word [rbp + 0x418], di
add cx, word [0x14023b0b0]
mov word [rbp + 0x402], cx
mov word [rbp + 0x41e], ax
mov word [rbp + 0x400], di
jmp 0x1400270c3
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x140026f02
mov ebx, 1
mov dword [0x14023b0a8], ebx
jmp 0x140026f11
cmp eax, 1
jne case.0x140026891.73
mov ebx, dword [0x14023b0b0]
movsx r8d, word [rsp + 0x36]
movsx edx, word [rsp + 0x32]
movzx eax, r8w
mov ecx, edx
mov word [rbp + 0x402], r8w
sub ecx, r8d
cmp ebx, ecx
cmovg ebx, ecx
xor edi, edi
add ax, bx
mov dword [0x14023b0b0], ebx
mov word [rbp + 0x41a], ax
movzx eax, word [rsp + 0x30]
dec ax
mov word [rbp + 0x418], di
mov word [rbp + 0x41c], ax
dec dx
mov word [rbp + 0x400], di
jmp 0x1400270bc
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x140026f86
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x140026f95
cmp eax, 1
jne case.0x140026891.73
mov ebx, dword [0x14023b0b0]
movsx r8d, word [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov edx, r8d
movsx r10d, r9w
lea eax, [r8 - 1]
lea ecx, [r10 + rbx]
cmp ecx, eax
jle 0x140026fbc
sub edx, r10d
mov dword [0x14023b0b0], edx
mov rcx, qword [0x14023b090]
movzx eax, r9w
add ax, word [0x14023b0b0]
dec r8w
mov word [rbp + 0x418], ax
mov edx, 0x20
movzx eax, word [rsp + 0x36]
mov word [rbp + 0x41a], ax
mov word [rbp + 0x41e], ax
movzx eax, word [rsp + 0x38]
mov word [rbp + 0x412], ax
lea rax, [rbp + 0x410]
mov word [rbp + 0x41c], r8w
xor r8d, r8d
mov word [rbp + 0x410], dx
lea rdx, [rbp + 0x418]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferA]
jmp case.0x140026891.73
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x14002704a
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x140027059
cmp eax, 1
jne case.0x140026891.73
mov ebx, dword [0x14023b0b0]
movsx r8d, word [rsp + 0x30]
mov eax, dword [rsp + 0x34]
mov r9d, r8d
movsx r10d, ax
lea ecx, [r8 - 1]
lea edx, [r10 + rbx]
cmp edx, ecx
jle 0x140027080
sub r9d, r10d
mov dword [0x14023b0b0], r9d
sub r8w, word [0x14023b0b0]
movzx edx, word [rsp + 0x36]
dec r8w
mov word [rbp + 0x418], ax
add ax, word [0x14023b0b0]
mov word [rbp + 0x400], ax
mov word [rbp + 0x41a], dx
mov word [rbp + 0x41c], r8w
mov word [rbp + 0x402], dx
mov word [rbp + 0x41e], dx
movzx eax, word [rsp + 0x38]
mov edx, 0x20
mov r9d, dword [rbp + 0x400]
xor r8d, r8d
mov rcx, qword [0x14023b090]
mov word [rbp + 0x412], ax
lea rax, [rbp + 0x410]
mov word [rbp + 0x410], dx
lea rdx, [rbp + 0x418]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferA]
jmp case.0x140026891.73
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x140027127
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x140027130
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [rsp + 0x36]
sub ax, word [0x14023b0b0]
mov word [rbp + 0x402], ax
jns 0x14002714e
xor edi, edi
mov word [rbp + 0x402], di
movzx eax, word [rsp + 0x34]
mov word [rbp + 0x400], ax
mov edx, dword [rbp + 0x400]
jmp 0x140026c12
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x140027182
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x14002718b
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [rsp + 0x36]
add ax, word [0x14023b0b0]
movzx ecx, word [rsp + 0x32]
mov word [rbp + 0x402], ax
cmp ax, cx
jl 0x1400271b2
dec cx
mov word [rbp + 0x402], cx
movzx eax, word [rsp + 0x34]
mov word [rbp + 0x400], ax
mov edx, dword [rbp + 0x400]
jmp 0x140026c12
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x1400271e6
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x1400271ef
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [rsp + 0x34]
add ax, word [0x14023b0b0]
movzx ecx, word [rsp + 0x30]
mov word [rbp + 0x400], ax
cmp ax, cx
jl 0x14002737f
movzx eax, word [rsp + 0x36]
dec cx
mov word [rbp + 0x400], cx
mov word [rbp + 0x402], ax
mov edx, dword [rbp + 0x400]
jmp 0x140026c12
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x14002724e
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x140027257
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [rsp + 0x34]
sub ax, word [0x14023b0b0]
mov word [rbp + 0x400], ax
jmp 0x140027374
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x14002728c
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x140027295
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [rsp + 0x36]
add ax, word [0x14023b0b0]
movzx ecx, word [rsp + 0x32]
mov word [rbp + 0x402], ax
cmp ax, cx
jl 0x1400272bc
dec cx
mov word [rbp + 0x402], cx
xor edi, edi
mov word [rbp + 0x400], di
mov edx, dword [rbp + 0x400]
jmp 0x140026c12
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x1400272ed
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x1400272f6
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [rsp + 0x36]
xor edi, edi
sub ax, word [0x14023b0b0]
mov word [rbp + 0x402], ax
jns 0x140027314
mov word [rbp + 0x402], di
mov word [rbp + 0x400], di
mov edx, dword [rbp + 0x400]
jmp 0x140026c12
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x140027343
mov ebx, 1
mov dword [0x14023b0b0], ebx
mov dword [0x14023b0a8], ebx
jmp 0x14002734c
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [0x14023b0b0]
movzx ecx, word [rsp + 0x30]
dec ax
mov word [rbp + 0x400], ax
cmp ax, cx
jl 0x140027371
lea eax, [rcx - 1]
mov word [rbp + 0x400], ax
test ax, ax
jns 0x14002737f
xor edi, edi
mov word [rbp + 0x400], di
movzx eax, word [rsp + 0x36]
mov word [rbp + 0x402], ax
mov edx, dword [rbp + 0x400]
jmp 0x140026c12
mov eax, dword [0x14023b0a8]
test eax, eax
jne 0x1400273be
mov ebx, 1
xor edi, edi
movzx eax, bx
mov dword [0x14023b0b0], ebx
sub ax, bx
mov dword [0x14023b0a8], ebx
jmp 0x14002744f
cmp eax, 1
jne case.0x140026891.73
movzx eax, word [0x14023b0b0]
xor edi, edi
sub ax, 1
jmp 0x14002744f
mov eax, dword [0x14023b0a8]
mov ebx, 1
test eax, eax
jne 0x1400273ed
mov dword [0x14023b0b0], ebx
jmp 0x1400273f1
cmp eax, ebx
jne 0x140027403
mov dword [0x14023b0b4], ebx
mov dword [0x14023b0a8], 2
jmp 0x14002740c
cmp eax, 2
jg case.0x140026891.73
movzx ecx, word [0x14023b0b4]
xor edi, edi
sub cx, bx
mov word [rbp + 0x400], cx
jns 0x140027428
mov word [rbp + 0x400], di
test cx, cx
mov eax, edi
cmovns ax, cx
movzx ecx, word [rsp + 0x30]
cmp ax, cx
jl 0x140027445
dec cx
mov word [rbp + 0x400], cx
movzx eax, word [0x14023b0b0]
sub ax, bx
mov word [rbp + 0x402], ax
jns 0x14002745f
mov word [rbp + 0x402], di
test ax, ax
cmovns di, ax
movzx eax, word [rsp + 0x32]
cmp di, ax
jl 0x14002747a
dec ax
mov word [rbp + 0x402], ax
mov edx, dword [rbp + 0x400]
jmp 0x140026c12
cmp dword [0x14023b0a8], 0
jne case.0x140026891.73
mov eax, dword [rsp + 0x34]
mov dword [0x14023b510], eax
jmp case.0x140026891.73
cmp dword [0x14023b0a8], 0
jne case.0x140026891.73
mov edx, dword [0x14023b510]
jmp 0x140026c12
cmp dword [0x14023b0a8], 1
jne case.0x140026891.73
mov ecx, dword [0x14023b0b0]
sub ecx, 5
je 0x140027511
cmp ecx, 1
jne case.0x140026891.73
movsx eax, word [rsp + 0x34]
lea edx, [rcx + 0x1f]
movsx r9d, word [rsp + 0x36]
lea r8, str.e__d__dR
inc eax
lea rcx, [rsp + 0x70]
inc r9d
mov dword [rsp + 0x20], eax
call fcn.14002dc20
lea rcx, [rsp + 0x70]
call fcn.140027b40
jmp case.0x140026891.73
mov ecx, 0xfffffff6
lea rsi, str.e_0n
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, 1
xor edi, edi
mov word [rsp + 0x54], di
mov r14, rax
mov dword [rsp + 0x58], edi
mov r8d, 0x1b
mov word [rsp + 0x48], bx
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x50], ebx
nop dword [rax]
mov word [rsp + 0x56], r8w
lea r9, [rbp + 0x400]
mov r8d, ebx
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
movzx eax, word [rsi + 2]
lea rsi, [rsi + 2]
movzx r8d, ax
test ax, ax
jne 0x140027550
jmp case.0x140026891.73
cmp dword [0x14023b0a8], 1
jne case.0x140026891.73
cmp dword [0x14023b0b0], 0x15
jne case.0x140026891.73
mov edx, 0x203
lea rcx, [rbp - 0x4a]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
mov ecx, WSAGetLastError
mov dword [rbp - 0x50], 0x5d001b
mov word [rbp - 0x4c], cx
lea rsi, [rbp - 0x50]
mov r8d, 0x1b
xor edi, edi
lea ecx, [rax + 3]
lea edx, [rax + 4]
mov word [rbp + rcx*2 - 0x50], r8w
mov ecx, 0x5c
add eax, 5
mov word [rbp + rdx*2 - 0x50], cx
mov ecx, 0xfffffff6
mov word [rbp + rax*2 - 0x50], di
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movzx ecx, word [rbp - 0x50]
mov ebx, 1
mov word [rsp + 0x48], bx
mov r14, rax
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x54], di
mov dword [rsp + 0x58], edi
test cx, cx
je case.0x140026891.73
nop dword [rax]
mov word [rsp + 0x56], cx
lea r9, [rbp + 0x400]
mov rcx, r14
lea rdx, [rsp + 0x48]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
movzx ecx, word [rsi + 2]
lea rsi, [rsi + 2]
test cx, cx
jne 0x140027620
jmp case.0x140026891.73
cmp word [0x14023b0a0], 0
jne 0x140026c3f
cmp dword [0x14023b0a8], 1
jne 0x140026c3f
cmp dword [0x14023b0b0], 0
jne 0x140026c3f
lea rcx, [0x14023b0f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
add rsp, 0x4f0
pop rbp
ret