Function at 0x420b98
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x4212f4
cmp esi, 0x69
jge 0x421024
add esi, 1
cmp esi, 0x272
jge 0x420df1
mov eax, esi
shl eax, 2
mov edi, esi
shl edi, 5
sub edi, eax
mov edx, dword [edi + 0x4a6d18]
test edx, edx
je 0x420ddf
cmp esi, 0x69
jge 0x420d11
mov eax, dword [edi + 0x4a6d0c]
test eax, eax
je 0x420c1f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 0x4a6d08]
jne 0x420c1f
mov ebx, dword [ebp + 0xc]
mov eax, 0x28
mov edi, dword [ebp - 0x10]
mov dword [ebx], esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x420c48
mov eax, dword [edi + 0x4a6d04]
test eax, eax
je 0x420c3a
mov eax, 0x98
jmp 0x420c8d
mov dword [edi + 0x4a6d04], 1
xor eax, eax
jmp 0x420c8d
lea ebx, [edi + 0x4a6d04]
push ebx
call fcn.004101ac
pop ecx
test eax, eax
je 0x420c60
mov eax, 0x98
jmp 0x420c8d
mov eax, dword [edi + 0x4a6d00]
test eax, eax
je 0x420e39
mov dword [edi + 0x4a6d04], 0
push 0xffffffffffffffff
push dword [edi + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004101ac
pop ecx
test eax, eax
je 0x420c98
mov eax, 0x98
jmp 0x420cb0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x4a6d0c], 1
mov dword [edi + 0x4a6d08], eax
xor eax, eax
test eax, eax
jne 0x420e31
mov eax, dword [edi + 0x4a6d18]
mov dword [ebp - 4], eax
test eax, eax
jne 0x420e06
mov eax, dword [0x4a1100]
mov dword [edi + 0x4a6d0c], 0
cmp eax, 2
mov dword [edi + 0x4a6d08], 0xffffffff
jge 0x420cf6
mov dword [edi + 0x4a6d04], 0
jmp 0x420ddf
push dword [edi + 0x4a6d00]
mov dword [edi + 0x4a6d04], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x420ddf
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x420d31
mov eax, dword [edi + 0x4a6d04]
test eax, eax
jne 0x420d6f
mov dword [edi + 0x4a6d04], 1
jmp 0x420d6f
lea ebx, [edi + 0x4a6d04]
push ebx
call fcn.004101ac
pop ecx
test eax, eax
jne 0x420d6f
mov eax, dword [edi + 0x4a6d00]
test eax, eax
je 0x421004
mov dword [edi + 0x4a6d04], 0
push 0xffffffffffffffff
push dword [edi + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004101ac
pop ecx
mov eax, dword [0x4a1100]
test eax, eax
jle 0x420d85
lea eax, [edi + 0x4a6d10]
push eax
call fcn.00410278
pop ecx
mov edx, dword [edi + 0x4a6d18]
mov dword [ebp - 4], edx
test edx, edx
jne 0x420e59
mov eax, dword [0x4a1100]
test eax, eax
jle 0x420dbd
push dword [edi + 0x4a6d14]
push dword [edi + 0x4a6d10]
call fcn.004103a8
add esp, 8
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x420dc9
mov dword [edi + 0x4a6d04], 0
jmp 0x420ddf
push dword [edi + 0x4a6d00]
mov dword [edi + 0x4a6d04], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esi, 1
cmp esi, 0x272
jl 0x420bcd
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebx], 0xffffffff
xor eax, eax
mov ebx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00421300
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov dword [edx], ecx
mov esi, dword [ecx + 0xb8]
add esi, 5
mov dword [ebx], esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
jmp 0x420c10
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x4a6d04], 0
mov dword [edi + 0x4a6d00], eax
jmp 0x420c78
mov ebx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x420e7b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jne 0x420e7b
mov edx, 0x28
jmp 0x420f0b
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x420ea1
mov eax, dword [edx + 4]
test eax, eax
je 0x420e93
mov eax, 0x98
jmp 0x420ee4
mov eax, dword [ebp - 4]
mov dword [eax + 4], 1
xor eax, eax
jmp 0x420ee4
add edx, 4
push edx
call fcn.004101ac
pop ecx
test eax, eax
je 0x420eb6
mov eax, 0x98
jmp 0x420ee4
mov edx, dword [ebp - 4]
mov eax, dword [edx]
test eax, eax
je 0x420fe5
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.004101ac
pop ecx
test eax, eax
je 0x420eef
mov edx, 0x98
jmp 0x420f07
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], 1
test edx, edx
je 0x420f71
mov eax, dword [0x4a1100]
test eax, eax
jle 0x420f38
push dword [edi + 0x4a6d14]
push dword [edi + 0x4a6d10]
mov dword [ebp - 0x1c], edx
call fcn.004103a8
mov edx, dword [ebp - 0x1c]
add esp, 8
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x420f44
mov dword [edi + 0x4a6d04], 0
jmp 0x420f60
push dword [edi + 0x4a6d00]
mov dword [edi + 0x4a6d04], 0
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
mov dword [ebx], esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov eax, edx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a1100]
test eax, eax
jle 0x420f98
push dword [edi + 0x4a6d14]
push dword [edi + 0x4a6d10]
call fcn.004103a8
add esp, 8
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x420fa4
mov dword [edi + 0x4a6d04], 0
jmp 0x420fba
push dword [edi + 0x4a6d00]
mov dword [edi + 0x4a6d04], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
call fcn.00421300
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov dword [edx], ecx
mov esi, dword [ecx + 0xb8]
add esi, 5
mov dword [ebx], esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
jmp 0x420eca
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x4a6d04], 0
mov dword [edi + 0x4a6d00], eax
jmp 0x420d5a
lea edx, [ebp - 0x14]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x18]
lea edi, [esi - 5]
mov eax, edi
lea ecx, [ebp - 4]
call fcn.00420520
test eax, eax
jne 0x420c10
mov edx, dword [ebp - 4]
test edx, edx
je 0x42124d
cmp edi, dword [edx + 0xb8]
jne 0x421064
mov edx, dword [edx + 0x18]
mov dword [ebp - 4], edx
test edx, edx
je 0x42124d
mov eax, dword [edx + 0xc]
test eax, eax
je 0x421083
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jne 0x421083
mov edi, 0x28
jmp 0x421117
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x4210a9
mov eax, dword [edx + 4]
test eax, eax
je 0x42109b
mov eax, 0x98
jmp 0x4210ec
mov eax, dword [ebp - 4]
mov dword [eax + 4], 1
xor eax, eax
jmp 0x4210ec
add edx, 4
push edx
call fcn.004101ac
pop ecx
test eax, eax
je 0x4210be
mov eax, 0x98
jmp 0x4210ec
mov edx, dword [ebp - 4]
mov eax, dword [edx]
test eax, eax
je 0x4212d5
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.004101ac
pop ecx
test eax, eax
je 0x4210f7
mov edi, 0x98
jmp 0x42110f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
xor edi, edi
mov dword [eax + 0xc], 1
test edi, edi
je 0x4211a5
mov eax, dword [0x4a1100]
test eax, eax
jle 0x42114b
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
push dword [edx + 0x4a6d14]
push dword [edx + 0x4a6d10]
call fcn.004103a8
add esp, 8
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x421164
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
jmp 0x421194
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
mov eax, dword [ebp - 0x18]
mov ecx, eax
shl ecx, 2
shl eax, 5
sub eax, ecx
push dword [eax + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebx], esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov eax, edi
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a1100]
test eax, eax
jle 0x4211d9
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
push dword [edx + 0x4a6d14]
push dword [edx + 0x4a6d10]
call fcn.004103a8
add esp, 8
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x4211f2
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
jmp 0x421222
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
mov esi, dword [ebp - 0x18]
mov ecx, esi
shl ecx, 2
shl esi, 5
sub esi, ecx
push dword [esi + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
call fcn.00421300
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov dword [edx], ecx
mov esi, dword [ecx + 0xb8]
add esi, 5
mov dword [ebx], esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a1100]
test eax, eax
jle 0x421281
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
push dword [edx + 0x4a6d14]
push dword [edx + 0x4a6d10]
call fcn.004103a8
add esp, 8
mov eax, dword [0x4a1100]
cmp eax, 2
jge 0x42129a
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
jmp 0x4212ca
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
shl edx, 5
sub edx, eax
mov dword [edx + 0x4a6d04], 0
mov esi, dword [ebp - 0x18]
mov ecx, esi
shl ecx, 2
shl esi, 5
sub esi, ecx
push dword [esi + 0x4a6d00]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebp - 0x18]
add esi, 1
jmp 0x420bc1
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
jmp 0x4210d2
mov esi, 0xffffffff
jmp 0x420bbe