Function at 0x140076d18
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 0x140076dd8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r14d, eax
test eax, eax
jle 0x140076e37
movzx r14d, ax
or r14d, 0x80070000
jmp 0x140076e37
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.140076328
mov r14d, eax
test eax, eax
js 0x140076e2e
lea r8, [rbp - 8]
lea rdx, str.DefaultIndexedPaths
mov rcx, r15
call fcn.140076328
mov r14d, eax
test eax, eax
js 0x140076e2e
lea r8, [rbp - 0x28]
lea rdx, str.PreventIndexingCertainPaths
mov rcx, r15
call fcn.140076328
mov r14d, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test r14d, r14d
js 0x14007781e
lea r8, [r15 + 0x40]
lea rdx, [r15 + 0x48]
lea rcx, [rbp + 0x60]
call fcn.140010be0
nop
jmp 0x140076e83
mov rbx, rax
mov rdx, rax
call fcn.1400465bc
cmp dword [rbx + 0x68], edi
je 0x140076e92
lea r8, [rbx + 0x38]
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14002c5a0
mov rdx, rbx
mov rcx, qword [r15 + 0x98]
call fcn.140078b8c
mov rcx, qword [r15 + 0x98]
mov rdx, qword [rcx]
call fcn.1400120d0
test rax, rax
jne 0x140076e54
mov r12d, edi
mov dword [rsp + 0x54], edi
cmp qword [rbp], rdi
jbe 0x1400771bd
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.140046678
mov rdx, rax
lea r8, [rbp - 0x48]
mov rcx, r15
call fcn.14007bfd0
mov r14d, eax
mov dword [rsp + 0x58], eax
test eax, eax
js 0x1400771b4
mov r13d, edi
cmp qword [rbp - 0x40], rdi
jbe 0x140077194
xor r12d, r12d
mov ebx, r12d
lea edi, [r12 + 1]
lea r14, fcn.14001b3f0
lea rdx, [0x1400c9e30]
lea rcx, [rsp + 0x60]
call fcn.140044898
nop
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140046678
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140012d70
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 0x10], 2
jl 0x140076fe0
mov r8d, 2
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14002c310
nop
or esi, edi
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140094c7c]
jne 0x140076f86
movzx eax, word [rcx + 2]
cmp ax, word [0x140094c7e]
jne 0x140076f86
movzx eax, word [rcx + 4]
cmp ax, word [0x140094c80]
jne 0x140076f86
mov eax, r12d
jmp 0x140076f8a
sbb eax, eax
or eax, edi
test eax, eax
je 0x140076fe3
mov r8d, 2
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14002c310
nop
or esi, 2
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140094c84]
jne 0x140076fd8
movzx eax, word [rcx + 2]
cmp ax, word [0x140094c86]
jne 0x140076fd8
movzx eax, word [rcx + 4]
cmp ax, word [0x140094c88]
jne 0x140076fd8
mov eax, r12d
jmp 0x140076fdc
sbb eax, eax
or eax, edi
test eax, eax
je 0x140076fe3
mov dil, r12b
test sil, 2
je 0x140076ffe
and esi, 0xfffffffd
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x38]
add rcx, 0xffffffffffffffe8
call int.140013dd0
nop
test sil, 1
je 0x140077018
and esi, 0xfffffffe
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call int.140013dd0
test dil, dil
je 0x140077031
mov edx, dword [rbx - 0x10]
dec edx
lea rcx, [rsp + 0x60]
call fcn.1400724cc
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.140019f80
mov qword [rbp + 0x200], rax
mov rcx, rbx
call fcn.14000f180
test al, al
je 0x1400770ae
lea r8, [rbp + 0x200]
mov rdx, rbx
mov rcx, qword [r15 + 0xe0]
call fcn.1400201d4
test eax, eax
js 0x1400770ae
mov rcx, qword [rbp + 0x208]
call fcn.140016df4
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140012c40
mov rbx, qword [rsp + 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x120]
call fcn.140012a08
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.14002f828
nop
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x120]
lea rdx, [rbp + 0x60]
call fcn.140079058
lea rdx, [rbp + 0x120]
mov rcx, qword [r15 + 0x98]
call fcn.1400213e4
test rax, rax
je 0x14007712d
add rax, 0x38
je 0x14007712d
cmp dword [rax + 0x24], r12d
je 0x140077148
lea r8, [rbp + 0x190]
lea rdx, [rbp + 0x120]
mov rcx, qword [r15 + 0x98]
call fcn.14002c5a0
nop
lea rcx, [rbp + 0x190]
call fcn.14002c474
nop
lea rcx, [rbp + 0x120]
call fcn.140021600
nop
lea rcx, [rbp + 0x200]
call fcn.140017f7c
nop
lea rcx, [rbx - 0x18]
call int.140013dd0
add r13d, edi
mov ebx, r13d
cmp rbx, qword [rbp - 0x40]
jb 0x140076f03
mov r14d, dword [rsp + 0x58]
mov r12d, dword [rsp + 0x54]
xor edi, edi
lea rcx, [rbp - 0x48]
call fcn.14004676c
inc r12d
mov dword [rsp + 0x54], r12d
mov eax, r12d
cmp rax, qword [rbp]
jb 0x140076eab
jmp 0x1400771bd
lea rcx, [rbp - 0x48]
call fcn.14004676c
mov r13d, edi
mov dword [rsp + 0x54], edi
cmp qword [rbp + 0x20], rdi
jbe 0x1400773e1
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.140046678
mov rdx, rax
lea r8, [rsp + 0x78]
mov rcx, r15
call fcn.14007bfd0
mov r14d, eax
mov dword [rsp + 0x58], eax
test eax, eax
js 0x1400773d7
mov r12d, edi
cmp qword [rbp - 0x80], rdi
jbe 0x1400773b6
xor ebx, ebx
lea r13, fcn.14001b3f0
lea r14, fcn.140019f80
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.140046678
mov rcx, qword [rax]
call fcn.14000f180
test al, al
je 0x1400772c6
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140046678
lea r8, [rbp + 0x3a0]
mov rdx, qword [rax]
mov rcx, qword [r15 + 0xe0]
call fcn.1400201d4
test eax, eax
js 0x1400772c6
mov rbx, qword [rbp + 0x3a8]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140046678
mov r9, rax
mov rcx, rbx
call fcn.140016df4
mov r8d, eax
mov rdx, rbx
mov rcx, r9
call fcn.140012c40
xor ebx, ebx
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140046678
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.140012a08
nop
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140046678
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.14002f828
nop
lea r9, [rbp + 0x158]
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x60]
call fcn.140079058
lea rdx, [rbp + 0xb0]
mov rcx, qword [r15 + 0x98]
call fcn.1400213e4
test rax, rax
je 0x140077359
add rax, 0x38
je 0x140077359
cmp dword [rax + 0x24], ebx
je 0x140077374
lea r8, [rbp + 0x158]
lea rdx, [rbp + 0xb0]
mov rcx, qword [r15 + 0x98]
call fcn.14002c5a0
nop
lea rcx, [rbp + 0x158]
call fcn.14002c474
nop
lea rcx, [rbp + 0xb0]
call fcn.140021600
nop
lea rcx, [rbp + 0x3a0]
call fcn.140017f7c
add r12d, edi
mov edi, r12d
cmp rdi, qword [rbp - 0x80]
jb 0x140077229
mov r14d, dword [rsp + 0x58]
mov r13d, dword [rsp + 0x54]
xor edi, edi
lea rcx, [rsp + 0x78]
call fcn.14004676c
inc r13d
mov dword [rsp + 0x54], r13d
mov eax, r13d
cmp rax, qword [rbp + 0x20]
jb 0x1400771d1
jmp 0x1400773e1
lea rcx, [rsp + 0x78]
call fcn.14004676c
mov r13d, edi
mov dword [rsp + 0x70], edi
cmp qword [rbp - 0x20], rdi
jbe 0x140077797
mov rax, rdi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140046678
mov r14, qword [rax]
lea rbx, [r14 - 0x18]
mov r9, qword [rbx]
mov rax, qword [r9]
mov rax, qword [rax + 0x20]
lea rcx, [fcn.140013000]
cmp rax, rcx
je 0x14007742a
mov rcx, r9
call qword [case.0x140006f84.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x140077443
cmp r9, qword [rbx]
jne 0x140077443
lock inc dword [rbx + 0x10]
mov esi, dword [rsp + 0x50]
jmp 0x14007748b
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.0x140006f84.0]
mov rbx, rax
test rax, rax
je 0x14007789a
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.14002c310
nop
or esi, 4
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140094c84]
jne 0x1400774e0
movzx eax, word [rcx + 2]
cmp ax, word [0x140094c86]
jne 0x1400774e0
movzx eax, word [rcx + 4]
cmp ax, word [0x140094c88]
jne 0x1400774e0
mov eax, edi
jmp 0x1400774e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x140077538
mov r8d, r14d
lea rdx, [rbp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14002c310
nop
or esi, 8
mov dword [rsp + 0x50], esi
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140094c7c]
jne 0x14007752f
movzx eax, word [rcx + 2]
cmp ax, word [0x140094c7e]
jne 0x14007752f
movzx eax, word [rcx + 4]
cmp ax, word [0x140094c80]
jne 0x14007752f
mov eax, edi
jmp 0x140077534
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14007753b
mov dil, 1
test sil, 8
je 0x140077556
and esi, 0xfffffff7
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x48]
add rcx, 0xffffffffffffffe8
call int.140013dd0
nop
and esi, 0xfffffffb
mov dword [rsp + 0x50], esi
mov rcx, qword [rbp + 0x50]
add rcx, 0xffffffffffffffe8
call int.140013dd0
test dil, dil
je 0x140077583
mov edx, dword [rbx - 0x10]
dec edx
lea rcx, [rsp + 0x68]
call fcn.1400724cc
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.14007bfd0
mov r14d, eax
mov dword [rsp + 0x58], eax
test eax, eax
js 0x140077882
mov dword [rsp + 0x54], edi
cmp qword [rbp - 0x60], rdi
jbe 0x14007776d
xor ebx, ebx
mov r12d, ebx
lea r13, fcn.14001b3f0
lea r14, fcn.140019f80
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.140046678
mov rcx, qword [rax]
call fcn.14000f180
test al, al
je 0x140077671
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140046678
lea r8, [rbp + 0x540]
mov rdx, qword [rax]
mov rcx, qword [r15 + 0xe0]
call fcn.1400201d4
test eax, eax
js 0x140077671
mov rdi, qword [rbp + 0x548]
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140046678
mov r9, rax
mov rcx, rdi
call fcn.140016df4
mov r8d, eax
mov rdx, rdi
mov rcx, r9
call fcn.140012c40
mov edi, dword [rsp + 0x54]
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140046678
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.140012a08
nop
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140046678
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.14002f828
nop
lea r9, [rbp + 0x1c8]
lea r8, [rbp + 0xe8]
lea rdx, [rbp + 0x60]
call fcn.140079058
lea rdx, [rbp + 0xe8]
mov rcx, qword [r15 + 0x98]
call fcn.140078b8c
lea rdx, [rbp + 0xe8]
mov rcx, qword [r15 + 0x98]
call fcn.140078794
lea r8, [rbp + 0x1c8]
lea rdx, [rbp + 0xe8]
mov rcx, qword [r15 + 0x98]
call fcn.14002c5a0
nop
lea rcx, [rbp + 0x1c8]
call fcn.14002c474
nop
lea rcx, [rbp + 0xe8]
call fcn.140021600
nop
lea rcx, [rbp + 0x540]
call fcn.140017f7c
add edi, r12d
mov dword [rsp + 0x54], edi
mov r12d, edi
cmp r12, qword [rbp - 0x60]
jb 0x1400775d5
mov rbx, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x58]
mov r13d, dword [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.14004676c
nop
lea rcx, [rbx - 0x18]
call int.140013dd0
inc r13d
mov dword [rsp + 0x70], r13d
mov eax, r13d
xor edi, edi
cmp rax, qword [rbp - 0x20]
jb 0x1400773f5
cmp qword [rbp + 0x68], rdi
jbe 0x1400777a5
mov byte [r15 + 0xd2], 1
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.1400120d0
mov rbx, rax
test rax, rax
je 0x1400777de
mov r9, rbx
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.1400465bc
mov rbx, rax
mov rdx, qword [r9 + 0x28]
lea rcx, [r15 + 0x70]
call fcn.14006b7bc
test rbx, rbx
jne 0x1400777ba
mov rcx, qword [rbp + 0x98]
add rcx, 0xffffffffffffffe8
call int.140013dd0
mov rcx, qword [rbp + 0x90]
add rcx, 0xffffffffffffffe8
call int.140013dd0
lea rcx, [rbp + 0x60]
call fcn.1400122f0
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14007781a
call qword [sym.imp.msvcrt.dll_free]
nop
mov rbx, qword [rbp + 0x58]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140077832
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rcx, [rbp - 0x28]
call fcn.14004676c
nop
lea rcx, [rbp - 8]
call fcn.14004676c
nop
lea rcx, [rbp + 0x18]
call fcn.14004676c
mov eax, r14d
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.14002cdb0
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.14004676c
nop
lea rcx, [rbx - 0x18]
call int.140013dd0
jmp 0x140077797
call fcn.140056eb8
int3