Function at 0x140102690
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402e0068]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
call fcn.140101930
mov rdi, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140102727
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x60]
call fcn.140001a20
mov rbx, rax
mov qword [rsp + 0x38], rax
mov r8, rax
lea rdx, str.desktop
mov rcx, rsi
call fcn.140004f30
nop
test rbx, rbx
je 0x140102727
mov rcx, rbx
call fcn.1401e64f8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140102781
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x60]
call fcn.140001a20
mov rbx, rax
mov qword [rsp + 0x38], rax
mov r8, rax
lea rdx, [0x14023f474]
mov rcx, rsi
call fcn.140004f30
nop
test rbx, rbx
je 0x140102781
mov rcx, rbx
call fcn.1401e64f8
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 6]
call fcn.14001df20
test al, al
je 0x1401029a0
lea rdx, str.shell32.dll
lea rcx, [rsp + 0x38]
call fcn.140100a70
xor ebp, ebp
mov qword [rsp + 0x40], rbp
lea rdx, str.SHGetKnownFolderPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rbp
test rax, rax
je 0x14010283c
lea r9, [rsp + 0x30]
mov r8, rdi
xor edx, edx
lea rcx, [0x14028a680]
call rax
test eax, eax
js 0x140102837
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140102837
mov dword [rsp + 0x50], 1
call fcn.140001a20
mov rbx, rax
mov qword [rsp + 0x48], rax
mov r8, rax
lea rdx, str.down
mov rcx, rsi
call fcn.140004f30
nop
test rbx, rbx
je 0x140102825
mov rcx, rbx
call fcn.1401e64f8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0x40]
jmp 0x14010283c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rbp
test rax, rax
je 0x1401028b3
lea r9, [rsp + 0x30]
mov r8, rdi
xor edx, edx
lea rcx, [0x14028a650]
call rax
test eax, eax
js 0x1401028ae
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401028ae
mov dword [rsp + 0x50], 1
call fcn.140001a20
mov rbx, rax
mov qword [rsp + 0x48], rax
mov r8, rax
lea rdx, [0x14023f468]
mov rcx, rsi
call fcn.140004f30
nop
test rbx, rbx
je 0x14010289c
mov rcx, rbx
call fcn.1401e64f8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0x40]
jmp 0x1401028b3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rbp
test rax, rax
je 0x14010292a
lea r9, [rsp + 0x30]
mov r8, rdi
xor edx, edx
lea rcx, [0x14028a660]
call rax
test eax, eax
js 0x140102925
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140102925
mov dword [rsp + 0x50], 1
call fcn.140001a20
mov rbx, rax
mov qword [rsp + 0x48], rax
mov r8, rax
lea rdx, str.music
mov rcx, rsi
call fcn.140004f30
nop
test rbx, rbx
je 0x140102913
mov rcx, rbx
call fcn.1401e64f8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0x40]
jmp 0x14010292a
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rbp
test rax, rax
je 0x140102996
lea r9, [rsp + 0x30]
mov r8, rdi
xor edx, edx
lea rcx, [0x14028a670]
call rax
test eax, eax
js 0x140102996
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140102996
mov dword [rsp + 0x50], 1
call fcn.140001a20
mov rbx, rax
mov qword [rsp + 0x48], rax
mov r8, rax
lea rdx, str.video
mov rcx, rsi
call fcn.140004f30
nop
test rbx, rbx
je 0x14010298a
mov rcx, rbx
call fcn.1401e64f8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rsp + 0x38]
call fcn.140100aa0
test rdi, rdi
je 0x1401029b5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1401029ba
mov eax, 4
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e6720
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret