Function at 0x140014c44
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fa8]
mov eax, 0x20a8
call fcn.140100e60
sub rsp, rax
mov rax, qword [0x140191630]
xor rax, rsp
mov qword [rbp + 0x1f90], rax
mov rsi, qword [r8 + 0x30]
xor r13d, r13d
mov r14, r9
mov r12, rdx
mov r15, rcx
test rsi, rsi
jne 0x140014d70
mov word [r9], r13w
mov ebx, 0x800
mov rdi, qword [r8 + 8]
mov esi, 0x113e
mov rcx, qword [rcx]
jmp 0x140014d19
mov rcx, qword [r15]
mov r9, rdi
mov edx, 0x110a
mov r8d, 3
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
test rax, rax
je 0x140014e5f
mov rcx, qword [r15]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, esi
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140014d16
cmp word [r14], r13w
je 0x140014d03
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14007f660
mov r8, rbx
lea rcx, [rbp - 0x70]
mov rdx, r14
call fcn.140096d58
mov r8, qword [rbp + 0x2010]
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140096d80
mov rcx, qword [r15]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x50], 1
lea r9, [rsp + 0x50]
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov qword [rsp + 0x58], rdi
mov edx, esi
mov dword [rsp + 0x70], ebx
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x140014ca7
xor al, al
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.140100ed0
add rsp, 0x20a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsi + 0x10]
lea rdx, [rbp - 0x70]
mov word [rbp - 0x70], r13w
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140014e66
cmp word [0x140193a60], r13w
lea r15, [0x140193a60]
jne 0x140014de7
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x13]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rdi, qword [0x140201fe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.140123b50]
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call rbx
or r8, 0xffffffffffffffff
inc r8
cmp word [r15 + r8*2], r13w
jne 0x140014deb
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.1401277e0
test eax, eax
jne 0x140014e3e
mov ebx, 0x800
lea r8, [rsi + 8]
lea r9, [rbp + 0xf90]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov rcx, r12
call fcn.1400148ec
test al, al
je 0x140014e4c
mov r8d, ebx
lea rdx, [rbp + 0xf90]
lea rcx, [rbp - 0x70]
call fcn.140096d80
jmp 0x140014e4c
mov rcx, qword [rsi + 0x10]
lea rdx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov r8, qword [rbp + 0x2010]
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140096d80
mov al, 1
jmp 0x140014d4d
call fcn.140073b4c
cmp eax, 0x601
jb 0x140014d4b
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014d4b
lea rdx, str.SHCreateItemFromIDList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140014d4b
mov rcx, rax
call qword [fcn.140123b50]
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x38]
lea rdx, [0x140143220]
call rbx
test eax, eax
jne 0x140014d4b
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [0x140143210]
xor edx, edx
call fcn.1400159cc
test eax, eax
jne 0x140014d4b
mov rdi, qword [rsp + 0x40]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x48]
mov rcx, rbx
call qword [fcn.140123b50]
lea r9, [rsp + 0x48]
mov edx, 1
lea r8, [0x140143220]
mov rcx, rdi
call rbx
test eax, eax
jne 0x140014d4b
mov rdi, qword [rsp + 0x48]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.140123b50]
lea r8, [rsp + 0x30]
mov edx, 0x80058000
mov rcx, rdi
call rbx
test eax, eax
jne 0x140014d4b
mov r8, qword [rbp + 0x2010]
mov rcx, r14
mov rdx, qword [rsp + 0x30]
call fcn.140096d80
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140014e5f