Function at 0x140027500
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 [0x14018a090]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, r9d
mov r14, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14002753e
xor eax, eax
jmp 0x1400277c1
lea rdx, [0x14015892f]
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 0x140027570
lea rcx, [rsp + 0x50]
call fcn.1400090e0
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 0x1400275c0
mov eax, dword [rdi + 0x10]
test eax, eax
jne 0x1400275bb
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.140027f90
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x40]
test rsi, rsi
je 0x1400275f4
mov rbx, qword [rsi]
test rbx, rbx
je 0x14002762b
test r15b, r15b
jmp 0x14002778b
mov ecx, 0x20
call fcn.1400f9588
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.140027f90
mov rcx, qword [rax]
mov qword [rcx + 0x40], rsi
cmp qword [rsi + 0x10], 0
jne 0x14002766e
mov ecx, 0x18
call fcn.1400f9588
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 0x14002769c
sub dword [rdi + 0x10], 1
jns 0x140027685
mov dword [rdi + 0x10], 0
jmp 0x14002768b
cmp dword [rdi + 0x10], 0
jne 0x140027693
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 0x1400276d8
mov eax, dword [rbx + 0x10]
test eax, eax
jne 0x1400276d3
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 0x140027724
xor edx, edx
mov rcx, rsi
call r12
mov qword [rsi], rax
test rax, rax
je 0x140027724
test r14, r14
je 0x140027719
nop dword [rax + rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x140027700
lea rcx, [rax + 8]
mov r8, rbp
mov rdx, r14
call fcn.1400090e0
mov rax, qword [rsi]
mov dword [rax + 0x28], r13d
mov qword [rsi + 8], r12
test r15b, r15b
je 0x14002774f
sub dword [rbx + 0x10], 1
jns 0x140027738
mov dword [rbx + 0x10], 0
jmp 0x14002773e
cmp dword [rbx + 0x10], 0
jne 0x140027746
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 0x140027785
mov eax, dword [rdi + 0x10]
test eax, eax
jne 0x140027780
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 0x1400277b4
sub dword [rdi + 0x10], 1
jns 0x14002779c
mov dword [rdi + 0x10], 0
jmp 0x1400277a2
cmp dword [rdi + 0x10], 0
jne 0x1400277aa
mov qword [rdi + 8], 0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0x50]
call fcn.140009080
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret