Function at 0x1402025e4
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x27], rax
cmp qword [rdx + 0x18], 8
mov rsi, rcx
mov rcx, rdx
mov rbx, rdx
jb 0x14020261d
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r15d, r15d
mov r14d, eax
test eax, eax
jne 0x1402026eb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x59], eax
call fcn.14004d8a4
mov rdi, qword [rax + 8]
cmp dword [rdi], 2
jbe 0x1402026d6
cmp qword [rbx + 0x18], 8
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_expand_environment_strings_in_path
mov qword [rbp + 7], rax
mov qword [rbp - 1], 4
mov qword [rbp + 0xf], reloc.msi.dll_MsiGetActiveDatabase
jb 0x14020267e
mov rbx, qword [rbx]
lea rcx, [0x140344690]
mov rax, r15
test rbx, rbx
je 0x14020269e
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140202694
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403e0520]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, rdi
call fcn.140001158
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
jmp 0x140202838
movdqa xmm0, xmmword [0x14038ac40]
dec eax
mov edx, eax
mov word [rbp - 0x51], r15w
movdqu xmmword [rbp - 0x41], xmm0
cmp rdx, 7
ja 0x140202724
mov qword [rbp - 0x41], rdx
test eax, eax
je 0x14020271c
movzx eax, r15w
lea rdi, [rbp - 0x51]
mov ecx, edx
rep stosw word [rdi], ax
mov word [rbp + rdx*2 - 0x51], r15w
jmp 0x140202730
xor r9d, r9d
lea rcx, [rbp - 0x51]
call fcn.140091960
cmp qword [rbp - 0x39], 8
lea rdx, [rbp - 0x51]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x51]
cmp qword [rbx + 0x18], 8
jb 0x14020274b
mov rcx, qword [rbx]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14020280e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x59], eax
call fcn.14004d8a4
mov rdi, qword [rax + 8]
cmp dword [rdi], 2
jbe 0x1402027fc
cmp qword [rbx + 0x18], 8
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_expand_environment_strings_in_path_after_increasing_buffer_size
mov qword [rbp + 7], rax
mov qword [rbp - 1], 4
mov qword [rbp + 0xf], VarR8FromUI1
jb 0x1402027a4
mov rbx, qword [rbx]
lea rcx, [0x140344690]
mov rax, r15
test rbx, rbx
je 0x1402027c4
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1402027ba
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403e0520]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, rdi
call fcn.140001158
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
jmp 0x14020282f
movups xmm0, xmmword [rbp - 0x51]
mov word [rbp - 0x51], r15w
movups xmm1, xmmword [rbp - 0x41]
movups xmmword [rsi], xmm0
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp - 0x41], xmm0
movups xmmword [rsi + 0x10], xmm1
lea rcx, [rbp - 0x51]
call fcn.14004e0f0
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret