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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov dword [rsp + 0x20], 0x28
mov rsi, rcx
mov dword [rsp + 0x24], 0x2a
mov dword [rsp + 0x28], 0x26
mov dword [rsp + 0x2c], 0x24
test rcx, rcx
je 0x14002c888
mov rax, qword [0x1400cbb50]
test rax, rax
jne 0x14002c84f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x1400cbb50], rax
test rax, rax
je 0x14002c888
mov qword [0x1400cbb30], 4
xor edi, edi
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20c
call main
mov ebx, dword [rsp + rdi*4 + 0x20]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002c7b3
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp ebx, 0x28
jne 0x14002c710
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x14002c74c
cmp ebx, 0x26
jne 0x14002c757
test rdi, rdi
je 0x14002c757
mov rdx, qword [0x1400cbb50]
lea rcx, [rsp + 0x30]
mov rdx, qword [rdx + rdi*8 - 8]
call fcn.1400680d0
test eax, eax
jne 0x14002c757
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]
call fcn.140065fe4
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 rcx, qword [0x1400cbb50]
mov qword [rcx + rdi*8], rax
test rax, rax
je 0x14002c7ba
mov r8, r14
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140085820
inc rdi
cmp rdi, 4
jb 0x14002c6b7
mov rax, qword [0x1400cbb50]
jmp 0x14002c825
mov rcx, qword [0x1400cbb50]
test rcx, rcx
je 0x14002c888
mov rax, qword [0x1400cbb30]
xor ebx, ebx
test rax, rax
je 0x14002c804
mov rdi, qword [rcx + rbx*8]
test rdi, rdi
je 0x14002c7fc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400cbb50]
mov rax, qword [0x1400cbb30]
inc rbx
cmp rbx, rax
jb 0x14002c7d1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x1400cbb50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov qword [0x1400cbb50], rax
test rax, rax
je 0x14002c888
mov dword [rsp + 0x20], 0x28
mov dword [rsp + 0x24], 0x2a
mov dword [rsp + 0x28], 0x26
mov dword [rsp + 0x2c], 0x24
jmp 0x14002c679
xor ebx, ebx
cmp qword [0x1400cbb30], rbx
jbe 0x14002c888
mov rcx, rsi
call fcn.140065fe4
mov r8, qword [0x1400cbb50]
mov rdx, rax
mov rcx, rsi
mov r8, qword [r8 + rbx*8]
call fcn.14002b3d4
test eax, eax
jne 0x14002c8b1
inc rbx
cmp rbx, qword [0x1400cbb30]
jb 0x14002c85a
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140080bf0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov eax, 1
jmp 0x14002c88a