Function at 0x14000afd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
mov dword [rsp + 0x30], edi
lea r8, str.General
lea rdx, [rsp + 0x48]
call fcn.1400044f0
nop
lea r9, [rsp + 0x30]
lea r8, str.ASIOInstall
mov rdx, qword [rax]
mov rcx, qword [0x1400da1c8]
call fcn.14004bdd0
test eax, eax
cmovne edi, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000b054
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x14000b225
call fcn.140004150
mov rcx, rax
test rax, rax
jne 0x14000b074
mov ecx, 0x80004005
call fcn.140003ec0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdi, [0x1400d9980]
cmp word [0x1400d9980], 0
jne 0x14000b0ab
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x25]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov r9, qword [0x1400da3e8]
mov r8, rdi
lea rdx, [0x140093108]
lea rcx, [rsp + 0x68]
call fcn.1400053a0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000b209
mov rcx, qword [0x1400da3e8]
add rcx, 0xffffffffffffffe8
call fcn.140005200
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140073d60
call fcn.140004150
mov rcx, rax
test rax, rax
jne 0x14000b114
mov ecx, 0x80004005
call fcn.140003ec0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rdi, [0x1400d9780]
cmp word [0x1400d9780], 0
jne 0x14000b14b
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x29]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov r9, qword [0x1400da3f0]
mov r8, rdi
lea rdx, [0x140093108]
lea rcx, [rsp + 0x70]
call fcn.1400053a0
mov rdi, qword [rsp + 0x70]
lea rcx, [rdi - 0x18]
call fcn.140005200
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.140073d60
mov r8d, 0x2d
lea rdx, str.CAsioMgr::InstallAsio
lea rcx, [0x1400934a8]
call fcn.14002f950
lea r8, str.General
lea rdx, [rsp + 0x50]
call fcn.1400044f0
nop
mov r9d, 1
lea r8, str.ASIOInstall
mov rdx, qword [rax]
mov rcx, qword [0x1400da1c8]
call fcn.14004bf00
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000b1ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x14000b209
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14000b225
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140076320
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret