Function at 0x140001ad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov qword [rbp - 0x50], rsi
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140005430]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x140001b5e
lea rdx, [0x140005574]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400030d0
lea eax, [rsi + 1]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140003a70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [r14 + rbx*2], si
jne 0x140001b80
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x140001e33
movabs r12, 0x7fffffffffffffff
cmp rbx, 7
ja 0x140001bd5
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], 7
add rbx, rbx
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbp + rbx - 0x48], si
jmp 0x140001c72
mov rax, rbx
or rax, 7
cmp rax, r15
jbe 0x140001be7
lea rcx, [r12 + r12]
jmp 0x140001c0f
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
cmp rcx, r12
ja 0x140001e2d
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001c3b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001e2d
mov rcx, rax
call fcn.140003a90
test rax, rax
je 0x140001e0e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001c4d
test rcx, rcx
je 0x140001c4a
call fcn.140003a90
mov rdi, rax
jmp 0x140001c4d
mov rdi, rsi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], r15
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], si
mov r14, qword [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
lea r14, [rdx + rax*2]
lea rdi, [rbp - 0x48]
cmova rdi, qword [rbp - 0x48]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
mov ebx, 0xf
mov qword [rbp - 0x10], rbx
cmp rdi, r14
jne 0x140001cbc
mov byte [rbp - 0x28], 0
jmp 0x140001d8e
sub r14, rdi
sar r14, 1
cmp r14, r12
ja 0x140001e21
cmp r14, rbx
jbe 0x140001d57
mov rbx, r14
or rbx, 0xf
cmp rbx, r12
jbe 0x140001d18
mov rbx, r12
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003a90
test rax, rax
je 0x140001dca
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x10], rbx
jmp 0x140001d5b
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001d40
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001e27
jmp 0x140001cf1
test rcx, rcx
je 0x140001d4d
call fcn.140003a90
mov rsi, rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x10], rbx
jmp 0x140001d5b
mov rsi, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmp rbx, 0xf
cmova r8, rsi
mov rcx, r8
mov rdx, r14
test r14, r14
je 0x140001d85
movzx eax, byte [rdi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rdi, [rdi + 2]
sub rdx, 1
jne 0x140001d72
mov qword [rbp - 0x18], r14
mov byte [r8 + r14], 0
lea rcx, [rbp - 0x28]
call fcn.140001460
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140001dd7
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003acc
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x140001e1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003acc
xor eax, eax
jmp 0x140001b34
call fcn.1400011b0
int3
call fcn.140001110
nop
call fcn.140001110
int3
call fcn.1400011b0
int3