Function at 0x140093540
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
movzx r13d, r8b
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x6f], r14d
mov rax, qword [rdx]
lea rdx, [rbp + 0x6f]
mov rcx, rdi
call qword [rax + 0x50]
test eax, eax
js 0x140093720
mov edx, dword [rbp + 0x6f]
mov eax, edx
or eax, 0x20
and edx, 0xffffffdf
cmp byte [rsi + 0x270], r14b
cmovne edx, eax
mov eax, edx
and eax, 0xfffffffd
or edx, 2
cmp byte [rsi + 0x272], r14b
cmove edx, eax
mov eax, edx
btr eax, 9
bts edx, 9
cmp byte [rsi + 0x273], r14b
cmove edx, eax
mov eax, edx
btr eax, 0x1e
bts edx, 0x1e
cmp qword [rsi + 0x228], r14
cmove edx, eax
mov dword [rbp + 0x6f], edx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
test eax, eax
js 0x140093720
lea rdx, [rsi + 0x218]
lea rcx, [rbp - 0x39]
call fcn.140014d10
mov rax, qword [rdi]
mov rdx, qword [rbp - 0x39]
mov rcx, rdi
call qword [rax + 0x88]
test eax, eax
js 0x140093720
mov qword [rbp + 0x7f], r14
lea rdx, [rsi + 0x230]
lea rcx, [rbp - 1]
call fcn.140014d10
mov qword [rsp + 0x20], r14
mov r9d, 0x20000000
lea r8, [rbp + 0x7f]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
jns 0x140093695
mov qword [rbp - 0x51], r14
lea r9, [rbp - 0x51]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1402bd420]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rbx, qword [rbp - 0x51]
test eax, eax
js 0x140093712
mov qword [rsp + 0x20], r14
mov r9d, 0x20000000
lea r8, [rbp + 0x7f]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
js 0x140093712
test rbx, rbx
je 0x140093695
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [rbp + 0x7f]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x31]
call fcn.140093920
nop
mov rdx, qword [rbp - 0x59]
test rdx, rdx
je 0x1400936d6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x58]
mov rax, qword [rsi + 0x230]
cmp byte [rax], 0
je 0x1400936d6
mov rax, qword [rdi]
mov rdx, qword [rbp - 0x59]
mov rcx, rdi
call qword [rax + 0x60]
mov rdx, qword [rsi + 0x278]
lea rcx, [rbp - 0x61]
call fcn.140019cf0
nop
lea rdx, [rbp - 0x61]
lea rcx, [rbp + 7]
call fcn.140014d10
mov r8, qword [rdi]
mov rdx, qword [rax]
mov rcx, rdi
call qword [r8 + 0x78]
mov r15d, 0xffffffff
test eax, eax
jns 0x14009373d
xor bl, bl
jmp 0x1400938e1
test rbx, rbx
je 0x140093720
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 - 0x61]
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.1400950e0
nop
mov rax, qword [rbp - 0x69]
cmp byte [rax], 0
je 0x140093778
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0xf]
call fcn.140014d10
mov r8, qword [rdi]
mov rdx, qword [rax]
mov rcx, rdi
call qword [r8 + 0xb0]
test eax, eax
js 0x1400937c5
lea rdx, [rsi + 0x220]
lea rcx, [rbp + 0x17]
call fcn.140014d10
mov rcx, qword [rax]
mov qword [rbp - 0x29], rcx
lea rdx, [rsi + 0x220]
lea rcx, [rbp + 0x1f]
call fcn.140014d10
mov rcx, qword [rax]
mov qword [rbp - 0x21], rcx
cmp byte [rsi + 0x270], 0
jne 0x1400937cc
mov rax, qword [rdi]
lea r8, [rbp - 0x29]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
jns 0x1400937cc
xor bl, bl
jmp 0x1400938bb
lea rcx, [rsi + 0x240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsi + 0x240]
cmp byte [rsi + 0x290], 0
je 0x1400937f6
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bl, bl
jmp 0x1400938bb
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbp - 0x11], 1
lea rax, vtable.._AUEvents__1__showDialog_Win32NativeFileChooser_juce__AEAA_NAEAUIFileDialog___N_Z_.0
mov qword [rbp - 0x19], rax
mov qword [rbp - 9], rsi
mov qword [rbp - 0x49], rdi
mov dword [rbp - 0x41], r14d
mov rax, qword [rdi]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x19]
mov rcx, rdi
call qword [rax + 0x38]
nop
test r13b, r13b
jne 0x14009387a
mov rax, qword [rsi + 0x210]
test rax, rax
je 0x140093843
mov rax, qword [rax + 0x10]
jmp 0x140093846
mov rax, r14
test byte [rax + 0xd0], 1
je 0x140093859
mov rcx, rax
call fcn.1401fe600
jmp 0x140093867
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x14009387a
call fcn.14026b700
mov rcx, rax
test rax, rax
je 0x14009387a
mov rax, qword [rax]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, rax
jmp 0x14009387d
mov rdx, r14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
sete bl
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
mov edx, dword [rbp - 0x41]
call qword [rax + 0x40]
nop
lea rcx, [rsi + 0x240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xchg qword [rsi + 0x288], r14
lea rcx, [rsi + 0x240]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp - 0x69]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1400938e1
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1400938e1
call fcn.1400daaa8
nop
mov rcx, qword [rbp - 0x61]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140093907
lock xadd dword [rcx], r15d
dec r15d
cmp r15d, 0xffffffff
jne 0x140093907
call fcn.1400daaa8
nop
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140093917
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
movzx eax, bl
jmp 0x140093722