Function at 0x1400977a0
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x7f0
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x7e0], rax
mov rdi, rcx
xor r13d, r13d
mov qword [r11 - 0x6b8], r13
mov qword [r11 - 0x6b0], r13
mov qword [r11 - 0x6a8], r13
mov dword [r11 - 0x6a0], r13d
mov qword [r11 - 0x6d8], r13
mov qword [r11 - 0x6d0], r13
mov qword [r11 - 0x6c8], r13
mov dword [r11 - 0x6c0], r13d
mov qword [r11 - 0x6f8], r13
mov qword [r11 - 0x6f0], r13
mov qword [r11 - 0x6e8], r13
mov dword [r11 - 0x6e0], r13d
lea r8, str.CSM_Policy_Key_Mutex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
nop dword [rax + rax]
mov qword [rsp + 0x58], rax
dec rax
cmp rax, 0xfffffffffffffffd
setbe bl
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140097865
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rsp + 0x818]
test bl, bl
jne 0x140097885
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x257
call fcn.140068a64
lea rax, [rsp + 0x58]
mov qword [rsp + 0x180], rax
mov byte [rsp + 0x188], 1
or edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
lea r8, [rsp + 0x160]
lea rdx, str.DefaultExcludedPaths
call fcn.1400974b8
mov rcx, qword [rsp + 0x818]
test eax, eax
jns 0x1400978e2
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x25b
call fcn.140068a64
lea r8, [rsp + 0x140]
lea rdx, str.DefaultIndexedPaths
call fcn.1400974b8
mov rcx, qword [rsp + 0x818]
test eax, eax
jns 0x140097916
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x25c
call fcn.140068a64
lea r8, [rsp + 0x120]
lea rdx, str.PreventIndexingCertainPaths
call fcn.1400974b8
mov rcx, qword [rsp + 0x818]
test eax, eax
jns 0x14009794b
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_api_searchcrawlscopemanagerdata.cxx
mov edx, 0x25d
call fcn.140068a64
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x58]
call fcn.14001d64c
lea rdx, [rdi + 0x28]
cmp qword [rdx + 0x18], 8
jb 0x140097975
mov rdx, qword [rdx]
lea rcx, [rsp + 0x70]
call fcn.140016b70
nop
lea rdx, [rdi + 8]
cmp qword [rdx + 0x18], 8
jb 0x14009798e
mov rdx, qword [rdx]
lea rcx, [rsp + 0x68]
call fcn.140016b70
nop
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r13
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], 0xa
mov qword [rsp + 0x108], r13
lea rdx, [0x1400d2518]
lea rcx, [rsp + 0x110]
call fcn.14001a960
nop
lea rdx, [0x1400d2518]
lea rcx, [rsp + 0x118]
call fcn.14001a960
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x110]
call fcn.1400202e0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x118]
call fcn.1400202e0
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
mov r9, qword [rdi + 0xa8]
mov rdx, qword [r9]
mov rcx, r9
call fcn.1400222ec
test rax, rax
je 0x140097a85
mov rbx, rax
mov rdx, rax
mov rcx, r9
call fcn.140020410
cmp dword [rbx + 0x68], r13d
je 0x140097a47
lea r8, [rbx + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0xe0]
call fcn.140019ca8
mov rdx, rbx
mov rcx, qword [rdi + 0xa8]
call fcn.140005718
jmp 0x140097a35
mov rsi, r13
lea r14, [0x1400a2c50]
cmp rsi, qword [rsp + 0x148]
jae 0x140097ae1
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x90], r13d
mov rax, qword [rsp + 0x140]
lea rdx, [rax + rsi*8]
lea r8, [rsp + 0x78]
mov rcx, rdi
call fcn.140099ac8
test eax, eax
jns 0x140097b99
lea rcx, [rsp + 0x78]
call fcn.14001185c
mov rbx, r13
mov r12, qword [rsp + 0x160]
cmp rbx, qword [rsp + 0x168]
jae 0x140097b3f
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov dword [rsp + 0xb0], r13d
lea rdx, [r12 + rbx*8]
lea r8, [rsp + 0x98]
mov rcx, rdi
call fcn.140099ac8
test eax, eax
jns 0x140097dd0
lea rcx, [rsp + 0x98]
call fcn.14001185c
mov r14, r13
cmp r14, qword [rsp + 0x128]
jae 0x140098004
mov rax, qword [rsp + 0x120]
mov r15, qword [rax + r14*8]
lea rbx, [r15 - 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], r13d
jl 0x140097f4f
cmp rax, qword [rbx]
jne 0x140097f4f
lock inc dword [rbx + 0x10]
jmp 0x140097f9c
mov r14, r13
lea r12, [0x1400a2c50]
cmp r14, qword [rsp + 0x80]
jae 0x140097dbe
mov rax, qword [rsp + 0x78]
mov r13, qword [rax + r14*8]
lea rbx, [r13 - 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 0x140097bec
cmp rax, qword [rbx]
jne 0x140097bec
lock inc dword [rbx + 0x10]
jmp 0x140097c3c
mov rax, qword [rax]
lea r15, [rbx + 8]
movabs r10, 0x9230265a36d2c270
mov r8d, 2
mov edx, dword [r15]
mov rax, qword [rax]
call qword [case.0x14001f589.0]
mov rbx, rax
test rax, rax
jne 0x140097c1c
call fcn.140063d68
mov eax, dword [r15]
mov dword [rbx + 8], eax
lea rcx, [rbx + 0x18]
mov eax, dword [r15]
inc eax
movsxd rdx, eax
add rdx, rdx
mov r9, rdx
mov r8, r13
call fcn.1400111d4
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140099ce0
lea rax, [rsp + 0x318]
mov qword [rsp + 0x308], rax
mov qword [rsp + 0x310], 0xc1
xor r13d, r13d
mov word [rsp + 0x318], r13w
mov qword [rsp + 0x300], r12
lea r8, [rsp + 0x300]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.1400946d0
test eax, eax
js 0x140097ccd
mov rdx, qword [rsp + 0x308]
test rdx, rdx
jne 0x140097cad
mov eax, r13d
jmp 0x140097cbb
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140097cb1
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140016a94
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1c8]
call fcn.14001a8f8
nop
mov byte [rsp + 0x48], r13b
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x240]
call fcn.140002d6c
nop
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x1c8]
lea rdx, [rsp + 0xe0]
call fcn.140098ed8
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rdi + 0xa8]
call fcn.140019d00
test rax, rax
je 0x140097d66
add rax, 0x38
je 0x140097d66
cmp dword [rax + 0x24], r13d
je 0x140097d83
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rdi + 0xa8]
call fcn.140019ca8
nop
lea rcx, [rsp + 0x240]
call fcn.140019208
nop
lea rcx, [rsp + 0x1c8]
call fcn.140016c90
nop
lea rcx, [rsp + 0x300]
call fcn.1400141e8
nop
lea rcx, [rbx - 0x18]
call fcn.1400182a0
inc r14
jmp 0x140097ba3
lea rcx, [rsp + 0x78]
call fcn.14001185c
inc rsi
jmp 0x140097a88
mov rsi, r13
mov r15, qword [rsp + 0x98]
cmp rsi, qword [rsp + 0xa0]
jae 0x140097f3a
lea rax, [rsp + 0x4b8]
mov qword [rsp + 0x4a8], rax
mov qword [rsp + 0x4b0], 0xc1
mov word [rsp + 0x4b8], r13w
mov qword [rsp + 0x4a0], r14
lea r14, [r15 + rsi*8]
lea r8, [rsp + 0x4a0]
mov rdx, qword [r14]
mov rcx, rdi
call fcn.1400946d0
test eax, eax
js 0x140097e5c
mov rdx, qword [rsp + 0x4a8]
test rdx, rdx
jne 0x140097e43
mov eax, r13d
jmp 0x140097e51
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140097e47
mov r8d, eax
mov rcx, r14
call fcn.140016a94
mov rdx, r14
lea rcx, [rsp + 0x200]
call fcn.14001a8f8
nop
mov byte [rsp + 0x48], r13b
mov dword [rsp + 0x40], r13d
mov eax, 1
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x280]
call fcn.140002d6c
nop
lea r9, [rsp + 0x280]
lea r8, [rsp + 0x200]
lea rdx, [rsp + 0xe0]
call fcn.140098ed8
lea rdx, [rsp + 0x200]
mov rcx, qword [rdi + 0xa8]
call fcn.140019d00
test rax, rax
je 0x140097ee5
add rax, 0x38
je 0x140097ee5
cmp dword [rax + 0x24], r13d
je 0x140097f02
lea r8, [rsp + 0x280]
lea rdx, [rsp + 0x200]
mov rcx, qword [rdi + 0xa8]
call fcn.140019ca8
nop
lea rcx, [rsp + 0x280]
call fcn.140019208
nop
lea rcx, [rsp + 0x200]
call fcn.140016c90
nop
lea rcx, [rsp + 0x4a0]
call fcn.1400141e8
inc rsi
lea r14, [0x1400a2c50]
jmp 0x140097ddb
lea rcx, [rsp + 0x98]
call fcn.14001185c
inc rbx
jmp 0x140097aec
mov rax, qword [rax]
lea rsi, [rbx + 8]
movabs r10, 0x9230265a36d2c270
mov r8d, 2
mov edx, dword [rsi]
mov rax, qword [rax]
call qword [case.0x14001f589.0]
mov rbx, rax
test rax, rax
jne 0x140097f7e
call fcn.140063d68
mov eax, dword [rsi]
mov dword [rbx + 8], eax
lea rcx, [rbx + 0x18]
mov eax, dword [rsi]
inc eax
movsxd rdx, eax
add rdx, rdx
mov r9, rdx
mov r8, r15
call fcn.1400111d4
lea rax, [rbx + 0x18]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140099ce0
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], r13
mov dword [rsp + 0xd0], r13d
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140099ac8
test eax, eax
jns 0x14009805b
lea rcx, [rsp + 0xb8]
call fcn.14001185c
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
cmp qword [rsp + 0xe8], r13
jbe 0x140098012
mov byte [rdi + 0x58], 1
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xe0]
call fcn.1400222ec
mov rbx, rax
test rbx, rbx
je 0x1400981f1
mov r9, rbx
mov rdx, rbx
lea rcx, [rsp + 0xe0]
call fcn.140020410
mov rbx, rax
lea rcx, [rdi + 0x80]
mov rdx, qword [r9 + 0x28]
call fcn.14000933c
jmp 0x14009802a
mov rbx, r13
mov r15, qword [rsp + 0xb8]
mov r12d, 1
cmp rbx, qword [rsp + 0xc0]
jae 0x1400981cd
lea rax, [rsp + 0x658]
mov qword [rsp + 0x648], rax
mov qword [rsp + 0x650], 0xc1
mov word [rsp + 0x658], r13w
lea rax, [0x1400a2c50]
mov qword [rsp + 0x640], rax
lea rsi, [r15 + rbx*8]
lea r8, [rsp + 0x640]
mov rdx, qword [rsi]
mov rcx, rdi
call fcn.1400946d0
test eax, eax
js 0x1400980f4
mov rdx, qword [rsp + 0x648]
test rdx, rdx
jne 0x1400980db
mov eax, r13d
jmp 0x1400980e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x1400980df
mov r8d, eax
mov rcx, rsi
call fcn.140016a94
mov rdx, rsi
lea rcx, [rsp + 0x190]
call fcn.14001a8f8
nop
mov byte [rsp + 0x48], r13b
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x2c0]
call fcn.140002d6c
nop
lea r9, [rsp + 0x2c0]
lea r8, [rsp + 0x190]
lea rdx, [rsp + 0xe0]
call fcn.140098ed8
lea rdx, [rsp + 0x190]
mov rcx, qword [rdi + 0xa8]
call fcn.140005718
lea rdx, [rsp + 0x190]
mov rcx, qword [rdi + 0xa8]
call fcn.14008aad0
lea r8, [rsp + 0x2c0]
lea rdx, [rsp + 0x190]
mov rcx, qword [rdi + 0xa8]
call fcn.140019ca8
nop
lea rcx, [rsp + 0x2c0]
call fcn.140019208
nop
lea rcx, [rsp + 0x190]
call fcn.140016c90
nop
lea rcx, [rsp + 0x640]
call fcn.1400141e8
add rbx, r12
jmp 0x14009806c
lea rcx, [rsp + 0xb8]
call fcn.14001185c
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
inc r14
jmp 0x140097b42
lea rcx, [rsp + 0xe0]
call fcn.1400125e8
nop
lea rcx, [rsp + 0x120]
call fcn.14001185c
nop
lea rcx, [rsp + 0x140]
call fcn.14001185c
nop
lea rcx, [rsp + 0x160]
call fcn.14001185c
xor eax, eax
jmp 0x140098230
mov rcx, qword [rsp + 0x7e0]
xor rcx, rsp
call fcn.140036b80
lea r11, [rsp + 0x7f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret