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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18012e6b8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
lea edx, [rsi + 2]
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
mov qword [r15 + 0x50], rsi
mov qword [r15 + 0x58], rsi
mov qword [r15 + 0x60], rsi
mov qword [r15 + 0x68], rsi
mov qword [r15 + 0x78], rsi
mov qword [r15 + 0x80], 7
mov word [r15 + 0x68], si
lea rcx, [r15 + 0x88]
lea edx, [rsi + 1]
call fcn.180021cc0
nop
lea rcx, [r15 + 0x190]
lea edx, [rsi + 1]
call fcn.180021cc0
nop
lea rbx, [r15 + 0x298]
mov qword [rsp + 0x40], rbx
lea rax, [0x1800b54d8]
mov qword [rbx], rax
lea rcx, [rbx + 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 + 0x30], 1
lea rdi, [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
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 [rbx]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rbx], rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rcx + rbx - 4], edx
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rdi], rax
mov byte [rdi + 0x7c], sil
mov byte [rdi + 0x71], sil
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rdi + 0x80], rsi
mov rax, qword [0x18019d5a0]
mov qword [rdi + 0x74], rax
mov qword [rdi + 0x68], rsi
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180021f10
call fcn.1800ab818
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.180023580
nop
lea rdx, [rsp + 0x48]
lea rcx, [r15 + 0x68]
call fcn.180022d60
nop
lea rcx, [rsp + 0x48]
call fcn.180022920
call fcn.1800ab818
lea rcx, [0x1800afd30]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 6
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.180023580
nop
lea rdx, [rsp + 0x48]
lea rcx, [r15 + 0x68]
call fcn.180022d60
nop
lea rcx, [rsp + 0x48]
call fcn.180022920
lea rcx, [r15 + 0x68]
cmp qword [r15 + 0x80], 8
jb 0x180021faa
mov rcx, qword [r15 + 0x68]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x48]
call fcn.1800ab9cc
mov ecx, eax
test eax, eax
jne 0x180021ffd
mov esi, dword [rsp + 0x58]
bt esi, 0xa
jae 0x180021ff2
mov eax, dword [rsp + 0x5c]
cmp eax, 0xa000000c
jne 0x180021fe4
mov ebx, 4
mov esi, ebx
jmp 0x18002201b
cmp eax, 0xa0000003
jne 0x180021ff2
mov esi, 0xa
jmp 0x180022016
and esi, 0x10
or esi, 0x20
shr esi, 4
jmp 0x180022016
sub eax, 2
je 0x180022011
sub eax, 1
je 0x180022011
sub eax, 0x32
je 0x180022011
cmp eax, 0x46
jne 0x180022016
mov esi, 1
mov ebx, 4
mov dword [rsp + 0x20], ecx
lea rax, [0x180123d20]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test esi, esi
jne 0x180022044
test ecx, ecx
jne 0x1800221f7
jmp 0x180022049
cmp esi, 1
jne 0x18002206c
lea rcx, [r15 + 0x68]
cmp qword [r15 + 0x80], 8
jb 0x18002205b
mov rcx, qword [r15 + 0x68]
call fcn.1800ab954
shr rax, 0x20
test eax, eax
jne 0x18002220c
call fcn.1800ab818
lea rcx, str.Liquid.log
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0xa
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.180023580
nop
lea rdx, [rsp + 0x48]
lea rcx, [r15 + 0x68]
call fcn.180022d60
nop
lea rcx, [rsp + 0x48]
call fcn.180022920
nop
jmp 0x1800220be
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x1800220d6
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.Liquid
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]
lea rbx, [r15 + 0x190]
lea rcx, [rbx + 8]
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, str.CONOUT_
call fcn.1800241b0
mov rcx, rax
mov rax, qword [rbx]
movsxd r9, dword [rax + 4]
add r9, rbx
xor r8d, r8d
test rcx, rcx
mov rcx, r9
je 0x180022153
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 0x18002215e
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]
lea rbx, [r15 + 0x298]
lea rcx, [rbx + 0x10]
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rdx, str.CONIN_
call fcn.1800241b0
mov rcx, rax
mov rax, qword [rbx]
movsxd r9, dword [rax + 4]
add r9, rbx
xor r8d, r8d
test rcx, rcx
mov rcx, r9
je 0x1800221a1
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 0x1800221ac
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]
lea rcx, [r15 + 0x88]
lea rdx, [r15 + 0x68]
cmp qword [rdx + 0x18], 8
jb 0x1800221c1
mov rdx, qword [rdx]
mov r9d, 0x40
lea r8d, [r9 - 0x36]
call fcn.1800242f0
nop
mov rax, r15
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800ac150
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea r8, [r15 + 0x68]
lea rdx, [rsp + 0x20]
lea rcx, str.exists
call fcn.180023c80
lea r8, [r15 + 0x68]
mov edx, eax
lea rcx, str.create_directory
call fcn.180023ce0
int3