Function at 0x14006d3e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rbp + 0x6f], r15d
mov rax, qword [rdx]
lea rdx, [rbp + 0x6f]
mov rcx, rdi
call qword [rax + 0x50]
test eax, eax
js 0x14006d5c8
mov edx, dword [rbp + 0x6f]
mov eax, edx
or eax, 0x20
and edx, 0xffffffdf
cmp byte [rsi + 0x280], r15b
cmovne edx, eax
mov eax, edx
and eax, 0xfffffffd
or edx, 2
cmp byte [rsi + 0x282], r15b
cmove edx, eax
mov eax, edx
btr eax, 9
bts edx, 9
cmp byte [rsi + 0x283], r15b
cmove edx, eax
mov eax, edx
btr eax, 0x1e
bts edx, 0x1e
cmp qword [rsi + 0x238], r15
cmove edx, eax
mov dword [rbp + 0x6f], edx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
test eax, eax
js 0x14006d5c8
mov rax, qword [rdi]
mov rbx, qword [rax + 0x88]
lea rdx, [rsi + 0x228]
lea rcx, [rbp - 0x41]
call fcn.140016140
mov rdx, qword [rbp - 0x41]
mov rcx, rdi
call rbx
test eax, eax
js 0x14006d5c8
mov qword [rbp + 0x77], r15
lea rdx, [rsi + 0x240]
lea rcx, [rbp - 1]
call fcn.140016140
mov qword [rsp + 0x20], r15
mov r9d, 0x20000000
lea r8, [rbp + 0x77]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
jns 0x14006d534
mov qword [rbp - 0x59], r15
lea r9, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14028efc0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rbx, qword [rbp - 0x59]
test eax, eax
js 0x14006d5ba
mov qword [rsp + 0x20], r15
mov r9d, 0x20000000
lea r8, [rbp + 0x77]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
js 0x14006d5ba
test rbx, rbx
je 0x14006d534
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [rbp + 0x77]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.14006d780
nop
mov rdx, qword [rbp - 0x61]
test rdx, rdx
je 0x14006d575
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x58]
mov rax, qword [rsi + 0x240]
cmp byte [rax], 0
je 0x14006d575
mov rax, qword [rdi]
mov rdx, qword [rbp - 0x61]
mov rcx, rdi
call qword [rax + 0x60]
mov rdx, qword [rsi + 0x288]
lea rcx, [rbp - 0x69]
call fcn.140018d60
nop
mov rax, qword [rdi]
mov rbx, qword [rax + 0x78]
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 7]
call fcn.140016140
mov rdx, qword [rax]
mov rcx, rdi
call rbx
mov r14d, 0xffffffff
lea r13, [0x140592ec8]
test eax, eax
jns 0x14006d5e5
xor bl, bl
jmp 0x14006d745
test rbx, rbx
je 0x14006d5c8
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x69]
lea rdx, [rbp + 0x7f]
mov rcx, rsi
call fcn.14006ec80
nop
mov rax, qword [rbp + 0x7f]
cmp byte [rax], 0
je 0x14006d622
mov rax, qword [rdi]
mov rbx, qword [rax + 0xb0]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp + 0xf]
call fcn.140016140
mov rdx, qword [rax]
mov rcx, rdi
call rbx
test eax, eax
js 0x14006d66f
lea rdx, [rsi + 0x230]
lea rcx, [rbp + 0x17]
call fcn.140016140
mov rcx, qword [rax]
mov qword [rbp - 0x31], rcx
lea rdx, [rsi + 0x230]
lea rcx, [rbp + 0x1f]
call fcn.140016140
mov rcx, qword [rax]
mov qword [rbp - 0x29], rcx
cmp byte [rsi + 0x280], 0
jne 0x14006d676
mov rax, qword [rdi]
lea r8, [rbp - 0x31]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
jns 0x14006d676
xor bl, bl
jmp 0x14006d724
lea rcx, [rsi + 0x250]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsi + 0x250]
cmp byte [rsi + 0x2a0], 0
je 0x14006d6a0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bl, bl
jmp 0x14006d724
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbp - 0x19], 1
lea rax, vtable.._AUEvents__1__showDialog_Win32NativeFileChooser_juce__AEAA_NAEAUIFileDialog___Z_.0
mov qword [rbp - 0x21], rax
mov byte [rbp - 0x11], 0
mov qword [rbp - 9], rsi
mov qword [rbp - 0x51], rdi
mov dword [rbp - 0x49], r15d
mov rax, qword [rdi]
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x21]
mov rcx, rdi
call qword [rax + 0x38]
nop
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, rax
mov rcx, rdi
call rbx
test eax, eax
sete bl
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
mov edx, dword [rbp - 0x49]
call qword [rax + 0x40]
nop
lea rcx, [rsi + 0x250]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xchg qword [rsi + 0x298], r15
lea rcx, [rsi + 0x250]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x7f]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14006d745
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14006d745
call fcn.1400c9d7c
nop
mov rcx, qword [rbp - 0x69]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14006d766
lock xadd dword [rcx], r14d
dec r14d
cmp r14d, 0xffffffff
jne 0x14006d766
call fcn.1400c9d7c
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14006d776
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
movzx eax, bl
jmp 0x14006d5ca