Function at 0x140027930
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1401cacb8]
test ecx, ecx
je 0x140027a61
cmp ecx, 2
jne 0x140027bba
test rax, rax
je 0x140027bba
lea rax, [0x1401cacd8]
mov qword [rsp + 0x20], rax
mov edx, 0xffffffff
mov rcx, qword [0x1401cacd8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
sete dil
test eax, eax
mov eax, dword [0x1401cace8]
jne 0x1400279ae
test eax, eax
jne 0x1400279a6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [0x1401cace0], rax
mov eax, dword [0x1401cace8]
inc eax
mov dword [0x1401cace8], eax
mov byte [rsp + 0x28], dil
xor edi, edi
mov rcx, qword [0x1401cacb8]
test rcx, rcx
je 0x140027a0e
mov rax, qword [rcx]
mov rax, qword [rax + 8]
lea rdx, [method.SingletonManager.virtual_8]
cmp rax, rdx
jne 0x1400279db
call fcn.140028670
jmp 0x1400279e1
call qword [case.0x14000aed8.0]
mov rcx, qword [0x1401cacb8]
test rcx, rcx
je 0x1400279fe
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x14000aed8.0]
mov rcx, rdi
mov qword [0x1401cacb8], rcx
mov eax, dword [0x1401cace8]
test ebx, ebx
jne 0x140027a51
sub eax, 1
mov dword [0x1401cace8], eax
jns 0x140027a25
mov eax, edi
mov dword [0x1401cace8], eax
test eax, eax
jne 0x140027a30
mov qword [0x1401cace0], rdi
mov rcx, qword [0x1401cacd8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [0x1401cacb8]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, rcx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
test rax, rax
jne 0x140027bba
lea rax, [0x1401cacd8]
mov qword [rsp + 0x20], rax
mov edx, 0xffffffff
mov rcx, qword [0x1401cacd8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
test eax, eax
sete bl
mov ecx, dword [0x1401cace8]
test eax, eax
jne 0x140027aba
test ecx, ecx
jne 0x140027ab2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov qword [0x1401cace0], rcx
mov ecx, dword [0x1401cace8]
inc ecx
mov dword [0x1401cace8], ecx
mov byte [rsp + 0x28], bl
xor edi, edi
mov rsi, qword [0x1401cacb8]
test rsi, rsi
jne 0x140027b74
lea ecx, [rdi + 0x58]
call fcn.1401219f8
mov rsi, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], rax
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rsi + 8], al
mov dword [rsi + 0x28], edi
lea rax, vtable.SingletonManager.0
mov qword [rsi], rax
lea rbx, [rsi + 0x30]
mov qword [rsp + 0x60], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
lfence
lea ecx, [rdi + 0x48]
call fcn.1401219f8
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rsi + 0x40], rdi
mov qword [rsi + 0x48], rdi
mov dword [rsi + 0x50], edi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 0x40], rax
mov qword [0x1401cacb8], rsi
mov ecx, dword [0x1401cace8]
test ebp, ebp
jne 0x140027bb7
sub ecx, 1
mov dword [0x1401cace8], ecx
jns 0x140027b8b
mov ecx, edi
mov dword [0x1401cace8], ecx
test ecx, ecx
jne 0x140027b96
mov qword [0x1401cace0], rdi
mov rcx, qword [0x1401cacd8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [0x1401cacb8]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret