Function at 0x140001378
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.1400eea70
sub rsp, rax
mov rax, qword [0x14013f2b0]
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 0x14000140b
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 0x1400016f6
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400016f6
mov qword [rsp + 0x58], rdx
jmp 0x1400016ce
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 0x14000148c
mov rcx, qword [0x1401a5210]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400016c4
lea r9, [rbp + 0xfb0]
mov qword [rsp + 0x20], 0x880
mov r8d, edi
mov rcx, rsi
call fcn.140012760
xor ecx, ecx
test al, al
jne 0x1400014b4
mov rdx, qword [rsp + 0x58]
jmp 0x14000147a
cmp dword [rsp + 0x78], ecx
jne 0x140001591
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.140001b80
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 0x14000151c
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 0x1400016c4
mov rax, qword [rsi]
lea rcx, [rbp - 0x68]
mov rdx, qword [rsp + 0x58]
lea r9, [0x14011d4c0]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rbp - 0x68], rdi
call qword [rax + 0x28]
test eax, eax
jne 0x1400016c4
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x1400016c4
mov r8, qword [rsp + 0x58]
lea r9d, [rdi + 1]
mov rcx, rbx
call fcn.140001378
mov dil, al
mov byte [rsp + 0x50], al
jmp 0x1400016c9
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x60]
call fcn.140010af0
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 [0x1401a5210]
mov rdx, rdi
test eax, eax
setne bl
mov r8, qword [rcx]
call qword [r8 + 0x28]
xor edi, edi
test bl, bl
jne 0x1400015ec
mov rcx, qword [0x1401a5210]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rbp - 0x80]
jmp 0x1400016c4
lea rcx, [rbp - 0x50]
call fcn.140078c50
test al, al
je 0x140001675
movzx eax, word [rbp - 0x4c]
test ax, ax
je 0x14000160e
cmp ax, 0x5c
jne 0x140001675
cmp word [rbp - 0x4a], di
jne 0x140001675
mov edx, 0x800
lea rcx, [rbp - 0x50]
call fcn.140077908
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.140001b80
cmp rdi, 0xffffffffffffffff
mov byte [rsp + 0x50], 1
lea rax, [rdi + 1]
cmove rax, rdi
mov rdi, rax
mov qword [rsp + 0x68], rax
jmp 0x1400016c4
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.140001b80
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 0x140001449
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 0x140001715
mov rcx, qword [0x1401a5210]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x14000172b
mov rcx, qword [0x1401a5210]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov al, dil
mov rcx, qword [rbp + 0x20b0]
xor rcx, rsp
call fcn.1400eeae0
mov rbx, qword [rsp + 0x21f8]
add rsp, 0x21c0
pop rdi
pop rsi
pop rbp
ret