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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r12d, r12d
mov dword [rsp + 0x20], 0x28
mov dword [rsp + 0x24], 0x2a
mov r15d, 0x26
mov dword [rsp + 0x28], r15d
mov r13, rcx
mov dword [rsp + 0x2c], 0x24
test rcx, rcx
je 0x14000a9dd
mov rbx, qword [0x140029e08]
test rbx, rbx
jne 0x14000a940
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [rbx + 8]
lea r8d, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x140029e08], rax
test rax, rax
je 0x14000a9dd
mov qword [0x140029df8], 4
lea rsi, [rsp + 0x20]
mov rdi, r12
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20c
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsi]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000a8a1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [rsi], 0x28
jne 0x14000a7fb
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x14000a833
cmp dword [rsi], r15d
jne 0x14000a83e
mov rdx, qword [0x140029e08]
lea rcx, [rsp + 0x30]
mov rdx, qword [rdi + rdx - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000a83e
mov r8d, 0x105
lea rdx, [rsp + 0x30]
lea rcx, str._ProgramW6432_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14000a847
lea r14, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 + 2]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, qword [0x140029e08]
mov qword [rdi + rbx], rax
test rax, rax
je 0x14000a8a8
mov r8, r14
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add rsi, 4
add rdi, 8
cmp rdi, 0x20
jb 0x14000a7a6
jmp 0x14000a915
mov rbx, qword [0x140029e08]
test rbx, rbx
je 0x14000a9dd
mov rax, qword [0x140029df8]
mov rdi, r12
test rax, rax
je 0x14000a8f3
mov rsi, qword [rbx + rdi*8]
test rsi, rsi
je 0x14000a8eb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [0x140029df8]
mov rbx, qword [0x140029e08]
inc rdi
cmp rdi, rax
jb 0x14000a8c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x140029e08]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, r12
mov qword [0x140029e08], rbx
test rbx, rbx
je 0x14000a9dd
mov dword [rsp + 0x20], 0x28
mov dword [rsp + 0x24], 0x2a
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x2c], 0x24
jmp 0x14000a764
mov rcx, qword [0x140029df8]
mov r14, r12
test rcx, rcx
je 0x14000a9dd
mov rdi, qword [rbx + r14*8]
or rax, 0xffffffffffffffff
inc rax
cmp word [r13 + rax*2], r12w
jne 0x14000a95b
test rax, rax
je 0x14000a9d1
test rdi, rdi
je 0x14000a9d1
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdi + rsi*2], r12w
jne 0x14000a974
cmp rsi, rax
ja 0x14000a9d1
mov r15, r12
test rsi, rsi
je 0x14000a9b9
mov r12, r13
sub r12, rdi
movzx ecx, word [rdi + r12]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx ecx, word [rdi]
movzx ebx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
cmp bx, ax
jne 0x14000a9c0
inc r15
add rdi, 2
cmp r15, rsi
jb 0x14000a991
mov eax, 1
jmp 0x14000a9df
mov rbx, qword [0x140029e08]
xor r12d, r12d
mov rcx, qword [0x140029df8]
inc r14
cmp r14, rcx
jb 0x14000a953
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140014e50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret