Function at 0x427080
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 0x4270a2
cmp ebx, 0x69
jge 0x42751d
inc ebx
lea eax, [ebx*4]
mov edx, ebx
shl edx, 5
sub edx, eax
cmp ebx, 0x272
jge 0x42729b
mov esi, edx
cmp dword [esi + 0x5312f8], 0
je 0x427288
cmp ebx, 0x69
jge 0x4271d8
cmp dword [esi + 0x5312ec], 0
je 0x427103
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x5312e8]
jne 0x427103
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 [0x525800], 2
jge 0x42712b
mov eax, dword [esi + 0x5312e4]
test eax, eax
je 0x42711d
mov eax, 0x98
jmp 0x42716f
mov dword [esi + 0x5312e4], 1
xor eax, eax
jmp 0x42716f
lea edi, [esi + 0x5312e4]
push edi
call fcn.004257e0
pop ecx
test eax, eax
je 0x427143
mov eax, 0x98
jmp 0x42716f
cmp dword [esi + 0x5312e0], 0
je 0x4272e2
mov dword [esi + 0x5312e4], 0
push 0xffffffffffffffff
push dword [esi + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.004257e0
pop ecx
test eax, eax
je 0x42717a
mov eax, 0x98
jmp 0x427192
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x5312ec], 1
mov dword [esi + 0x5312e8], eax
xor eax, eax
test eax, eax
jne 0x4272da
mov edi, dword [esi + 0x5312f8]
test edi, edi
jne 0x4272b0
cmp dword [0x525800], 2
mov dword [esi + 0x5312ec], 0
mov dword [esi + 0x5312e8], 0xffffffff
jge 0x427272
mov dword [esi + 0x5312e4], 0
jmp 0x427288
mov ecx, dword [0x525800]
cmp ecx, 2
jge 0x4271f9
mov eax, dword [esi + 0x5312e4]
test eax, eax
jne 0x42723c
mov dword [esi + 0x5312e4], 1
jmp 0x42723c
lea edi, [esi + 0x5312e4]
push edi
call fcn.004257e0
pop ecx
test eax, eax
jne 0x427236
cmp dword [esi + 0x5312e0], 0
je 0x4274fd
mov dword [esi + 0x5312e4], 0
push 0xffffffffffffffff
push dword [esi + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.004257e0
pop ecx
mov ecx, dword [0x525800]
cmp ecx, 1
je 0x4274eb
mov edi, dword [esi + 0x5312f8]
test edi, edi
jne 0x427320
mov eax, dword [0x525800]
cmp eax, 1
je 0x427302
cmp eax, 2
jge 0x427272
mov dword [esi + 0x5312e4], 0
jmp 0x427288
push dword [esi + 0x5312e0]
mov dword [esi + 0x5312e4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esi, 0x1c
inc ebx
cmp ebx, 0x272
jl 0x4270bf
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.00427940
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [edx], edi
mov ecx, dword [edi + 0xf0]
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 0x4270f4
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x5312e4], 0
mov dword [esi + 0x5312e0], eax
jmp 0x42715a
push dword [esi + 0x5312f4]
push dword [esi + 0x5312f0]
call fcn.004257c0
add esp, 8
mov eax, dword [0x525800]
jmp 0x427261
cmp dword [edi + 0xc], 0
mov edx, esi
mov esi, dword [ebp + 0xc]
je 0x427346
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
jne 0x427346
mov eax, 0x28
jmp 0x4273da
cmp dword [0x525800], 2
jge 0x427368
mov eax, dword [edi + 4]
test eax, eax
je 0x42735d
mov eax, 0x98
jmp 0x4273b3
mov dword [edi + 4], 1
xor eax, eax
jmp 0x4273b3
mov dword [ebp - 0x10], edx
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.004257e0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x427388
mov eax, 0x98
jmp 0x4273b3
cmp dword [edi], 0
je 0x4274cc
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.004257e0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x4273be
mov eax, 0x98
jmp 0x4273d6
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 0x427425
mov ecx, dword [0x525800]
cmp ecx, 1
je 0x42747d
cmp ecx, 2
jge 0x4273fa
mov dword [edx + 0x5312e4], 0
jmp 0x427416
push dword [edx + 0x5312e0]
mov dword [edx + 0x5312e4], 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 [0x525800]
cmp eax, 1
je 0x4274a8
cmp eax, 2
jge 0x427440
mov dword [edx + 0x5312e4], 0
jmp 0x427456
push dword [edx + 0x5312e0]
mov dword [edx + 0x5312e4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.00427940
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [edx], edi
mov ecx, dword [edi + 0xf0]
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 + 0x5312f4]
push dword [edx + 0x5312f0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call fcn.004257c0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [0x525800]
jmp 0x4273e9
push dword [edx + 0x5312f4]
push dword [edx + 0x5312f0]
mov dword [ebp - 0x10], edx
call fcn.004257c0
mov edx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [0x525800]
jmp 0x42742f
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 0x427398
lea eax, [esi + 0x5312f0]
push eax
call fcn.00425790
pop ecx
jmp 0x427245
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x5312e4], 0
mov dword [esi + 0x5312e0], eax
jmp 0x427221
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 [0x525800]
lea eax, [edx + 0x69]
mov dword [ebp - 0x10], eax
cmp ecx, 2
jge 0x427579
lea edi, [edx*4 + 0x1a4]
lea edx, [edi*8]
sub edx, edi
mov edi, dword [edx + 0x5312e4]
test edi, edi
jne 0x427610
mov dword [edx + 0x5312e4], 1
mov eax, dword [ebp - 0x10]
jmp 0x427610
lea eax, [edx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x5312e4]
push ecx
call fcn.004257e0
pop ecx
test eax, eax
jne 0x427607
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
mov edx, ecx
shl edx, 5
sub edx, eax
cmp dword [edx + 0x5312e0], 0
je 0x42790b
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x5312e4], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x5312e0]
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 + 0x5312e4]
push ecx
call fcn.004257e0
pop ecx
mov ecx, dword [0x525800]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x4278ea
lea ecx, [eax*4]
mov edx, eax
shl edx, 5
sub edx, ecx
mov edi, dword [edx + 0x5312f8]
test edi, edi
je 0x427643
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf0]
jle 0x427643
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x427634
test edi, edi
je 0x4277fb
lea ecx, [ebx - 5]
cmp ecx, dword [edi + 0xf0]
jne 0x427661
mov edi, dword [edi + 0x28]
test edi, edi
je 0x4277fb
cmp dword [edi + 0xc], 0
je 0x42767c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 8]
jne 0x42767c
mov eax, 0x28
jmp 0x4276fa
cmp dword [0x525800], 2
jge 0x42769e
mov eax, dword [edi + 4]
test eax, eax
je 0x427693
mov eax, 0x98
jmp 0x4276d9
mov dword [edi + 4], 1
xor eax, eax
jmp 0x4276d9
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.004257e0
pop ecx
test eax, eax
je 0x4276b6
mov eax, 0x98
jmp 0x4276d9
cmp dword [edi], 0
je 0x4278d1
mov dword [edi + 4], 0
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call fcn.004257e0
pop ecx
test eax, eax
je 0x4276e4
mov eax, 0x98
jmp 0x4276f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0xc], 1
mov dword [edi + 8], eax
xor eax, eax
test eax, eax
je 0x427772
mov edx, dword [0x525800]
cmp edx, 1
je 0x427870
cmp edx, 2
jge 0x427729
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x5312e4], 0
jmp 0x427763
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x5312e4], 0
mov edx, dword [ebp - 0x10]
lea edi, [edx*4]
shl edx, 5
sub edx, edi
push dword [edx + 0x5312e0]
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 [0x525800]
cmp eax, 1
je 0x4278a4
cmp eax, 2
jge 0x4277a0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x5312e4], 0
jmp 0x4277d4
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x5312e4], 0
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx*4]
shl ebx, 5
sub ebx, ecx
push dword [ebx + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, edi
call fcn.00427940
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [edx], edi
mov ecx, dword [edi + 0xf0]
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 [0x525800]
cmp ecx, 1
je 0x427851
lea edx, [eax*4]
shl eax, 5
sub eax, edx
cmp ecx, 2
jge 0x427823
mov dword [eax + 0x5312e4], 0
jmp 0x427848
mov dword [eax + 0x5312e4], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x5312e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0x10]
inc ebx
jmp 0x4270a3
push dword [edx + 0x5312f4]
push dword [edx + 0x5312f0]
call fcn.004257c0
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x525800]
jmp 0x427806
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x5312f4]
push dword [ecx + 0x5312f0]
call fcn.004257c0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edx, dword [0x525800]
jmp 0x427709
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x5312f4]
push dword [edx + 0x5312f0]
call fcn.004257c0
add esp, 8
mov eax, dword [0x525800]
jmp 0x427780
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 0x4276c6
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x5312f0]
push eax
call fcn.00425790
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x427619
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 + 0x5312e0], eax
mov dword [ecx + 0x5312e4], 0
jmp 0x4275ce