Function at 0x14004ea24
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, [0x14002c0d0]
call fcn.14001b2e8
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x14004eaa4
movabs rdx, 0x400000000000
test qword [rcx + 0x10], rdx
je 0x14004eaa4
mov rax, qword [rcx + 0x18]
and rax, rdx
cmp rax, qword [rcx + 0x18]
jne 0x14004eaa4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14009f8cd]
call fcn.140028b34
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x40]
call fcn.1400069b4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x1400948b0]
xor edx, edx
lea r8d, [rdi + 4]
lea rcx, [0x1400948c0]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x14004eb00
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.1400069dc
jmp 0x14004ee04
mov qword [rsp + 0x38], rdi
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.1400069b4
mov rax, qword [rbx]
lea r8, [rsp + 0x38]
lea rdx, str.SystemIndex
mov rcx, rbx
mov rax, qword [rax + 0x50]
call qword [case.0x140006f84.0]
mov ebx, eax
test eax, eax
jns 0x14004eb57
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.1400069dc
jmp 0x14004edf9
mov qword [rsp + 0x30], rdi
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.14001747c
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov rax, qword [rax + 0xe0]
call qword [case.0x140006f84.0]
mov ebx, eax
test eax, eax
jns 0x14004eb93
mov edx, 0x515
jmp 0x14004edd6
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 0x14004ebaf
call fcn.1400887c0
mov word [rsp + 0x94], di
mov eax, dword [0x140094c84]
mov dword [rsp + 0x80], eax
movzx eax, word [0x140094c88]
mov word [rsp + 0x84], ax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.14001c738
nop
lea rcx, [rsp + 0x80]
call fcn.14001c7e8
mov r8, rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.14000a130
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140046c3c
mov rcx, qword [rsp + 0x6d8]
test eax, eax
jns 0x14004ec3c
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x529
call fcn.14005a4d8
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400492d8
nop
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
call qword [case.0x140006f84.0]
mov rcx, qword [rsp + 0x6d8]
test eax, eax
jns 0x14004ec90
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x52c
call fcn.14005a4d8
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004eca1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x48]
call fcn.1400069b4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.14000a2bc
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 0x14004ed3c
lea r8, [rsp + 0x80]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call fcn.140025314
mov ebx, eax
test eax, eax
jns 0x14004ed0c
mov edx, 0x534
jmp 0x14004edd6
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.0x140006f84.0]
mov ebx, eax
test eax, eax
jns 0x14004ed3c
mov edx, 0x535
jmp 0x14004edd6
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 0x14004edb6
lea r8, [rsp + 0x80]
mov edx, 0x104
lea rcx, [rsp + 0x4b0]
call fcn.140025314
mov ebx, eax
test eax, eax
jns 0x14004ed89
mov edx, 0x53b
jmp 0x14004edd6
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.0x140006f84.0]
mov ebx, eax
test eax, eax
jns 0x14004edb6
mov edx, 0x53c
jmp 0x14004edd6
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140006f84.0]
mov ebx, eax
test eax, eax
jns 0x14004ee12
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.1400069dc
nop
lea rcx, [rsp + 0x30]
call fcn.14001747c
nop
lea rcx, [rsp + 0x38]
call fcn.1400069b4
nop
lea rcx, [rsp + 0x40]
call fcn.1400069b4
mov eax, ebx
jmp 0x14004ee5a
lea rcx, [rsp + 0x30]
call fcn.14001747c
nop
lea rcx, [rsp + 0x38]
call fcn.1400069b4
nop
lea rcx, [rsp + 0x40]
call fcn.1400069b4
xor eax, eax
jmp 0x14004ee5a
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6d0
pop rdi
ret