Function at 0x180080b60
Capabilities:
Check mutex on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10c0
call fcn.1800dd850
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x1100], rbx
mov qword [rsp + 0x1108], rsi
mov rax, qword [0x18013e1e0]
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.1800c31a0
mov word [rsp + 0x8b0], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x8b2]
call fcn.1800c31a0
nop
mov r8b, 3
xor edx, edx
lea ecx, [rbx + 6]
call fcn.1800698a0
mov r12d, eax
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x180080c94
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x10], rbx
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x180080ca7
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.1800727a0
mov r9d, 0x1f0003
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x30]
call fcn.1800727a0
test r13, r13
je 0x180080d6f
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x180080d6f
lea r8, [0x18010d238]
mov edx, 0x400
lea rcx, [rsp + 0xb0]
call fcn.1800c0e4c
or r9, 0xffffffffffffffff
mov r8, r13
mov edx, 0x400
lea rcx, [rsp + 0xb0]
call fcn.1800c7a8c
lea r14, [rsp + 0xb0]
lea r8, [0x18010d240]
mov edx, 0x400
lea rcx, [rsp + 0x8b0]
call fcn.1800c0e4c
or r9, 0xffffffffffffffff
mov r8, r13
mov edx, 0x400
lea rcx, [rsp + 0x8b0]
call fcn.1800c7a8c
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 0x180080e1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180080db3
test r12d, r12d
je 0x180080db3
mov rcx, qword [rsi + 0x10]
call fcn.1800729e0
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 0x180080e04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180080df6
test r12d, r12d
je 0x180080df6
mov rcx, qword [rsi + 0x18]
call fcn.1800729e0
mov dword [rsi + 8], reloc.OLEAUT32.dll_SafeArrayGetDim
mov edi, 1
jmp 0x180080e3b
mov dword [rsp + 0x2c], 0xffffffff
lea rdx, [0x18013ad60]
lea rcx, [rsp + 0x2c]
call fcn.1800c3e40
mov dword [rsp + 0x28], 0xffffffff
lea rdx, [0x18013ad60]
lea rcx, [rsp + 0x28]
call fcn.1800c3e40
nop
xor ebx, ebx
mov edi, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180080e50
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180080e65
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], rbx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180080e7a
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 0x180080ea4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x180080ebf
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x80], rbx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180080ecf
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.1800bf8d0
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