Function at 0x140001428
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20a0]
mov eax, 0x21a0
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rbp + 0x2090], rax
xor edi, edi
or r15, 0xffffffffffffffff
mov qword [rbp - 0x80], rdi
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov r13d, r9d
mov qword [rsp + 0x78], rdi
mov rsi, rdx
mov r14, rcx
mov r12b, dil
test r9d, r9d
jne 0x1400014ba
mov rcx, qword [rcx]
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rdi + 0x11]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rcx, qword [r14]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rdi + 0x12]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rax, qword [rsi]
lea r9, [rsp + 0x68]
mov rdx, qword [r14]
mov r8d, 0x20
mov rcx, rsi
mov qword [rsp + 0x68], rdi
mov rax, qword [rax + 0x20]
call qword [case.0x140092c6b.0]
test eax, eax
jne 0x1400017bd
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400017bd
mov qword [rsp + 0x50], rdi
jmp 0x140001787
mov rax, qword [rsi]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x60], 0x10000000
mov edx, 1
mov rcx, rsi
mov rax, qword [rax + 0x48]
call qword [case.0x140092c6b.0]
test dword [rsp + 0x60], 0x10000000
mov rdx, qword [rsp + 0x50]
jne 0x14000154c
mov rcx, qword [0x1401dcb78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140092c6b.0]
jmp 0x140001782
lea r9, [rbp + 0xf90]
mov qword [rsp + 0x20], 0x880
mov r8d, 1
mov rcx, rsi
call fcn.1400156c8
test al, al
jne 0x140001575
mov rdx, qword [rsp + 0x50]
jmp 0x140001533
test r13d, r13d
jne 0x140001664
mov r9, qword [rsp + 0x50]
lea rax, [rbp + 0xf90]
or rcx, 0xffffffffffffffff
mov byte [rsp + 0x40], 1
mov qword [rsp + 0x38], rcx
lea r8d, [r13 + 4]
mov dword [rsp + 0x30], 1
lea rdx, [rbp + 0xf90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.140001c78
mov r9, qword [rsp + 0x50]
mov rbx, rax
mov rax, qword [rsi]
xor edx, edx
mov r8, qword [rsp + 0x78]
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [case.0x140092c6b.0]
test eax, eax
jne 0x1400015e7
lea rax, [rbx + 1]
mov qword [r14 + 8], rax
mov rax, qword [rsi]
xor edx, edx
mov r9, qword [rsp + 0x50]
mov rcx, rsi
mov r8, qword [rbp - 0x80]
mov rax, qword [rax + 0x38]
call qword [case.0x140092c6b.0]
test eax, eax
jne 0x14000177d
mov rax, qword [rsi]
lea rcx, [rbp - 0x78]
mov rdx, qword [rsp + 0x50]
lea r9, [0x140142680]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rbp - 0x78], rdi
mov rax, qword [rax + 0x28]
call qword [case.0x140092c6b.0]
test eax, eax
jne 0x14000177d
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x14000177d
mov r8, qword [rsp + 0x50]
lea r9d, [rax + 1]
mov rcx, r14
call fcn.140001428
mov r12b, al
jmp 0x14000177d
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400139b0
mov rdi, rax
lea rdx, [rbp - 0x70]
xor eax, eax
mov rcx, rdi
mov word [rbp - 0x70], ax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [0x1401dcb78]
mov ebx, eax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x28]
mov rdx, rdi
call qword [case.0x140092c6b.0]
xor edi, edi
test ebx, ebx
jne 0x1400016c4
mov rcx, qword [0x1401dcb78]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140092c6b.0]
jmp 0x14000177d
lea rcx, [rbp - 0x70]
call fcn.140086e3c
test al, al
je 0x14000173d
movzx eax, word [rbp - 0x6c]
test ax, ax
je 0x1400016e6
cmp ax, 0x5c
jne 0x14000173d
cmp word [rbp - 0x6a], di
jne 0x14000173d
mov edx, 0x800
lea rcx, [rbp - 0x70]
call fcn.140085ac8
mov byte [rsp + 0x40], 1
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x38], r15
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x30], 2
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
or dword [rsp + 0x20], 0xffffffff
mov rcx, r14
call fcn.140001c78
cmp r15, 0xffffffffffffffff
lea rax, [r15 + 1]
mov r12b, 1
cmove rax, r15
mov r15, rax
jmp 0x14000177d
mov byte [rsp + 0x40], 1
lea rax, [rbp + 0xf90]
or rbx, 0xffffffffffffffff
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov dword [rsp + 0x30], 2
mov rcx, r14
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 6]
mov dword [rsp + 0x20], ebx
call fcn.140001c78
cmp r15, rbx
cmove r15, rax
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x50]
mov edx, 1
mov rax, qword [rax + 0x18]
call qword [case.0x140092c6b.0]
test eax, eax
je 0x1400014fd
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140092c6b.0]
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x10]
call qword [case.0x140092c6b.0]
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1400017eb
mov rcx, qword [0x1401dcb78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140092c6b.0]
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x140001808
mov rcx, qword [0x1401dcb78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140092c6b.0]
mov al, r12b
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.140105c50
mov rbx, qword [rsp + 0x21f8]
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret