Function at 0x140002ba0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x14002b080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
xor r14d, r14d
mov qword [rbp - 0x19], r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
movdqa xmm1, xmmword [0x140023df0]
movdqu xmmword [rbp - 1], xmm1
mov word [rbp - 0x11], r14w
lea r9, [rbp - 0x19]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140021600]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x140002c47
mov dword [rbp - 0x49], 3
lea rsi, [0x14002b100]
mov qword [rbp - 0x41], rsi
call fcn.14001dda8
lea rcx, [0x1400230a7]
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], r14
lea r8, [rbp - 0x29]
mov edx, eax
lea rcx, [rbp + 0xf]
call fcn.1400018d0
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbp + 0x2f], xmm0
jmp 0x140002cf7
mov rdx, qword [rbp - 0x19]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140002c52
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
lea rcx, [rbp - 0x49]
call fcn.140007aa0
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rbp - 1], xmm1
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [rbp - 0x49], r14d
lea rsi, [0x14002b100]
mov qword [rbp - 0x41], rsi
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.140001ef0
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbp + 0x2f], xmm0
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x140002cf7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002cf1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e3dc
nop
cmp dword [rbp + 0x2f], 0
je 0x140002d8b
mov r9d, 0x30
lea r8, str.Name
lea rdx, str.Could_not_get_the_path_to_Documents_folder.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
movups xmm0, xmmword [rbp + 0x2f]
movups xmmword [rdi], xmm0
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x140002d64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ecc
call fcn.14001e3dc
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14001e380
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14001dda8
nop
lea rcx, str.core
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], 4
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rbp - 0x11]
call fcn.1400018d0
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.140001b40
nop
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x140002e05
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e3dc
lea rcx, [rbp + 0xf]
call fcn.1400027b0
test al, al
jne 0x140002e27
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.1400028b0
test al, al
je 0x140002d1d
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140001ef0
mov rbx, rax
mov rdx, qword [rax + 0x18]
cmp rdx, 7
jbe 0x140002e72
mov rcx, qword [rax]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002e6d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002ed3
mov rcx, r8
call fcn.14001e3dc
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov dword [rdi], r14d
mov qword [rdi + 8], rsi
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x140002d64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d5f
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]
int3