Function at 0x140001710
Capabilities:
Set console window title

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x140071180]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rcx, [0x14005e169]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rdi, rax
test rax, rax
je 0x140001965
xor ecx, ecx
mov qword [rsp + 0x90], rbx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov dword [rsp + 0x30], 0x40
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r11d, eax
mov eax, ecx
cdq
sub ebx, r11d
sub eax, edx
sar eax, 1
sub ecx, eax
mov r10d, eax
mov eax, ecx
mov dword [rsp + 0x28], r10d
cdq
mov dword [rsp + 0x20], r11d
sub eax, edx
mov rcx, rdi
sar eax, 1
mov r9d, eax
mov eax, ebx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowPos]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14000195d
mov r9d, 2
mov r8b, 0xe6
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000195d
xor edi, edi
mov dword [rsp + 0x54], 0x180045
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov rcx, rax
mov dword [rsp + 0x40], 0x190046
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
je 0x14000195d
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
test eax, eax
je 0x14000195d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov edx, 0xf060
lea r8d, [rdi + 1]
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
lea edx, [rdi - 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
and ebx, 0xfff2ffff
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov r8d, ebx
lea edx, [rdi - 0x10]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [rsp + 0x30], 0x23
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x5c], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x44]
mov rcx, rbx
or edx, 4
mov dword [rsp + 0x44], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x48]
mov rcx, rbx
and edx, 0xffffffbf
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [rsp + 0x6e]
mov rcx, rbx
sub ax, word [rsp + 0x6a]
inc ax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x70]
sub ax, word [rsp + 0x6c]
inc ax
mov word [rsp + 0x42], ax
mov edx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140051300
add rsp, 0x80
pop rdi
ret