Function at 0x14013c350
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rcx, [rbp - 0x78]
call fcn.14017d970
nop
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x58]
call fcn.14017e080
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rdx, str.Factsoft
mov rcx, rax
call fcn.140169090
mov rdx, qword [rax]
mov qword [rsp + 0x30], rdx
mov ecx, dword [rdx - 0x10]
nop
test ecx, 0x30000000
jne 0x14013c3d9
lock inc dword [rdx - 0x10]
mov rcx, qword [rbx]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
mov rdi, 0xffffffffffffffff
test eax, 0x30000000
jne 0x14013c403
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x14013c403
call fcn.1400da0f0
nop
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.140175720
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c441
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c441
call fcn.1400da0f0
lea rdx, [0x1402d59ec]
lea rcx, [rsp + 0x30]
call fcn.140019df0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call fcn.14017e6e0
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c491
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c491
call fcn.1400da0f0
mov rbx, qword [rbp - 0x60]
movsxd rax, dword [rbp - 0x54]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x14013c646
nop word [rax + rax]
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013c4c7
lock inc dword [rcx - 0x10]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013c4f0
lea rcx, [rbp - 0x50]
call fcn.14000c390
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x30]
lea rcx, [r15 + 0x50]
call fcn.1400bb460
nop
cmp qword [rbp], 0
je 0x14013c601
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
lea rcx, [rsp + 0x60]
call fcn.14001a140
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013c54d
lock inc dword [rcx - 0x10]
mov edx, dword [rsp + 0x4c]
lea ecx, [rdx + 1]
cmp ecx, dword [rsp + 0x48]
jle 0x14013c57b
mov eax, ecx
test ecx, ecx
jns 0x14013c563
lea eax, [rcx + 1]
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
lea rcx, [rsp + 0x40]
call fcn.1400082a0
mov edx, dword [rsp + 0x4c]
lea eax, [rdx + 1]
mov dword [rsp + 0x4c], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x60]
mov qword [rdx], rax
mov rax, qword [rsp + 0x30]
mov qword [rdx + 8], rax
mov dword [rdx + 0x10], 1
mov eax, dword [0x1403798f8]
nop
test eax, 0x30000000
jne 0x14013c5d5
mov eax, edi
lock xadd dword [0x1403798f8], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c5d5
lea rcx, [0x1403798f8]
call fcn.1400da0f0
mov eax, dword [0x1403798f8]
nop
test eax, 0x30000000
jne 0x14013c601
mov eax, edi
lock xadd dword [0x1403798f8], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c601
lea rcx, [0x1403798f8]
call fcn.1400da0f0
nop
lea rcx, [rbp - 0x10]
call fcn.140005670
lea rcx, [rbp - 0x30]
call fcn.140005670
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c639
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c639
call fcn.1400da0f0
add rbx, 8
cmp rbx, rsi
jne 0x14013c4b0
xor r9d, r9d
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopy
lea rdx, [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14013c6a5
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14001a140
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140178d10
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c6b1
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c6b1
call fcn.1400da0f0
jmp 0x14013c6b1
lea rax, [0x140379908]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14017e080
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c6e6
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c6e6
call fcn.1400da0f0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14013c700
lock inc dword [rax - 0x10]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov r9, r12
mov esi, 1
lea rax, [0x1402d59f8]
mov r10d, 0xdc00
mov r11d, 4
movzx ecx, word [rax]
test cx, cx
je 0x14013c78f
add rax, 2
lea edx, [rcx - 0xd800]
cmp edx, 0x7ff
ja 0x14013c75e
movzx r8d, word [rax]
cmp r8w, r10w
jb 0x14013c75e
mov ecx, r8d
sub ecx, r10d
shl edx, 0xa
or ecx, edx
add ecx, 0x10000
add rax, 2
mov edx, 1
cmp ecx, 0x80
jb 0x14013c787
mov edx, 2
cmp ecx, 0x800
jb 0x14013c787
mov edx, 3
cmp ecx, 0x10000
cmovae rdx, r11
add r9, rdx
inc rsi
jmp 0x14013c725
test r9, r9
je 0x14013c7d8
mov rax, qword [rsp + 0x30]
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14013c7a0
lea rdx, [rbx + r9]
lea rcx, [rsp + 0x30]
call fcn.14016a9f0
movsxd rax, ebx
add rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r8d, esi
lea rdx, [0x1402d59f8]
lea rcx, [rsp + 0x38]
call fcn.14001cb60
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14013c7f2
lock inc dword [rax - 0x10]
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c818
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c818
call fcn.1400da0f0
nop
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea r9, [0x1403780d0]
lea r8, [0x1403780d4]
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140163a60
lea rcx, [rsp + 0x60]
call fcn.140163f00
lea rcx, [rsp + 0x60]
call fcn.140164010
mov rsi, qword [rsp + 0x60]
movsxd rax, dword [rsp + 0x6c]
lea r14, [rsi + rax*8]
cmp rsi, r14
je 0x14013c8bc
nop dword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14017ccf0
mov rcx, qword [rsi]
mov rdx, qword [rax]
mov qword [rsi], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c8ae
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c8ae
call fcn.1400da0f0
add rsi, 8
cmp rsi, r14
jne 0x14013c870
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c8dc
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c8dc
call fcn.1400da0f0
lea rdx, [0x1402d5a18]
lea rcx, [rsp + 0x38]
call fcn.140019df0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x60]
call fcn.14017e6e0
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013c92c
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013c92c
call fcn.1400da0f0
mov rbx, qword [rbp - 0x70]
movsxd rax, dword [rbp - 0x64]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x14013cad4
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013c958
lock inc dword [rcx - 0x10]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013c980
lea rcx, [rbp - 0x30]
call fcn.14000c390
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x10]
lea rcx, [r15 + 0x50]
call fcn.1400bb460
nop
cmp qword [rbp + 0x40], 0
je 0x14013ca8f
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rdx, qword [rbp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.14001a140
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14013c9dc
lock inc dword [rcx - 0x10]
mov edx, dword [rsp + 0x4c]
lea ecx, [rdx + 1]
cmp ecx, dword [rsp + 0x48]
jle 0x14013ca0a
mov eax, ecx
test ecx, ecx
jns 0x14013c9f2
lea eax, [rcx + 1]
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
lea rcx, [rsp + 0x40]
call fcn.1400082a0
mov edx, dword [rsp + 0x4c]
lea eax, [rdx + 1]
mov dword [rsp + 0x4c], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rcx*8]
mov rax, qword [rbp - 0x50]
mov qword [rdx], rax
mov rax, qword [rsp + 0x30]
mov qword [rdx + 8], rax
mov dword [rdx + 0x10], 2
mov eax, dword [0x1403798f8]
nop
test eax, 0x30000000
jne 0x14013ca63
mov eax, edi
lock xadd dword [0x1403798f8], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013ca63
lea rcx, [0x1403798f8]
call fcn.1400da0f0
mov eax, dword [0x1403798f8]
nop
test eax, 0x30000000
jne 0x14013ca8f
mov eax, edi
lock xadd dword [0x1403798f8], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013ca8f
lea rcx, [0x1403798f8]
call fcn.1400da0f0
nop
lea rcx, [rbp + 0x30]
call fcn.140005670
lea rcx, [rbp + 0x10]
call fcn.140005670
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013cac7
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013cac7
call fcn.1400da0f0
add rbx, 8
cmp rbx, rsi
jne 0x14013c941
call fcn.140004ce0
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140143eb0
nop
lea rcx, [rbp - 0x70]
call fcn.1400033c0
mov rcx, qword [rbp - 0x70]
call fcn.1400e0818
nop
lea rcx, [rsp + 0x60]
call fcn.1400033c0
mov rcx, qword [rsp + 0x60]
call fcn.1400e0818
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013cb35
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14013cb35
call fcn.1400da0f0
nop
lea rcx, [rbp - 0x60]
call fcn.1400033c0
mov rcx, qword [rbp - 0x60]
call fcn.1400e0818
nop
lea rcx, [rsp + 0x78]
call fcn.1400033c0
mov rcx, qword [rsp + 0x78]
call fcn.1400e0818
nop
mov rcx, qword [rbp - 0x78]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14013cb80
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x14013cb80
call fcn.1400da0f0
nop
lea rcx, [rsp + 0x40]
call fcn.1400055b0
mov rcx, qword [rsp + 0x40]
call fcn.1400e0818
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret