Function at 0x180009330
Capabilities:
Set console window title

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0xc0
vmovaps xmmword [rax - 0x18], xmm6
vmovaps xmmword [rax - 0x28], xmm7
vmovaps xmmword [rax - 0x38], xmm8
vmovaps xmmword [rax - 0x48], xmm9
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
cmp edx, 1
jne 0x180009813
mov qword [0x180346ac8], rcx
lea rcx, str.Phasmophobia.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180009813
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.Console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
nop
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rdi, rax
test rax, rax
je 0x1800093a0
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetSystemMenu]
xor r8d, r8d
mov edx, 0xf060
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
btr eax, 0x10
mov r8d, eax
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
btr eax, 0x12
mov r8d, eax
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, 1
call fcn.18008dc5c
mov rdi, rax
mov ecx, 1
call fcn.18008dc5c
mov r9, rdi
lea r8, [0x1800dfe20]
lea rdx, str.CONOUT_
mov rcx, rax
call fcn.18008e5e8
mov ecx, 2
call fcn.18008dc5c
mov rdi, rax
mov ecx, 2
call fcn.18008dc5c
mov r9, rdi
lea r8, [0x1800dfe20]
lea rdx, str.CONOUT_
mov rcx, rax
call fcn.18008e5e8
xor ecx, ecx
call fcn.18008dc5c
mov rdi, rax
xor ecx, ecx
call fcn.18008dc5c
mov r9, rdi
lea r8, [0x1800dfe30]
lea rdx, str.CONIN_
mov rcx, rax
call fcn.18008e5e8
call fcn.1800838d8
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [0x180346a78]
add rax, 0x337f9800
cmp rdx, rax
jl 0x180009786
mov eax, dword [0x18034564c]
lea r14, [rax*8]
mov rax, qword gs:[0x58]
mov ecx, 0x174
add rcx, qword [rax + r14]
mov eax, dword [rcx]
mov edi, 0x178
mov esi, 0xd3
test al, 1
jne 0x18000954b
or eax, 1
mov dword [rcx], eax
mov rax, qword gs:[0x58]
mov rcx, qword [rax + r14]
mov byte [rdi + rcx + 0x12], 1
mov dword [rdi + rcx], 0x470096
mov dword [rdi + rcx + 4], 0xea002d
mov dword [rdi + rcx + 8], 0xb400ef
mov dword [rdi + rcx + 0xc], 0xdc000b
mov word [rdi + rcx + 0x10], si
lea rcx, [0x1800b4e90]
call fcn.1800843b0
nop
mov rax, qword gs:[0x58]
mov rcx, qword [rax + r14]
add rdi, rcx
mov edx, 0xa3
cmp byte [rdi + 0x12], 0
je 0x18000959f
xor word [rdi], si
xor word [rdi + 2], 0x1f
xor word [rdi + 4], 0x7d
xor word [rdi + 6], dx
mov eax, 0xbd
xor word [rdi + 8], ax
mov eax, 0xf1
xor word [rdi + 0xa], ax
xor word [rdi + 0xc], 0x4f
mov eax, 0xfd
xor word [rdi + 0xe], ax
xor word [rdi + 0x10], si
mov byte [rdi + 0x12], 0
mov dword [rsp + 0x60], 0x770090
mov dword [rsp + 0x64], 0xc20018
mov dword [rsp + 0x68], 0xd100c9
mov dword [rsp + 0x6c], 0x85002a
mov dword [rsp + 0x70], 0x7600a3
mov dword [rsp + 0x74], 0xc6000f
mov dword [rsp + 0x78], 0xd000d9
mov r8d, 0x4f
mov edx, 0x158
mov eax, dword [rdx + rcx]
mov esi, 0x138
test al, 1
jne 0x180009675
or eax, 1
mov dword [rdx + rcx], eax
mov rax, qword gs:[0x58]
mov rdx, qword [rax + r14]
add rdx, rsi
mov byte [rdx + 0x1e], 1
lea rax, [rdx + 0x1c]
lea rcx, [rsp + 0x7c]
cmp rdx, rcx
ja 0x180009647
lea rcx, [rsp + 0x60]
cmp rax, rcx
jb 0x180009647
vmovups xmm0, xmmword [rsp + 0x60]
vmovups xmmword [rdx], xmm0
vmovsd xmm1, qword [rsp + 0x70]
vmovsd qword [rdx + 0x10], xmm1
mov eax, dword [rsp + 0x78]
mov dword [rdx + 0x18], eax
mov word [rdx + 0x1c], r8w
jmp 0x180009668
vmovups xmm0, xmmword [rsp + 0x60]
vmovups xmmword [rdx], xmm0
vmovsd xmm1, qword [rsp + 0x70]
vmovsd qword [rdx + 0x10], xmm1
mov eax, dword [rsp + 0x78]
mov dword [rdx + 0x18], eax
mov word [rdx + 0x1c], r8w
lea rcx, [0x1800b4ec0]
call fcn.1800843b0
nop
mov rcx, qword gs:[0x58]
mov eax, dword [0x18034564c]
mov rdx, qword [rcx + rax*8]
add rdx, rsi
cmp byte [rdx + 0x1e], 0
je 0x180009764
vmovdqu ymm4, ymmword [0x1800ed4c0]
vmovdqu ymm5, ymmword [0x1800ed4e0]
vmovdqu ymm6, ymmword [0x1800ed880]
vmovdqu xmm7, xmmword [0x1800ed2d0]
vmovdqu ymm8, ymmword [0x1800ed560]
vmovdqu ymm9, ymmword [0x1800ed500]
nop word [rax + rax]
vmovq xmm0, rbx
vpbroadcastq ymm0, xmm0
vpaddq ymm0, ymm0, ymm4
vpand ymm1, ymm0, ymm5
vpsllq ymm2, ymm1, 3
vpsrlvq ymm3, ymm6, ymm2
vpshufb ymm0, ymm3, ymm9
vpermq ymm1, ymm0, 0xd8
vpshufb ymm1, ymm1, ymm8
vmovq xmm0, xmm7
vpand xmm3, xmm1, xmm0
vmovq xmm1, qword [rdx + rbx*2]
vpxor xmm0, xmm3, xmm1
vmovq qword [rdx + rbx*2], xmm0
add rbx, 4
cmp rbx, 0xc
jb 0x1800096d0
cmp rbx, 0xf
jae 0x180009760
movabs rcx, 0xfd4ff1bda37d1fd3
mov r8d, 0xff
nop dword [rax]
nop word [rax + rax]
mov rax, rbx
and eax, 7
shl rax, 3
shrx rax, rcx, rax
and ax, r8w
xor word [rdx + rbx*2], ax
inc rbx
cmp rbx, 0xf
jb 0x180009740
mov byte [rdx + 0x1e], 0
mov r9d, 0x20
mov r8, rdi
xor ecx, ecx
vzeroupper
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x180009859
jmp 0x180009813
mov ecx, 8
call fcn.180083e58
mov qword [rax], rsi
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x180013e90]
xor edx, edx
xor ecx, ecx
call fcn.18008de1c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18000984a
mov qword [rsp + 0xe8], rbx
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x48], 0
je 0x180009867
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.180083810
test eax, eax
jne 0x180009867
vpxor xmm0, xmm0, xmm0
vmovdqa xmmword [rsp + 0x40], xmm0
cmp dword [rsp + 0x48], eax
jne 0x180009861
mov eax, 1
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
vmovaps xmm6, xmmword [r11 - 0x10]
vmovaps xmm7, xmmword [r11 - 0x20]
vmovaps xmm8, xmmword [r11 - 0x30]
vmovaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r14
ret
mov dword [rsp + 0x48], ebx
mov ecx, 6
call fcn.1800827ac
nop
xor ecx, ecx
call fcn.18008a1e8
int3
call fcn.18008df04
nop
mov ecx, 1
call fcn.1800827ac
int3