Function at 0x140008560
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14009c040]
xor rax, rsp
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x3f]
mov dword [rbp - 0x40], 0x7961476f
mov dword [rbp - 0x3c], 0x78656c
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rdi, rax
test rax, rax
je 0x1400087af
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 0x1400087a7
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 0x1400087a7
xor edi, edi
mov dword [rbp - 0x2c], 0x180045
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], edi
mov rcx, rax
mov dword [rbp - 0x40], 0x190046
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
je 0x1400087a7
mov edx, dword [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
test eax, eax
je 0x1400087a7
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_GetWindowLongA]
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_SetWindowLongA]
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, [rbp - 0x28]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x24], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x38], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rbp - 0x38]
mov rcx, rbx
or edx, 4
mov dword [rbp - 0x38], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rdx, [rbp - 0x34]
mov dword [rbp - 0x34], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rbp - 0x34]
mov rcx, rbx
and edx, 0xffffffbf
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [rbp - 0x12]
mov rcx, rbx
sub ax, word [rbp - 0x16]
inc ax
mov word [rbp - 0x40], ax
movzx eax, word [rbp - 0x10]
sub ax, word [rbp - 0x14]
inc ax
mov word [rbp - 0x3e], ax
mov edx, dword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140079b50
mov rdi, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret