Function at 0x18001d130
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 [0x1800972c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor esi, esi
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18001d167
call fcn.18004d25c
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800198f0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180095a30]
call fcn.18001cab0
nop
lea rcx, [rsp + 0x38]
call fcn.180016cd0
call fcn.18004d25c
lea rcx, str.WOLF
mov qword [rsp + 0x20], rcx
mov edi, 4
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800198f0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180095a30]
call fcn.18001cab0
nop
lea rcx, [rsp + 0x38]
call fcn.180016cd0
lea rcx, [0x180095a30]
cmp qword [0x180095a48], 7
cmova rcx, qword [0x180095a30]
mov r9d, 0xffffffff
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x38]
call fcn.18004d410
mov edx, eax
test eax, eax
jne 0x18001d27c
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 0x18001d269
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0xa000000c
jne 0x18001d257
lea ebx, [rdi - 3]
jmp 0x18001d2a8
cmp ecx, 0xa0000003
jne 0x18001d269
mov edi, 0xa
lea ebx, [rdi - 9]
jmp 0x18001d2a8
movzx edi, al
and edi, 0x10
or edi, 0x20
shr edi, 4
mov ebx, 1
jmp 0x18001d2a8
mov dword [rsp + 0x24], 0xffff
sub eax, 2
je 0x18001d29f
sub eax, 1
je 0x18001d29f
sub eax, 0x32
je 0x18001d29f
cmp eax, 0x46
je 0x18001d29f
mov ebx, 1
jmp 0x18001d2a6
mov ebx, 1
mov esi, ebx
mov edi, esi
mov dword [rsp + 0x20], edx
lea rax, [0x180095a18]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edi, edi
jne 0x18001d2d1
test edx, edx
jne 0x18001d480
jmp 0x18001d2d6
cmp edi, 1
jne 0x18001d301
lea rcx, [0x180095a30]
cmp qword [0x180095a48], 7
cmova rcx, qword [0x180095a30]
call fcn.18004d398
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18001d498
call fcn.18004d25c
lea rcx, str.WOLF.log
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 8
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800198f0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180095a30]
call fcn.18001cab0
nop
lea rcx, [rsp + 0x38]
call fcn.180016cd0
nop
jmp 0x18001d351
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x18001d369
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, [0x180051ac8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
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]
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, str.CONOUT_
lea rcx, [0x1800a8ba8]
call fcn.18001da10
xor r8d, r8d
test rax, rax
mov rax, qword [0x1800a8ba0]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800a8ba0]
je 0x18001d3e7
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 0x18001d3f5
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
mov r8d, ebx
lea rdx, str.CONIN_
lea rcx, [0x180095a60]
call fcn.18001da10
xor r8d, r8d
test rax, rax
mov rax, qword [0x180095a50]
movsxd rcx, dword [rax + 4]
lea rax, [0x180095a50]
je 0x18001d438
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 0x18001d446
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, [0x180095a30]
lea rcx, [0x1800a8a90]
call fcn.18001c470
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004dca0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea r8, [0x180095a30]
lea rdx, [rsp + 0x20]
lea rcx, str.exists
call fcn.180019d80
shr rdx, 0x20
lea r8, [0x180095a30]
lea rcx, str.create_directory
call fcn.18001d980
int3