Function at 0x140126540
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
call fcn.14028a750
nop
lea r15, [rcx + 0xd8]
lea rax, vtable.FxPresetImportDialog::PresetImportComponent.0
mov qword [rcx], rax
lea rax, vtable.FxPresetImportDialog::PresetImportComponent.1.0
mov qword [r15], rax
lea rsi, [0x140379908]
mov qword [rsp + 0x50], rsi
lea rbx, [0x1403798f8]
lea rax, [rbx + 0x10]
mov qword [rsp + 0x38], rax
lea r14, [rcx + 0xe0]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140288d50
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140126608
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140126608
call fcn.1400da0f0
nop
mov eax, dword [0x1403798f8]
nop
test eax, 0x30000000
jne 0x140126632
mov eax, 0xffffffff
lock xadd dword [0x1403798f8], eax
dec eax
cmp eax, 0xffffffff
jne 0x140126632
mov rcx, rbx
call fcn.1400da0f0
mov ebx, r13d
or ebx, 2
xor r9d, r9d
mov r8d, 5
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1401266a3
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14001a140
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140178d10
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14012669d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14012669d
call fcn.1400da0f0
mov ebx, dword [rsp + 0x30]
jmp 0x1401266a8
mov qword [rsp + 0x38], rsi
or ebx, 1
mov dword [rsp + 0x30], ebx
lea r12, [rdi + 0x310]
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rsp + 0x38]
mov edx, 9
mov rcx, r12
call fcn.14027f4d0
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401266f9
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401266f9
call fcn.1400da0f0
lea rdx, str.Import
lea rcx, [rsp + 0x40]
call fcn.140019df0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14017f4e0
or dword [rsp + 0x30], 4
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140126748
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140126748
call fcn.1400da0f0
nop
lea rsi, [rdi + 0xe18]
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14027d570
lea rax, vtable.juce::TextButton.1.0
mov qword [rsi], rax
lea rax, vtable.juce::TextButton.0
mov qword [rsi + 0xd8], rax
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401267a1
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401267a1
call fcn.1400da0f0
call fcn.1402871e0
mov rcx, rax
mov dword [rsp + 0x20], 1
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call fcn.1400dc674
mov rbx, rax
lea rdx, str.Select_the_folder_which_contains_the_presets...
lea rcx, [rsp + 0x40]
call fcn.140019df0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.14017f4e0
or dword [rsp + 0x30], 8
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov edx, dword [rcx]
nop
test edx, 0x30000000
jne 0x140126819
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140126819
call fcn.1400da0f0
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.1402889d0
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140126852
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140126852
call fcn.1400da0f0
lea rdx, [rbx + 0x198]
lea rcx, [rsp + 0x40]
call fcn.1401e1d40
nop
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
test rcx, rcx
je 0x140126875
lock inc dword [rcx + 8]
or dword [rsp + 0x30], 0x20
movss xmm1, dword [0x1403b5d80]
lea rcx, [rsp + 0x38]
call fcn.1401919e0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401268b1
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401268b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140288920
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401268e2
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401268e2
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, rdi
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x1401268f7
mov r10, qword [rcx + 0x10]
test r10, r10
jne 0x140126908
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x1401268e5
call fcn.1402871e0
mov r10, rax
mov r13d, 0x1000103
mov qword [rsp + 0x40], r13
xor r8d, r8d
mov ebx, dword [r10 + 0xf4]
mov r9d, ebx
test ebx, ebx
jle 0x140126961
mov r11, qword [r10 + 0xe8]
nop dword [rax + rax]
movsxd rax, r8d
cmp r13d, dword [r11 + rax*8]
je 0x140126bfa
lea eax, [r9 + r8]
cdq
sub eax, edx
sar eax, 1
cmp eax, r8d
je 0x140126961
movsxd rcx, eax
cmp r13d, dword [r11 + rcx*8]
jge 0x140126959
mov r9d, eax
jmp 0x14012695c
mov r8d, eax
cmp r8d, r9d
jl 0x140126930
mov r8d, dword [0x1404261a8]
mov edx, 0x1000281
mov rcx, r14
call fcn.140289160
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x33], 0xff
mov r8d, dword [rsp + 0x30]
mov edx, 0x1000640
mov rcx, r12
call fcn.140289160
mov dword [rsp + 0x30], 0xb1b1b1
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x33], 0xff
mov r8d, dword [rsp + 0x30]
mov edx, 0x1000641
mov rcx, r12
call fcn.140289160
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x33], 0xff
mov r8d, dword [rsp + 0x30]
mov edx, 0x1000643
mov rcx, r12
call fcn.140289160
mov dword [rsp + 0x30], 0xb1b1b1
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x33], 0xff
mov r8d, dword [rsp + 0x30]
mov edx, 0x1000644
mov rcx, r12
call fcn.140289160
lea rdx, str.Folder:
lea rcx, [rsp + 0x40]
call fcn.140019df0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.14017f4e0
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140126a5c
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140126a5c
call fcn.1400da0f0
nop
lea rcx, [rdi + 0x960]
xor r8d, r8d
lea rdx, [rsp + 0x38]
call fcn.1402889d0
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140126a99
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140126a99
call fcn.1400da0f0
cmp dword [r14 + 0x1e8], 0x21
je 0x140126ae2
mov dword [r14 + 0x1e8], 0x21
mov ecx, dword [r14 + 0x44]
mov eax, dword [r14 + 0x40]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], ecx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov r8b, 1
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140266a70
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.1402874c0
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140287b00
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140126b40
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140126b40
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140126b40
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov dword [rsp + 0x20], 0x1e
mov r9d, 0x50
mov r8d, dword [rsi + 0x3c]
mov edx, dword [rsi + 0x38]
mov rcx, rsi
call fcn.140289940
test r15, r15
je 0x140126bbf
lea rbx, [rdi + 0xfa0]
mov rcx, qword [rbx]
movsxd r8, dword [rbx + 0xc]
lea rdx, [rcx + r8*8]
cmp rcx, rdx
je 0x140126b8e
nop dword [rax]
cmp r15, qword [rcx]
je 0x140126bbf
add rcx, 8
cmp rcx, rdx
jne 0x140126b80
lea ecx, [r8 + 1]
cmp ecx, dword [rbx + 8]
jle 0x140126bae
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, rbx
call fcn.140005790
movsxd rcx, dword [rbx + 0xc]
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
mov rax, qword [rbx]
mov qword [rax + rcx*8], r15
mov rax, qword [r14]
mov dl, 1
mov rcx, r14
call qword [rax + 0x58]
mov r8d, 0xffffffff
mov rdx, r14
mov rcx, rdi
call fcn.140286fc0
mov rax, qword [rsi]
mov r8, qword [rax + 0x58]
lea rax, [fcn.14028a180]
mov dl, 1
mov rcx, rsi
cmp r8, rax
jne 0x140126c24
call fcn.14028a180
jmp 0x140126c27
test r8d, r8d
js 0x140126961
cmp r8d, ebx
jae 0x140126c18
movsxd rcx, r8d
mov r8, qword [r11 + rcx*8]
shr r8, 0x20
jmp 0x140126968
xor r8d, r8d
shr r8, 0x20
jmp 0x140126968
call r8
mov r8d, 0xffffffff
mov rdx, rsi
mov rcx, rdi
call fcn.140286fc0
mov r9, qword [r12]
mov dl, 1
mov rcx, r12
call qword [r9 + 0x58]
mov r8d, 0xffffffff
mov rdx, r12
mov rcx, rdi
call fcn.140286fc0
mov dword [rsp + 0x20], 0x190
mov r9d, 0x190
mov r8d, dword [rdi + 0x3c]
mov edx, dword [rdi + 0x38]
mov rcx, rdi
call fcn.140289940
nop
mov rax, rdi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret