Function at 0x140032480
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 r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov dword [rsp + 0x20], 0x28
mov r14, rcx
mov dword [rsp + 0x24], 0x2a
mov dword [rsp + 0x28], 0x26
mov dword [rsp + 0x2c], 0x24
test rcx, rcx
je 0x1400326f6
mov rax, qword [0x1400bf9f8]
test rax, rax
jne 0x1400326bd
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 [0x1400bf9f8], rax
test rax, rax
je 0x1400326f6
mov qword [0x1400bf9d8], 4
lea rsi, [rsp + 0x20]
xor edi, edi
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20c
call main
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 0x140032621
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [rsi], 0x28
jne 0x14003257e
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x1400325b5
cmp dword [rsi], 0x26
jne 0x1400325c0
mov rdx, qword [0x1400bf9f8]
lea rcx, [rsp + 0x30]
mov rdx, qword [rdi + rdx - 8]
call fcn.140060710
test eax, eax
jne 0x1400325c0
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.14005e694
lea r15, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r15 + 2]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400bf9f8]
mov qword [rdi + rcx], rax
test rax, rax
je 0x140032628
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14007de40
add rsi, 4
add rdi, 8
cmp rdi, 0x20
jb 0x140032529
mov rax, qword [0x1400bf9f8]
jmp 0x140032693
mov rcx, qword [0x1400bf9f8]
test rcx, rcx
je 0x1400326f6
mov rax, qword [0x1400bf9d8]
xor ebx, ebx
test rax, rax
je 0x140032672
mov rdi, qword [rcx + rbx*8]
test rdi, rdi
je 0x14003266a
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 [0x1400bf9f8]
mov rax, qword [0x1400bf9d8]
inc rbx
cmp rbx, rax
jb 0x14003263f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x1400bf9f8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov qword [0x1400bf9f8], rax
test rax, rax
je 0x1400326f6
mov dword [rsp + 0x20], 0x28
mov dword [rsp + 0x24], 0x2a
mov dword [rsp + 0x28], 0x26
mov dword [rsp + 0x2c], 0x24
jmp 0x1400324e6
xor ebx, ebx
cmp qword [0x1400bf9d8], rbx
jbe 0x1400326f6
mov rcx, r14
call fcn.14005e694
mov r8, qword [0x1400bf9f8]
mov rdx, rax
mov rcx, r14
mov r8, qword [r8 + rbx*8]
call fcn.140031200
test eax, eax
jne 0x140032724
inc rbx
cmp rbx, qword [0x1400bf9d8]
jb 0x1400326c8
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140079240
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, 1
jmp 0x1400326f8