Function at 0x140001370
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.1400ec1b0
sub rsp, rax
mov rax, qword [0x14013b1d0]
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 0x140001403
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 0x1400016ee
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400016ee
mov qword [rsp + 0x58], rdx
jmp 0x1400016c6
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 0x140001484
mov rcx, qword [0x1401a0dd0]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400016bc
lea r9, [rbp + 0xfb0]
mov qword [rsp + 0x20], 0x880
mov r8d, edi
mov rcx, rsi
call fcn.1400125d8
xor ecx, ecx
test al, al
jne 0x1400014ac
mov rdx, qword [rsp + 0x58]
jmp 0x140001472
cmp dword [rsp + 0x78], ecx
jne 0x140001589
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.140001b78
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 0x140001514
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 0x1400016bc
mov rax, qword [rsi]
lea rcx, [rbp - 0x68]
mov rdx, qword [rsp + 0x58]
lea r9, [0x14011a060]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rbp - 0x68], rdi
call qword [rax + 0x28]
test eax, eax
jne 0x1400016bc
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x1400016bc
mov r8, qword [rsp + 0x58]
lea r9d, [rdi + 1]
mov rcx, rbx
call fcn.140001370
mov dil, al
mov byte [rsp + 0x50], al
jmp 0x1400016c1
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x60]
call fcn.140010970
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 [0x1401a0dd0]
mov rdx, rdi
test eax, eax
setne bl
mov r8, qword [rcx]
call qword [r8 + 0x28]
xor edi, edi
test bl, bl
jne 0x1400015e4
mov rcx, qword [0x1401a0dd0]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rbp - 0x80]
jmp 0x1400016bc
lea rcx, [rbp - 0x50]
call fcn.140078700
test al, al
je 0x14000166d
movzx eax, word [rbp - 0x4c]
test ax, ax
je 0x140001606
cmp ax, 0x5c
jne 0x14000166d
cmp word [rbp - 0x4a], di
jne 0x14000166d
mov edx, 0x800
lea rcx, [rbp - 0x50]
call fcn.1400773b8
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.140001b78
cmp rdi, 0xffffffffffffffff
mov byte [rsp + 0x50], 1
lea rax, [rdi + 1]
cmove rax, rdi
mov rdi, rax
mov qword [rsp + 0x68], rax
jmp 0x1400016bc
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.140001b78
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 0x140001441
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 0x14000170d
mov rcx, qword [0x1401a0dd0]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x140001723
mov rcx, qword [0x1401a0dd0]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov al, dil
mov rcx, qword [rbp + 0x20b0]
xor rcx, rsp
call fcn.1400ec220
mov rbx, qword [rsp + 0x21f8]
add rsp, 0x21c0
pop rdi
pop rsi
pop rbp
ret