Function at 0x18001c180
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x318]
sub rsp, 0x410
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x1800e9040]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor esi, esi
mov dword [rsp + 0x30], esi
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
call fcn.180094184
lea r14, str.Command.txt
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xb
lea r8, [rbp + 0xa0]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180017670
mov dword [rsp + 0x30], 3
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
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 dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18001c230
call fcn.180094184
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], rbx
lea r8, [rbp + 0xa0]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.180017670
mov dword [rsp + 0x30], 0x3b
lea rcx, [rsp + 0x50]
call fcn.18001d510
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1800178c0
mov r8d, 1
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1e0]
call fcn.18001d3e0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x18001c2dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c2d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001c2d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800950f0
movdqa xmm0, xmmword [0x1800d5d40]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x18001c334
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c32f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001c32f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800950f0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x48], 1
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0x228]
mov qword [rbp + 0xa0], rcx
test rcx, rcx
sete byte [rbp + 0xa8]
mov byte [rbp + 0xa9], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], rsi
movaps xmm0, xmmword [rbp + 0xa0]
movaps xmmword [rbp + 0xa0], xmm0
movaps xmm6, xmmword [rsp + 0x40]
test rcx, rcx
je 0x18001c3ee
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x18001c3d4
mov byte [rbp + 0xa9], al
mov rax, qword [rbp + 0xa0]
mov byte [rbp + 0xa8], 1
movaps xmm0, xmmword [rbp + 0xa0]
jmp 0x18001c3f3
mov rax, rsi
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 1
movaps xmm0, xmmword [rbp + 0xa0]
jmp 0x18001c3f3
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x18001c62e
test rax, rax
je 0x18001c637
movdqa xmmword [rbp + 0xa0], xmm6
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xb0]
call fcn.1800223c0
nop
lea rcx, [rbp + 0x1f0]
call fcn.180009320
test rax, rax
jne 0x18001c464
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1e0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
cmp qword [rbp + 0xc0], 0
je 0x18001c5ef
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
call fcn.180094184
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xb
lea r8, [rbp + 0xa0]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.180017670
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0xd0]
call fcn.180018bc0
nop
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xd0]
add rcx, rax
xor r8d, r8d
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]
lea rcx, [rbp - 0x70]
call fcn.18001c9b0
nop
lea rcx, [rbp + 0xd8]
call fcn.180009320
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::swap_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____ptr64]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0xd8]
call fcn.18001d020
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rbx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.180008bc0
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xd8]
call fcn.180009320
test rax, rax
jne 0x18001c591
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xd0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], rbx
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xcc], edx
lea rcx, [rbp + 0xd8]
call fcn.180008bc0
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x178]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rdx, [rbp + 0xb0]
call fcn.18001b470
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0xf
jbe 0x18001c65a
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c655
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001c655
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rax, rax
je 0x18001c40a
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], 0xf
mov byte [rbp + 0xb0], 0
jmp 0x18001c431
call fcn.1800950f0
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], 0xf
mov byte [rbp + 0xb0], 0
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x1e0], rax
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1dc], edx
lea rcx, [rbp + 0x1f0]
call fcn.180008bc0
lea rcx, [rbp + 0x1f8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x290]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.180094b70
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret