Function at 0x180019b30
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 [0x180074540]
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 0x180019b67
call fcn.18003ab6c
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.180016200
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180072cc0]
call fcn.180019560
nop
lea rcx, [rsp + 0x38]
call fcn.180011f70
call fcn.18003ab6c
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.180016200
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180072cc0]
call fcn.180019560
nop
lea rcx, [rsp + 0x38]
call fcn.180011f70
lea rcx, [0x180072cc0]
cmp qword [0x180072cd8], 7
cmova rcx, qword [0x180072cc0]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x38]
call fcn.18003ad20
mov edx, eax
test eax, eax
jne 0x180019c75
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 0x180019c67
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0xa000000c
jne 0x180019c58
lea edi, [rdx + 4]
jmp 0x180019c96
cmp ecx, 0xa0000003
jne 0x180019c67
mov edi, 0xa
jmp 0x180019c96
movzx edi, al
and edi, 0x10
or edi, 0x20
shr edi, 4
jmp 0x180019c96
mov dword [rsp + 0x24], 0xffff
sub eax, 2
je 0x180019c91
sub eax, 1
je 0x180019c91
sub eax, 0x32
je 0x180019c91
cmp eax, 0x46
jne 0x180019c96
mov edi, 1
mov dword [rsp + 0x20], edx
lea rax, [0x180072ca8]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edi, edi
jne 0x180019cbf
test edx, edx
jne 0x180019e6b
jmp 0x180019cc4
cmp edi, 1
jne 0x180019cef
lea rcx, [0x180072cc0]
cmp qword [0x180072cd8], 7
cmova rcx, qword [0x180072cc0]
call fcn.18003aca8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180019e83
call fcn.18003ab6c
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.180016200
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180072cc0]
call fcn.180019560
nop
lea rcx, [rsp + 0x38]
call fcn.180011f70
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x180019d50
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, [0x18003faf8]
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, [0x18007ebb8]
call fcn.18001a260
xor r8d, r8d
test rax, rax
mov rax, qword [0x18007ebb0]
movsxd rcx, dword [rax + 4]
lea rax, [0x18007ebb0]
je 0x180019dd1
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 0x180019ddf
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, [0x180072cf0]
call fcn.18001a260
xor r8d, r8d
test rax, rax
mov rax, qword [0x180072ce0]
movsxd rcx, dword [rax + 4]
lea rax, [0x180072ce0]
je 0x180019e23
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 0x180019e31
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, [0x180072cc0]
lea rcx, [0x18007eaa0]
call fcn.180019190
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003b5a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea r8, [0x180072cc0]
lea rdx, [rsp + 0x20]
lea rcx, str.exists
call fcn.180016800
shr rdx, 0x20
lea r8, [0x180072cc0]
lea rcx, str.create_directory
call fcn.18001a1f0
int3