Function at 0x1400d7a90
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, 0x90
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movzx r14d, dl
mov rbx, rcx
mov qword [rbp - 0x19], rcx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rbp - 0x39], 1
mov qword [rbp - 0x31], r15
lea r9, [rbp - 0x31]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14028cbd8]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400d7b5c
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x1400d7b5c
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x27], 7
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400d7b20
lea rcx, [rbp + 0xf]
call fcn.1400523d0
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rbp + 0x1f]
movups xmmword [rbp + 0xf], xmm1
movups xmmword [rbp - 1], xmm1
mov rdx, qword [rbp + 7]
mov rcx, qword [rbp - 0x11]
jmp 0x1400d7b7c
mov rcx, r15
mov qword [rbp - 0x11], rcx
mov qword [rbp - 1], r15
mov edx, 7
mov qword [rbp + 7], rdx
movups xmm0, xmmword [rbp - 1]
movups xmmword [rbp + 0xf], xmm0
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x39], 3
lea rax, [rbp - 0x11]
cmp rbx, rax
je 0x1400d7be4
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400d7bcb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400d7bc6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400d7c13
mov rcx, r8
call fcn.1400e6a28
mov qword [rbx + 0x18], 7
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0xf]
movups xmmword [rbx + 0x10], xmm1
jmp 0x1400d7c1f
cmp rdx, 8
jb 0x1400d7c1f
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d7c1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d7c1a
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.1400d6770
test al, al
je 0x1400d7c38
mov rsi, qword [str.AppleInc.iCloud_nzyj5cx40ttqa]
jmp 0x1400d7c53
mov rcx, qword [str.AppleInc.iCloud_dch5apj5k449g]
call fcn.1400d6770
test al, al
je 0x1400d7f89
mov rsi, qword [str.AppleInc.iCloud_dch5apj5k449g]
test rsi, rsi
je 0x1400d7f89
lea r8, str.Packages
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140073ba0
mov rdi, rax
cmp rbx, rax
je 0x1400d7ce0
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400d7cb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400d7cad
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400d7d17
mov rcx, r8
call fcn.1400e6a28
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400d7d23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d7d1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d7d1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140073ba0
mov rdi, rax
cmp rbx, rax
je 0x1400d7da3
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400d7d75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400d7d70
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400d7dda
mov rcx, r8
call fcn.1400e6a28
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400d7de6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d7de1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d7de1
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 - 0x11]
call fcn.140073ba0
mov rdi, rax
cmp rbx, rax
je 0x1400d7e6a
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400d7e3c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400d7e37
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400d7ea1
mov rcx, r8
call fcn.1400e6a28
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400d7ead
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d7ea8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d7ea8
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 r14b, r14b
cmovne r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140073ba0
mov rdi, rax
cmp rbx, rax
je 0x1400d7f3f
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400d7f11
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400d7f0c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400d7f82
mov rcx, r8
call fcn.1400e6a28
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400d8050
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d804b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d804b
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 - 0x11]
call fcn.140073ba0
mov rdi, rax
cmp rbx, rax
je 0x1400d800d
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400d7fdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400d7fda
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400d8044
mov rcx, r8
call fcn.1400e6a28
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400d8050
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d804b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d804b
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 + 0x2f]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret