Function at 0x14007c48c
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r12, rcx
mov r15, qword [rdx + 0x18]
test r15, r15
je 0x14007c520
mov rbp, rdx
mov r14, qword [rdx + 8]
test r14, r14
je 0x14007c520
mov rsi, r9
mov rbx, r8
lea r9, [rsp + 0x50]
and qword [r9], 0
lea rcx, [0x140344e20]
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14007c52d
mov r8, 0xffffffffffffffff
mov rdi, qword [rsp + 0x50]
cmp word [rdi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14007c4e4
lea r13, [rsp + 0x30]
mov rcx, r13
mov rdx, rdi
call fcn.14014f340
mov rcx, rdi
call sub.ole32.dll_CoTaskMemFree
mov cl, byte [r13 + 0x18]
mov rax, qword [r13]
cmp cl, 2
jne 0x14007c537
mov rcx, qword [rsp + 0x38]
jmp 0x14007c5d1
mov qword [r12], 2
jmp 0x14007c5da
mov eax, 1
jmp 0x14007c5d1
lea r13, [rsp + 0x30]
movups xmm0, xmmword [r13 + 8]
mov edx, dword [r13 + 0x19]
mov dword [rsp + 0x28], edx
mov edx, dword [r13 + 0x1c]
mov dword [rsp + 0x2b], edx
mov qword [r13], rax
movups xmmword [r13 + 8], xmm0
mov byte [r13 + 0x18], cl
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [r13 + 0x19], eax
mov dword [r13 + 0x1c], ecx
mov rdx, qword [rbp + 0x10]
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov r8, r15
call fcn.14007c6fa
mov rcx, r13
mov rdx, rdi
call fcn.14007c2a9
mov rdx, qword [rbp]
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov r8, r14
call fcn.14007c6fa
mov rcx, r13
mov rdx, rdi
call fcn.14007c2a9
mov rax, qword [r13]
mov rcx, qword [r13 + 8]
mov rbp, qword [r13 + 0x10]
mov dl, byte [r13 + 0x18]
mov edi, dword [r13 + 0x19]
mov dword [rsp + 0x20], edi
mov edi, dword [r13 + 0x1c]
mov dword [rsp + 0x23], edi
cmp dl, 2
jne 0x14007c5f1
mov qword [r12], rax
mov qword [r12 + 8], rcx
mov byte [r12 + 0x18], 2
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x30]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rbp
mov byte [rdi + 0x18], dl
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rdi + 0x19], eax
mov dword [rdi + 0x1c], ecx
xor edi, edi
xor ebp, ebp
xor r14d, r14d
xor r15d, r15d
test r15b, r15b
jne 0x14007c6e0
mov r13, rdi
mov rax, rdi
mov rdi, rsi
mov r15b, 1
sub rdi, rbp
cmovb rdi, rax
lea rcx, [rbx + rbp]
mov eax, 0
cmovae rax, rcx
jb 0x14007c69e
cmp rdi, 0xf
ja 0x14007c65f
xor edx, edx
cmp rdi, rdx
je 0x14007c66e
cmp byte [rax + rdx], 0x2f
je 0x14007c675
inc rdx
jmp 0x14007c64f
mov cl, 0x2f
mov rdx, rax
mov r8, rdi
call fcn.140084e10
jmp 0x14007c67a
mov rdx, rdi
xor eax, eax
jmp 0x14007c67a
mov eax, 1
cmp rax, 1
jne 0x14007c6a3
lea r8, [rdx + rbp]
add rbp, rdx
inc rbp
cmp r8, rsi
jae 0x14007c628
cmp byte [rbx + r8], 0x2f
jne 0x14007c628
xor r15d, r15d
mov rdi, rbp
jmp 0x14007c6af
mov rdi, r13
jmp 0x14007c6a9
mov rdi, r13
mov rbp, rsi
mov r14b, 1
mov r8, rsi
sub r8, r13
je 0x14007c61c
add r13, rbx
lea r15, [rsp + 0x50]
mov rcx, r15
mov rdx, r13
call fcn.14007c6fa
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14007c2a9
mov r15d, r14d
jmp 0x14007c61c
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12], xmm0
jmp 0x14007c5e0