Function at 0x588010
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e8fc6
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5fc7d0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
push edi
mov eax, dword [0x5fc7d0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov dword [ebx], 0
mov dword [esp + 0x60], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
push 0x10
mov byte [esp + 0x64], 2
call fcn.005c4082
mov edi, eax
add esp, 4
test edi, edi
je 0x58809d
lea eax, [edi + 4]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
and dword [eax], 1
mov dword [eax + 4], eax
mov dword [eax + 8], eax
and dword [eax], 0xfffffffe
mov dword [edi], 0
jmp 0x58809f
xor edi, edi
mov eax, edi
mov dword [esp + 0x50], 0xf
shr eax, 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
lea eax, [esp + 0x3c]
mov byte [esp + 0x60], 4
push eax
call fcn.0058aa80
add esp, 4
lea ecx, [esp + 0x24]
push 0x13
push 0x530360
call fcn.00548640
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.00548250
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp dword [ebx], 0
jne 0x58812f
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [ebx], eax
setne byte [esp + 0x13]
jmp 0x588134
mov byte [esp + 0x13], 0
push 0x14
push 0x530374
lea ecx, [esp + 0x2c]
call fcn.00548640
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.00548250
push dword [ebx]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.0058cc20
add esp, 4
mov byte [esp + 0x18], 1
cmp byte [esp + 0x13], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov byte [esp + 0x60], 5
je 0x5881bd
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp dword [ebx + 8], 0xffffffff
jne 0x5881bd
push eax
push 0x7fffffff
push 0
push 0
call esi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 8], 0xffffffff
mov byte [esp + 0x13], 1
setne al
test al, al
jne 0x5881c2
mov byte [esp + 0x13], 0
push 0x12
push 0x53038c
lea ecx, [esp + 0x2c]
call fcn.00548640
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.00548250
cmp byte [esp + 0x13], 0
je 0x5882f5
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp dword [ebx + 4], 0xffffffff
jne 0x5882f5
push eax
push dword [esp + 0x24]
push 0
push 0
call esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne cl
cmp dword [ebx + 4], 0xffffffff
setne al
test al, al
je 0x5882f5
test cl, cl
jne 0x58827c
test edi, edi
je 0x58827c
mov ecx, dword [edi + 4]
lea esi, [edi + 4]
and ecx, 0xfffffffe
je 0x588261
sub esp, 8
mov eax, esp
push ecx
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.00586e60
add esp, 0xc
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 0xfffffffe
push edi
mov dword [edi], 0
call fcn.005c40d3
add esp, 4
lea eax, [esp + 0x20]
push eax
push 1
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 4
call fcn.00588390
cmp dword [esp + 0x38], 0x10
jb 0x5882ad
push dword [esp + 0x24]
call fcn.005c40d3
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x5882d5
push dword [esp + 0x3c]
call fcn.005c40d3
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005c4b26
add esp, 0x54
ret
test edi, edi
je 0x58833b
mov ecx, dword [edi + 4]
lea esi, [edi + 4]
and ecx, 0xfffffffe
je 0x588320
sub esp, 8
mov eax, esp
push ecx
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.00586e60
add esp, 0xc
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 0xfffffffe
push edi
mov dword [edi], 0
call fcn.005c40d3
add esp, 4
push 0x5f27e0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
call fcn.005c4b35
int3