Function at 0x140001870
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], r8
call fcn.140003bb0
test al, al
je 0x140001992
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], 0
lea rax, [rbp - 0x50]
mov qword [rbp + 8], rax
lea rdi, [rbp + 8]
mov qword [rbp + 0x30], rdi
lea rax, [0x140001190]
mov qword [rbp + 0x38], rax
lea rax, str.e_0__a
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 2
mov qword [rbp - 8], 0
lea rbx, [rbp + 0x30]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 1
mov byte [rbp + 0x4e], 1
lea rdx, [0x140024490]
lea rcx, [rbp + 0x18]
lea r8, [rbp - 0x28]
call fcn.14001d310
mov rcx, qword [rbp + 0x20]
test al, al
je 0x1400019a9
test rcx, rcx
jne 0x1400019b4
lea rax, str.crossterm::terminal::SetTitle_str_crossterm::style::SetBackgroundColor
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x23
mov qword [rbp + 8], rbx
lea rax, [0x140001170]
mov qword [rbp + 0x10], rax
lea rax, str.__::write_ansi_incorrectly_errored
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 2
mov qword [rbp - 8], 0
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 1
mov byte [rbp + 0x4e], 0
lea rdx, [0x140024668]
lea rcx, [rbp - 0x28]
call fcn.140023550
jmp 0x140001b02
mov rcx, rsi
call fcn.14000a590
test rax, rax
je 0x1400019c3
mov dl, 1
mov rsi, rax
jmp 0x140001aaa
mov byte [rbp + 0x4e], 0
call fcn.1400013f0
xor ecx, ecx
test rcx, rcx
setne dl
cmovne rsi, rcx
jmp 0x140001aaa
lea rax, [rbp - 0x40]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x40], 0
lea rax, [rbp + 0x18]
mov qword [rbp + 8], rax
lea rax, [0x140001190]
mov qword [rbp + 0x10], rax
lea rax, [0x1400246c8]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 8], 0
lea rax, [rbp + 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov byte [rbp + 0x4f], 1
lea rdx, [0x1400244c0]
lea rcx, [rbp + 0x30]
lea r8, [rbp - 0x28]
call fcn.14001d310
test al, al
jne 0x140001ad6
mov rdx, qword [rbp + 0x40]
cmp rdx, qword [rbp + 0x30]
jne 0x140001a5c
mov byte [rbp + 0x4f], 1
lea rcx, [rbp + 0x30]
call fcn.140001d70
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x38]
mov word [rax + rdx*2], 0
inc qword [rbp + 0x40]
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x38]
mov qword [rbp - 0x30], rcx
call sub.KERNEL32.dll_SetConsoleTitleW
test eax, eax
je 0x140001abc
xor edi, edi
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x140001aa0
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x30]
call fcn.140002c20
test rdi, rdi
setne dl
cmovne rsi, rdi
movzx eax, dl
mov rdx, rsi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rbp + 0x28]
test rdx, rdx
jne 0x140001a8e
jmp 0x140001aa0
mov byte [rbp + 0x4f], 1
lea rax, [0x140024760]
mov qword [rsp + 0x20], rax
lea rcx, str.formatting_failedC:Users_tvry2.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrossterm_0.22.1_src_terminal_syswindows.rs
lea r9, [0x140024460]
lea r8, [rbp - 0x28]
mov edx, 0x11
call fcn.140023950
ud2