Function at 0x18007ecb0
Capabilities:
Check mutex on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10c0
call fcn.1800db900
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x1100], rbx
mov qword [rsp + 0x1108], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x10b0], rax
mov r13, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
mov byte [rsp + 0x68], 0
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x30], al
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov byte [rsp + 0xa8], al
mov byte [rsp + 0xa9], al
mov byte [rsp + 0xaa], al
mov byte [rsp + 0xab], al
mov byte [rsp + 0xac], al
mov byte [rsp + 0xad], 1
mov r14, rbx
mov r15, rbx
mov word [rsp + 0xb0], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0xb2]
call fcn.1800c1250
mov word [rsp + 0x8b0], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x8b2]
call fcn.1800c1250
nop
mov r8b, 3
xor edx, edx
lea ecx, [rbx + 6]
call fcn.18006db10
mov r12d, eax
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x18007ede4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x10], rbx
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x18007edf7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x18], rbx
mov r9d, 0x1f0001
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.180071ce0
mov r9d, 0x1f0003
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x30]
call fcn.180071ce0
test r13, r13
je 0x18007eebf
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x18007eebf
lea r8, [0x18010a178]
mov edx, 0x400
lea rcx, [rsp + 0xb0]
call fcn.1800beefc
or r9, 0xffffffffffffffff
mov r8, r13
mov edx, 0x400
lea rcx, [rsp + 0xb0]
call fcn.1800c5b3c
lea r14, [rsp + 0xb0]
lea r8, [0x18010a180]
mov edx, 0x400
lea rcx, [rsp + 0x8b0]
call fcn.1800beefc
or r9, 0xffffffffffffffff
mov r8, r13
mov edx, 0x400
lea rcx, [rsp + 0x8b0]
call fcn.1800c5b3c
lea r15, [rsp + 0x8b0]
lea rcx, [rsp + 0x88]
cmp byte [rsp + 0x68], 0
cmove rcx, rbx
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x18007ef6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18007ef03
test r12d, r12d
je 0x18007ef03
mov rcx, qword [rsi + 0x10]
call fcn.180071f20
lea rcx, [rsp + 0x50]
cmp byte [rsp + 0x30], 0
cmove rcx, rbx
mov r9, r15
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x18007ef54
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18007ef46
test r12d, r12d
je 0x18007ef46
mov rcx, qword [rsi + 0x18]
call fcn.180071f20
mov dword [rsi + 8], reloc.OLEAUT32.dll_SafeArrayGetDim
mov edi, 1
jmp 0x18007ef8b
mov dword [rsp + 0x2c], 0xffffffff
lea rdx, [0x180136c18]
lea rcx, [rsp + 0x2c]
call fcn.1800c1ef0
mov dword [rsp + 0x28], 0xffffffff
lea rdx, [0x180136c18]
lea rcx, [rsp + 0x28]
call fcn.1800c1ef0
nop
xor ebx, ebx
mov edi, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18007efa0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18007efb5
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], rbx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18007efca
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x40], rbx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x30], al
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18007eff4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x18007f00f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x80], rbx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18007f01f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret