Function at 0x1400012a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rbp - 9], rcx
xor r15d, r15d
movaps xmm0, xmmword [rdx]
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp - 9], r15
lea r9, [rbp - 9]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1f]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 0xf
mov byte [rbp - 1], r15b
test eax, eax
js 0x1400013e0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
lea r9d, [r15 - 1]
mov r8, qword [rbp - 9]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
mov rcx, rsi
mov rdx, qword [rbp + 0xf]
cmp rsi, rdx
ja 0x14000135d
mov qword [rbp + 0xf], rcx
lea rax, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rax, qword [rbp - 1]
mov byte [rax + rsi], r15b
jmp 0x1400013a8
mov rdi, rcx
sub rdi, rdx
mov r8, qword [rbp + 0x17]
mov rax, r8
sub rax, rdx
cmp rdi, rax
ja 0x140001399
mov qword [rbp + 0xf], rcx
lea rbx, [rbp - 1]
cmp r8, 0xf
cmova rbx, qword [rbp - 1]
add rbx, rdx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + rdi], 0
jmp 0x1400013a8
mov r9, rdi
mov rdx, rdi
lea rcx, [rbp - 1]
call fcn.140003600
lea rax, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rax, qword [rbp - 1]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp - 9]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp - 9]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.140002d20
mov rbx, rax
mov qword [rbp - 0x31], rax
mov rax, r15
cmp qword [rbx + 0x10], r15
jbe 0x140001440
mov rcx, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140001421
mov rcx, qword [rbx]
cmp byte [rcx + rax], 0x5c
jne 0x140001437
mov rcx, rbx
cmp rdx, 0xf
jbe 0x140001433
mov rcx, qword [rbx]
mov byte [rcx + rax], 0x2f
inc rax
cmp rax, qword [rbx + 0x10]
jb 0x140001411
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000144d
mov rdx, qword [rbx]
mov rcx, r14
call fcn.140002d20
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000148c
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001487
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400014d4
mov rcx, r8
call fcn.140003f5c
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x1400014e0
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140003f5c
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140003f00
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret