Function at 0x425f40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [0x4f79a4]
test edx, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
jle 0x426915
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, dword [0x4f79a8]
jne 0x425f7e
cmp esi, 0xffffffff
je 0x425f81
dec edx
mov dword [0x4f79a4], edx
mov dword [0x4f79a8], esi
jmp 0x425f97
cmp esi, 0xffffffff
mov dword [0x4f79a4], 4
mov dword [0x4f79a8], esi
je 0x42690b
test esi, esi
jl 0x4262fb
cmp esi, 0x68
jg 0x4262f6
inc esi
mov eax, esi
mov ebx, esi
mov edx, esi
test eax, eax
jl 0x4262de
mov dword [ebp - 0x1c], esi
cmp eax, 0x271
jg 0x4262de
mov esi, eax
lea ecx, [eax*4]
shl esi, 5
sub esi, ecx
cmp dword [esi + 0x4fa778], 0
je 0x4262d3
mov dword [ebp - 0x18], edx
cmp eax, 0x68
jg 0x426191
cmp dword [esi + 0x4fa76c], 0
je 0x42602e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [ebp - 0x18]
mov esi, ebx
shl esi, 5
lea edx, [ebx*4]
sub esi, edx
cmp eax, dword [esi + 0x4fa768]
jne 0x42602e
mov esi, dword [ebp - 0x1c]
mov eax, 0x28
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], esi
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp dword [0x4f7980], 2
jge 0x42605c
mov eax, dword [esi + 0x4fa764]
test eax, eax
je 0x42604b
mov eax, 0x98
jmp 0x4260e2
mov dword [esi + 0x4fa764], 1
xor eax, eax
jmp 0x4260e2
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x4fa764]
push edx
call fcn.004158e0
add esp, 4
test eax, eax
je 0x426082
mov eax, 0x98
jmp 0x4260e2
mov edx, dword [ebp - 0x18]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x4fa760], 0
je 0x426539
mov dword [ecx + 0x4fa764], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4fa764]
push ecx
call fcn.004158e0
add esp, 4
test eax, eax
je 0x4260ed
mov eax, 0x98
jmp 0x426114
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x4fa768], eax
xor eax, eax
mov dword [ecx + 0x4fa76c], 1
test eax, eax
jne 0x426531
mov eax, dword [ebp - 0x18]
mov ecx, eax
shl ecx, 5
lea edx, [eax*4]
sub ecx, edx
mov edx, dword [ecx + 0x4fa778]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x4264fd
mov dword [ecx + 0x4fa76c], 0
mov dword [ecx + 0x4fa768], 0xffffffff
cmp dword [0x4f7980], 2
jge 0x42616a
mov dword [ecx + 0x4fa764], 0
jmp 0x4262d3
mov dword [ecx + 0x4fa764], 0
lea edx, [eax*4]
shl eax, 5
sub eax, edx
push dword [eax + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4262d0
call fcn.00426920
mov edi, eax
mov edx, dword [0x4f7980]
cmp edx, 2
jge 0x4261c3
mov eax, dword [esi + 0x4fa764]
test eax, eax
jne 0x42624b
mov dword [esi + 0x4fa764], 1
mov ebx, dword [ebp - 0x18]
jmp 0x42624b
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x4fa764]
push edx
call fcn.004158e0
add esp, 4
test eax, eax
jne 0x426242
mov edx, dword [ebp - 0x18]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x4fa760], 0
je 0x4267c4
mov dword [ecx + 0x4fa764], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push 0xffffffffffffffff
push dword [edx + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x4fa764]
push ecx
call fcn.004158e0
add esp, 4
mov edx, dword [0x4f7980]
mov ebx, dword [ebp - 0x18]
cmp edx, 1
je 0x4267a1
mov ecx, ebx
lea eax, [ebx*4]
shl ecx, 5
sub ecx, eax
mov edx, dword [ecx + 0x4fa778]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x42658e
mov edx, dword [0x4f7980]
cmp edx, 1
je 0x42656a
mov eax, dword [ebp - 0x18]
cmp edx, 2
jge 0x4262a2
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
mov dword [ebx + 0x4fa764], 0
jmp 0x4262d3
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
mov dword [ebx + 0x4fa764], 0
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
push dword [eax + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
inc eax
mov ebx, eax
mov edx, eax
jns 0x425fba
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [edx], 0xffffffff
mov esp, ebp
pop ebp
ret
lea eax, [esi - 5]
jmp 0x4262fd
mov eax, esi
lea ebx, [ebp - 0x10]
mov dword [esp + 0xc], ebx
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00425880
mov edi, eax
mov ebx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00426920
cmp eax, 0x7fffffff
je 0x42632c
cmp eax, 0xfffffffa
lea esi, [eax + 5]
jg 0x42632c
mov esi, eax
mov eax, dword [ebp + 0xc]
test edi, edi
mov dword [eax], esi
jne 0x4264ee
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x426879
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x42635e
mov eax, edx
cmp eax, ecx
je 0x42686b
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x42634f
cmp dword [edx + 0xc], 0
je 0x426388
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 8]
jne 0x426388
mov eax, dword [ebp + 0x10]
cmp eax, 0xb
je 0x42647b
mov ebx, 0x28
jmp 0x426414
cmp dword [0x4f7980], 2
jge 0x4263aa
mov eax, dword [edx + 4]
test eax, eax
je 0x42639f
mov eax, 0x98
jmp 0x4263f0
mov dword [edx + 4], 1
xor eax, eax
jmp 0x4263f0
add edx, 4
push edx
call fcn.004158e0
add esp, 4
test eax, eax
je 0x4263c1
mov eax, 0x98
jmp 0x4263f0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x42684f
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call fcn.004158e0
add esp, 4
test eax, eax
je 0x4263fb
mov ebx, 0x98
jmp 0x426410
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
test ebx, ebx
je 0x42647b
mov eax, dword [0x4f7980]
cmp eax, 1
je 0x4267f5
cmp eax, 2
jge 0x426442
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
jmp 0x426467
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
push dword [edx + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], esi
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4f7980]
cmp eax, 1
je 0x426822
cmp eax, 2
jge 0x4264a9
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
jmp 0x4264ce
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
push dword [edx + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00426960
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, edx
mov edx, dword [ebp + 0x10]
call fcn.00426960
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov dword [edx], ecx
mov ebx, dword [ecx + 0x100]
cmp ebx, 0xfffffffa
lea esi, [ebx + 5]
jg 0x426522
mov esi, ebx
mov dword [edi], esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
jmp 0x42601c
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x18]
mov ebx, edx
shl ebx, 5
lea ecx, [edx*4]
sub ebx, ecx
mov dword [ebx + 0x4fa760], eax
mov dword [ebx + 0x4fa764], 0
jmp 0x4260aa
push dword [ecx + 0x4fa774]
push dword [ecx + 0x4fa770]
call fcn.004158c0
add esp, 8
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov edx, dword [0x4f7980]
jmp 0x426285
cmp dword [edx + 0xc], 0
je 0x4265ac
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 8]
jne 0x4265ac
mov ebx, 0x28
jmp 0x426638
cmp dword [0x4f7980], 2
jge 0x4265ce
mov eax, dword [edx + 4]
test eax, eax
je 0x4265c3
mov eax, 0x98
jmp 0x426614
mov dword [edx + 4], 1
xor eax, eax
jmp 0x426614
add edx, 4
push edx
call fcn.004158e0
add esp, 4
test eax, eax
je 0x4265e5
mov eax, 0x98
jmp 0x426614
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x426785
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call fcn.004158e0
add esp, 4
test eax, eax
je 0x42661f
mov ebx, 0x98
jmp 0x426634
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
test ebx, ebx
je 0x4266a9
mov eax, dword [0x4f7980]
cmp eax, 1
je 0x42672b
cmp eax, 2
jge 0x426666
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
jmp 0x42668b
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
push dword [edx + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, 0xfffffffa
lea edx, [edi + 5]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
jg 0x42669a
mov edx, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4f7980]
cmp eax, 1
je 0x426758
cmp eax, 2
jge 0x4266d7
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
jmp 0x4266fc
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4fa764], 0
push dword [edx + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00426960
cmp edi, 0xfffffffa
lea ebx, [edi + 5]
mov ecx, dword [ebp + 8]
jg 0x426714
mov ebx, edi
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [esi], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4fa774]
push dword [edx + 0x4fa770]
call fcn.004158c0
add esp, 8
mov eax, dword [0x4f7980]
jmp 0x426646
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4fa774]
push dword [edx + 0x4fa770]
call fcn.004158c0
add esp, 8
mov eax, dword [0x4f7980]
jmp 0x4266b7
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov dword [edx + 4], 0
jmp 0x4265f8
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x4fa770]
push edx
call fcn.00415890
add esp, 4
mov ebx, dword [ebp - 0x18]
jmp 0x426254
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x18]
mov ebx, edx
shl ebx, 5
lea ecx, [edx*4]
sub ebx, ecx
mov dword [ebx + 0x4fa760], eax
mov dword [ebx + 0x4fa764], 0
jmp 0x42620a
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4fa774]
push dword [edx + 0x4fa770]
call fcn.004158c0
add esp, 8
mov eax, dword [0x4f7980]
jmp 0x426422
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4fa774]
push dword [edx + 0x4fa770]
call fcn.004158c0
add esp, 8
mov eax, dword [0x4f7980]
jmp 0x426489
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov dword [edx + 4], 0
jmp 0x4263d4
mov edx, dword [eax + 0x28]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x42635e
mov ecx, dword [0x4f7980]
cmp ecx, 1
je 0x4268db
mov eax, dword [ebp - 0x18]
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
cmp ecx, 2
jge 0x4268a4
mov dword [ebx + 0x4fa764], 0
jmp 0x4268c9
mov dword [ebx + 0x4fa764], 0
lea edx, [eax*4]
shl eax, 5
sub eax, edx
push dword [eax + 0x4fa760]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
inc eax
mov ebx, eax
lea edx, [esi + 1]
mov dword [ecx], edx
mov edx, eax
jmp 0x425faf
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
push dword [ebx + 0x4fa774]
push dword [ebx + 0x4fa770]
call fcn.004158c0
add esp, 8
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [0x4f7980]
jmp 0x426887
mov esi, 0xffffffff
jmp 0x425fa8
mov eax, 2
mov esp, ebp
pop ebp
ret