Function at 0x14000e5b0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rbx, rcx
xor esi, esi
mov word [rbp - 0x40], si
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jns 0x14000e5ed
mov ecx, eax
call fcn.140004da0
int3
mov eax, 8
mov word [rbp - 0x40], ax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x38], rax
test rax, rax
jne 0x14000e628
test rbx, rbx
je 0x14000e628
mov eax, 0xa
mov word [rbp - 0x40], ax
mov dword [rbp - 0x38], 0x8007000e
mov ecx, 0x8007000e
call fcn.140004da0
nop
mov rdx, rbx
lea rcx, str.Expanding__s
call fcn.14000b8c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000e7ed
mov qword [rbp + 0x30], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14004ff08]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [0x140050018]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000e7dc
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x230]
test eax, eax
js 0x14000e7dc
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x220]
test eax, eax
js 0x14000e7dc
mov word [rbp + 0x28], si
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [rbp - 0x30]
movsd qword [rbp - 0x10], xmm1
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x20]
call qword [rax + 0x1d0]
test eax, eax
js 0x14000e794
cmp word [rbp + 0x28], 0
je 0x14000e794
mov qword [rbp + 0x38], rsi
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
call qword [rax + 0x168]
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax + pe_nt_image_headers64]
mov rcx, qword [rbp - 0x50]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14000e712
lea ebx, [rax + rax]
mov edx, ebx
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rbp + 0x30]
mov r9, qword [rcx]
lea r8, [rbp + 0x28]
mov rdx, rdi
call qword [r9 + 0x208]
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [rbp - 0x30]
movsd qword [rbp - 0x10], xmm1
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
call qword [rax + 0x210]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14000e794
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x14000e7cc
mov qword [rbp + 0x30], rsi
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x14000e7cc
mov rcx, rdx
mov rdx, rsi
mov qword [rbp + 0x30], rdx
test rcx, rcx
je 0x14000e7cc
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x14000e7fd
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
jmp 0x14000e7fd
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14000e7fd
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000e7fd
mov rdx, rbx
lea rcx, str.Invalid_File_:__s
call fcn.14000b8c0
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret