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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180076540]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
lea rcx, str.appdata
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 0x180019c17
call fcn.18003bbac
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800162b0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180074cc0]
call fcn.180019610
nop
lea rcx, [rsp + 0x38]
call fcn.180011ff0
call fcn.18003bbac
lea rcx, str.Wolf_Menu
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 9
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800162b0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180074cc0]
call fcn.180019610
nop
lea rcx, [rsp + 0x38]
call fcn.180011ff0
lea rcx, [0x180074cc0]
cmp qword [0x180074cd8], 7
cmova rcx, qword [0x180074cc0]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x38]
call fcn.18003bd60
mov edx, eax
test eax, eax
jne 0x180019d25
mov eax, dword [rsp + 0x48]
test al, 1
mov ecx, 0x1ff
mov r8d, 0x16d
cmovne ecx, r8d
mov dword [rsp + 0x24], ecx
bt eax, 0xa
jae 0x180019d17
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0xa000000c
jne 0x180019d08
lea edi, [rdx + 4]
jmp 0x180019d46
cmp ecx, 0xa0000003
jne 0x180019d17
mov edi, 0xa
jmp 0x180019d46
movzx edi, al
and edi, 0x10
or edi, 0x20
shr edi, 4
jmp 0x180019d46
mov dword [rsp + 0x24], 0xffff
sub eax, 2
je 0x180019d41
sub eax, 1
je 0x180019d41
sub eax, 0x32
je 0x180019d41
cmp eax, 0x46
jne 0x180019d46
mov edi, 1
mov dword [rsp + 0x20], edx
lea rax, [0x180074ca8]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edi, edi
jne 0x180019d6f
test edx, edx
jne 0x180019f1b
jmp 0x180019d74
cmp edi, 1
jne 0x180019d9f
lea rcx, [0x180074cc0]
cmp qword [0x180074cd8], 7
cmova rcx, qword [0x180074cc0]
call fcn.18003bce8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180019f33
call fcn.18003bbac
lea rcx, str.Wolf_Menu.log
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0xd
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800162b0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180074cc0]
call fcn.180019610
nop
lea rcx, [rsp + 0x38]
call fcn.180011ff0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x180019e00
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, [0x180040af8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ebx, 0xb
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea r9d, [rbx + 0x35]
lea r8d, [rbx - 9]
lea rdx, str.CONOUT_
lea rcx, [0x1800818e8]
call fcn.18001a310
xor r8d, r8d
test rax, rax
mov rax, qword [0x1800818e0]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800818e0]
je 0x180019e81
add rcx, rax
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 0x180019e8f
add rcx, rax
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 r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rdx, str.CONIN_
lea rcx, [0x180074cf0]
call fcn.18001a310
xor r8d, r8d
test rax, rax
mov rax, qword [0x180074ce0]
movsxd rcx, dword [rax + 4]
lea rax, [0x180074ce0]
je 0x180019ed3
add rcx, rax
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 0x180019ee1
add rcx, rax
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 r9d, 0x40
lea r8d, [r9 - 0x36]
lea rdx, [0x180074cc0]
lea rcx, [0x1800817d0]
call fcn.180019240
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003c5e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea r8, [0x180074cc0]
lea rdx, [rsp + 0x20]
lea rcx, str.exists
call fcn.1800168b0
shr rdx, 0x20
lea r8, [0x180074cc0]
lea rcx, str.create_directory
call fcn.18001a2a0
int3