Function at 0x18008a380
Capabilities:
Query environment variable
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r15, rcx
mov qword [rsp + 0x78], rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov dword [rcx], ebx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rbx
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
mov qword [r15 + 0x50], rbx
mov qword [r15 + 0x58], rbx
mov qword [r15 + 0x60], rbx
lea rdi, [r15 + 0x68]
mov qword [rsp + 0x70], rdi
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
lea rax, [r15 + 0x88]
mov qword [rsp + 0x80], rax
mov rcx, rax
call fcn.18008ace0
nop
lea r12, [r15 + 0x190]
mov qword [rsp + 0x68], r12
mov rcx, r12
call fcn.18008ace0
nop
lea r14, [r15 + 0x298]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x88], r14
lea rax, [0x180123f68]
mov qword [r14], rax
lea rcx, [r14 + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 1
lea r13, [r14 + 0x10]
mov qword [rsp + 0x58], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rcx + r14], rax
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rcx + r14 - 4], edx
mov qword [rsp + 0x20], r13
mov rcx, r13
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [r13], rax
mov byte [r13 + 0x7c], bl
mov byte [r13 + 0x71], bl
mov rcx, r13
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [r13 + 0x80], rbx
mov rax, qword [0x180158b88]
mov qword [r13 + 0x74], rax
mov qword [r13 + 0x68], rbx
lea rcx, str.USERPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18008a4f1
call fcn.18008eb28
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180031010
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18008ba00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18008a56e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008a569
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18008a569
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008f558
call fcn.18008eb28
lea rcx, str.Documents
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 9
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180031010
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18008ba00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18008a5ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008a5e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18008a5e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008f558
call fcn.18008eb28
lea rcx, [0x1800b25b0]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180031010
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18008ba00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18008a66c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008a667
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18008a667
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008f558
mov rcx, rdi
call fcn.180032d20
test al, al
jne 0x18008a699
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18008a685
mov rcx, qword [rdi]
call fcn.18008ec64
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18008a84c
call fcn.18008eb28
lea rcx, str.Cheat.log
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 9
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180031010
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18008ba00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18008a719
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008a713
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18008a713
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008f558
nop
jmp 0x18008a734
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x18008a74c
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.EngineX
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov r9d, 2
mov r8b, 0xeb
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, [r12 + 8]
mov r8d, 2
lea rdx, str.CONOUT_
call fcn.18008ae50
mov rcx, rax
mov rax, qword [r12]
movsxd rdx, dword [rax + 4]
xor r8d, r8d
test rcx, rcx
lea rcx, [r12 + rdx]
je 0x18008a7c1
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x18008a7cc
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov r8d, 1
lea rdx, str.CONIN_
mov rcx, r13
call fcn.18008ae50
mov rcx, rax
mov rax, qword [r14]
movsxd rdx, dword [rax + 4]
xor r8d, r8d
test rcx, rcx
lea rcx, [r14 + rdx]
je 0x18008a801
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x18008a80c
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdx, rdi
mov rcx, qword [rsp + 0x80]
call fcn.18008afd0
lea rdx, str._n_n________________________________________________________________________________________________n__________________________________________________________________________________________________________n_______________________________________________________________________________________________n_____________________________________________________________________n___________________________________________________________________________n________________________________________________________________________n_______________________________________________________________________________n______________________________________________________n___________________________________________________________________________________________________________n_n
mov rcx, r15
call fcn.18008a960
nop
mov rax, r15
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
shr rdx, 0x20
mov r8, rdi
call fcn.180031160
int3