Function at 0x14023bc04
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 [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x59], rcx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rcx, rdx
jb 0x14023bc41
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor r15d, r15d
mov r14d, eax
test eax, eax
jne 0x14023bd1b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
call fcn.1400550c0
mov rdi, qword [rax + 8]
cmp dword [rdi], 2
jbe 0x14023bd06
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 0x14023bcae
mov rbx, qword [rbx]
lea rcx, [0x1403cb630]
mov rax, r15
test rbx, rbx
je 0x14023bcce
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x14023bcc4
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, [0x140484da3]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, rdi
call fcn.140001208
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
jmp 0x14023be71
movdqa xmm0, xmmword [0x140420310]
dec eax
mov edx, eax
mov word [rbp - 0x51], r15w
movdqu xmmword [rbp - 0x41], xmm0
cmp rdx, 7
ja 0x14023bd54
mov qword [rbp - 0x41], rdx
test eax, eax
je 0x14023bd4c
movzx eax, r15w
lea rdi, [rbp - 0x51]
mov ecx, edx
rep stosw word [rdi], ax
mov word [rbp + rdx*2 - 0x51], r15w
jmp 0x14023bd5d
lea rcx, [rbp - 0x51]
call fcn.1400a0a28
cmp qword [rbp - 0x39], 8
lea rdx, [rbp - 0x51]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x51]
cmp qword [rbx + 0x18], 8
jb 0x14023bd78
mov rcx, qword [rbx]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14023be47
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
call fcn.1400550c0
mov rdi, qword [rax + 8]
cmp dword [rdi], 2
jbe 0x14023be35
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 0x14023bddd
mov rbx, qword [rbx]
lea rcx, [0x1403cb630]
mov rax, r15
test rbx, rbx
je 0x14023bdfd
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x14023bdf3
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, [0x140484da3]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, rdi
call fcn.140001208
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
jmp 0x14023be68
movups xmm0, xmmword [rbp - 0x51]
mov word [rbp - 0x51], r15w
movups xmm1, xmmword [rbp - 0x41]
movups xmmword [rsi], xmm0
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp - 0x41], xmm0
movups xmmword [rsi + 0x10], xmm1
lea rcx, [rbp - 0x51]
call fcn.140055f70
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret