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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov rsi, rcx
mov edi, 0x206
lea rcx, [rbp - 0x7e]
xor r15d, r15d
xor edx, edx
mov r8d, edi
mov word [rbp - 0x80], r15w
call sub.msvcrt.dll_memset
lea r8d, [r15 + 0x40]
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], r15
mov r14d, r15d
mov qword [rsp + 0x30], r15
call sub.msvcrt.dll_memset
mov edx, 0x7535
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r12d, 0x104
movsxd rcx, eax
cmp rcx, r12
jae 0x180007f7f
lea r8, [rbp - 0x80]
mov r9d, r12d
mov edx, 0x7535
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x80]
mov rdx, r12
call fcn.180008540
test eax, eax
js 0x18000801c
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x18000801c
lea rcx, [rbp + 0x192]
mov r8, rdi
xor edx, edx
mov word [rbp + 0x190], r15w
call sub.msvcrt.dll_memset
lea rdi, [rsp + rbx*2 + 0x7e]
movzx ecx, word [rdi]
mov edx, 8
call qword [sym.imp.msvcrt.dll_iswctype]
test eax, eax
je 0x180007fdb
sub rdi, 2
dec rbx
jne 0x180007fc0
add rbx, rbx
cmp rbx, 0x208
jae 0x180008016
lea r8, [rbp - 0x80]
lea rcx, [rbp + 0x190]
mov rdx, r12
mov word [rbp + rbx - 0x80], r15w
call fcn.1800035e0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x180008048
call fcn.18000215c
int3
xor r9d, r9d
lea rax, [rsp + 0x38]
xor r8d, r8d
lea edx, [r9 + 5]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [0x180024040]
lea r8, [rbp + 0x3a0]
mov r9d, r12d
mov edx, 0x857
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x180008074
mov eax, 0x30
mov word [rbp + 0x3a0], ax
lea rax, [rbp + 0x3a0]
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rax
lea rax, [0x180007d80]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x60], 0x35d
mov qword [rsp + 0x70], rax
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
mov eax, 0x80000000
lea ecx, [rbx + rax]
test eax, ecx
jne 0x1800080cf
cmp ebx, 0x80010106
jne 0x1800080dd
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov r14, rax
test ebx, ebx
js 0x1800080e7
call qword [sym.imp.ole32.dll_CoUninitialize]
test r14, r14
je 0x180008116
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x180008116
lea r8, [rbp - 0x80]
mov edx, 0x7535
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, 1
jmp 0x180008118
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret