Function at 0x180019da0
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 0x180019dd7
call fcn.18003adcc
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800164b0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180072cc0]
call fcn.1800197d0
nop
lea rcx, [rsp + 0x38]
call fcn.1800121f0
call fcn.18003adcc
lea rcx, str.EvolutionX
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0xa
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800164b0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180072cc0]
call fcn.1800197d0
nop
lea rcx, [rsp + 0x38]
call fcn.1800121f0
lea rcx, [0x180072cc0]
cmp qword [0x180072cd8], 7
cmova rcx, qword [0x180072cc0]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x38]
call fcn.18003af80
mov r8d, eax
test eax, eax
jne 0x180019ee4
mov edx, dword [rsp + 0x48]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
bt edx, 0xa
jae 0x180019ed6
mov eax, dword [rsp + 0x4c]
cmp eax, 0xa000000c
jne 0x180019ec8
lea edi, [r8 + 4]
jmp 0x180019f05
cmp eax, 0xa0000003
jne 0x180019ed6
mov edi, 0xa
jmp 0x180019f05
movzx edi, dl
and edi, 0x10
or edi, 0x20
shr edi, 4
jmp 0x180019f05
mov dword [rsp + 0x24], 0xffff
sub eax, 2
je 0x180019f00
sub eax, 1
je 0x180019f00
sub eax, 0x32
je 0x180019f00
cmp eax, 0x46
jne 0x180019f05
mov edi, 1
mov dword [rsp + 0x20], r8d
lea rax, [0x180072ca8]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edi, edi
jne 0x180019f30
test r8d, r8d
jne 0x18001a0dc
jmp 0x180019f35
cmp edi, 1
jne 0x180019f60
lea rcx, [0x180072cc0]
cmp qword [0x180072cd8], 7
cmova rcx, qword [0x180072cc0]
call fcn.18003af08
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18001a0f4
call fcn.18003adcc
lea rcx, str.EvolutionX.log
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0xe
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1800164b0
nop
lea rdx, [rsp + 0x38]
lea rcx, [0x180072cc0]
call fcn.1800197d0
nop
lea rcx, [rsp + 0x38]
call fcn.1800121f0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x180019fc1
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.18001a4d0
xor r8d, r8d
test rax, rax
mov rax, qword [0x18007ebb0]
movsxd rcx, dword [rax + 4]
lea rax, [0x18007ebb0]
je 0x18001a042
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 0x18001a050
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.18001a4d0
xor r8d, r8d
test rax, rax
mov rax, qword [0x180072ce0]
movsxd rcx, dword [rax + 4]
lea rax, [0x180072ce0]
je 0x18001a094
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 0x18001a0a2
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.180019400
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003b800
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.180016ab0
shr rdx, 0x20
lea r8, [0x180072cc0]
lea rcx, str.create_directory
call fcn.18001a460
int3