Function at 0x410b60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi]
cmp ebx, 0xffffffff
je 0x410b82
cmp ebx, 0x69
jge 0x410ffd
inc ebx
lea eax, [ebx*4]
mov edx, ebx
shl edx, 5
sub edx, eax
cmp ebx, 0x272
jge 0x410d7b
mov esi, edx
cmp dword [esi + 0x4df6f8], 0
je 0x410d68
cmp ebx, 0x69
jge 0x410cb8
cmp dword [esi + 0x4df6ec], 0
je 0x410be3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x4df6e8]
jne 0x410be3
mov esi, dword [ebp + 0xc]
mov eax, 0x28
mov edi, dword [ebp - 8]
mov dword [esi], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp dword [0x4db0a0], 2
jge 0x410c0b
mov eax, dword [esi + 0x4df6e4]
test eax, eax
je 0x410bfd
mov eax, 0x98
jmp 0x410c4f
mov dword [esi + 0x4df6e4], 1
xor eax, eax
jmp 0x410c4f
lea edi, [esi + 0x4df6e4]
push edi
call fcn.00401dd0
pop ecx
test eax, eax
je 0x410c23
mov eax, 0x98
jmp 0x410c4f
cmp dword [esi + 0x4df6e0], 0
je 0x410dc2
mov dword [esi + 0x4df6e4], 0
push 0xffffffffffffffff
push dword [esi + 0x4df6e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.00401dd0
pop ecx
test eax, eax
je 0x410c5a
mov eax, 0x98
jmp 0x410c72
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x4df6ec], 1
mov dword [esi + 0x4df6e8], eax
xor eax, eax
test eax, eax
jne 0x410dba
mov edi, dword [esi + 0x4df6f8]
test edi, edi
jne 0x410d90
cmp dword [0x4db0a0], 2
mov dword [esi + 0x4df6ec], 0
mov dword [esi + 0x4df6e8], 0xffffffff
jge 0x410d52
mov dword [esi + 0x4df6e4], 0
jmp 0x410d68
mov ecx, dword [0x4db0a0]
cmp ecx, 2
jge 0x410cd9
mov eax, dword [esi + 0x4df6e4]
test eax, eax
jne 0x410d1c
mov dword [esi + 0x4df6e4], 1
jmp 0x410d1c
lea edi, [esi + 0x4df6e4]
push edi
call fcn.00401dd0
pop ecx
test eax, eax
jne 0x410d16
cmp dword [esi + 0x4df6e0], 0
je 0x410fdd
mov dword [esi + 0x4df6e4], 0
push 0xffffffffffffffff
push dword [esi + 0x4df6e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.00401dd0
pop ecx
mov ecx, dword [0x4db0a0]
cmp ecx, 1
je 0x410fcb
mov edi, dword [esi + 0x4df6f8]
test edi, edi
jne 0x410e00
mov eax, dword [0x4db0a0]
cmp eax, 1
je 0x410de2
cmp eax, 2
jge 0x410d52
mov dword [esi + 0x4df6e4], 0
jmp 0x410d68
push dword [esi + 0x4df6e0]
mov dword [esi + 0x4df6e4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esi, 0x1c
inc ebx
cmp ebx, 0x272
jl 0x410b9f
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [esi], 0xffffffff
xor eax, eax
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.00411420
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [edx], edi
mov ecx, dword [edi + 0xf8]
add ecx, 5
mov edi, dword [ebp - 8]
mov dword [esi], ecx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
jmp 0x410bd4
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x4df6e4], 0
mov dword [esi + 0x4df6e0], eax
jmp 0x410c3a
push dword [esi + 0x4df6f4]
push dword [esi + 0x4df6f0]
call fcn.00401db0
add esp, 8
mov eax, dword [0x4db0a0]
jmp 0x410d41
cmp dword [edi + 0xc], 0
mov edx, esi
mov esi, dword [ebp + 0xc]
je 0x410e26
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
jne 0x410e26
mov eax, 0x28
jmp 0x410eba
cmp dword [0x4db0a0], 2
jge 0x410e48
mov eax, dword [edi + 4]
test eax, eax
je 0x410e3d
mov eax, 0x98
jmp 0x410e93
mov dword [edi + 4], 1
xor eax, eax
jmp 0x410e93
mov dword [ebp - 0x10], edx
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00401dd0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x410e68
mov eax, 0x98
jmp 0x410e93
cmp dword [edi], 0
je 0x410fac
mov dword [edi + 4], 0
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call fcn.00401dd0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x410e9e
mov eax, 0x98
jmp 0x410eb6
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10]
mov dword [edi + 0xc], 1
mov dword [edi + 8], eax
xor eax, eax
test eax, eax
je 0x410f05
mov ecx, dword [0x4db0a0]
cmp ecx, 1
je 0x410f5d
cmp ecx, 2
jge 0x410eda
mov dword [edx + 0x4df6e4], 0
jmp 0x410ef6
push dword [edx + 0x4df6e0]
mov dword [edx + 0x4df6e4], 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
mov dword [esi], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4db0a0]
cmp eax, 1
je 0x410f88
cmp eax, 2
jge 0x410f20
mov dword [edx + 0x4df6e4], 0
jmp 0x410f36
push dword [edx + 0x4df6e0]
mov dword [edx + 0x4df6e4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.00411420
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [edx], edi
mov ecx, dword [edi + 0xf8]
add ecx, 5
mov edi, dword [ebp - 8]
mov dword [esi], ecx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push dword [edx + 0x4df6f4]
push dword [edx + 0x4df6f0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call fcn.00401db0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [0x4db0a0]
jmp 0x410ec9
push dword [edx + 0x4df6f4]
push dword [edx + 0x4df6f0]
mov dword [ebp - 0x10], edx
call fcn.00401db0
mov edx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [0x4db0a0]
jmp 0x410f0f
mov dword [ebp - 0x10], edx
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x10]
mov dword [edi + 4], 0
mov dword [edi], eax
jmp 0x410e78
lea eax, [esi + 0x4df6f0]
push eax
call fcn.00401d80
pop ecx
jmp 0x410d25
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x4df6e4], 0
mov dword [esi + 0x4df6e0], eax
jmp 0x410d01
mov eax, 0x3ee4f99d
imul ebx
mov ecx, ebx
sar ecx, 0x1f
sar edx, 7
sub edx, ecx
imul edx, edx, 0x209
neg edx
add edx, ebx
mov ecx, dword [0x4db0a0]
lea eax, [edx + 0x69]
mov dword [ebp - 0x10], eax
cmp ecx, 2
jge 0x411059
lea edi, [edx*4 + 0x1a4]
lea edx, [edi*8]
sub edx, edi
mov edi, dword [edx + 0x4df6e4]
test edi, edi
jne 0x4110f0
mov dword [edx + 0x4df6e4], 1
mov eax, dword [ebp - 0x10]
jmp 0x4110f0
lea eax, [edx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x4df6e4]
push ecx
call fcn.00401dd0
pop ecx
test eax, eax
jne 0x4110e7
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4df6e0], 0
je 0x4113eb
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4df6e4], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4df6e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4df6e4]
push ecx
call fcn.00401dd0
pop ecx
mov ecx, dword [0x4db0a0]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x4113ca
lea ecx, [eax*4]
mov edx, eax
shl edx, 5
sub edx, ecx
mov edi, dword [edx + 0x4df6f8]
test edi, edi
je 0x411123
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf8]
jle 0x411123
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x411114
test edi, edi
je 0x4112db
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf8]
jne 0x411141
mov edi, dword [edi + 0x28]
test edi, edi
je 0x4112db
cmp dword [edi + 0xc], 0
je 0x41115c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 8]
jne 0x41115c
mov eax, 0x28
jmp 0x4111da
cmp dword [0x4db0a0], 2
jge 0x41117e
mov eax, dword [edi + 4]
test eax, eax
je 0x411173
mov eax, 0x98
jmp 0x4111b9
mov dword [edi + 4], 1
xor eax, eax
jmp 0x4111b9
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00401dd0
pop ecx
test eax, eax
je 0x411196
mov eax, 0x98
jmp 0x4111b9
cmp dword [edi], 0
je 0x4113b1
mov dword [edi + 4], 0
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call fcn.00401dd0
pop ecx
test eax, eax
je 0x4111c4
mov eax, 0x98
jmp 0x4111d6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0xc], 1
mov dword [edi + 8], eax
xor eax, eax
test eax, eax
je 0x411252
mov edx, dword [0x4db0a0]
cmp edx, 1
je 0x411350
cmp edx, 2
jge 0x411209
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4df6e4], 0
jmp 0x411243
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4df6e4], 0
mov edx, dword [ebp - 0x10]
lea edi, [edx*4]
shl edx, 5
sub edx, edi
push dword [edx + 0x4df6e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
mov dword [esi], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4db0a0]
cmp eax, 1
je 0x411384
cmp eax, 2
jge 0x411280
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4df6e4], 0
jmp 0x4112b4
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4df6e4], 0
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx*4]
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4df6e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.00411420
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [edx], edi
mov ecx, dword [edi + 0xf8]
add ecx, 5
mov edi, dword [ebp - 8]
mov dword [esi], ecx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4db0a0]
cmp ecx, 1
je 0x411331
lea edx, [eax*4]
shl eax, 5
sub eax, edx
cmp ecx, 2
jge 0x411303
mov dword [eax + 0x4df6e4], 0
jmp 0x411328
mov dword [eax + 0x4df6e4], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4df6e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0x10]
inc ebx
jmp 0x410b83
push dword [edx + 0x4df6f4]
push dword [edx + 0x4df6f0]
call fcn.00401db0
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x4db0a0]
jmp 0x4112e6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x4df6f4]
push dword [ecx + 0x4df6f0]
call fcn.00401db0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edx, dword [0x4db0a0]
jmp 0x4111e9
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4df6f4]
push dword [edx + 0x4df6f0]
call fcn.00401db0
add esp, 8
mov eax, dword [0x4db0a0]
jmp 0x411260
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 4], 0
mov dword [edi], eax
jmp 0x4111a6
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4df6f0]
push eax
call fcn.00401d80
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4110f9
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4df6e0], eax
mov dword [ecx + 0x4df6e4], 0
jmp 0x4110ae