Function at 0x4292d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], 5
jne 0x429330
cmp dword [0x4f23fc], 0
je 0x429570
push 0x4f23f8
call fcn.00405630
add esp, 4
mov eax, dword [0x4f23fc]
xor edx, edx
cmp dword [eax + edx*4], 0xffffffff
jne 0x42951f
inc edx
cmp edx, 0x10
jl 0x429303
mov eax, dword [ebp + 8]
mov dword [0x4f23f8], 0
mov dword [eax], 0xffff7fff
mov eax, 0x226
jmp 0x429515
push 0x4f23f8
call fcn.00405630
add esp, 4
mov ebx, dword [0x4eab48]
cmp ebx, 0xffffc000
jge 0x42935a
mov dword [0x4eab48], 0xffffff7f
mov ebx, 0xffffff7f
push ebx
call fcn.0042ebf0
add esp, 4
test eax, eax
je 0x4294fc
cmp ebx, 0xfffffffa
lea ecx, [ebx + 5]
jg 0x429375
mov ecx, ebx
mov eax, 0xfb93e673
mul ecx
shr edx, 9
imul esi, edx, 0x209
sub ecx, esi
mov edx, dword [0x4e93e0]
cmp edx, 2
lea eax, [ecx + 0x69]
mov dword [ebp - 0xc], eax
jge 0x4293d3
lea esi, [ecx*4 + 0x1a4]
lea ecx, [esi*8]
sub ecx, esi
mov esi, dword [ecx + 0x4edf84]
test esi, esi
jne 0x42947b
mov dword [ecx + 0x4edf84], 1
mov ecx, eax
shl ecx, 5
lea esi, [eax*4]
sub ecx, esi
jmp 0x42947b
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x4edf84]
push ecx
call fcn.00405630
add esp, 4
test eax, eax
jne 0x429464
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x4edf80], 0
je 0x42960c
mov ecx, edx
lea eax, [edx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4edf84], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4edf80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0xc]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4edf84]
push ecx
call fcn.00405630
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 5
mov edx, dword [0x4e93e0]
lea esi, [eax*4]
sub ecx, esi
cmp edx, 1
je 0x4295e1
mov esi, dword [ecx + 0x4edf98]
test esi, esi
je 0x42949d
cmp ebx, dword [esi + 0x100]
jbe 0x42949d
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x42948e
cmp edx, 1
je 0x4295bf
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
cmp edx, 2
jge 0x4294c3
mov dword [eax + 0x4edf84], 0
jmp 0x4294e8
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x4edf84], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4edf80]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x4295ae
cmp ebx, dword [esi + 0x100]
jne 0x4295ae
dec ebx
cmp ebx, 0xffff8000
jg 0x42935a
mov dword [0x4f23f8], 0
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + edx*4]
xor ecx, ecx
mov ebx, eax
shl ebx, cl
test ebx, 0x80000000
je 0x42953b
inc ecx
cmp ecx, 0x20
jl 0x429524
jmp 0x429313
mov ebx, edx
neg ecx
shl ebx, 5
neg ebx
lea esi, [ebx + ecx - 1]
add ecx, 0x1f
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
mov esi, 1
shl esi, cl
mov ecx, dword [0x4f23fc]
or eax, esi
mov dword [ecx + edx*4], eax
xor eax, eax
mov dword [0x4f23f8], 0
jmp 0x429515
push 0x4f23fc
push 0
push 0x40
call fcn.00418180
add esp, 0xc
test eax, eax
je 0x429593
mov dword [0x4f23f8], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4f23fc]
mov dword [eax], 0
mov eax, dword [0x4f23fc]
mov dword [eax], 0xf8000000
jmp 0x4292ef
mov eax, dword [ebp + 8]
mov dword [eax], ebx
dec ebx
mov dword [0x4eab48], ebx
jmp 0x429509
push dword [ecx + 0x4edf94]
push dword [ecx + 0x4edf90]
call fcn.00405610
add esp, 8
mov eax, dword [ebp - 0xc]
mov edx, dword [0x4e93e0]
jmp 0x4294a6
lea eax, [ecx + 0x4edf90]
push eax
call fcn.004055e0
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 5
mov edx, dword [0x4e93e0]
lea esi, [eax*4]
sub ecx, esi
jmp 0x429484
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0xc]
mov esi, edx
shl esi, 5
lea ecx, [edx*4]
sub esi, ecx
mov dword [esi + 0x4edf80], eax
mov dword [esi + 0x4edf84], 0
jmp 0x42942c