Function at 0x426740
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 0x426768
jle 0x426ab0
cmp edi, 0x68
jg 0x426aab
inc edi
mov ecx, edi
mov edx, edi
mov esi, edi
test ecx, ecx
js 0x426a93
cmp ecx, 0x271
jg 0x426a93
mov ebx, ecx
lea eax, [ecx*4]
shl ebx, 5
sub ebx, eax
mov eax, dword [ebx + 0x2d58e78]
test eax, eax
je 0x426a88
mov dword [ebp - 0x14], esi
cmp ecx, 0x68
jg 0x426941
cmp dword [ebx + 0x2d58e6c], 0
je 0x4267ec
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 + 0x2d58e68]
jne 0x4267ec
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 [0x4fd5c0], 2
jge 0x426832
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov ecx, dword [ecx + 0x2d58e64]
test ecx, ecx
je 0x426815
mov eax, 0x98
jmp 0x4268b8
lea eax, [edx*4]
shl edx, 5
sub edx, eax
xor eax, eax
mov dword [edx + 0x2d58e64], 1
jmp 0x4268b8
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea edx, [edx + 0x2d58e64]
push edx
call fcn.0041a6f0
add esp, 4
test eax, eax
je 0x426858
mov eax, 0x98
jmp 0x4268b8
mov edx, dword [ebp - 0x14]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x2d58e60], 0
je 0x426dd1
mov dword [ecx + 0x2d58e64], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x2d58e60]
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 + 0x2d58e64]
push ecx
call fcn.0041a6f0
add esp, 4
test eax, eax
je 0x4268c3
mov eax, 0x98
jmp 0x4268ea
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 + 0x2d58e68], eax
xor eax, eax
mov dword [ecx + 0x2d58e6c], 1
test eax, eax
jne 0x4267da
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shl edx, 5
lea eax, [ecx*4]
sub edx, eax
mov ebx, dword [edx + 0x2d58e78]
test ebx, ebx
jne 0x426da0
mov dword [edx + 0x2d58e6c], 0
mov dword [edx + 0x2d58e68], 0xffffffff
cmp dword [0x4fd5c0], 2
jge 0x426a63
mov dword [edx + 0x2d58e64], 0
jmp 0x426a88
mov esi, 0x7fffffff
mov ecx, dword [eax + 0x100]
cmp ecx, esi
mov eax, dword [eax + 0x28]
jge 0x426955
mov esi, ecx
test eax, eax
jne 0x426946
mov eax, dword [0x4fd5c0]
cmp eax, 2
jge 0x42698f
mov ecx, dword [ebx + 0x2d58e64]
test ecx, ecx
jne 0x426a1d
lea ecx, [edx*4]
shl edx, 5
sub edx, ecx
mov dword [edx + 0x2d58e64], 1
mov edx, dword [ebp - 0x14]
jmp 0x426a1d
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea edx, [edx + 0x2d58e64]
push edx
call fcn.0041a6f0
add esp, 4
mov edx, dword [ebp - 0x14]
test eax, eax
je 0x4269b8
mov eax, dword [0x4fd5c0]
jmp 0x426a1d
mov ecx, edx
lea eax, [edx*4]
shl ecx, 5
sub ecx, eax
cmp dword [ecx + 0x2d58e60], 0
je 0x42705d
mov dword [ecx + 0x2d58e64], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x2d58e60]
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 + 0x2d58e64]
push ecx
call fcn.0041a6f0
add esp, 4
mov eax, dword [0x4fd5c0]
mov edx, dword [ebp - 0x14]
cmp eax, 1
je 0x42703a
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov ebx, dword [edx + 0x2d58e78]
test ebx, ebx
jne 0x426e32
mov ebx, dword [0x4fd5c0]
cmp ebx, 1
je 0x426e02
mov ecx, dword [ebp - 0x14]
cmp ebx, 2
jge 0x426a63
mov dword [edx + 0x2d58e64], 0
jmp 0x426a88
mov dword [edx + 0x2d58e64], 0
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
push dword [ecx + 0x2d58e60]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x14]
inc ecx
mov edx, ecx
mov esi, ecx
jns 0x426777
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 0x426ab2
mov esi, edi
cmp esi, 0xfffffffa
lea ecx, [esi + 5]
jg 0x426abc
mov ecx, esi
mov eax, 0xfb93e673
mul ecx
shr edx, 9
imul ebx, edx, 0x209
sub ecx, ebx
mov ebx, dword [0x4fd5c0]
cmp ebx, 2
lea eax, [ecx + 0x69]
mov dword [ebp - 0x14], eax
jge 0x426b0c
lea ecx, [ecx*4 + 0x1a4]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [edx + 0x2d58e64]
test ecx, ecx
jne 0x426ba6
mov dword [edx + 0x2d58e64], 1
jmp 0x426ba6
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x2d58e64]
push ecx
call fcn.0041a6f0
add esp, 4
test eax, eax
jne 0x426b9d
mov edx, dword [ebp - 0x14]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x2d58e60], 0
je 0x4271b4
mov ecx, edx
lea eax, [edx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x2d58e64], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x2d58e60]
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 + 0x2d58e64]
push ecx
call fcn.0041a6f0
add esp, 4
mov ebx, dword [0x4fd5c0]
mov eax, dword [ebp - 0x14]
cmp ebx, 1
je 0x427191
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov edx, dword [eax + 0x2d58e78]
mov ebx, edx
test edx, edx
je 0x426bdc
cmp esi, dword [ebx + 0x100]
jbe 0x427184
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x426bc7
test edx, edx
je 0x426c15
mov dword [ebp - 0x10], edi
mov ecx, 0x7fffffff
mov edi, dword [edx + 0x100]
cmp edi, ecx
mov edx, dword [edx + 0x28]
jge 0x426bf5
mov ecx, edi
test edx, edx
jne 0x426be6
mov edi, dword [ebp - 0x10]
cmp ecx, 0x7fffffff
je 0x426c15
mov edi, 5
cmp ecx, 0xfffffffa
jg 0x426c13
mov edi, 0
add edi, ecx
mov edx, dword [ebp + 0xc]
test ebx, ebx
mov dword [edx], edi
je 0x42708e
cmp esi, dword [ebx + 0x100]
jne 0x426c35
mov ebx, dword [ebx + 0x28]
test ebx, ebx
je 0x42708e
cmp dword [ebx + 0xc], 0
je 0x426c4d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx + 8]
jne 0x426c4d
mov esi, 0x28
jmp 0x426cca
cmp dword [0x4fd5c0], 2
jge 0x426c6f
mov eax, dword [ebx + 4]
test eax, eax
je 0x426c64
mov eax, 0x98
jmp 0x426ca9
mov dword [ebx + 4], 1
xor eax, eax
jmp 0x426ca9
lea esi, [ebx + 4]
push esi
call fcn.0041a6f0
add esp, 4
test eax, eax
je 0x426c86
mov eax, 0x98
jmp 0x426ca9
cmp dword [ebx], 0
je 0x42716b
mov dword [ebx + 4], 0
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.0041a6f0
add esp, 4
test eax, eax
je 0x426cb4
mov esi, 0x98
jmp 0x426cc6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
xor esi, esi
mov dword [ebx + 0xc], 1
test esi, esi
je 0x426d31
mov eax, dword [0x4fd5c0]
cmp eax, 1
je 0x427111
cmp eax, 2
jge 0x426cf8
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
jmp 0x426d1d
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
push dword [edx + 0x2d58e60]
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 [0x4fd5c0]
cmp eax, 1
je 0x42713e
cmp eax, 2
jge 0x426d5f
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
jmp 0x426d84
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
push dword [edx + 0x2d58e60]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov edx, dword [ebp + 0x10]
call fcn.004271f0
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.004271f0
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 0x426dc5
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 + 0x2d58e60], eax
mov dword [ebx + 0x2d58e64], 0
jmp 0x426880
push dword [edx + 0x2d58e74]
push dword [edx + 0x2d58e70]
call fcn.0041a6d0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shl edx, 5
mov ebx, dword [0x4fd5c0]
lea eax, [ecx*4]
sub edx, eax
jmp 0x426a52
cmp dword [ebx + 0xc], 0
je 0x426e4d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx + 8]
jne 0x426e4d
mov edi, 0x28
jmp 0x426eca
cmp dword [0x4fd5c0], 2
jge 0x426e6f
mov eax, dword [ebx + 4]
test eax, eax
je 0x426e64
mov eax, 0x98
jmp 0x426ea9
mov dword [ebx + 4], 1
xor eax, eax
jmp 0x426ea9
lea edi, [ebx + 4]
push edi
call fcn.0041a6f0
add esp, 4
test eax, eax
je 0x426e86
mov eax, 0x98
jmp 0x426ea9
cmp dword [ebx], 0
je 0x427021
mov dword [ebx + 4], 0
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.0041a6f0
add esp, 4
test eax, eax
je 0x426eb4
mov edi, 0x98
jmp 0x426ec6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
xor edi, edi
mov dword [ebx + 0xc], 1
test edi, edi
je 0x426f42
mov eax, dword [0x4fd5c0]
cmp eax, 1
je 0x426fc7
cmp eax, 2
jge 0x426ef8
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
jmp 0x426f1d
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
push dword [edx + 0x2d58e60]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, 5
cmp esi, 0xfffffffa
mov ecx, dword [ebp + 0xc]
mov eax, edi
jg 0x426f31
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 [0x4fd5c0]
cmp eax, 1
je 0x426ff4
cmp eax, 2
jge 0x426f70
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
jmp 0x426f95
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x2d58e64], 0
push dword [edx + 0x2d58e60]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov edx, dword [ebp + 0x10]
call fcn.004271f0
mov edx, dword [ebp + 8]
mov ecx, 5
cmp esi, 0xfffffffa
jg 0x426fb1
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 + 0x2d58e74]
push dword [edx + 0x2d58e70]
call fcn.0041a6d0
add esp, 8
mov eax, dword [0x4fd5c0]
jmp 0x426ed8
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x2d58e74]
push dword [edx + 0x2d58e70]
call fcn.0041a6d0
add esp, 8
mov eax, dword [0x4fd5c0]
jmp 0x426f50
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 0x426e96
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea edx, [edx + 0x2d58e70]
push edx
call fcn.0041a6a0
add esp, 4
mov edx, dword [ebp - 0x14]
jmp 0x426a26
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 + 0x2d58e60], eax
mov dword [ebx + 0x2d58e64], 0
jmp 0x4269dd
mov ebx, dword [0x4fd5c0]
cmp ebx, 1
je 0x4270e4
mov ecx, dword [ebp - 0x14]
cmp ebx, 2
jge 0x4270ad
mov dword [eax + 0x2d58e64], 0
jmp 0x4270d2
mov dword [eax + 0x2d58e64], 0
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
push dword [ecx + 0x2d58e60]
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 0x42676f
push dword [eax + 0x2d58e74]
push dword [eax + 0x2d58e70]
call fcn.0041a6d0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov eax, ecx
shl eax, 5
mov ebx, dword [0x4fd5c0]
lea edx, [ecx*4]
sub eax, edx
jmp 0x42709c
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x2d58e74]
push dword [edx + 0x2d58e70]
call fcn.0041a6d0
add esp, 8
mov eax, dword [0x4fd5c0]
jmp 0x426cd8
mov edx, dword [ebp - 0x14]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x2d58e74]
push dword [edx + 0x2d58e70]
call fcn.0041a6d0
add esp, 8
mov eax, dword [0x4fd5c0]
jmp 0x426d3f
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 0x426c96
test edx, edx
jne 0x426bde
jmp 0x426c15
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x2d58e70]
push eax
call fcn.0041a6a0
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x426baf
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 + 0x2d58e60], eax
mov dword [ebx + 0x2d58e64], 0
jmp 0x426b65