Function at 0x180018bc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1800e9040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
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
inc rbx
cmp byte [rax + rbx], 0
jne 0x180018c10
call fcn.180094184
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.180017670
mov dword [rsp + 0x20], 0xe
lea rcx, [rsp + 0x28]
call fcn.18001d510
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.1800178c0
lea rdi, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdi, qword [rsp + 0x28]
lea rax, [0x1800d0220]
mov qword [rsi], rax
lea rcx, [rsi + 0xa8]
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 + 0x20], 0x1e
lea rbx, [rsi + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rsi], r15
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rcx + rsi - 4], edx
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbx], rax
mov byte [rbx + 0x7c], 0
mov byte [rbx + 0x71], 0
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbx + 0x80], rbp
mov rax, qword [0x1800ec458]
mov qword [rbx + 0x74], rax
mov qword [rbx + 0x68], rbp
mov r8d, 2
mov rdx, rdi
mov rcx, rbx
call fcn.180022010
test rax, rax
jne 0x180018d30
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
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 [rsi]
movsxd rcx, dword [rax + 4]
mov qword [rcx + rsi], r15
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rcx + rsi - 4], edx
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x180018d91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018d8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180018d8c
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 + 0x38], xmm0
mov word [rsp + 0x28], bp
mov rdx, qword [r14 + 0x18]
cmp rdx, 7
jbe 0x180018ddf
lea rdx, [rdx*2 + 2]
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x180018dda
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180018e16
mov rcx, r8
call fcn.1800950f0
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], 7
mov word [r14], bp
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180094b70
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3