Function at 0x140027e80
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], r9d
mov r15, r8
mov r13, rdx
mov rsi, rcx
test rdx, rdx
jne 0x140027ec0
xor eax, eax
jmp 0x140028151
lea rdx, [0x14018f4cd]
test r15, r15
cmovne rdx, r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov rbp, 0xffffffffffffffff
mov r8, rbp
nop dword [rax]
inc r8
cmp byte [rdx + r8], al
jne 0x140027ef0
lea rcx, [rsp + 0x58]
call fcn.14000c1a0
nop
lea r14, [rsi + 0x40]
mov qword [rsp + 0x28], r14
mov edx, 0xffffffff
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
test eax, eax
sete bl
test eax, eax
jne 0x140027f3b
cmp dword [rsi + 0x50], eax
jne 0x140027f38
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov qword [rsi + 0x48], rcx
inc dword [rsi + 0x50]
mov byte [rsp + 0x30], bl
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rsi + 0x30]
call fcn.140028920
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x40]
test rdi, rdi
je 0x140027f97
mov rbx, qword [rdi]
test rbx, rbx
je 0x140027fce
test r12d, r12d
jne 0x140028144
sub dword [r14 + 0x10], 1
jns 0x140027f7a
mov dword [r14 + 0x10], r12d
cmp dword [r14 + 0x10], 0
jne 0x140027f89
mov qword [r14 + 8], 0
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140028144
mov ecx, 0x20
call fcn.1401219f8
mov rdi, rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x18], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x30]
call fcn.140028920
mov rcx, qword [rax]
mov qword [rcx + 0x40], rdi
cmp qword [rdi + 0x10], 0
jne 0x140028011
mov ecx, 0x18
call fcn.1401219f8
mov rbx, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
mov qword [rdi + 0x10], rbx
inc dword [rdi + 0x18]
test r12d, r12d
jne 0x14002803c
sub dword [r14 + 0x10], 1
jns 0x140028024
mov dword [r14 + 0x10], r12d
cmp dword [r14 + 0x10], 0
jne 0x140028033
mov qword [r14 + 8], 0
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14d, eax
test eax, eax
sete r12b
test eax, eax
jne 0x140028074
cmp dword [rbx + 0x10], eax
jne 0x140028071
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov qword [rbx + 8], rcx
inc dword [rbx + 0x10]
mov byte [rsp + 0x30], r12b
cmp qword [rdi], 0
jne 0x1400280c7
xor edx, edx
mov rcx, rdi
mov rax, r13
call qword [case.0x14000aed8.0]
mov qword [rdi], rax
test rax, rax
je 0x1400280c7
test r15, r15
je 0x1400280b9
nop word [rax + rax]
inc rbp
cmp byte [r15 + rbp], 0
jne 0x1400280a0
lea rcx, [rax + 8]
mov r8, rbp
mov rdx, r15
call fcn.14000a7d0
mov rax, qword [rdi]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x28], ecx
mov qword [rdi + 8], r13
test r14d, r14d
jne 0x1400280ed
sub dword [rbx + 0x10], 1
jns 0x1400280d6
mov dword [rbx + 0x10], r14d
cmp dword [rbx + 0x10], 0
jne 0x1400280e4
mov qword [rbx + 8], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rdi]
mov edx, 0xffffffff
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140028141
cmp dword [rsi + 0x50], eax
jne 0x140028114
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x48], rax
inc dword [rsi + 0x50]
dec dword [rdi + 0x18]
sub dword [rsi + 0x50], 1
jns 0x140028127
mov dword [rsi + 0x50], 0
cmp dword [rsi + 0x50], 0
jne 0x140028135
mov qword [rsi + 0x48], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140028144
dec dword [rdi + 0x18]
lea rcx, [rsp + 0x58]
call fcn.140009880
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401219d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret