Function at 0x14000d8f0
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 [0x14002c420]
test eax, eax
jns 0x14000d92d
mov ecx, eax
call fcn.140004ce0
int3
mov eax, 8
mov word [rbp - 0x40], ax
mov rcx, rbx
call qword [0x14002c438]
mov qword [rbp - 0x38], rax
test rax, rax
jne 0x14000d968
test rbx, rbx
je 0x14000d968
mov eax, 0xa
mov word [rbp - 0x40], ax
mov dword [rbp - 0x38], 0x8007000e
mov ecx, 0x8007000e
call fcn.140004ce0
nop
mov rdx, rbx
lea rcx, str.Expanding__s
call fcn.14000adf0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000db2d
mov qword [rbp + 0x30], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140033138]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [0x140033148]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000db1c
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x230]
test eax, eax
js 0x14000db1c
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x220]
test eax, eax
js 0x14000db1c
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 0x14000dad4
cmp word [rbp + 0x28], 0
je 0x14000dad4
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 + 0x110]
mov rcx, qword [rbp - 0x50]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14000da52
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 0x14000dad4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x14000db0c
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 0x14000db0c
mov rcx, rdx
mov rdx, rsi
mov qword [rbp + 0x30], rdx
test rcx, rcx
je 0x14000db0c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x14000db3d
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
jmp 0x14000db3d
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14000db3d
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000db3d
mov rdx, rbx
lea rcx, str.Invalid_File_:__s
call fcn.14000adf0
nop
lea rcx, [rbp - 0x40]
call qword [0x14002c420]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret