Function at 0x14004c270
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400fe700]
xor rax, rsp
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x14004c4ed
mov qword [rsp + 0x80], rbx
mov ecx, 1
mov qword [rsp + 0x70], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400e880c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400e880c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400e8818]
lea rdx, str.CONIN_
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
movsxd r9, dword [rax + 4]
add rcx, r9
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
movsxd r9, dword [rax + 4]
add rcx, r9
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
movsxd r9, dword [rax + 4]
add rcx, r9
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
movsxd r9, dword [rax + 4]
add rcx, r9
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
xor ebx, ebx
lea rcx, str.CONOUT_
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, str.CONIN_
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, rdi
mov ecx, 0xfffffff5
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rdi
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rbx
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
xor r8d, r8d
add rcx, rdx
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wclog]
xor r8d, r8d
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
xor r8d, r8d
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
xor r8d, r8d
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
lea rcx, [rsp + 0x40]
call fcn.14004c110
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
cmp qword [rax + 0x18], 8
jb 0x14004c49f
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004c4ed
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c4e8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c4e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c8f00
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c8ee0
add rsp, 0x78
ret