Function at 0x1400770a8
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 [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov r15, rcx
xor edi, edi
mov esi, edi
mov dword [rsp + 0x50], edi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rdi
mov dword [rbp + 0x30], edi
mov qword [rbp - 8], rdi
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
mov dword [rbp + 0x10], edi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
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]
mov rbx, rax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0xa8], rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140077168
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r14d, eax
test eax, eax
jle 0x1400771c7
movzx r14d, ax
or r14d, 0x80070000
jmp 0x1400771c7
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea r8, [rbp + 0x18]
lea rdx, str.DefaultExcludedPaths
mov rcx, r15
call fcn.1400766b8
mov r14d, eax
test eax, eax
js 0x1400771be
lea r8, [rbp - 8]
lea rdx, str.DefaultIndexedPaths
mov rcx, r15
call fcn.1400766b8
mov r14d, eax
test eax, eax
js 0x1400771be
lea r8, [rbp - 0x28]
lea rdx, str.PreventIndexingCertainPaths
mov rcx, r15
call fcn.1400766b8
mov r14d, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test r14d, r14d
js 0x140077bae
lea r8, [r15 + 0x40]
lea rdx, [r15 + 0x48]
lea rcx, [rbp + 0x60]
call fcn.140014500
nop
jmp 0x140077213
mov rbx, rax
mov rdx, rax
call fcn.140046284
cmp dword [rbx + 0x68], edi
je 0x140077222
lea r8, [rbx + 0x38]
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14002d530
mov rdx, rbx
mov rcx, qword [r15 + 0x98]
call fcn.140078f58
mov rcx, qword [r15 + 0x98]
mov rdx, qword [rcx]
call fcn.140015bd4
test rax, rax
jne 0x1400771e4
mov r12d, edi
mov dword [rsp + 0x54], edi
cmp qword [rbp], rdi
jbe 0x14007754d
mov rax, rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov dword [rbp - 0x30], edi
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14004647c
mov rdx, rax
lea r8, [rbp - 0x48]
mov rcx, r15
call fcn.14007c410
mov r14d, eax
mov dword [rsp + 0x58], eax
test eax, eax
js 0x140077544
mov r13d, edi
cmp qword [rbp - 0x40], rdi
jbe 0x140077524
xor r12d, r12d
mov ebx, r12d
lea edi, [r12 + 1]
lea r14, fcn.14001b680
lea rdx, [0x1400c9e30]
lea rcx, [rsp + 0x60]
call fcn.1400446e8
nop
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14004647c
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140016510
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 0x10], 2
jl 0x140077370
mov r8d, 2
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14002d2a0
nop
or esi, edi
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140095b4c]
jne 0x140077316
movzx eax, word [rcx + 2]
cmp ax, word [0x140095b4e]
jne 0x140077316
movzx eax, word [rcx + 4]
cmp ax, word [0x140095b50]
jne 0x140077316
mov eax, r12d
jmp 0x14007731a
sbb eax, eax
or eax, edi
test eax, eax
je 0x140077373
mov r8d, 2
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14002d2a0
nop
or esi, 2
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140095b54]
jne 0x140077368
movzx eax, word [rcx + 2]
cmp ax, word [0x140095b56]
jne 0x140077368
movzx eax, word [rcx + 4]
cmp ax, word [0x140095b58]
jne 0x140077368
mov eax, r12d
jmp 0x14007736c
sbb eax, eax
or eax, edi
test eax, eax
je 0x140077373
mov dil, r12b
test sil, 2
je 0x14007738e
and esi, 0xfffffffd
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x38]
add rcx, 0xffffffffffffffe8
call int.1400176e0
nop
test sil, 1
je 0x1400773a8
and esi, 0xfffffffe
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call int.1400176e0
test dil, dil
je 0x1400773c1
mov edx, dword [rbx - 0x10]
dec edx
lea rcx, [rsp + 0x60]
call fcn.140072840
mov rbx, qword [rsp + 0x60]
mov qword [rbp + 0x200], r14
lea rax, [rbp + 0x218]
mov qword [rbp + 0x208], rax
mov qword [rbp + 0x210], 0xc1
mov word [rbp + 0x218], r12w
lea rax, fcn.140008d70
mov qword [rbp + 0x200], rax
mov rcx, rbx
call fcn.140012aa0
test al, al
je 0x14007743e
lea r8, [rbp + 0x200]
mov rdx, rbx
mov rcx, qword [r15 + 0x108]
call fcn.140020ae8
test eax, eax
js 0x14007743e
mov rcx, qword [rbp + 0x208]
call fcn.14001d918
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1400163e0
mov rbx, qword [rsp + 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x120]
call fcn.140016318
nop
mov dword [rsp + 0x40], r12d
mov edi, 1
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, edi
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x190]
call fcn.1400308dc
nop
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x120]
lea rdx, [rbp + 0x60]
call fcn.140079450
lea rdx, [rbp + 0x120]
mov rcx, qword [r15 + 0x98]
call fcn.14001eb24
test rax, rax
je 0x1400774bd
add rax, 0x38
je 0x1400774bd
cmp dword [rax + 0x24], r12d
je 0x1400774d8
lea r8, [rbp + 0x190]
lea rdx, [rbp + 0x120]
mov rcx, qword [r15 + 0x98]
call fcn.14002d530
nop
lea rcx, [rbp + 0x190]
call fcn.14002d404
nop
lea rcx, [rbp + 0x120]
call fcn.14001ed40
nop
lea rcx, [rbp + 0x200]
call fcn.140009bb0
nop
lea rcx, [rbx - 0x18]
call int.1400176e0
add r13d, edi
mov ebx, r13d
cmp rbx, qword [rbp - 0x40]
jb 0x140077293
mov r14d, dword [rsp + 0x58]
mov r12d, dword [rsp + 0x54]
xor edi, edi
lea rcx, [rbp - 0x48]
call fcn.14004650c
inc r12d
mov dword [rsp + 0x54], r12d
mov eax, r12d
cmp rax, qword [rbp]
jb 0x14007723b
jmp 0x14007754d
lea rcx, [rbp - 0x48]
call fcn.14004650c
mov r13d, edi
mov dword [rsp + 0x54], edi
cmp qword [rbp + 0x20], rdi
jbe 0x140077771
mov rax, rdi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], edi
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.14004647c
mov rdx, rax
lea r8, [rsp + 0x78]
mov rcx, r15
call fcn.14007c410
mov r14d, eax
mov dword [rsp + 0x58], eax
test eax, eax
js 0x140077767
mov r12d, edi
cmp qword [rbp - 0x80], rdi
jbe 0x140077746
xor ebx, ebx
lea r13, fcn.14001b680
lea r14, fcn.140008d70
mov qword [rbp + 0x3a0], r13
lea rax, [rbp + 0x3b8]
mov qword [rbp + 0x3a8], rax
mov qword [rbp + 0x3b0], 0xc1
mov word [rbp + 0x3b8], bx
mov qword [rbp + 0x3a0], r14
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14004647c
mov rcx, qword [rax]
call fcn.140012aa0
test al, al
je 0x140077656
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14004647c
lea r8, [rbp + 0x3a0]
mov rdx, qword [rax]
mov rcx, qword [r15 + 0x108]
call fcn.140020ae8
test eax, eax
js 0x140077656
mov rbx, qword [rbp + 0x3a8]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14004647c
mov r9, rax
mov rcx, rbx
call fcn.14001d918
mov r8d, eax
mov rdx, rbx
mov rcx, r9
call fcn.1400163e0
xor ebx, ebx
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14004647c
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.140016318
nop
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14004647c
mov rdx, rax
mov dword [rsp + 0x40], ebx
mov edi, 1
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x158]
call fcn.1400308dc
nop
lea r9, [rbp + 0x158]
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x60]
call fcn.140079450
lea rdx, [rbp + 0xb0]
mov rcx, qword [r15 + 0x98]
call fcn.14001eb24
test rax, rax
je 0x1400776e9
add rax, 0x38
je 0x1400776e9
cmp dword [rax + 0x24], ebx
je 0x140077704
lea r8, [rbp + 0x158]
lea rdx, [rbp + 0xb0]
mov rcx, qword [r15 + 0x98]
call fcn.14002d530
nop
lea rcx, [rbp + 0x158]
call fcn.14002d404
nop
lea rcx, [rbp + 0xb0]
call fcn.14001ed40
nop
lea rcx, [rbp + 0x3a0]
call fcn.140009bb0
add r12d, edi
mov edi, r12d
cmp rdi, qword [rbp - 0x80]
jb 0x1400775b9
mov r14d, dword [rsp + 0x58]
mov r13d, dword [rsp + 0x54]
xor edi, edi
lea rcx, [rsp + 0x78]
call fcn.14004650c
inc r13d
mov dword [rsp + 0x54], r13d
mov eax, r13d
cmp rax, qword [rbp + 0x20]
jb 0x140077561
jmp 0x140077771
lea rcx, [rsp + 0x78]
call fcn.14004650c
mov r13d, edi
mov dword [rsp + 0x70], edi
cmp qword [rbp - 0x20], rdi
jbe 0x140077b27
mov rax, rdi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14004647c
mov r14, qword [rax]
lea rbx, [r14 - 0x18]
mov r9, qword [rbx]
mov rax, qword [r9]
mov rax, qword [rax + 0x20]
lea rcx, [fcn.140016910]
cmp rax, rcx
je 0x1400777ba
mov rcx, r9
call qword [case.0x14000702c.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x1400777d3
cmp r9, qword [rbx]
jne 0x1400777d3
lock inc dword [rbx + 0x10]
mov esi, dword [rsp + 0x50]
jmp 0x14007781b
lea rdi, [rbx + 8]
mov rax, qword [r9]
mov r8d, 2
mov edx, dword [rdi]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x14000702c.0]
mov rbx, rax
test rax, rax
je 0x140077c2a
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]
xor edi, edi
add rbx, 0x18
mov qword [rsp + 0x68], rbx
mov r14d, 2
mov r8d, r14d
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.14002d2a0
nop
or esi, 4
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140095b54]
jne 0x140077870
movzx eax, word [rcx + 2]
cmp ax, word [0x140095b56]
jne 0x140077870
movzx eax, word [rcx + 4]
cmp ax, word [0x140095b58]
jne 0x140077870
mov eax, edi
jmp 0x140077875
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400778c8
mov r8d, r14d
lea rdx, [rbp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14002d2a0
nop
or esi, 8
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140095b4c]
jne 0x1400778bf
movzx eax, word [rcx + 2]
cmp ax, word [0x140095b4e]
jne 0x1400778bf
movzx eax, word [rcx + 4]
cmp ax, word [0x140095b50]
jne 0x1400778bf
mov eax, edi
jmp 0x1400778c4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400778cb
mov dil, 1
test sil, 8
je 0x1400778e6
and esi, 0xfffffff7
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x48]
add rcx, 0xffffffffffffffe8
call int.1400176e0
nop
and esi, 0xfffffffb
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x50]
add rcx, 0xffffffffffffffe8
call int.1400176e0
test dil, dil
je 0x140077913
mov edx, dword [rbx - 0x10]
dec edx
lea rcx, [rsp + 0x68]
call fcn.140072840
mov rbx, qword [rsp + 0x68]
xor edi, edi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rdi
mov dword [rbp - 0x50], edi
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.14007c410
mov r14d, eax
mov dword [rsp + 0x58], eax
test eax, eax
js 0x140077c12
mov dword [rsp + 0x54], edi
cmp qword [rbp - 0x60], rdi
jbe 0x140077afd
xor ebx, ebx
mov r12d, ebx
lea r13, fcn.14001b680
lea r14, fcn.140008d70
mov qword [rbp + 0x540], r13
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 - 0x68]
call fcn.14004647c
mov rcx, qword [rax]
call fcn.140012aa0
test al, al
je 0x140077a01
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.14004647c
lea r8, [rbp + 0x540]
mov rdx, qword [rax]
mov rcx, qword [r15 + 0x108]
call fcn.140020ae8
test eax, eax
js 0x140077a01
mov rdi, qword [rbp + 0x548]
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.14004647c
mov r9, rax
mov rcx, rdi
call fcn.14001d918
mov r8d, eax
mov rdx, rdi
mov rcx, r9
call fcn.1400163e0
mov edi, dword [rsp + 0x54]
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.14004647c
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.140016318
nop
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.14004647c
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 + 0x1c8]
call fcn.1400308dc
nop
lea r9, [rbp + 0x1c8]
lea r8, [rbp + 0xe8]
lea rdx, [rbp + 0x60]
call fcn.140079450
lea rdx, [rbp + 0xe8]
mov rcx, qword [r15 + 0x98]
call fcn.140078f58
lea rdx, [rbp + 0xe8]
mov rcx, qword [r15 + 0x98]
call fcn.140078b44
lea r8, [rbp + 0x1c8]
lea rdx, [rbp + 0xe8]
mov rcx, qword [r15 + 0x98]
call fcn.14002d530
nop
lea rcx, [rbp + 0x1c8]
call fcn.14002d404
nop
lea rcx, [rbp + 0xe8]
call fcn.14001ed40
nop
lea rcx, [rbp + 0x540]
call fcn.140009bb0
add edi, r12d
mov dword [rsp + 0x54], edi
mov r12d, edi
cmp r12, qword [rbp - 0x60]
jb 0x140077965
mov rbx, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x58]
mov r13d, dword [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.14004650c
nop
lea rcx, [rbx - 0x18]
call int.1400176e0
inc r13d
mov dword [rsp + 0x70], r13d
mov eax, r13d
xor edi, edi
cmp rax, qword [rbp - 0x20]
jb 0x140077785
cmp qword [rbp + 0x68], rdi
jbe 0x140077b35
mov byte [r15 + 0xfa], 1
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.140015bd4
mov rbx, rax
test rax, rax
je 0x140077b6e
mov r9, rbx
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.140046284
mov rbx, rax
mov rdx, qword [r9 + 0x28]
lea rcx, [r15 + 0x70]
call fcn.14006b77c
test rbx, rbx
jne 0x140077b4a
mov rcx, qword [rbp + 0x98]
add rcx, 0xffffffffffffffe8
call int.1400176e0
mov rcx, qword [rbp + 0x90]
add rcx, 0xffffffffffffffe8
call int.1400176e0
lea rcx, [rbp + 0x60]
call fcn.140015c00
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x140077baa
call qword [sym.imp.msvcrt.dll_free]
nop
mov rbx, qword [rbp + 0x58]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140077bc2
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rcx, [rbp - 0x28]
call fcn.14004650c
nop
lea rcx, [rbp - 8]
call fcn.14004650c
nop
lea rcx, [rbp + 0x18]
call fcn.14004650c
mov eax, r14d
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.14002dd40
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
lea rcx, [rbp - 0x68]
call fcn.14004650c
nop
lea rcx, [rbx - 0x18]
call int.1400176e0
jmp 0x140077b27
call fcn.140056cd8
int3