Function at 0x1400940f8
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x410
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov r15, r9
mov r12, r8
mov r13, rdx
mov r14, rcx
mov rsi, qword [rdx + 0x28]
lea rbx, [rsi - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
movabs r10, 0xb3651e715a5ef170
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rcx, rax
cmp dword [rbx + 0x10], 0
jl 0x140094164
cmp rax, qword [rbx]
jne 0x140094164
mov edi, 1
lock add dword [rbx + 0x10], edi
jmp 0x1400941b6
mov rax, qword [rax]
lea rdi, [rbx + 8]
movabs r10, 0x9230265a36d2c270
mov r8d, 2
mov edx, dword [rdi]
mov rax, qword [rax]
call qword [case.0x14001f589.0]
mov rbx, rax
test rax, rax
jne 0x140094193
call fcn.140063d68
mov eax, dword [rdi]
mov dword [rbx + 8], eax
lea rcx, [rbx + 0x18]
mov eax, dword [rdi]
mov edi, 1
add eax, edi
movsxd rdx, eax
add rdx, rdx
mov r9, rdx
mov r8, rsi
call fcn.1400111d4
lea rax, [rbx + 0x18]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.14001b4f4
lea rdx, str.indexed
lea rcx, [rsp + 0x28]
call fcn.14001b4b4
mov ebx, eax
lea rdx, str.history
lea rcx, [rsp + 0x28]
call fcn.14001b4b4
mov esi, eax
lea rdx, str.appdata
lea rcx, [rsp + 0x28]
call fcn.14001b4b4
cmp eax, 0xffffffff
je 0x1400945d3
cmp ebx, eax
jg 0x140094215
cmp esi, eax
jle 0x1400945d3
lea rdx, str..___appdata___.____indexedhistory____.
lea rcx, [rsp + 0xa0]
call fcn.14001ce9c
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400d3cd4], eax
jle 0x140094288
lea rcx, [0x1400d3cd4]
call fcn.140037460
cmp dword [0x1400d3cd4], 0xffffffff
jne 0x140094288
lea rdx, [rsp + 0xa0]
lea rcx, [0x1400d2670]
call fcn.1400846a8
lea rcx, [0x14003ef00]
call fcn.140037208
nop
lea rcx, [0x1400d3cd4]
call fcn.1400373f8
lea rcx, [rsp + 0x28]
call fcn.14008837c
lea rdx, [0x1400d2670]
mov rcx, rax
call fcn.140040646
xor esi, esi
test al, al
je 0x1400945c5
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
mov byte [rsp + 0x60], dil
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ac128]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x140094302
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x680
call fcn.140068a64
nop
cmp byte [rsp + 0x60], sil
je 0x14009432d
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
mov rax, qword [rsp + 0x58]
mov qword [rcx], rax
test rdx, rdx
je 0x14009432d
mov rcx, rdx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140016b70
nop
lea rcx, [rsp + 0x40]
call fcn.140099e34
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x140094367
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x684
call fcn.140068a64
lea rax, [rsp + 0x278]
mov qword [rsp + 0x268], rax
mov qword [rsp + 0x270], 0xc1
mov word [rsp + 0x278], si
lea rax, [0x1400a2c50]
mov qword [rsp + 0x260], rax
lea r8, [rsp + 0x260]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r14 + 0x50]
call fcn.14001b1a8
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x1400943d0
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x687
call fcn.140068a64
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.140011b30
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140016b70
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14001a8f8
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140016fe0
test eax, eax
je 0x140094581
mov dword [rsp + 0x20], esi
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.140099fc0
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x140094451
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x68f
call fcn.140068a64
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call fcn.140093af8
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x14009447f
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x690
call fcn.140068a64
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0xc1
mov word [rsp + 0xd8], si
lea rax, [0x1400a2c50]
mov qword [rsp + 0xc0], rax
lea r8, [rsp + 0xc0]
mov rdx, rbx
mov rcx, r14
call fcn.1400946d0
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x1400944e5
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x693
call fcn.140068a64
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x38]
call fcn.140016b70
nop
lea rcx, [rsp + 0x38]
call fcn.140099ce0
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x140094522
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x696
call fcn.140068a64
mov r9, r15
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140094020
mov rcx, qword [rsp + 0x448]
test eax, eax
jns 0x140094557
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x697
call fcn.140068a64
cmp dword [rsp + 0x20], esi
je 0x140094564
mov dword [r12], edi
mov dword [r15], edi
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400141e8
nop
lea rcx, [rsp + 0x68]
call fcn.140016c90
nop
lea rcx, [rsp + 0x260]
call fcn.1400141e8
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rsi
test rcx, rcx
je 0x1400945c5
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0xa0]
call fcn.14001d7e0
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
xor eax, eax
jmp 0x1400945e9
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret