Function at 0x140027880
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 [0x140189090]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, r9d
mov r14, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1400278be
xor eax, eax
jmp 0x140027b41
lea rdx, [0x1401578ef]
test r14, r14
cmovne rdx, r14
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], al
mov rbp, 0xffffffffffffffff
mov r8, rbp
nop
inc r8
cmp byte [rdx + r8], al
jne 0x1400278f0
lea rcx, [rsp + 0x50]
call fcn.140009250
nop
lea rdi, [rbx + 0x40]
mov qword [rsp + 0x20], rdi
mov edx, 0xffffffff
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r15b
test eax, eax
jne 0x140027940
mov eax, dword [rdi + 0x10]
test eax, eax
jne 0x14002793b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rdi + 8], rax
mov eax, dword [rdi + 0x10]
inc eax
mov dword [rdi + 0x10], eax
mov byte [rsp + 0x28], r15b
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x30]
call fcn.140028310
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x40]
test rsi, rsi
je 0x140027974
mov rbx, qword [rsi]
test rbx, rbx
je 0x1400279ab
test r15b, r15b
jmp 0x140027b0b
mov ecx, 0x20
call fcn.1400f89d8
mov rsi, rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], eax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x30]
call fcn.140028310
mov rcx, qword [rax]
mov qword [rcx + 0x40], rsi
cmp qword [rsi + 0x10], 0
jne 0x1400279ee
mov ecx, 0x18
call fcn.1400f89d8
mov rbx, rax
mov qword [rsp + 0x20], 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 [rsi + 0x10], rbx
inc dword [rsi + 0x18]
test r15b, r15b
je 0x140027a1c
sub dword [rdi + 0x10], 1
jns 0x140027a05
mov dword [rdi + 0x10], 0
jmp 0x140027a0b
cmp dword [rdi + 0x10], 0
jne 0x140027a13
mov qword [rdi + 8], 0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsi + 0x10]
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r15b
test eax, eax
jne 0x140027a58
mov eax, dword [rbx + 0x10]
test eax, eax
jne 0x140027a53
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbx + 8], rax
mov eax, dword [rbx + 0x10]
inc eax
mov dword [rbx + 0x10], eax
mov byte [rsp + 0x28], r15b
cmp qword [rsi], 0
jne 0x140027aa4
xor edx, edx
mov rcx, rsi
call r12
mov qword [rsi], rax
test rax, rax
je 0x140027aa4
test r14, r14
je 0x140027a99
nop dword [rax + rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x140027a80
lea rcx, [rax + 8]
mov r8, rbp
mov rdx, r14
call fcn.140009250
mov rax, qword [rsi]
mov dword [rax + 0x28], r13d
mov qword [rsi + 8], r12
test r15b, r15b
je 0x140027acf
sub dword [rbx + 0x10], 1
jns 0x140027ab8
mov dword [rbx + 0x10], 0
jmp 0x140027abe
cmp dword [rbx + 0x10], 0
jne 0x140027ac6
mov qword [rbx + 8], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsi]
mov edx, 0xffffffff
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bpl
test eax, eax
jne 0x140027b05
mov eax, dword [rdi + 0x10]
test eax, eax
jne 0x140027b00
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rdi + 8], rax
mov eax, dword [rdi + 0x10]
inc eax
mov dword [rdi + 0x10], eax
dec dword [rsi + 0x18]
test bpl, bpl
je 0x140027b34
sub dword [rdi + 0x10], 1
jns 0x140027b1c
mov dword [rdi + 0x10], 0
jmp 0x140027b22
cmp dword [rdi + 0x10], 0
jne 0x140027b2a
mov qword [rdi + 8], 0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0x50]
call fcn.1400091f0
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400f89b0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret