Function at 0x14004e764
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x6d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
lea rdx, [0x14002d060]
call fcn.14001b578
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x14004e7e4
movabs rdx, 0x400000000000
test qword [rcx + 0x10], rdx
je 0x14004e7e4
mov rax, qword [rcx + 0x18]
and rax, rdx
cmp rax, qword [rcx + 0x18]
jne 0x14004e7e4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14009fc4d]
call fcn.140029acc
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x40]
call fcn.140002578
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x1400955b8]
xor edx, edx
lea r8d, [rdi + 4]
lea rcx, [0x1400955c8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x14004e840
mov rcx, qword [rsp + 0x6d8]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x50f
call fcn.1400025a0
jmp 0x14004eb44
mov qword [rsp + 0x38], rdi
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140002578
mov rax, qword [rbx]
lea r8, [rsp + 0x38]
lea rdx, str.SystemIndex
mov rcx, rbx
mov rax, qword [rax + 0x50]
call qword [case.0x14000702c.0]
mov ebx, eax
test eax, eax
jns 0x14004e897
mov rcx, qword [rsp + 0x6d8]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x512
call fcn.1400025a0
jmp 0x14004eb39
mov qword [rsp + 0x30], rdi
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140009e1c
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov rax, qword [rax + 0xe0]
call qword [case.0x14000702c.0]
mov ebx, eax
test eax, eax
jns 0x14004e8d3
mov edx, 0x515
jmp 0x14004eb16
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14004e8ef
call fcn.140088e60
mov word [rsp + 0x94], di
mov eax, dword [0x140095b54]
mov dword [rsp + 0x80], eax
movzx eax, word [0x140095b58]
mov word [rsp + 0x84], ax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.14001c5f8
nop
lea rcx, [rsp + 0x80]
call fcn.14001c6a8
mov r8, rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.14000db40
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1400469dc
mov rcx, qword [rsp + 0x6d8]
test eax, eax
jns 0x14004e97c
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x529
call fcn.140048df4
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400490b0
nop
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
call qword [case.0x14000702c.0]
mov rcx, qword [rsp + 0x6d8]
test eax, eax
jns 0x14004e9d0
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x52c
call fcn.140048df4
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004e9e1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x48]
call fcn.140002578
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.14000dccc
nop
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x25]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
test eax, eax
js 0x14004ea7c
lea r8, [rsp + 0x80]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call fcn.140025900
mov ebx, eax
test eax, eax
jns 0x14004ea4c
mov edx, 0x534
jmp 0x14004eb16
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x2a0]
mov rax, qword [rax + 0x18]
call qword [case.0x14000702c.0]
mov ebx, eax
test eax, eax
jns 0x14004ea7c
mov edx, 0x535
jmp 0x14004eb16
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x29]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
test eax, eax
js 0x14004eaf6
lea r8, [rsp + 0x80]
mov edx, 0x104
lea rcx, [rsp + 0x4b0]
call fcn.140025900
mov ebx, eax
test eax, eax
jns 0x14004eac9
mov edx, 0x53b
jmp 0x14004eb16
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x4b0]
mov rax, qword [rax + 0x18]
call qword [case.0x14000702c.0]
mov ebx, eax
test eax, eax
jns 0x14004eaf6
mov edx, 0x53c
jmp 0x14004eb16
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x14000702c.0]
mov ebx, eax
test eax, eax
jns 0x14004eb52
mov edx, 0x540
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov rcx, qword [rsp + 0x6d8]
call fcn.1400025a0
nop
lea rcx, [rsp + 0x30]
call fcn.140009e1c
nop
lea rcx, [rsp + 0x38]
call fcn.140002578
nop
lea rcx, [rsp + 0x40]
call fcn.140002578
mov eax, ebx
jmp 0x14004eb9a
lea rcx, [rsp + 0x30]
call fcn.140009e1c
nop
lea rcx, [rsp + 0x38]
call fcn.140002578
nop
lea rcx, [rsp + 0x40]
call fcn.140002578
xor eax, eax
jmp 0x14004eb9a
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.14002dd40
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6d0
pop rdi
ret