Function at 0x140001368
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x20c0]
mov eax, 0x21c0
call fcn.1400f0b10
sub rsp, rax
mov rax, qword [0x1401412b0]
xor rax, rsp
mov qword [rbp + 0x20b0], rax
or qword [rsp + 0x68], 0xffffffffffffffff
mov rbx, rcx
mov qword [rbp - 0x80], rcx
mov rsi, rdx
xor ecx, ecx
mov dword [rsp + 0x78], r9d
mov qword [rbp - 0x60], r8
mov dil, cl
mov byte [rsp + 0x50], cl
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x78], rcx
test r9d, r9d
jne 0x1400013fb
lea rax, [rbp - 0x70]
xor r8d, r8d
lea edx, [rcx + 0x11]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rcx, qword [rbx]
lea rax, [rbp - 0x78]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
mov rax, qword [rsi]
lea r9, [rsp + 0x70]
mov rdx, qword [rbx]
mov r8d, 0x20
mov qword [rsp + 0x70], rcx
mov rcx, rsi
call qword [rax + 0x20]
xor edx, edx
test eax, eax
jne 0x1400016e6
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400016e6
mov qword [rsp + 0x58], rdx
jmp 0x1400016be
mov rax, qword [rsi]
lea r9, [rsp + 0x60]
mov edi, 1
mov dword [rsp + 0x60], 0x10000000
lea r8, [rsp + 0x58]
mov edx, edi
mov rcx, rsi
call qword [rax + 0x48]
test dword [rsp + 0x60], 0x10000000
mov rdx, qword [rsp + 0x58]
jne 0x14000147c
mov rcx, qword [0x1401aaa40]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400016b4
lea r9, [rbp + 0xfb0]
mov qword [rsp + 0x20], 0x880
mov r8d, edi
mov rcx, rsi
call fcn.140012ba8
xor ecx, ecx
test al, al
jne 0x1400014a4
mov rdx, qword [rsp + 0x58]
jmp 0x14000146a
cmp dword [rsp + 0x78], ecx
jne 0x140001581
mov r9, qword [rsp + 0x58]
lea rax, [rbp + 0xfb0]
or rcx, 0xffffffffffffffff
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rcx
lea rdx, [rbp + 0xfb0]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea r8d, [rcx + 5]
mov rcx, rbx
call fcn.140001b74
mov r10, qword [rsi]
xor edx, edx
mov r9, qword [rsp + 0x58]
mov rcx, rsi
mov r8, qword [rbp - 0x78]
mov rdi, rax
call qword [r10 + 0x38]
test eax, eax
jne 0x14000150c
lea rax, [rdi + 1]
mov qword [rbx + 8], rax
mov rax, qword [rsi]
xor edx, edx
mov r9, qword [rsp + 0x58]
mov rcx, rsi
mov r8, qword [rbp - 0x70]
call qword [rax + 0x38]
xor edi, edi
test eax, eax
jne 0x1400016b4
mov rax, qword [rsi]
lea rcx, [rbp - 0x68]
mov rdx, qword [rsp + 0x58]
lea r9, [0x14011f3a0]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rbp - 0x68], rdi
call qword [rax + 0x28]
test eax, eax
jne 0x1400016b4
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x1400016b4
mov r8, qword [rsp + 0x58]
lea r9d, [rdi + 1]
mov rcx, rbx
call fcn.140001368
mov dil, al
mov byte [rsp + 0x50], al
jmp 0x1400016b9
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x60]
call fcn.140010f6c
xor ebx, ebx
lea rdx, [rbp - 0x50]
mov rcx, rax
mov word [rbp - 0x50], bx
mov rdi, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [0x1401aaa40]
mov rdx, rdi
test eax, eax
setne bl
mov r8, qword [rcx]
call qword [r8 + 0x28]
xor edi, edi
test bl, bl
jne 0x1400015dc
mov rcx, qword [0x1401aaa40]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rbp - 0x80]
jmp 0x1400016b4
lea rcx, [rbp - 0x50]
call fcn.140077e60
test al, al
je 0x140001665
movzx eax, word [rbp - 0x4c]
test ax, ax
je 0x1400015fe
cmp ax, 0x5c
jne 0x140001665
cmp word [rbp - 0x4a], di
jne 0x140001665
mov edx, 0x800
lea rcx, [rbp - 0x50]
call fcn.140076b90
mov rdi, qword [rsp + 0x68]
lea rax, [rbp + 0xfb0]
mov rbx, qword [rbp - 0x80]
lea rdx, [rbp - 0x50]
mov byte [rsp + 0x40], 1
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov dword [rsp + 0x30], 2
mov rcx, rbx
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
call fcn.140001b74
cmp rdi, 0xffffffffffffffff
mov byte [rsp + 0x50], 1
lea rax, [rdi + 1]
cmove rax, rdi
mov rdi, rax
mov qword [rsp + 0x68], rax
jmp 0x1400016b4
mov rbx, qword [rbp - 0x80]
lea rax, [rbp + 0xfb0]
or rcx, 0xffffffffffffffff
mov byte [rsp + 0x40], 1
mov qword [rsp + 0x38], rcx
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x30], 2
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea r8d, [rcx + 6]
mov rcx, rbx
call fcn.140001b74
mov rdi, qword [rsp + 0x68]
cmp rdi, 0xffffffffffffffff
cmove rdi, rax
mov qword [rsp + 0x68], rdi
mov dil, byte [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x58]
mov edx, 1
call qword [rax + 0x18]
test eax, eax
je 0x140001439
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x140001705
mov rcx, qword [0x1401aaa40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x14000171b
mov rcx, qword [0x1401aaa40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov al, dil
mov rcx, qword [rbp + 0x20b0]
xor rcx, rsp
call fcn.1400f0b80
mov rbx, qword [rsp + 0x21f8]
add rsp, 0x21c0
pop rdi
pop rsi
pop rbp
ret