Function at 0x1400f4aa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp - 8], rax
movzx esi, dl
mov rbx, rcx
mov qword [rbp - 0x38], rcx
xor edi, edi
mov dword [rbp - 0x60], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x30], rdi
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14028cbd8]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400f4b55
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x1400f4b55
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 7
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400f4b25
lea rcx, [rbp - 0x28]
call fcn.1400523d0
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x48], xmm1
jmp 0x1400f4b65
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov dword [rbp - 0x60], 3
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.140059ac0
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1400f4bbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f4bb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f4bb6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov rcx, qword [str.AppleInc.iCloud_nzyj5cx40ttqa]
call fcn.1400f49d0
test al, al
je 0x1400f4bd4
mov rdi, qword [str.AppleInc.iCloud_nzyj5cx40ttqa]
jmp 0x1400f4bef
mov rcx, qword [str.AppleInc.iCloud_dch5apj5k449g]
call fcn.1400f49d0
test al, al
je 0x1400f4d85
mov rdi, qword [str.AppleInc.iCloud_dch5apj5k449g]
test rdi, rdi
je 0x1400f4d85
lea r8, str.Packages
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400f42c0
mov rdx, rax
mov rcx, rbx
call fcn.140059ac0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400f4c59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f4c54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f4c54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400f42c0
mov rdx, rax
mov rcx, rbx
call fcn.140059ac0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400f4cb6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f4cb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f4cb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
lea r8, str.LocalCache
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400f42c0
mov rdx, rax
mov rcx, rbx
call fcn.140059ac0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400f4d17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f4d12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f4d12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
lea rax, str.Roaming
lea r8, str.Local
test sil, sil
cmovne r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400f42c0
mov rdx, rax
mov rcx, rbx
call fcn.140059ac0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400f4de6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f4de1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f4de1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea r8, str.AppleMigration
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400f42c0
mov rdx, rax
mov rcx, rbx
call fcn.140059ac0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400f4de6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f4de1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f4de1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret