Function at 0x14000ca10
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
xor eax, eax
mov dword [rbp - 9], eax
lea r14, [0x140172000]
mov qword [rbp + 0x2f], r14
mov qword [rbp + 0x27], rax
lea r9, [rbp + 0x27]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14013c9c0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
or edi, 0xffffffff
test eax, eax
js 0x14000cace
mov r8d, edi
mov rdx, qword [rbp + 0x27]
lea rcx, [rbp - 0x29]
call fcn.140005580
mov rdx, rax
mov rcx, qword [rbp + 0x2f]
mov qword [rbp + 0xf], rcx
mov rax, qword [rax]
mov qword [rbp + 0x2f], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x14000cab6
cmp eax, edi
je 0x14000cac4
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000cac4
mov rcx, qword [rbp - 0x29]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp + 0x2f]
cmp dword [rax + 4], 0
jne 0x14000cb67
lea rdx, str.ProgramData
lea rcx, [rbp - 0x19]
call fcn.1400311e0
nop
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140005460
mov rdx, rax
mov rcx, qword [rbp + 0x2f]
mov qword [rbp + 0x17], rcx
mov rax, qword [rax]
mov qword [rbp + 0x2f], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x21]
mov eax, dword [rcx]
test eax, eax
je 0x14000cb2c
cmp eax, 0xffffffff
je 0x14000cb3b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000cb3b
mov rcx, qword [rbp - 0x21]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov rcx, qword [rbp - 0x19]
mov eax, dword [rcx]
test eax, eax
je 0x14000cb59
cmp eax, 0xffffffff
je 0x14000cb67
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000cb67
mov rcx, qword [rbp - 0x19]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cd80
mov rax, qword [rbp + 0x2f]
cmp dword [rax + 4], 0
jne 0x14000cbc5
mov r8d, edi
lea rdx, str.C:ProgramData
lea rcx, [rbp - 0x11]
call fcn.140005410
mov rdx, rax
mov rcx, qword [rbp + 0x2f]
mov qword [rbp + 0x1f], rcx
mov rax, qword [rax]
mov qword [rbp + 0x2f], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x11]
mov eax, dword [rcx]
test eax, eax
je 0x14000cbb7
cmp eax, 0xffffffff
je 0x14000cbc5
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000cbc5
mov rcx, qword [rbp - 0x11]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 1]
call fcn.1400248d0
nop
mov rcx, rax
call fcn.140026e40
test al, al
sete bl
lea rcx, [rbp - 1]
call fcn.140024e20
test bl, bl
je 0x14000cbf2
mov qword [rsi], r14
jmp 0x14000cbff
lea rdx, [rbp + 0x2f]
mov rcx, rsi
call fcn.140028710
nop
mov rcx, qword [rbp + 0x2f]
mov eax, dword [rcx]
test eax, eax
je 0x14000cc1b
cmp eax, 0xffffffff
je 0x14000cc2a
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14000cc2a
mov rcx, qword [rbp + 0x2f]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cd80
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14010a180
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret