Function at 0x41b770
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 0x41b792
cmp ebx, 0x69
jge 0x41bc0d
inc ebx
lea eax, [ebx*4]
mov edx, ebx
shl edx, 5
sub edx, eax
cmp ebx, 0x272
jge 0x41b98b
mov esi, edx
cmp dword [esi + 0x4f2078], 0
je 0x41b978
cmp ebx, 0x69
jge 0x41b8c8
cmp dword [esi + 0x4f206c], 0
je 0x41b7f3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x4f2068]
jne 0x41b7f3
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 [0x4ee720], 2
jge 0x41b81b
mov eax, dword [esi + 0x4f2064]
test eax, eax
je 0x41b80d
mov eax, 0x98
jmp 0x41b85f
mov dword [esi + 0x4f2064], 1
xor eax, eax
jmp 0x41b85f
lea edi, [esi + 0x4f2064]
push edi
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41b833
mov eax, 0x98
jmp 0x41b85f
cmp dword [esi + 0x4f2060], 0
je 0x41b9d2
mov dword [esi + 0x4f2064], 0
push 0xffffffffffffffff
push dword [esi + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41b86a
mov eax, 0x98
jmp 0x41b882
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x4f206c], 1
mov dword [esi + 0x4f2068], eax
xor eax, eax
test eax, eax
jne 0x41b9ca
mov edi, dword [esi + 0x4f2078]
test edi, edi
jne 0x41b9a0
cmp dword [0x4ee720], 2
mov dword [esi + 0x4f206c], 0
mov dword [esi + 0x4f2068], 0xffffffff
jge 0x41b962
mov dword [esi + 0x4f2064], 0
jmp 0x41b978
mov ecx, dword [0x4ee720]
cmp ecx, 2
jge 0x41b8e9
mov eax, dword [esi + 0x4f2064]
test eax, eax
jne 0x41b92c
mov dword [esi + 0x4f2064], 1
jmp 0x41b92c
lea edi, [esi + 0x4f2064]
push edi
call fcn.00410ec0
pop ecx
test eax, eax
jne 0x41b926
cmp dword [esi + 0x4f2060], 0
je 0x41bbed
mov dword [esi + 0x4f2064], 0
push 0xffffffffffffffff
push dword [esi + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.00410ec0
pop ecx
mov ecx, dword [0x4ee720]
cmp ecx, 1
je 0x41bbdb
mov edi, dword [esi + 0x4f2078]
test edi, edi
jne 0x41ba10
mov eax, dword [0x4ee720]
cmp eax, 1
je 0x41b9f2
cmp eax, 2
jge 0x41b962
mov dword [esi + 0x4f2064], 0
jmp 0x41b978
push dword [esi + 0x4f2060]
mov dword [esi + 0x4f2064], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esi, 0x1c
inc ebx
cmp ebx, 0x272
jl 0x41b7af
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.0041c030
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 0x41b7e4
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x4f2064], 0
mov dword [esi + 0x4f2060], eax
jmp 0x41b84a
push dword [esi + 0x4f2074]
push dword [esi + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [0x4ee720]
jmp 0x41b951
cmp dword [edi + 0xc], 0
mov edx, esi
mov esi, dword [ebp + 0xc]
je 0x41ba36
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
jne 0x41ba36
mov eax, 0x28
jmp 0x41baca
cmp dword [0x4ee720], 2
jge 0x41ba58
mov eax, dword [edi + 4]
test eax, eax
je 0x41ba4d
mov eax, 0x98
jmp 0x41baa3
mov dword [edi + 4], 1
xor eax, eax
jmp 0x41baa3
mov dword [ebp - 0x10], edx
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00410ec0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x41ba78
mov eax, 0x98
jmp 0x41baa3
cmp dword [edi], 0
je 0x41bbbc
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.00410ec0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x41baae
mov eax, 0x98
jmp 0x41bac6
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 0x41bb15
mov ecx, dword [0x4ee720]
cmp ecx, 1
je 0x41bb6d
cmp ecx, 2
jge 0x41baea
mov dword [edx + 0x4f2064], 0
jmp 0x41bb06
push dword [edx + 0x4f2060]
mov dword [edx + 0x4f2064], 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 [0x4ee720]
cmp eax, 1
je 0x41bb98
cmp eax, 2
jge 0x41bb30
mov dword [edx + 0x4f2064], 0
jmp 0x41bb46
push dword [edx + 0x4f2060]
mov dword [edx + 0x4f2064], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.0041c030
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 + 0x4f2074]
push dword [edx + 0x4f2070]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call fcn.00410ea0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [0x4ee720]
jmp 0x41bad9
push dword [edx + 0x4f2074]
push dword [edx + 0x4f2070]
mov dword [ebp - 0x10], edx
call fcn.00410ea0
mov edx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [0x4ee720]
jmp 0x41bb1f
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 0x41ba88
lea eax, [esi + 0x4f2070]
push eax
call fcn.00410e70
pop ecx
jmp 0x41b935
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x4f2064], 0
mov dword [esi + 0x4f2060], eax
jmp 0x41b911
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 [0x4ee720]
lea eax, [edx + 0x69]
mov dword [ebp - 0x10], eax
cmp ecx, 2
jge 0x41bc69
lea edi, [edx*4 + 0x1a4]
lea edx, [edi*8]
sub edx, edi
mov edi, dword [edx + 0x4f2064]
test edi, edi
jne 0x41bd00
mov dword [edx + 0x4f2064], 1
mov eax, dword [ebp - 0x10]
jmp 0x41bd00
lea eax, [edx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x4f2064]
push ecx
call fcn.00410ec0
pop ecx
test eax, eax
jne 0x41bcf7
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4f2060], 0
je 0x41bffb
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4f2064], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2060]
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 + 0x4f2064]
push ecx
call fcn.00410ec0
pop ecx
mov ecx, dword [0x4ee720]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x41bfda
lea ecx, [eax*4]
mov edx, eax
shl edx, 5
sub edx, ecx
mov edi, dword [edx + 0x4f2078]
test edi, edi
je 0x41bd33
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf8]
jle 0x41bd33
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x41bd24
test edi, edi
je 0x41beeb
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf8]
jne 0x41bd51
mov edi, dword [edi + 0x28]
test edi, edi
je 0x41beeb
cmp dword [edi + 0xc], 0
je 0x41bd6c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 8]
jne 0x41bd6c
mov eax, 0x28
jmp 0x41bdea
cmp dword [0x4ee720], 2
jge 0x41bd8e
mov eax, dword [edi + 4]
test eax, eax
je 0x41bd83
mov eax, 0x98
jmp 0x41bdc9
mov dword [edi + 4], 1
xor eax, eax
jmp 0x41bdc9
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41bda6
mov eax, 0x98
jmp 0x41bdc9
cmp dword [edi], 0
je 0x41bfc1
mov dword [edi + 4], 0
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call fcn.00410ec0
pop ecx
test eax, eax
je 0x41bdd4
mov eax, 0x98
jmp 0x41bde6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0xc], 1
mov dword [edi + 8], eax
xor eax, eax
test eax, eax
je 0x41be62
mov edx, dword [0x4ee720]
cmp edx, 1
je 0x41bf60
cmp edx, 2
jge 0x41be19
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4f2064], 0
jmp 0x41be53
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4f2064], 0
mov edx, dword [ebp - 0x10]
lea edi, [edx*4]
shl edx, 5
sub edx, edi
push dword [edx + 0x4f2060]
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 [0x4ee720]
cmp eax, 1
je 0x41bf94
cmp eax, 2
jge 0x41be90
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
jmp 0x41bec4
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f2064], 0
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx*4]
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.0041c030
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 [0x4ee720]
cmp ecx, 1
je 0x41bf41
lea edx, [eax*4]
shl eax, 5
sub eax, edx
cmp ecx, 2
jge 0x41bf13
mov dword [eax + 0x4f2064], 0
jmp 0x41bf38
mov dword [eax + 0x4f2064], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2060]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0x10]
inc ebx
jmp 0x41b793
push dword [edx + 0x4f2074]
push dword [edx + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x4ee720]
jmp 0x41bef6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x4f2074]
push dword [ecx + 0x4f2070]
call fcn.00410ea0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edx, dword [0x4ee720]
jmp 0x41bdf9
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f2074]
push dword [edx + 0x4f2070]
call fcn.00410ea0
add esp, 8
mov eax, dword [0x4ee720]
jmp 0x41be70
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 0x41bdb6
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4f2070]
push eax
call fcn.00410e70
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41bd09
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 + 0x4f2060], eax
mov dword [ecx + 0x4f2064], 0
jmp 0x41bcbe