Function at 0x14013e8c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r12, rdx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
call fcn.140004ce0
mov r13, rax
mov r8d, dword [rax + 0x30]
lea rsi, [0x140379908]
test r8d, r8d
js 0x14013e927
cmp r8d, dword [rax + 0x14]
jge 0x14013e927
lea rcx, [rax + 8]
lea rdx, [rbp - 0x68]
call fcn.14000cb10
jmp 0x14013e935
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
mov rax, qword [r12]
xor r9d, r9d
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopy
lea rdx, [rbp - 0x50]
xor ecx, ecx
cmp byte [rax], cl
jne 0x14013ed4f
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x14013e9a6
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x28]
call fcn.14001a140
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140178d10
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013e9ab
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x14013e9ab
call fcn.1400da0f0
jmp 0x14013e9ab
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14017e080
mov r15, rax
mov qword [rsp + 0x20], rax
mov r9, rbx
mov esi, 1
mov r14d, esi
lea rcx, [0x1402d5ca8]
mov r10d, 0xdc00
mov r11d, 4
movzx eax, word [rcx]
test ax, ax
je 0x14013ea44
add rcx, 2
lea edx, [rax - 0xd800]
cmp edx, 0x7ff
ja 0x14013ea18
movzx r8d, word [rcx]
cmp r8w, r10w
jb 0x14013ea18
mov eax, r8d
sub eax, r10d
shl edx, 0xa
or eax, edx
add eax, 0x10000
add rcx, 2
mov rdx, rsi
cmp eax, 0x80
jb 0x14013ea3c
mov edx, 2
cmp eax, 0x800
jb 0x14013ea3c
mov edx, 3
cmp eax, 0x10000
cmovae rdx, r11
add r9, rdx
inc r14
jmp 0x14013e9e0
test r9, r9
je 0x14013ea86
mov rax, qword [r15]
mov rbx, rdi
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14013ea50
lea rdx, [rbx + r9]
mov rcx, r15
call fcn.14016a9f0
movsxd rax, ebx
add rax, qword [r15]
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea rdx, [0x1402d5ca8]
lea rcx, [rsp + 0x20]
call fcn.14001cb60
xor ebx, ebx
mov rcx, qword [r15]
mov qword [rsp + 0x20], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013ea9d
lock inc dword [rcx - 0x10]
mov rcx, qword [r15]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013eac1
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013eac1
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013eae6
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013eae6
call fcn.1400da0f0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013eb20
lea rcx, [rsp + 0x58]
call fcn.14000c390
nop
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x28]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013eb60
lea rcx, [rsp + 0x78]
call fcn.14000c390
mov rcx, qword [rsp + 0x38]
add rcx, 0x50
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400bb570
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
lea rdx, str.Changes_to_preset__s_are_saved.
lea rcx, [rsp + 0x28]
call fcn.14001a140
nop
lea r14, [0x140379908]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rax, [0x14044a030]
mov qword [rsp + 0x48], rax
xor eax, eax
lock cmpxchg dword [0x14044a030], esi
je 0x14013ec07
mov ecx, reloc.WS2_32.dll_send
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x14044a030], esi
je 0x14013ec07
sub ecx, 1
jns 0x14013ebe0
xor eax, eax
lock cmpxchg dword [0x14044a030], esi
je 0x14013ec07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14013ebf1
mov rbx, qword [0x14044a310]
test rbx, rbx
je 0x14013ec86
cmp qword [rbx + 0x40], 0
je 0x14013ec4b
lea rcx, [rbx + 0x18]
movzx r8d, byte [rcx + 0x20]
mov rdx, qword [rsp + 0x28]
call fcn.14017d640
test eax, eax
jns 0x14013ec4b
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x40]
call fcn.14016b490
jmp 0x14013eca0
movzx r8d, byte [rbx + 0x38]
mov rdx, qword [rsp + 0x28]
lea rcx, [rbx + 0x18]
call fcn.14017d640
test eax, eax
js 0x14013ec86
lea rcx, [rbx + 0x28]
mov edx, eax
call fcn.14017f2f0
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013eca0
lock inc dword [rcx - 0x10]
jmp 0x14013eca0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rax - 0x10]
test ecx, 0x30000000
nop
jne 0x14013eca0
lock inc dword [rax - 0x10]
xor eax, eax
xchg dword [0x14044a030], eax
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x48]
call fcn.140015780
mov rbx, qword [rax]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140015780
mov r8, rbx
mov rdx, qword [rax]
lea rcx, [rbp - 0x50]
call fcn.1400058b0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x38]
call fcn.14001a140
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.14000ad90
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013ed1f
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013ed1f
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013ed45
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013ed45
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x20]
jmp 0x14013f0dc
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x14013eda5
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.14001a140
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140178d10
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013edaa
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x14013edaa
call fcn.1400da0f0
jmp 0x14013edaa
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14017e080
mov r15, rax
mov qword [rsp + 0x48], rax
mov r9, rbx
mov esi, 1
mov r14d, esi
lea rcx, [0x1402d5db0]
mov r10d, 0xdc00
mov r11d, 4
nop
movzx eax, word [rcx]
test ax, ax
je 0x14013ee44
add rcx, 2
lea edx, [rax - 0xd800]
cmp edx, 0x7ff
ja 0x14013ee18
movzx r8d, word [rcx]
cmp r8w, r10w
jb 0x14013ee18
mov eax, r8d
sub eax, r10d
shl edx, 0xa
or eax, edx
add eax, 0x10000
add rcx, 2
mov rdx, rsi
cmp eax, 0x80
jb 0x14013ee3c
mov edx, 2
cmp eax, 0x800
jb 0x14013ee3c
mov edx, 3
cmp eax, 0x10000
cmovae rdx, r11
add r9, rdx
inc r14
jmp 0x14013ede0
test r9, r9
je 0x14013ee86
mov rax, qword [r15]
mov rbx, rdi
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14013ee50
lea rdx, [rbx + r9]
mov rcx, r15
call fcn.14016a9f0
movsxd rax, ebx
add rax, qword [r15]
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea rdx, [0x1402d5db0]
lea rcx, [rsp + 0x20]
call fcn.14001cb60
xor ebx, ebx
mov rcx, qword [r15]
mov qword [rsp + 0x28], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013ee9d
lock inc dword [rcx - 0x10]
mov rcx, qword [r15]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013eec1
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013eec1
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013eee6
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013eee6
call fcn.1400da0f0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013ef15
lea rcx, [rsp + 0x78]
call fcn.14000c390
nop
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013ef50
lea rcx, [rsp + 0x58]
call fcn.14000c390
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx + 0x50]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
call fcn.1400bb570
mov rcx, rbx
call fcn.14013c350
mov rdx, r12
mov rcx, r13
call fcn.140143d10
mov edx, eax
mov rcx, rbx
call fcn.140141070
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea r14, [0x140379908]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rdx, str.New_preset__s_is_saved.
lea rcx, [rsp + 0x20]
call fcn.140019df0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.14017f4e0
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013effd
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013effd
call fcn.1400da0f0
nop
mov r9, r12
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140139040
nop
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, r13
call fcn.14000ad90
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013f046
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013f046
call fcn.1400da0f0
call fcn.140003070
mov ebx, dword [rax + 0x250]
mov rcx, r13
call fcn.1401442d0
cmp eax, ebx
jne 0x14013f0d7
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rdx, str.Reached_the_limit_on_new_presets.
lea rcx, [rsp + 0x20]
call fcn.140019df0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.14017f4e0
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013f0c4
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013f0c4
call fcn.1400da0f0
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.14000ad90
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
test eax, 0x30000000
nop
jne 0x14013f0fc
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013f0fc
call fcn.1400da0f0
movzx eax, byte [r13 + 0x18]
mov byte [r13 + 0x18], 0
test al, al
je 0x14013f118
mov edx, 5
mov rcx, r13
call fcn.140143b50
nop
mov rcx, qword [rbp - 0x60]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013f13c
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013f13c
call fcn.1400da0f0
mov rcx, qword [rbp - 0x68]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013f15e
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x14013f15e
call fcn.1400da0f0
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400d9d70
mov rbx, qword [rsp + 0x910]
add rsp, 0x8c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret