Function at 0x1400336b0
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14005b230]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r9
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov qword [rcx], r12
lea r14, str.UI_log_ui
mov qword [rcx + 8], r14
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea ecx, [r12 + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x140053b2c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x20], r12
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x30], r12
lea r14, str.CDirectX_console_log
mov qword [rsi + 0x38], r14
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea ecx, [r12 + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x140053b2c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
nop
mov qword [rsi + 0x40], r12
lea r12, str.WindowClass_Console
mov qword [rsi + 0x48], r12
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x140053b2c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
nop
mov byte [rsi + 0x50], 0
mov qword [rsi + 0xa8], rdi
mov qword [rsi + 0xb0], rbp
mov qword [rsi + 0xb8], rbx
mov al, 1
test rdi, rdi
jne 0x140033851
lea rdx, str.m_window_name_is_invalid_
lea rcx, [rsp + 0x20]
call fcn.1400302f0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x40]
call fcn.140030a20
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003384f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003384a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003384a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003432c
xor al, al
test rbp, rbp
jne 0x1400338be
lea rdx, str.m_window_class_name_is_invalid_
lea rcx, [rsp + 0x20]
call fcn.1400302f0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x40]
call fcn.140030a20
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400338ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400338b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400338b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003432c
jmp 0x1400338ca
cmp al, 1
jne 0x1400338ca
mov rcx, rsi
call fcn.140033e60
lea rcx, [rsi + 0x30]
call fcn.140033290
test al, al
jne 0x14003393d
lea rdx, str.D3D11_setup_is_invalid_
lea rcx, [rsp + 0x20]
call fcn.1400302f0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x40]
call fcn.140030a20
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003393d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033938
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140033938
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003432c
mov rcx, rsi
call fcn.140032dc0
test al, al
jne 0x1400339af
lea rdx, str.ImGui_setup_failed_
lea rcx, [rsp + 0x20]
call fcn.1400302f0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x40]
call fcn.140030a20
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400339af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400339aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400339aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003432c
mov byte [0x14005b9f4], 1
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140034190
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret