Function at 0x1400118f4
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1fa8]
mov eax, 0x20a8
call fcn.1400eea70
sub rsp, rax
mov rax, qword [0x14013f2b0]
xor rax, rsp
mov qword [rbp + 0x1f90], rax
mov rbx, qword [r8 + 0x30]
xor r15d, r15d
mov rdi, r9
mov rsi, rdx
mov r14, rcx
test rbx, rbx
jne 0x140011a19
mov word [r9], r15w
mov ebx, 0x800
mov rsi, qword [r8 + 8]
mov rcx, qword [rcx]
jmp 0x1400119c3
mov rcx, qword [r14]
mov r9, rsi
mov edx, 0x110a
mov r8d, 3
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
test rax, rax
je 0x140011af2
mov rcx, qword [r14]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x113e
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400119c0
cmp word [rdi], r15w
je 0x1400119ad
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140077908
mov r8, rbx
lea rcx, [rbp - 0x70]
mov rdx, rdi
call fcn.14008df20
mov r8, qword [rbp + 0x2000]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.14008df58
mov rcx, qword [r14]
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], rsi
mov edx, 0x113e
mov dword [rsp + 0x70], ebx
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x14001194e
xor al, al
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.1400eeae0
add rsp, 0x20a8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x70]
mov word [rbp - 0x70], r15w
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140011af9
cmp word [0x14013ff20], r15w
lea r14, [0x14013ff20]
jne 0x140011a81
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, r14
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [0x1401a5210]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
or r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], r15w
jne 0x140011a85
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.1400f5d44
test eax, eax
jne 0x140011ad1
lea r8, [rbx + 8]
mov rdx, rbx
lea r9, [rbp + 0xf90]
mov rcx, rsi
call fcn.140011650
test al, al
je 0x140011adf
mov r8d, 0x800
lea rdx, [rbp + 0xf90]
lea rcx, [rbp - 0x70]
call fcn.14008df58
jmp 0x140011adf
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov r8, qword [rbp + 0x2000]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.14008df58
mov al, 1
jmp 0x1400119fa
call fcn.14006c10c
cmp eax, 0x601
jb 0x1400119f8
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400119f8
lea rdx, str.SHCreateItemFromIDList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400119f8
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x38]
lea rdx, [0x14010e9e0]
call rax
test eax, eax
jne 0x1400119f8
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [0x14010e9d0]
xor edx, edx
call fcn.140012618
test eax, eax
jne 0x1400119f8
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
lea r8, [0x14010e9e0]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jne 0x1400119f8
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
mov edx, 0x80058000
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x1400119f8
mov r8, qword [rbp + 0x2000]
mov rcx, rdi
mov rdx, qword [rsp + 0x30]
call fcn.14008df58
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140011af2