Function at 0x14000c740
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movzx ebx, dl
mov rsi, rcx
xor eax, eax
mov dword [rbp - 9], eax
lea r14, [0x140172000]
mov qword [rbp + 0x37], r14
mov qword [rbp + 0x2f], rax
lea rax, [0x14013c9e0]
lea rcx, [0x14013c950]
test dl, dl
cmovne rcx, rax
lea r9, [rbp + 0x2f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14000c810
or edi, 0xffffffff
mov r8d, edi
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp - 0x39]
call fcn.140005580
mov rdx, qword [rbp + 0x37]
mov qword [rbp + 0xf], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x37], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x39]
mov eax, dword [rcx]
test eax, eax
je 0x14000c7f3
cmp eax, edi
je 0x14000c801
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000c801
mov rcx, qword [rbp - 0x39]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14000c92d
test bl, bl
je 0x14000c8a2
lea rdx, str.ProgramFiles
lea rcx, [rbp - 0x29]
call fcn.1400311e0
nop
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140005460
mov rdx, qword [rbp + 0x37]
mov qword [rbp + 0x17], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x37], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x31]
mov eax, dword [rcx]
or edi, 0xffffffff
test eax, eax
je 0x14000c867
cmp eax, edi
je 0x14000c876
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000c876
mov rcx, qword [rbp - 0x31]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x14000c91e
cmp eax, 0xffffffff
je 0x14000c92d
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000c92d
mov rcx, qword [rbp - 0x29]
jmp 0x14000c91e
lea rdx, str.ProgramFiles_x86_
lea rcx, [rbp - 0x19]
call fcn.1400311e0
nop
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140005460
mov rdx, qword [rbp + 0x37]
mov qword [rbp + 0x1f], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x37], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x21]
mov eax, dword [rcx]
or edi, 0xffffffff
test eax, eax
je 0x14000c8f1
cmp eax, edi
je 0x14000c900
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000c900
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 0x14000c91e
cmp eax, 0xffffffff
je 0x14000c92d
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000c92d
mov rcx, qword [rbp - 0x19]
mov r8d, 8
lea edx, [r8 - 7]
call fcn.14002cd80
mov rax, qword [rbp + 0x37]
cmp dword [rax + 4], 0
jne 0x14000c983
mov edx, 3
lea rcx, [rbp - 0x11]
call fcn.14004b360
mov rdx, qword [rbp + 0x37]
mov qword [rbp + 0x27], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x37], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x11]
mov eax, dword [rcx]
test eax, eax
je 0x14000c975
cmp eax, 0xffffffff
je 0x14000c983
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000c983
mov rcx, qword [rbp - 0x11]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
lea rdx, [rbp + 0x37]
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 0x14000c9b0
mov qword [rsi], r14
jmp 0x14000c9bd
lea rdx, [rbp + 0x37]
mov rcx, rsi
call fcn.140028710
nop
mov rcx, qword [rbp + 0x37]
mov eax, dword [rcx]
test eax, eax
je 0x14000c9d9
cmp eax, 0xffffffff
je 0x14000c9e8
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14000c9e8
mov rcx, qword [rbp + 0x37]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cd80
mov rax, rsi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14010a180
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret