Function at 0x140027ca0
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 [0x140177090]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, r9d
mov r14, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140027cde
xor eax, eax
jmp 0x140027eeb
lea rdx, [0x1401490f7]
test r14, r14
cmovne rdx, r14
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov rbp, 0xffffffffffffffff
mov r8, rbp
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140027d10
lea rcx, [rsp + 0x50]
call fcn.140008ab0
nop
lea rsi, [rbx + 0x40]
mov qword [rsp + 0x20], rsi
mov edx, 0xffffffff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r15b
test eax, eax
jne 0x140027d52
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 8], rax
mov byte [rsp + 0x28], r15b
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x30]
call fcn.1400285b0
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x40]
test rdi, rdi
je 0x140027d86
mov rbx, qword [rdi]
test rbx, rbx
je 0x140027dbd
test r15b, r15b
jmp 0x140027eca
mov ecx, 0x20
call fcn.1400e9d8c
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 + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x30]
call fcn.1400285b0
mov rcx, qword [rax]
mov qword [rcx + 0x40], rdi
cmp qword [rdi + 0x10], 0
jne 0x140027df9
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400e9d8c
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
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 r15b, r15b
je 0x140027e12
mov qword [rsi + 8], 0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rdi + 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 0x140027e3f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbx + 8], rax
mov byte [rsp + 0x28], r15b
cmp qword [rdi], 0
jne 0x140027e84
xor edx, edx
mov rcx, rdi
call r12
mov qword [rdi], rax
test rax, rax
je 0x140027e84
test r14, r14
je 0x140027e79
nop
inc rbp
cmp byte [r14 + rbp], 0
jne 0x140027e60
lea rcx, [rax + 8]
mov r8, rbp
mov rdx, r14
call fcn.140008ab0
mov rax, qword [rdi]
mov dword [rax + 0x28], r13d
mov qword [rdi + 8], r12
test r15b, r15b
je 0x140027e9a
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]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete cl
test eax, eax
jne 0x140027ec5
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 8], rax
dec dword [rdi + 0x18]
jmp 0x140027ecc
dec dword [rdi + 0x18]
test cl, cl
je 0x140027ede
mov qword [rsi + 8], 0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0x50]
call fcn.140008a50
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret