Function at 0x434870
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
push 0x10
mov byte [ebp - 4], 2
call fcn.0040c5dc
mov esi, eax
add esp, 4
test esi, esi
je 0x4348e9
mov dword [esi + 8], 0
lea eax, [esi + 4]
mov dword [esi + 0xc], 0
mov dword [eax], 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
and dword [eax], 0xfffffffe
mov dword [esi], 0
jmp 0x4348eb
xor esi, esi
mov eax, esi
mov dword [ebp - 0x3c], 0
shr eax, 2
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 4
push eax
call fcn.004381d0
add esp, 4
lea ecx, [ebp - 0x34]
push 0x13
push str.bipc_gmap_sem_lock_
call fcn.00402270
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push eax
call fcn.004023b0
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
cmp dword [edi], 0
jne 0x434972
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [edi], eax
setne bl
jmp 0x434974
xor bl, bl
push 0x14
push str.bipc_gmap_sem_count_
lea ecx, [ebp - 0x34]
call fcn.00402270
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push eax
call fcn.004023b0
push dword [edi]
mov dword [ebp - 0x1c], edi
call fcn.0043ac70
add esp, 4
mov byte [ebp - 0x18], 1
mov byte [ebp - 4], 5
test bl, bl
je 0x4349e7
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
cmp dword [edi + 8], 0xffffffff
jne 0x4349e7
push eax
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 8], 0xffffffff
je 0x4349e7
mov bl, 1
jmp 0x4349e9
xor bl, bl
push 0x12
push str.bipc_gmap_sem_map_
lea ecx, [ebp - 0x34]
call fcn.00402270
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push eax
call fcn.004023b0
test bl, bl
pop ebx
je 0x434b17
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
cmp dword [edi + 4], 0xffffffff
jne 0x434b17
push eax
push dword [ebp - 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
cmp dword [edi + 4], 0xffffffff
je 0x434b17
test al, al
jne 0x434a70
test esi, esi
je 0x434a70
mov ecx, esi
call fcn.00434f00
push 0x10
push esi
call fcn.0040c60c
add esp, 8
lea eax, [ebp - 0x14]
push eax
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [ebp - 0x1c]
call fcn.004350c0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x434abd
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x434ab3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434ab3
call dword [0x4475d8]
push edx
push ecx
call fcn.0040c60c
add esp, 8
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x434b05
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x434afb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434afb
call dword [0x4475d8]
push edx
push ecx
call fcn.0040c60c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x434b24
push 1
mov ecx, esi
call fcn.00435e30
push 0x452ad4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call fcn.0040e96c
int3