Function at 0x14007e7e4
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x718]
sub rsp, 0x7f0
mov qword [rbp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov r15, rcx
xor r13d, r13d
mov esi, r13d
mov dword [rsp + 0x54], r13d
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], r13
mov dword [rbp + 0x38], r13d
mov qword [rbp - 0x20], r13
mov r12d, r13d
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov dword [rbp - 8], r13d
mov qword [rbp], r13
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], r13
mov dword [rbp + 0x18], 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 rbx, rax
mov qword [rsp + 0x78], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14007e8b1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jle 0x14007e920
movzx r14d, ax
or r14d, 0x80070000
jmp 0x14007e920
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
lea r8, [rbp + 0x20]
lea rdx, str.DefaultExcludedPaths
mov rcx, r15
call fcn.14007de70
mov r14d, eax
test eax, eax
js 0x14007e911
lea r8, [rbp - 0x20]
lea rdx, str.DefaultIndexedPaths
mov rcx, r15
call fcn.14007de70
mov r14d, eax
test eax, eax
js 0x14007e90d
lea r8, [rbp]
lea rdx, str.PreventIndexingCertainPaths
mov rcx, r15
call fcn.14007de70
mov r14d, eax
mov r12, qword [rbp - 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
nop dword [rax + rax]
test r14d, r14d
js 0x14007f28e
lea r8, [r15 + 0x50]
lea rdx, [r15 + 0x58]
lea rcx, [rbp + 0x60]
call fcn.140018014
nop
jmp 0x14007e96d
mov rdi, rax
mov rdx, rax
call fcn.1400229cc
cmp dword [rdi + 0x68], r13d
je 0x14007e97c
lea r8, [rdi + 0x38]
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.140083954
mov rdx, rdi
mov rcx, qword [r15 + 0xa8]
call fcn.1400806dc
mov rcx, qword [r15 + 0xa8]
mov rdx, qword [rcx]
call fcn.140022a24
test rax, rax
jne 0x14007e93d
mov edi, r13d
mov dword [rsp + 0x50], r13d
test r12, r12
je 0x14007ec77
mov rax, r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x28], r13d
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400636b4
mov rdx, rax
lea r8, [rbp - 0x40]
mov rcx, r15
call fcn.140083be8
mov r14d, eax
mov dword [rsp + 0x68], eax
test eax, eax
js 0x14007ec6e
mov dword [rsp + 0x58], r13d
cmp qword [rbp - 0x38], r13
jbe 0x14007ec52
xor ebx, ebx
mov edi, ebx
lea r12d, [rbx + 0x2a]
lea r14, [0x14009b770]
lea rdx, [0x1400dc610]
lea rcx, [rsp + 0x60]
call fcn.1400142a4
nop
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.1400636b4
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140022678
mov rdi, qword [rsp + 0x60]
mov r13d, 2
cmp dword [rdi - 0x10], r13d
jl 0x14007eaa7
mov r8d, r13d
lea rdx, [rbp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140015450
nop
or esi, 1
mov dword [rsp + 0x54], esi
mov rdx, qword [rax]
movzx ecx, word [rdx]
sub ecx, 0x2f
jne 0x14007ea62
movzx ecx, word [rdx + 2]
movzx eax, r12w
sub ecx, eax
jne 0x14007ea62
movzx ecx, word [rdx + 4]
movzx eax, bx
sub ecx, eax
test ecx, ecx
je 0x14007eaa2
mov r8d, r13d
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140015450
or esi, r13d
mov dword [rsp + 0x54], esi
mov rdx, qword [rax]
movzx ecx, word [rdx]
sub ecx, 0x5c
jne 0x14007ea9e
movzx ecx, word [rdx + 2]
movzx eax, r12w
sub ecx, eax
jne 0x14007ea9e
movzx ecx, word [rdx + 4]
movzx eax, bx
sub ecx, eax
test ecx, ecx
jne 0x14007eaa7
mov r13b, 1
jmp 0x14007eaaa
mov r13b, bl
test sil, 2
je 0x14007eac5
and esi, 0xfffffffd
mov dword [rsp + 0x54], esi
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
nop
test sil, 1
je 0x14007eadf
and esi, 0xfffffffe
mov dword [rsp + 0x54], esi
mov rcx, qword [rbp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
test r13b, r13b
je 0x14007eaf8
mov edx, dword [rdi - 0x10]
dec edx
lea rcx, [rsp + 0x60]
call fcn.140079570
mov rdi, qword [rsp + 0x60]
lea rax, [rbp + 0x218]
mov qword [rbp + 0x208], rax
mov qword [rbp + 0x210], 0xc1
mov word [rbp + 0x218], bx
mov qword [rbp + 0x200], r14
mov rcx, rdi
call fcn.1400111f0
test al, al
je 0x14007eb5b
lea r8, [rbp + 0x200]
mov rdx, rdi
mov rcx, qword [r15 + 0x120]
call fcn.140018684
test eax, eax
js 0x14007eb5b
mov rdx, qword [rbp + 0x208]
lea rcx, [rsp + 0x60]
call fcn.14000fdcc
mov rdi, qword [rsp + 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x118]
call fcn.1400163b4
nop
mov dword [rsp + 0x40], ebx
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
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x188]
call fcn.140076900
nop
lea r9, [rbp + 0x188]
lea r8, [rbp + 0x118]
lea rdx, [rbp + 0x60]
call fcn.140080c98
lea rdx, [rbp + 0x118]
mov rcx, qword [r15 + 0xa8]
call fcn.1400248a4
test rax, rax
je 0x14007ebd8
add rax, 0x38
je 0x14007ebd8
cmp dword [rax + 0x24], ebx
je 0x14007ebf3
lea r8, [rbp + 0x188]
lea rdx, [rbp + 0x118]
mov rcx, qword [r15 + 0xa8]
call fcn.140083954
nop
lea rcx, [rbp + 0x188]
call fcn.140008a80
nop
lea rcx, [rbp + 0x118]
call fcn.14000d928
nop
lea rcx, [rbp + 0x200]
call fcn.1400146d8
nop
lea rcx, [rdi - 0x18]
call fcn.1400111b0
mov r13d, dword [rsp + 0x58]
inc r13d
mov dword [rsp + 0x58], r13d
mov edi, r13d
cmp rdi, qword [rbp - 0x38]
jb 0x14007e9ed
mov rbx, qword [rsp + 0x78]
mov r14d, dword [rsp + 0x68]
mov r12, qword [rbp - 0x18]
mov edi, dword [rsp + 0x50]
xor r13d, r13d
lea rcx, [rbp - 0x40]
call fcn.14000c7e4
inc edi
mov dword [rsp + 0x50], edi
mov eax, edi
cmp rax, r12
jb 0x14007e995
jmp 0x14007ec77
lea rcx, [rbp - 0x40]
call fcn.14000c7e4
mov edi, r13d
mov dword [rsp + 0x50], r13d
cmp qword [rbp + 0x28], r13
jbe 0x14007ee7b
mov rax, r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], r13
mov dword [rbp - 0x68], r13d
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400636b4
mov rdx, rax
lea r8, [rbp - 0x80]
mov rcx, r15
call fcn.140083be8
mov r14d, eax
test eax, eax
js 0x14007ee72
xor eax, eax
cmp qword [rbp - 0x78], rax
jbe 0x14007ee4f
xor edi, edi
mov r12d, edi
lea rbx, [0x14009b770]
lea rax, [rbp + 0x3b8]
mov qword [rbp + 0x3a8], rax
mov qword [rbp + 0x3b0], 0xc1
mov word [rbp + 0x3b8], di
mov qword [rbp + 0x3a0], rbx
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.1400636b4
mov rcx, qword [rax]
call fcn.1400111f0
test al, al
je 0x14007ed5f
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.1400636b4
lea r8, [rbp + 0x3a0]
mov rdx, qword [rax]
mov rcx, qword [r15 + 0x120]
call fcn.140018684
test eax, eax
js 0x14007ed5f
mov rdi, qword [rbp + 0x3a8]
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.1400636b4
mov rdx, rdi
mov rcx, rax
call fcn.14000fdcc
xor edi, edi
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.1400636b4
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.1400163b4
nop
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.1400636b4
mov rdx, rax
mov dword [rsp + 0x40], edi
mov r12d, 1
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x150]
call fcn.140076900
nop
lea r9, [rbp + 0x150]
lea r8, [rbp + 0xa8]
lea rdx, [rbp + 0x60]
call fcn.140080c98
lea rdx, [rbp + 0xa8]
mov rcx, qword [r15 + 0xa8]
call fcn.1400248a4
test rax, rax
je 0x14007edf5
add rax, 0x38
je 0x14007edf5
cmp dword [rax + 0x24], edi
je 0x14007ee10
lea r8, [rbp + 0x150]
lea rdx, [rbp + 0xa8]
mov rcx, qword [r15 + 0xa8]
call fcn.140083954
nop
lea rcx, [rbp + 0x150]
call fcn.140008a80
nop
lea rcx, [rbp + 0xa8]
call fcn.14000d928
nop
lea rcx, [rbp + 0x3a0]
call fcn.1400146d8
add r13d, r12d
mov r12d, r13d
cmp r12, qword [rbp - 0x78]
jb 0x14007ecda
mov rbx, qword [rsp + 0x78]
mov edi, dword [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14000c7e4
inc edi
mov dword [rsp + 0x50], edi
mov eax, edi
cmp rax, qword [rbp + 0x28]
mov r13d, 0
jb 0x14007ec8c
jmp 0x14007ee7b
lea rcx, [rbp - 0x80]
call fcn.14000c7e4
mov dword [rsp + 0x58], r13d
cmp qword [rbp + 8], r13
jbe 0x14007f202
mov rax, r13
mov rdx, rax
lea rcx, [rbp]
call fcn.1400636b4
mov r14, qword [rax]
lea rbx, [r14 - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140024555.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x14007eecc
cmp rax, qword [rbx]
jne 0x14007eecc
lock inc dword [rbx + 0x10]
mov esi, dword [rsp + 0x54]
jmp 0x14007ef18
lea rdi, [rbx + 8]
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x140024555.0]
mov rbx, rax
test rax, rax
je 0x14007f2f9
mov ecx, dword [rdi]
mov dword [rax + 8], ecx
mov ecx, dword [rdi]
inc ecx
movsxd rdx, ecx
add rdx, rdx
lea rcx, [rax + 0x18]
mov r9, rdx
mov r8, r14
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
add rbx, 0x18
mov qword [rsp + 0x70], rbx
mov edi, 2
mov r8d, edi
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140015450
nop
or esi, 4
mov dword [rsp + 0x54], esi
mov rdx, qword [rax]
movzx ecx, word [rdx]
sub ecx, 0x5c
lea r14d, [rdi + 0x28]
jne 0x14007ef64
movzx ecx, word [rdx + 2]
movzx eax, r14w
sub ecx, eax
jne 0x14007ef64
movzx ecx, word [rdx + 4]
movzx eax, r13w
sub ecx, eax
test ecx, ecx
je 0x14007efa4
mov r8d, edi
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140015450
or esi, 8
mov rdx, qword [rax]
movzx ecx, word [rdx]
sub ecx, 0x2f
jne 0x14007ef9d
movzx ecx, word [rdx + 2]
movzx eax, r14w
sub ecx, eax
jne 0x14007ef9d
movzx ecx, word [rdx + 4]
movzx eax, r13w
sub ecx, eax
test ecx, ecx
mov dil, r13b
jne 0x14007efa7
mov dil, 1
test sil, 8
je 0x14007efbe
and esi, 0xfffffff7
mov rcx, qword [rbp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
nop
and esi, 0xfffffffb
mov dword [rsp + 0x54], esi
mov rcx, qword [rbp + 0x58]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
test dil, dil
je 0x14007efeb
mov edx, dword [rbx - 0x10]
dec edx
lea rcx, [rsp + 0x70]
call fcn.140079570
mov rbx, qword [rsp + 0x70]
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x48], r13d
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140083be8
mov r14d, eax
mov dword [rsp + 0x68], eax
test eax, eax
js 0x14007f1ea
mov edi, r13d
mov dword [rsp + 0x50], r13d
mov r13, qword [rbp - 0x58]
test r13, r13
je 0x14007f1b9
xor ebx, ebx
mov r12d, ebx
lea r14, [0x14009b770]
lea rax, [rbp + 0x558]
mov qword [rbp + 0x548], rax
mov qword [rbp + 0x550], 0xc1
mov word [rbp + 0x558], bx
mov qword [rbp + 0x540], r14
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.1400636b4
mov rcx, qword [rax]
call fcn.1400111f0
test al, al
je 0x14007f0c3
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.1400636b4
lea r8, [rbp + 0x540]
mov rdx, qword [rax]
mov rcx, qword [r15 + 0x120]
call fcn.140018684
test eax, eax
js 0x14007f0c3
mov rdi, qword [rbp + 0x548]
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.1400636b4
mov rdx, rdi
mov rcx, rax
call fcn.14000fdcc
mov edi, dword [rsp + 0x50]
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.1400636b4
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.1400163b4
nop
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.1400636b4
mov rdx, rax
mov dword [rsp + 0x40], ebx
mov r12d, 1
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x1c0]
call fcn.140076900
nop
lea r9, [rbp + 0x1c0]
lea r8, [rbp + 0xe0]
lea rdx, [rbp + 0x60]
call fcn.140080c98
lea rdx, [rbp + 0xe0]
mov rcx, qword [r15 + 0xa8]
call fcn.1400806dc
lea rdx, [rbp + 0xe0]
mov rcx, qword [r15 + 0xa8]
call fcn.140080228
lea r8, [rbp + 0x1c0]
lea rdx, [rbp + 0xe0]
mov rcx, qword [r15 + 0xa8]
call fcn.140083954
nop
lea rcx, [rbp + 0x1c0]
call fcn.140008a80
nop
lea rcx, [rbp + 0xe0]
call fcn.14000d928
nop
lea rcx, [rbp + 0x540]
call fcn.1400146d8
add edi, r12d
mov dword [rsp + 0x50], edi
mov r12d, edi
cmp r12, r13
jb 0x14007f03c
mov rbx, qword [rsp + 0x70]
mov r14d, dword [rsp + 0x68]
lea rcx, [rbp - 0x60]
call fcn.14000c7e4
nop
lea rcx, [rbx - 0x18]
call fcn.1400111b0
mov edi, dword [rsp + 0x58]
inc edi
mov dword [rsp + 0x58], edi
mov eax, edi
cmp rax, qword [rbp + 8]
mov r13d, 0
jb 0x14007ee8d
jmp 0x14007f1fd
lea rcx, [rbp - 0x60]
call fcn.14000c7e4
nop
lea rcx, [rbx - 0x18]
call fcn.1400111b0
mov rbx, qword [rsp + 0x78]
cmp qword [rbp + 0x68], r13
jbe 0x14007f210
mov byte [r15 + 0x112], 1
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.140022a24
mov rdi, rax
test rax, rax
je 0x14007f24c
mov r9, rdi
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.1400229cc
mov rdi, rax
mov rdx, qword [r9 + 0x28]
lea rcx, [r15 + 0x80]
call fcn.140071bc0
test rdi, rdi
jne 0x14007f225
mov rcx, qword [rbp + 0x98]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
mov rcx, qword [rbp + 0x90]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
lea rcx, [rbp + 0x60]
call fcn.14000d598
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14007f28e
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14007f2a8
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rcx, [rbp]
call fcn.14000c7e4
nop
lea rcx, [rbp - 0x20]
call fcn.14000c7e4
nop
lea rcx, [rbp + 0x20]
call fcn.14000c7e4
mov eax, r14d
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.14002a3f0
lea r11, [rsp + 0x7f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140054c4c
nop
lea rcx, [rdx + 0x120]
jmp fcn.14000c7e4