Function at 0x180052660
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, 0xa0
mov rax, qword [0x18009d240]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
lea r13, [rcx + 0x20]
mov qword [rsp + 0x28], r13
mov rcx, r13
call fcn.180052e20
nop
lea r14, [rbx + 0x128]
mov qword [rsp + 0x40], r14
mov rcx, r14
call fcn.180052e20
nop
lea rsi, [rbx + 0x230]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x50], rsi
lea rax, [0x180090a58]
mov qword [rsi], rax
lea rcx, [rsi + 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 + 0x20], 1
lea r12, [rsi + 0x10]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
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 [rsi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rsi], rax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rcx + rsi - 4], edx
mov qword [rsp + 0x60], r12
mov rcx, r12
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 [r12], rax
mov byte [r12 + 0x7c], r15b
mov byte [r12 + 0x71], r15b
mov rcx, r12
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [r12 + 0x80], r15
mov rax, qword [0x1800ba3c8]
mov qword [r12 + 0x74], rax
mov qword [r12 + 0x68], r15
lea rcx, str.USERPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x60], rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x1800527a7
mov qword [rsp + 0x68], rcx
call fcn.180058048
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180053380
nop
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180053b30
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x18005282d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052828
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052828
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800589c8
lea rax, str.Documents
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 9
call fcn.180058048
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180053380
nop
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180053b30
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x1800528ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800528b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800528b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800589c8
lea rax, str.NAME
mov qword [rsp + 0x60], rax
mov edi, 4
mov qword [rsp + 0x68], rdi
call fcn.180058048
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180053380
nop
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180053b30
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x180052948
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052943
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052943
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800589c8
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180052955
mov rcx, qword [rbx]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x70]
call fcn.1800581fc
mov r8d, eax
test eax, eax
jne 0x1800529c0
mov edx, dword [rsp + 0x80]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x64], ecx
mov ecx, edx
shr ecx, 0xa
test cl, 1
je 0x1800529b3
mov eax, dword [rsp + 0x84]
cmp eax, 0xa000000c
je 0x1800529e5
cmp eax, 0xa0000003
jne 0x1800529b3
mov edi, 0xa
jmp 0x1800529e5
shr edx, 4
and edx, 1
or edx, 2
mov edi, edx
jmp 0x1800529e5
mov dword [rsp + 0x64], 0xffff
sub eax, 2
je 0x1800529dc
sub eax, 1
je 0x1800529dc
sub eax, 0x32
je 0x1800529dc
cmp eax, 0x46
jne 0x1800529e2
mov r15d, 1
mov edi, r15d
mov dword [rsp + 0x60], r8d
lea rax, [0x1800b6f20]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
test edi, edi
jne 0x180052a10
test r8d, r8d
jne 0x180052beb
jmp 0x180052a15
cmp edi, 1
jne 0x180052a36
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180052a22
mov rcx, qword [rbx]
call fcn.180058184
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180052bf8
lea rax, str.MENU.txt
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 8
call fcn.180058048
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180053380
nop
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180053b30
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x180052ac4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052abe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052abe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800589c8
nop
jmp 0x180052adf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x180052af7
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.Online_Enabler
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
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, [r14 + 8]
mov r8d, 2
lea rdx, str.CONOUT_
call fcn.180052ef0
mov rcx, qword [r14]
movsxd rdx, dword [rcx + 4]
lea rcx, [r14 + rdx]
xor r8d, r8d
test rax, rax
je 0x180052b67
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 0x180052b72
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, r12
call fcn.180052ef0
mov rcx, qword [rsi]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsi + rdx]
xor r8d, r8d
test rax, rax
je 0x180052ba4
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 0x180052baf
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, rbx
mov rcx, r13
call fcn.180053030
nop
mov rax, rbx
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180058630
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, rbx
lea rdx, [rsp + 0x60]
call fcn.180054e90
shr rdx, 0x20
mov r8, rbx
call fcn.180053d90
int3