Function at 0x419760
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c6a1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x685680]
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 - 0x48], esi
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
push 8
mov byte [ebp - 4], 2
call fcn.004b9961
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x4197dc
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0041b760
mov dword [edi], eax
jmp 0x4197de
xor edi, edi
mov eax, edi
shr eax, 2
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00419560
push 0x13
push str.bipc_gmap_sem_lock_
lea ecx, [ebp - 0x28]
call fcn.00403850
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004039d0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi], 0xffffffff
jne 0x41985a
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [esi], eax
setne bl
jmp 0x41985c
xor bl, bl
push 0x14
push str.bipc_gmap_sem_count_
lea ecx, [ebp - 0x28]
call fcn.00403850
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004039d0
mov ecx, esi
mov dword [ebp - 0x50], esi
call fcn.00401240
mov byte [ebp - 0x4c], 1
mov byte [ebp - 4], 6
test bl, bl
je 0x4198ca
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 8], 0xffffffff
jne 0x4198ca
push eax
push SysReAllocString
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 0x4198ca
mov bl, 1
jmp 0x4198cc
xor bl, bl
push 0x12
push str.bipc_gmap_sem_map_
lea ecx, [ebp - 0x28]
call fcn.00403850
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004039d0
test bl, bl
je 0x4199ca
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 4], 0xffffffff
jne 0x4199ca
push eax
push dword [ebp - 0x44]
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 0x4199ca
test cl, cl
jne 0x419961
test edi, edi
je 0x419961
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.004021e0
push dword [edi]
call fcn.004b9997
add esp, 4
push edi
call fcn.004b9997
add esp, 4
lea eax, [ebp - 0x48]
push eax
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [ebp - 0x50]
call fcn.00402190
cmp dword [ebp - 0x14], 0x10
jb 0x419989
push dword [ebp - 0x28]
call fcn.004b9997
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4199ac
push dword [ebp - 0x40]
call fcn.004b9997
add esp, 4
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.005cd355
mov esp, ebp
pop ebp
ret
push 0x673b28
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0
call fcn.005d3ef0
int3