Function at 0x41b6c0
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 0x41b6e2
cmp ebx, 0x69
jge 0x41bb5d
inc ebx
lea eax, [ebx*4]
mov edx, ebx
shl edx, 5
sub edx, eax
cmp ebx, 0x272
jge 0x41b8db
mov esi, edx
cmp dword [esi + 0x4e4df8], 0
je 0x41b8c8
cmp ebx, 0x69
jge 0x41b818
cmp dword [esi + 0x4e4dec], 0
je 0x41b743
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x4e4de8]
jne 0x41b743
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 [0x4e1720], 2
jge 0x41b76b
mov eax, dword [esi + 0x4e4de4]
test eax, eax
je 0x41b75d
mov eax, 0x98
jmp 0x41b7af
mov dword [esi + 0x4e4de4], 1
xor eax, eax
jmp 0x41b7af
lea edi, [esi + 0x4e4de4]
push edi
call fcn.00410e10
pop ecx
test eax, eax
je 0x41b783
mov eax, 0x98
jmp 0x41b7af
cmp dword [esi + 0x4e4de0], 0
je 0x41b922
mov dword [esi + 0x4e4de4], 0
push 0xffffffffffffffff
push dword [esi + 0x4e4de0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.00410e10
pop ecx
test eax, eax
je 0x41b7ba
mov eax, 0x98
jmp 0x41b7d2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x4e4dec], 1
mov dword [esi + 0x4e4de8], eax
xor eax, eax
test eax, eax
jne 0x41b91a
mov edi, dword [esi + 0x4e4df8]
test edi, edi
jne 0x41b8f0
cmp dword [0x4e1720], 2
mov dword [esi + 0x4e4dec], 0
mov dword [esi + 0x4e4de8], 0xffffffff
jge 0x41b8b2
mov dword [esi + 0x4e4de4], 0
jmp 0x41b8c8
mov ecx, dword [0x4e1720]
cmp ecx, 2
jge 0x41b839
mov eax, dword [esi + 0x4e4de4]
test eax, eax
jne 0x41b87c
mov dword [esi + 0x4e4de4], 1
jmp 0x41b87c
lea edi, [esi + 0x4e4de4]
push edi
call fcn.00410e10
pop ecx
test eax, eax
jne 0x41b876
cmp dword [esi + 0x4e4de0], 0
je 0x41bb3d
mov dword [esi + 0x4e4de4], 0
push 0xffffffffffffffff
push dword [esi + 0x4e4de0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.00410e10
pop ecx
mov ecx, dword [0x4e1720]
cmp ecx, 1
je 0x41bb2b
mov edi, dword [esi + 0x4e4df8]
test edi, edi
jne 0x41b960
mov eax, dword [0x4e1720]
cmp eax, 1
je 0x41b942
cmp eax, 2
jge 0x41b8b2
mov dword [esi + 0x4e4de4], 0
jmp 0x41b8c8
push dword [esi + 0x4e4de0]
mov dword [esi + 0x4e4de4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esi, 0x1c
inc ebx
cmp ebx, 0x272
jl 0x41b6ff
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.0041bf80
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 0x41b734
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x4e4de4], 0
mov dword [esi + 0x4e4de0], eax
jmp 0x41b79a
push dword [esi + 0x4e4df4]
push dword [esi + 0x4e4df0]
call fcn.00410df0
add esp, 8
mov eax, dword [0x4e1720]
jmp 0x41b8a1
cmp dword [edi + 0xc], 0
mov edx, esi
mov esi, dword [ebp + 0xc]
je 0x41b986
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
jne 0x41b986
mov eax, 0x28
jmp 0x41ba1a
cmp dword [0x4e1720], 2
jge 0x41b9a8
mov eax, dword [edi + 4]
test eax, eax
je 0x41b99d
mov eax, 0x98
jmp 0x41b9f3
mov dword [edi + 4], 1
xor eax, eax
jmp 0x41b9f3
mov dword [ebp - 0x10], edx
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00410e10
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x41b9c8
mov eax, 0x98
jmp 0x41b9f3
cmp dword [edi], 0
je 0x41bb0c
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.00410e10
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x41b9fe
mov eax, 0x98
jmp 0x41ba16
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 0x41ba65
mov ecx, dword [0x4e1720]
cmp ecx, 1
je 0x41babd
cmp ecx, 2
jge 0x41ba3a
mov dword [edx + 0x4e4de4], 0
jmp 0x41ba56
push dword [edx + 0x4e4de0]
mov dword [edx + 0x4e4de4], 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 [0x4e1720]
cmp eax, 1
je 0x41bae8
cmp eax, 2
jge 0x41ba80
mov dword [edx + 0x4e4de4], 0
jmp 0x41ba96
push dword [edx + 0x4e4de0]
mov dword [edx + 0x4e4de4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.0041bf80
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 + 0x4e4df4]
push dword [edx + 0x4e4df0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call fcn.00410df0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [0x4e1720]
jmp 0x41ba29
push dword [edx + 0x4e4df4]
push dword [edx + 0x4e4df0]
mov dword [ebp - 0x10], edx
call fcn.00410df0
mov edx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [0x4e1720]
jmp 0x41ba6f
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 0x41b9d8
lea eax, [esi + 0x4e4df0]
push eax
call fcn.00410dc0
pop ecx
jmp 0x41b885
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x4e4de4], 0
mov dword [esi + 0x4e4de0], eax
jmp 0x41b861
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 [0x4e1720]
lea eax, [edx + 0x69]
mov dword [ebp - 0x10], eax
cmp ecx, 2
jge 0x41bbb9
lea edi, [edx*4 + 0x1a4]
lea edx, [edi*8]
sub edx, edi
mov edi, dword [edx + 0x4e4de4]
test edi, edi
jne 0x41bc50
mov dword [edx + 0x4e4de4], 1
mov eax, dword [ebp - 0x10]
jmp 0x41bc50
lea eax, [edx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x4e4de4]
push ecx
call fcn.00410e10
pop ecx
test eax, eax
jne 0x41bc47
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4e4de0], 0
je 0x41bf4b
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4e4de4], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e4de0]
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 + 0x4e4de4]
push ecx
call fcn.00410e10
pop ecx
mov ecx, dword [0x4e1720]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x41bf2a
lea ecx, [eax*4]
mov edx, eax
shl edx, 5
sub edx, ecx
mov edi, dword [edx + 0x4e4df8]
test edi, edi
je 0x41bc83
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf8]
jle 0x41bc83
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x41bc74
test edi, edi
je 0x41be3b
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf8]
jne 0x41bca1
mov edi, dword [edi + 0x28]
test edi, edi
je 0x41be3b
cmp dword [edi + 0xc], 0
je 0x41bcbc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 8]
jne 0x41bcbc
mov eax, 0x28
jmp 0x41bd3a
cmp dword [0x4e1720], 2
jge 0x41bcde
mov eax, dword [edi + 4]
test eax, eax
je 0x41bcd3
mov eax, 0x98
jmp 0x41bd19
mov dword [edi + 4], 1
xor eax, eax
jmp 0x41bd19
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00410e10
pop ecx
test eax, eax
je 0x41bcf6
mov eax, 0x98
jmp 0x41bd19
cmp dword [edi], 0
je 0x41bf11
mov dword [edi + 4], 0
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call fcn.00410e10
pop ecx
test eax, eax
je 0x41bd24
mov eax, 0x98
jmp 0x41bd36
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0xc], 1
mov dword [edi + 8], eax
xor eax, eax
test eax, eax
je 0x41bdb2
mov edx, dword [0x4e1720]
cmp edx, 1
je 0x41beb0
cmp edx, 2
jge 0x41bd69
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4e4de4], 0
jmp 0x41bda3
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4e4de4], 0
mov edx, dword [ebp - 0x10]
lea edi, [edx*4]
shl edx, 5
sub edx, edi
push dword [edx + 0x4e4de0]
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 [0x4e1720]
cmp eax, 1
je 0x41bee4
cmp eax, 2
jge 0x41bde0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e4de4], 0
jmp 0x41be14
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e4de4], 0
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx*4]
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4e4de0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.0041bf80
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 [0x4e1720]
cmp ecx, 1
je 0x41be91
lea edx, [eax*4]
shl eax, 5
sub eax, edx
cmp ecx, 2
jge 0x41be63
mov dword [eax + 0x4e4de4], 0
jmp 0x41be88
mov dword [eax + 0x4e4de4], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e4de0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0x10]
inc ebx
jmp 0x41b6e3
push dword [edx + 0x4e4df4]
push dword [edx + 0x4e4df0]
call fcn.00410df0
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x4e1720]
jmp 0x41be46
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x4e4df4]
push dword [ecx + 0x4e4df0]
call fcn.00410df0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edx, dword [0x4e1720]
jmp 0x41bd49
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e4df4]
push dword [edx + 0x4e4df0]
call fcn.00410df0
add esp, 8
mov eax, dword [0x4e1720]
jmp 0x41bdc0
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 0x41bd06
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4e4df0]
push eax
call fcn.00410dc0
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41bc59
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 + 0x4e4de0], eax
mov dword [ecx + 0x4e4de4], 0
jmp 0x41bc0e