Function at 0x4203f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
mov edi, dword [eax]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], esi
je 0x420418
jle 0x420760
cmp edi, 0x68
jg 0x42075b
inc edi
mov ecx, edi
mov edx, edi
mov esi, edi
test ecx, ecx
js 0x420743
cmp ecx, 0x271
jg 0x420743
mov ebx, ecx
lea eax, [ecx*4]
shl ebx, 5
sub ebx, eax
mov eax, dword [ebx + 0x4f3b38]
test eax, eax
je 0x420738
mov dword [ebp - 0x14], esi
cmp ecx, 0x68
jg 0x4205f1
cmp dword [ebx + 0x4f3b2c], 0
je 0x42049c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
mov esi, edx
shl esi, 5
mov ecx, edx
lea ebx, [edx*4]
sub esi, ebx
cmp eax, dword [esi + 0x4f3b28]
jne 0x42049c
mov eax, 0x28
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov dword [edx], edi
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
cmp dword [0x4e73a0], 2
jge 0x4204e2
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov ecx, dword [ecx + 0x4f3b24]
test ecx, ecx
je 0x4204c5
mov eax, 0x98
jmp 0x420568
lea eax, [edx*4]
shl edx, 5
sub edx, eax
xor eax, eax
mov dword [edx + 0x4f3b24], 1
jmp 0x420568
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea edx, [edx + 0x4f3b24]
push edx
call fcn.0040b500
add esp, 4
test eax, eax
je 0x420508
mov eax, 0x98
jmp 0x420568
mov edx, dword [ebp - 0x14]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x4f3b20], 0
je 0x420a81
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
test eax, eax
je 0x420573
mov eax, 0x98
jmp 0x42059a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4f3b28], eax
xor eax, eax
mov dword [ecx + 0x4f3b2c], 1
test eax, eax
jne 0x42048a
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shl edx, 5
lea eax, [ecx*4]
sub edx, eax
mov ebx, dword [edx + 0x4f3b38]
test ebx, ebx
jne 0x420a50
mov dword [edx + 0x4f3b2c], 0
mov dword [edx + 0x4f3b28], 0xffffffff
cmp dword [0x4e73a0], 2
jge 0x420713
mov dword [edx + 0x4f3b24], 0
jmp 0x420738
mov esi, 0x7fffffff
mov ecx, dword [eax + 0x100]
cmp ecx, esi
mov eax, dword [eax + 0x28]
jge 0x420605
mov esi, ecx
test eax, eax
jne 0x4205f6
mov eax, dword [0x4e73a0]
cmp eax, 2
jge 0x42063f
mov ecx, dword [ebx + 0x4f3b24]
test ecx, ecx
jne 0x4206cd
lea ecx, [edx*4]
shl edx, 5
sub edx, ecx
mov dword [edx + 0x4f3b24], 1
mov edx, dword [ebp - 0x14]
jmp 0x4206cd
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea edx, [edx + 0x4f3b24]
push edx
call fcn.0040b500
add esp, 4
mov edx, dword [ebp - 0x14]
test eax, eax
je 0x420668
mov eax, dword [0x4e73a0]
jmp 0x4206cd
mov ecx, edx
lea eax, [edx*4]
shl ecx, 5
sub ecx, eax
cmp dword [ecx + 0x4f3b20], 0
je 0x420d0d
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 eax, dword [0x4e73a0]
mov edx, dword [ebp - 0x14]
cmp eax, 1
je 0x420cea
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov ebx, dword [edx + 0x4f3b38]
test ebx, ebx
jne 0x420ae2
mov ebx, dword [0x4e73a0]
cmp ebx, 1
je 0x420ab2
mov ecx, dword [ebp - 0x14]
cmp ebx, 2
jge 0x420713
mov dword [edx + 0x4f3b24], 0
jmp 0x420738
mov dword [edx + 0x4f3b24], 0
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
push dword [ecx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x14]
inc ecx
mov edx, ecx
mov esi, ecx
jns 0x420427
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], 0xffffffff
mov esp, ebp
pop ebp
ret
lea esi, [edi - 5]
jmp 0x420762
mov esi, edi
cmp esi, 0xfffffffa
lea ecx, [esi + 5]
jg 0x42076c
mov ecx, esi
mov eax, 0xfb93e673
mul ecx
shr edx, 9
imul ebx, edx, 0x209
sub ecx, ebx
mov ebx, dword [0x4e73a0]
cmp ebx, 2
lea eax, [ecx + 0x69]
mov dword [ebp - 0x14], eax
jge 0x4207bc
lea ecx, [ecx*4 + 0x1a4]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [edx + 0x4f3b24]
test ecx, ecx
jne 0x420856
mov dword [edx + 0x4f3b24], 1
jmp 0x420856
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 0x42084d
mov edx, dword [ebp - 0x14]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x4f3b20], 0
je 0x420e64
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 ebx, dword [0x4e73a0]
mov eax, dword [ebp - 0x14]
cmp ebx, 1
je 0x420e41
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov edx, dword [eax + 0x4f3b38]
mov ebx, edx
test edx, edx
je 0x42088c
cmp esi, dword [ebx + 0x100]
jbe 0x420e34
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x420877
test edx, edx
je 0x4208c5
mov dword [ebp - 0x10], edi
mov ecx, 0x7fffffff
mov edi, dword [edx + 0x100]
cmp edi, ecx
mov edx, dword [edx + 0x28]
jge 0x4208a5
mov ecx, edi
test edx, edx
jne 0x420896
mov edi, dword [ebp - 0x10]
cmp ecx, 0x7fffffff
je 0x4208c5
mov edi, 5
cmp ecx, 0xfffffffa
jg 0x4208c3
mov edi, 0
add edi, ecx
mov edx, dword [ebp + 0xc]
test ebx, ebx
mov dword [edx], edi
je 0x420d3e
cmp esi, dword [ebx + 0x100]
jne 0x4208e5
mov ebx, dword [ebx + 0x28]
test ebx, ebx
je 0x420d3e
cmp dword [ebx + 0xc], 0
je 0x4208fd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx + 8]
jne 0x4208fd
mov esi, 0x28
jmp 0x42097a
cmp dword [0x4e73a0], 2
jge 0x42091f
mov eax, dword [ebx + 4]
test eax, eax
je 0x420914
mov eax, 0x98
jmp 0x420959
mov dword [ebx + 4], 1
xor eax, eax
jmp 0x420959
lea esi, [ebx + 4]
push esi
call fcn.0040b500
add esp, 4
test eax, eax
je 0x420936
mov eax, 0x98
jmp 0x420959
cmp dword [ebx], 0
je 0x420e1b
mov dword [ebx + 4], 0
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.0040b500
add esp, 4
test eax, eax
je 0x420964
mov esi, 0x98
jmp 0x420976
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
xor esi, esi
mov dword [ebx + 0xc], 1
test esi, esi
je 0x4209e1
mov eax, dword [0x4e73a0]
cmp eax, 1
je 0x420dc1
cmp eax, 2
jge 0x4209a8
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
jmp 0x4209cd
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
push dword [edx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0xc]
mov eax, esi
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov dword [edx], edi
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4e73a0]
cmp eax, 1
je 0x420dee
cmp eax, 2
jge 0x420a0f
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
jmp 0x420a34
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
push dword [edx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov edx, dword [ebp + 0x10]
call fcn.00420ea0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov edx, dword [ebp + 0x10]
call fcn.00420ea0
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], ebx
mov ecx, dword [ebx + 0x100]
cmp ecx, 0xfffffffa
lea ebx, [ecx + 5]
jg 0x420a75
mov ebx, ecx
mov dword [esi], ebx
mov ebx, dword [ebp - 4]
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 - 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 0x420530
push dword [edx + 0x4f3b34]
push dword [edx + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shl edx, 5
mov ebx, dword [0x4e73a0]
lea eax, [ecx*4]
sub edx, eax
jmp 0x420702
cmp dword [ebx + 0xc], 0
je 0x420afd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx + 8]
jne 0x420afd
mov edi, 0x28
jmp 0x420b7a
cmp dword [0x4e73a0], 2
jge 0x420b1f
mov eax, dword [ebx + 4]
test eax, eax
je 0x420b14
mov eax, 0x98
jmp 0x420b59
mov dword [ebx + 4], 1
xor eax, eax
jmp 0x420b59
lea edi, [ebx + 4]
push edi
call fcn.0040b500
add esp, 4
test eax, eax
je 0x420b36
mov eax, 0x98
jmp 0x420b59
cmp dword [ebx], 0
je 0x420cd1
mov dword [ebx + 4], 0
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.0040b500
add esp, 4
test eax, eax
je 0x420b64
mov edi, 0x98
jmp 0x420b76
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
xor edi, edi
mov dword [ebx + 0xc], 1
test edi, edi
je 0x420bf2
mov eax, dword [0x4e73a0]
cmp eax, 1
je 0x420c77
cmp eax, 2
jge 0x420ba8
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
jmp 0x420bcd
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
push dword [edx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, 5
cmp esi, 0xfffffffa
mov ecx, dword [ebp + 0xc]
mov eax, edi
jg 0x420be1
mov edx, 0
add esi, edx
mov dword [ecx], esi
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4e73a0]
cmp eax, 1
je 0x420ca4
cmp eax, 2
jge 0x420c20
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
jmp 0x420c45
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4f3b24], 0
push dword [edx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov edx, dword [ebp + 0x10]
call fcn.00420ea0
mov edx, dword [ebp + 8]
mov ecx, 5
cmp esi, 0xfffffffa
jg 0x420c61
mov ecx, 0
mov dword [edx], ebx
add esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
mov dword [ebx], esi
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f3b34]
push dword [edx + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov eax, dword [0x4e73a0]
jmp 0x420b88
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f3b34]
push dword [edx + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov eax, dword [0x4e73a0]
jmp 0x420c00
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx], eax
mov dword [ebx + 4], 0
jmp 0x420b46
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea edx, [edx + 0x4f3b30]
push edx
call fcn.0040b4b0
add esp, 4
mov edx, dword [ebp - 0x14]
jmp 0x4206d6
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 0x42068d
mov ebx, dword [0x4e73a0]
cmp ebx, 1
je 0x420d94
mov ecx, dword [ebp - 0x14]
cmp ebx, 2
jge 0x420d5d
mov dword [eax + 0x4f3b24], 0
jmp 0x420d82
mov dword [eax + 0x4f3b24], 0
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
push dword [ecx + 0x4f3b20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
inc ecx
mov esi, ecx
lea eax, [edi + 1]
mov dword [edx], eax
mov edx, ecx
jmp 0x42041f
push dword [eax + 0x4f3b34]
push dword [eax + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov eax, ecx
shl eax, 5
mov ebx, dword [0x4e73a0]
lea edx, [ecx*4]
sub eax, edx
jmp 0x420d4c
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f3b34]
push dword [edx + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov eax, dword [0x4e73a0]
jmp 0x420988
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4f3b34]
push dword [edx + 0x4f3b30]
call fcn.0040b4e0
add esp, 8
mov eax, dword [0x4e73a0]
jmp 0x4209ef
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx], eax
mov dword [ebx + 4], 0
jmp 0x420946
test edx, edx
jne 0x42088e
jmp 0x4208c5
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x4f3b30]
push eax
call fcn.0040b4b0
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x42085f
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 0x420815