Function at 0x10006860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c2c6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100962c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x2c], esi
mov dword [esi], 0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
push 0x10
mov byte [ebp - 4], 2
call fcn.10049b66
mov edi, eax
xorps xmm0, xmm0
movq qword [edi + 4], xmm0
lea eax, [edi + 4]
mov dword [eax + 8], 0
add esp, 4
and dword [eax], 1
mov dword [eax + 4], eax
mov dword [eax + 8], eax
and dword [eax], 0xfffffffe
mov eax, edi
mov dword [edi], 0
shr eax, 2
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.100064c0
push 0x13
push str.bipc_gmap_sem_lock_
lea ecx, [ebp - 0x28]
call fcn.10002f60
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d4a0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi], 0
jne 0x1000695d
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
setne bl
jmp 0x1000695f
xor bl, bl
push 0x14
push str.bipc_gmap_sem_count_
lea ecx, [ebp - 0x28]
call fcn.10002f60
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d4a0
mov ecx, dword [esi]
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], esi
call fcn.10006700
mov byte [ebp - 0x30], 1
mov byte [ebp - 4], 5
test bl, bl
je 0x100069d5
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 8], 0xffffffff
jne 0x100069d5
push eax
push 0x7fffffff
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 8], 0xffffffff
setne al
test al, al
je 0x100069d5
mov bl, 1
jmp 0x100069d7
xor bl, bl
push 0x12
push str.bipc_gmap_sem_map_
lea ecx, [ebp - 0x28]
call fcn.10002f60
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d4a0
test bl, bl
je 0x10006ac9
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 4], 0xffffffff
jne 0x10006ac9
push eax
push dword [ebp - 0x50]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne cl
cmp dword [esi + 4], 0xffffffff
setne al
test al, al
je 0x10006ac9
test cl, cl
jne 0x10006a58
push edi
mov ecx, edi
call fcn.100105c0
push 0x10
push edi
call fcn.10049eeb
add esp, 8
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [ebp - 0x34]
call fcn.1000a3f0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10006a84
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10003190
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x10006aab
inc ecx
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
call fcn.10003190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049b55
mov esp, ebp
pop ebp
ret
push edi
mov ecx, edi
call fcn.100105c0
push 0x10
push edi
call fcn.10049eeb
add esp, 8
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push 0x100949f0
push eax
call fcn.1004cc2d
int3