Function at 0x41f5f4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 0xc], ebx
cmp esi, 0xfffffffb
mov dword [ebp - 4], edi
je 0x41fb4c
cmp esi, 0xfffffffa
jle 0x41f61c
lea edi, [esi + 5]
mov ecx, edi
mov ebx, edi
jmp 0x41f622
mov edi, esi
mov ecx, esi
mov ebx, esi
test edi, edi
jl 0x41f7d3
cmp edi, 0x68
jg 0x41f7d3
lea eax, [edi*4]
shl edi, 5
sub edi, eax
mov edx, dword [edi + 0x4f3b38]
test edx, edx
je 0x41f64f
cmp dword [edx + 0x18], 0
je 0x41f657
mov dword [ebp - 0x14], ebx
jmp 0x41f934
mov esi, dword [edx + 0x64]
movzx eax, byte [edx + 0x173]
test al, 1
mov dword [ebp - 0x10], esi
mov dword [edx + 0x64], 0
mov dword [ebp - 0x14], eax
je 0x41f69e
movzx esi, byte [edx + 0x16b]
mov eax, esi
shr esi, 6
and eax, 0xffffffdf
and esi, 1
shl esi, 5
or eax, esi
mov byte [edx + 0x16b], al
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov byte [edx + 0x173], al
test byte [ebp - 0x14], 2
je 0x41f6c0
movzx eax, byte [edx + 0x162]
mov byte [edx + 0x161], al
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov byte [edx + 0x173], al
test byte [ebp - 0x14], 4
je 0x41f6e2
movzx eax, byte [edx + 0x15a]
mov byte [edx + 0x159], al
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffb
mov dword [ebp - 0x14], eax
mov byte [edx + 0x173], al
test byte [ebp - 0x14], 8
je 0x41f713
movzx esi, byte [edx + 0x16e]
mov eax, esi
shr esi, 2
and eax, 0xfffffffd
and esi, 1
add esi, esi
or eax, esi
mov byte [edx + 0x16e], al
mov eax, dword [ebp - 0x14]
and eax, 0xfffffff7
mov dword [ebp - 0x14], eax
mov byte [edx + 0x173], al
test byte [ebp - 0x14], 0x10
je 0x41f735
movzx eax, byte [edx + 0x160]
mov byte [edx + 0x15f], al
mov eax, dword [ebp - 0x14]
and eax, 0xffffffef
mov dword [ebp - 0x14], eax
mov byte [edx + 0x173], al
test byte [ebp - 0x14], 0x20
je 0x41f754
movzx eax, byte [edx + 0x164]
mov byte [edx + 0x163], al
mov eax, dword [ebp - 0x14]
and eax, 0xffffffdf
mov byte [edx + 0x173], al
mov dword [edi + 0x4f3b2c], 0
mov dword [edi + 0x4f3b28], 0xffffffff
cmp dword [0x4e73a0], 2
jge 0x41f789
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4f3b24], 0
jmp 0x41f7ba
mov dword [ebp - 0x14], ebx
lea eax, [ecx*4]
shl ecx, 5
lea edx, [ebx*4]
shl ebx, 5
sub ecx, eax
sub ebx, edx
mov dword [ecx + 0x4f3b24], 0
push dword [ebx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x10], 0
je 0x41f93f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
jmp 0x41f93f
cmp esi, 0xfffffffa
lea ecx, [esi + 5]
jg 0x41f7dd
mov ecx, esi
mov eax, 0xfb93e673
mul ecx
shr edx, 9
imul ebx, edx, 0x209
sub ecx, ebx
mov edx, dword [0x4e73a0]
cmp edx, 2
lea eax, [ecx + 0x69]
mov dword [ebp - 0x14], eax
jge 0x41f82d
lea ecx, [ecx*4 + 0x1a4]
lea edi, [ecx*8]
sub edi, ecx
mov ebx, dword [edi + 0x4f3b24]
test ebx, ebx
jne 0x41f8c7
mov dword [edi + 0x4f3b24], 1
jmp 0x41f8c7
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x4f3b24]
push ecx
call fcn.0040b500
add esp, 4
test eax, eax
jne 0x41f8be
mov edx, dword [ebp - 0x14]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x4f3b20], 0
je 0x41fb1b
mov ecx, edx
lea eax, [edx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4f3b24], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4f3b24]
push ecx
call fcn.0040b500
add esp, 4
mov edx, dword [0x4e73a0]
mov eax, dword [ebp - 0x14]
cmp edx, 1
je 0x41faf2
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov ebx, dword [eax + 0x4f3b38]
test ebx, ebx
je 0x41f8f9
cmp esi, dword [ebx + 0x100]
jbe 0x41f979
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x41f8e6
cmp edx, 1
je 0x41f94e
cmp edx, 2
jge 0x41f90f
mov dword [eax + 0x4f3b24], 0
jmp 0x41f934
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x4f3b24], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push esi
call fcn.00422b50
add esp, 8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push dword [eax + 0x4f3b34]
push dword [eax + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov eax, dword [ebp - 0x14]
mov edx, dword [0x4e73a0]
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
jmp 0x41f8fe
jne 0x41f8f9
cmp edx, 1
je 0x41fac4
cmp edx, 2
jge 0x41f999
mov dword [eax + 0x4f3b24], 0
jmp 0x41f9be
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x4f3b24], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebx + 0x173]
test al, 1
mov dword [ebx + 0x64], 0
je 0x41f9fc
movzx esi, byte [ebx + 0x16b]
mov edx, esi
shr esi, 6
and edx, 0xffffffdf
and esi, 1
and eax, 0xfffffffe
shl esi, 5
or edx, esi
mov byte [ebx + 0x16b], dl
mov byte [ebx + 0x173], al
test al, 2
je 0x41fa16
movzx edx, byte [ebx + 0x162]
and eax, 0xfffffffd
mov byte [ebx + 0x161], dl
mov byte [ebx + 0x173], al
test al, 4
je 0x41fa30
movzx edx, byte [ebx + 0x15a]
and eax, 0xfffffffb
mov byte [ebx + 0x159], dl
mov byte [ebx + 0x173], al
test al, 8
je 0x41fa59
movzx esi, byte [ebx + 0x16e]
mov edx, esi
shr esi, 2
and edx, 0xfffffffd
and esi, 1
and eax, 0xfffffff7
add esi, esi
or edx, esi
mov byte [ebx + 0x16e], dl
mov byte [ebx + 0x173], al
test al, 0x10
je 0x41fa73
movzx edx, byte [ebx + 0x160]
and eax, 0xffffffef
mov byte [ebx + 0x15f], dl
mov byte [ebx + 0x173], al
test al, 0x20
je 0x41fa8d
movzx edx, byte [ebx + 0x164]
and eax, 0xffffffdf
mov byte [ebx + 0x163], dl
mov byte [ebx + 0x173], al
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0xffffffff
cmp dword [0x4e73a0], 2
jge 0x41fab0
mov dword [ebx + 4], 0
jmp 0x41f7ba
mov dword [ebx + 4], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41f7ba
push dword [eax + 0x4f3b34]
push dword [eax + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov eax, dword [ebp - 0x14]
mov edx, dword [0x4e73a0]
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
jmp 0x41f988
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4f3b30]
push eax
call fcn.0040b4b0
add esp, 4
mov edx, dword [0x4e73a0]
mov eax, dword [ebp - 0x14]
jmp 0x41f8d0
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x14]
mov ebx, edx
shl ebx, 5
lea ecx, [edx*4]
sub ebx, ecx
mov dword [ebx + 0x4f3b20], eax
mov dword [ebx + 0x4f3b24], 0
jmp 0x41f886
mov eax, dword [0x4e73a0]
cmp eax, 2
jge 0x41fb69
cmp eax, 1
je 0x41fbcc
mov dword [ebp - 0x14], 0x4e7300
mov edx, 0x4e7300
jmp 0x41fb80
lea eax, [ebp - 0x14]
push eax
call fcn.0040b270
add esp, 4
test eax, eax
jne 0x41f941
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx]
test ebx, ebx
je 0x41fbf1
mov eax, dword [ebx + 0x28]
mov dword [edx], eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x64]
mov dword [ebx + 0x64], 0
mov dword [ebp - 0x10], edx
test byte [eax + 0x4f], 2
je 0x41fbaf
push dword [eax + 4]
call fcn.00421cd0
add esp, 4
mov eax, dword [ebx + 0x58]
push eax
call fcn.00421cd0
push ebx
call fcn.00421cd0
add esp, 8
cmp dword [0x4e73a0], 1
je 0x41fbdb
jmp 0x41f7ba
push 0x4e7364
call fcn.0040b4b0
add esp, 4
jmp 0x41fb5b
mov eax, dword [ebp - 0x14]
push dword [eax + 0x68]
push dword [eax + 0x64]
call fcn.0040b4e0
add esp, 8
jmp 0x41f7ba
cmp dword [0x4e73a0], 1
jne 0x41f93f
push dword [edx + 0x68]
push dword [edx + 0x64]
call fcn.0040b4e0
add esp, 8
jmp 0x41f93f