Function at 0x1400214a0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
mov qword [rcx + 0x30], r14
mov qword [rcx + 0x38], 7
mov word [rcx + 0x20], r14w
lea rbx, [rcx + 0x40]
mov qword [rsp + 0x20], rbx
mov dword [rbx], r14d
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
lea ecx, [r14 + 0x38]
call fcn.140079a68
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x38], 8
mov dword [rbx], 0x3f800000
mov r8, qword [rbx + 8]
lea edx, [r14 + 0x10]
call fcn.140002780
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call fcn.1400b18d0
mov r8d, 0x104
lea rdx, [rbp + 0x60]
lea rcx, str._NT_SYMBOL_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400217c4
lea rdx, [rbp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400217c4
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.1400b18d0
lea rax, [0x1400d1430]
mov qword [rsp + 0x60], rax
lea rax, [0x1400d1470]
mov qword [rsp + 0x70], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 8], rax
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.140022ca0
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + 0x78], rax
lea ecx, [r14 + 0x10]
call fcn.140079a68
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov cl, 1
call fcn.14005ded4
mov qword [rbx + 8], rax
mov qword [rbp - 0x28], rbx
lea rax, [rbp - 0x80]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x3c]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x60], r14
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], r14d
lea rdx, str.srv
lea rcx, [rsp + 0x70]
call fcn.140022fb0
mov rcx, rax
lea rdx, [rbp + 0x60]
call fcn.140022fb0
mov rcx, rax
lea rdx, str.Symbolshttp:__msdl.microsoft.com_download_symbols
call fcn.140022fb0
nop
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov dword [rsp + 0x20], 5
mov ecx, dword [rbp - 0x18]
test cl, 2
jne 0x140021714
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
test rdx, rdx
je 0x140021714
mov rax, qword [rbp - 0x68]
mov r9, qword [rax]
cmp rdx, qword [rbp - 0x20]
cmovb rdx, qword [rbp - 0x20]
sub rdx, r9
jmp 0x14002173c
test cl, 4
jne 0x14002176c
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x14002176c
mov rax, qword [rbp - 0x70]
mov r9, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
sar rdx, 1
lea rcx, [rsp + 0x28]
cmp rdx, 7
ja 0x140021766
mov qword [rsp + 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.1400b1190
mov word [rsp + rbx + 0x28], r14w
jmp 0x14002176c
call fcn.140002c70
nop
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x20]
call fcn.140003230
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400217b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400217b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400217ee
call fcn.140079aa4
nop
lea rcx, [rsp + 0x60]
call fcn.140021830
nop
mov rax, rdi
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140079bc0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400892cc
nop
int3