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

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 - 0x450]
sub rsp, 0x550
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov r15, rdx
mov r13, rcx
xor edi, edi
xor r9d, r9d
mov r8d, 5
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x14013fb05
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001a140
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140178d10
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fb11
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x14013fb11
call fcn.1400da0f0
jmp 0x14013fb11
lea rax, [0x140379908]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14017e080
mov r14, rax
mov qword [rsp + 0x50], rax
mov r9, rdi
mov esi, 1
lea rcx, str.FxSoundPresetsExport_
mov r10d, 0xdc00
mov r11d, 4
movzx eax, word [rcx]
test ax, ax
je 0x14013fba9
add rcx, 2
lea edx, [rax - 0xd800]
cmp edx, 0x7ff
ja 0x14013fb7b
movzx r8d, word [rcx]
cmp r8w, r10w
jb 0x14013fb7b
mov eax, r8d
sub eax, r10d
shl edx, 0xa
or eax, edx
add eax, 0x10000
add rcx, 2
mov edx, 1
cmp eax, 0x80
jb 0x14013fba1
mov edx, 2
cmp eax, 0x800
jb 0x14013fba1
mov edx, 3
cmp eax, 0x10000
cmovae rdx, r11
add r9, rdx
inc rsi
jmp 0x14013fb43
test r9, r9
je 0x14013fbea
mov rax, qword [r14]
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], 0
jne 0x14013fbb4
lea rdx, [rdi + r9]
mov rcx, r14
call fcn.14016a9f0
movsxd rax, edi
add rax, qword [r14]
mov qword [rsp + 0x50], rax
mov r8d, esi
lea rdx, str.FxSoundPresetsExport_
lea rcx, [rsp + 0x50]
call fcn.14001cb60
xor edi, edi
mov rcx, qword [r14]
mov qword [rsp + 0x58], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013fc01
lock inc dword [rcx - 0x10]
mov rcx, qword [r14]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fc25
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013fc25
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fc4a
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013fc4a
call fcn.1400da0f0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140178d10
nop
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x14013fc82
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
jne 0x14013fcb6
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14017c050
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fcb6
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013fcb6
call fcn.1400da0f0
xor r14b, r14b
mov rsi, qword [r15]
movsxd rax, dword [r15 + 0xc]
lea rcx, [rax + rax*2]
lea r12, [rsi + rcx*8]
cmp rsi, r12
je 0x1401400ad
mov r15, qword [rsp + 0x58]
lea rax, [rsp + 0x20]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x18], rax
nop dword [rax + rax]
mov rcx, qword [rsi]
mov qword [rsp + 0x60], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013fd07
lock inc dword [rcx - 0x10]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x68], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013fd1f
lock inc dword [rcx - 0x10]
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov eax, dword [r15 - 0x10]
nop
test eax, 0x30000000
jne 0x14013fd41
lock inc dword [r15 - 0x10]
mov rax, qword [rsp + 0x20]
cmp byte [rax], 0
jne 0x14013fd8b
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013fd5f
lock inc dword [rcx - 0x10]
mov rcx, qword [rsp + 0x60]
xchg qword [rsp + 0x20], rcx
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fdaa
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013fdaa
call fcn.1400da0f0
jmp 0x14013fdaa
mov rdx, qword [rsp + 0x60]
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x14013fd93
add r8, rdx
lea rcx, [rsp + 0x20]
call fcn.1401691c0
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14013fdc4
lock inc dword [rax - 0x10]
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fdea
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013fdea
call fcn.1400da0f0
nop
lea r8, [0x1402d5e64]
lea rdx, [0x1402d5e60]
lea rcx, [rsp + 0x48]
call fcn.1401691c0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14013fe1c
lock inc dword [rax - 0x10]
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fe42
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013fe42
call fcn.1400da0f0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140178d10
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013fe77
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013fe77
call fcn.1400da0f0
mov rax, qword [rsp + 0x38]
cmp byte [rax], 0
je 0x14013ff51
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14013ff4f
lea rdx, str.Preset_file__s_already_exists_in_the_export_path__do_you_want_to_overwrite_the_preset_file_
lea rcx, [rsp + 0x78]
call fcn.140019df0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.14017f4e0
nop
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013feee
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013feee
call fcn.1400da0f0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 8]
call fcn.140015780
mov r8, qword [rax]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14017f020
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140005bf0
movzx edi, al
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov edx, dword [rcx]
nop
test edx, 0x30000000
jne 0x14013ff46
mov edx, ebx
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x14013ff46
call fcn.1400da0f0
test dil, dil
je 0x14014002e
xor edi, edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rbp], rax
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x10]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013ff85
lea rcx, [rbp - 0x80]
call fcn.14000c390
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x18]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013ffc0
lea rcx, [rbp - 0x60]
call fcn.14000c390
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x20]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140140000
lea rcx, [rbp - 0x40]
call fcn.14000c390
lea rcx, [r13 + 0x50]
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x40]
call fcn.1400bb340
mov r14b, 1
jmp 0x140140030
xor edi, edi
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140140056
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140140056
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14014007b
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014007b
call fcn.1400da0f0
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401400a0
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401400a0
call fcn.1400da0f0
add rsi, 0x18
cmp rsi, r12
jne 0x14013fcf0
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401400d3
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401400d3
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
mov edx, dword [rcx]
nop
test edx, 0x30000000
jne 0x1401400f7
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x1401400f7
call fcn.1400da0f0
movzx eax, r14b
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x550]
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