Function at 0x101250c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov esi, dword [eax]
cmp esi, 0xffffffff
mov dword [ebp - 8], edi
je 0x101250e8
jle 0x10125446
cmp esi, 0x68
jg 0x10125446
inc esi
mov eax, esi
mov ebx, esi
mov edx, esi
test eax, eax
jl 0x1012542e
mov dword [ebp - 0x1c], esi
cmp eax, 0x271
jg 0x1012542e
mov esi, eax
lea ecx, [eax*4]
shl esi, 5
sub esi, ecx
cmp dword [esi + 0x1033b478], 0
je 0x10125423
mov dword [ebp - 0x18], edx
cmp eax, 0x68
jg 0x101252e1
cmp dword [esi + 0x1033b46c], 0
je 0x10125172
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
shl ecx, 5
mov eax, ebx
lea edx, [ebx*4]
sub ecx, edx
cmp esi, dword [ecx + 0x1033b468]
jne 0x10125172
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 [0x10333380], 2
jge 0x101251ac
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov ecx, dword [eax + 0x1033b464]
test ecx, ecx
je 0x1012519b
mov eax, 0x98
jmp 0x10125232
mov dword [eax + 0x1033b464], 1
xor eax, eax
jmp 0x10125232
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x1033b464]
push edx
call fcn.10131170
add esp, 4
test eax, eax
je 0x101251d2
mov eax, 0x98
jmp 0x10125232
mov edx, dword [ebp - 0x18]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x1033b460], 0
je 0x1012567f
mov dword [ecx + 0x1033b464], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x1033b460]
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 + 0x1033b464]
push ecx
call fcn.10131170
add esp, 4
test eax, eax
je 0x1012523d
mov eax, 0x98
jmp 0x10125264
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 + 0x1033b468], eax
xor eax, eax
mov dword [ecx + 0x1033b46c], 1
test eax, eax
jne 0x10125677
mov eax, dword [ebp - 0x18]
mov ecx, eax
shl ecx, 5
lea edx, [eax*4]
sub ecx, edx
mov edx, dword [ecx + 0x1033b478]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x10125643
mov dword [ecx + 0x1033b46c], 0
mov dword [ecx + 0x1033b468], 0xffffffff
cmp dword [0x10333380], 2
jge 0x101252ba
mov dword [ecx + 0x1033b464], 0
jmp 0x10125423
mov dword [ecx + 0x1033b464], 0
lea edx, [eax*4]
shl eax, 5
sub eax, edx
push dword [eax + 0x1033b460]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10125420
call fcn.10125a60
mov edi, eax
mov edx, dword [0x10333380]
cmp edx, 2
jge 0x10125313
mov eax, dword [esi + 0x1033b464]
test eax, eax
jne 0x1012539b
mov dword [esi + 0x1033b464], 1
mov ebx, dword [ebp - 0x18]
jmp 0x1012539b
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x1033b464]
push edx
call fcn.10131170
add esp, 4
test eax, eax
jne 0x10125392
mov edx, dword [ebp - 0x18]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x1033b460], 0
je 0x1012590a
mov dword [ecx + 0x1033b464], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push 0xffffffffffffffff
push dword [edx + 0x1033b460]
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 + 0x1033b464]
push ecx
call fcn.10131170
add esp, 4
mov edx, dword [0x10333380]
mov ebx, dword [ebp - 0x18]
cmp edx, 1
je 0x101258e7
mov ecx, ebx
lea eax, [ebx*4]
shl ecx, 5
sub ecx, eax
mov edx, dword [ecx + 0x1033b478]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x101256d4
mov edx, dword [0x10333380]
cmp edx, 1
je 0x101256b0
mov eax, dword [ebp - 0x18]
cmp edx, 2
jge 0x101253f2
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
mov dword [ebx + 0x1033b464], 0
jmp 0x10125423
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
mov dword [ebx + 0x1033b464], 0
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
push dword [eax + 0x1033b460]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
inc eax
mov ebx, eax
mov edx, eax
jns 0x101250fa
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]
test esi, esi
jge 0x1012544f
mov eax, esi
lea ebx, [ebp - 0x10]
mov dword [esp + 0xc], ebx
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.10124f20
mov edi, eax
mov ebx, dword [ebp - 0x18]
mov eax, ebx
call fcn.10125a60
cmp eax, 0x7fffffff
je 0x1012547e
cmp eax, 0xfffffffa
lea esi, [eax + 5]
jg 0x1012547e
mov esi, eax
mov eax, dword [ebp + 0xc]
test edi, edi
mov dword [eax], esi
jne 0x10125634
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x101259bf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x101254b0
mov eax, edx
cmp eax, ecx
je 0x101259b1
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x101254a1
cmp dword [edx + 0xc], 0
je 0x101254ce
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 8]
jne 0x101254ce
mov ebx, 0x28
jmp 0x1012555a
cmp dword [0x10333380], 2
jge 0x101254f0
mov eax, dword [edx + 4]
test eax, eax
je 0x101254e5
mov eax, 0x98
jmp 0x10125536
mov dword [edx + 4], 1
xor eax, eax
jmp 0x10125536
add edx, 4
push edx
call fcn.10131170
add esp, 4
test eax, eax
je 0x10125507
mov eax, 0x98
jmp 0x10125536
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10125995
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.10131170
add esp, 4
test eax, eax
je 0x10125541
mov ebx, 0x98
jmp 0x10125556
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 0x101255c1
mov eax, dword [0x10333380]
cmp eax, 1
je 0x1012593b
cmp eax, 2
jge 0x10125588
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
jmp 0x101255ad
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
push dword [edx + 0x1033b460]
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 [0x10333380]
cmp eax, 1
je 0x10125968
cmp eax, 2
jge 0x101255ef
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
jmp 0x10125614
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
push dword [edx + 0x1033b460]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.10125aa0
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.10125aa0
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 0x10125668
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 0x10125160
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 + 0x1033b460], eax
mov dword [ebx + 0x1033b464], 0
jmp 0x101251fa
push dword [ecx + 0x1033b474]
push dword [ecx + 0x1033b470]
call fcn.10131150
add esp, 8
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov edx, dword [0x10333380]
jmp 0x101253d5
cmp dword [edx + 0xc], 0
je 0x101256f2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 8]
jne 0x101256f2
mov ebx, 0x28
jmp 0x1012577e
cmp dword [0x10333380], 2
jge 0x10125714
mov eax, dword [edx + 4]
test eax, eax
je 0x10125709
mov eax, 0x98
jmp 0x1012575a
mov dword [edx + 4], 1
xor eax, eax
jmp 0x1012575a
add edx, 4
push edx
call fcn.10131170
add esp, 4
test eax, eax
je 0x1012572b
mov eax, 0x98
jmp 0x1012575a
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x101258cb
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.10131170
add esp, 4
test eax, eax
je 0x10125765
mov ebx, 0x98
jmp 0x1012577a
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 0x101257ef
mov eax, dword [0x10333380]
cmp eax, 1
je 0x10125871
cmp eax, 2
jge 0x101257ac
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
jmp 0x101257d1
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
push dword [edx + 0x1033b460]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, 0xfffffffa
lea edx, [edi + 5]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
jg 0x101257e0
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 [0x10333380]
cmp eax, 1
je 0x1012589e
cmp eax, 2
jge 0x1012581d
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
jmp 0x10125842
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x1033b464], 0
push dword [edx + 0x1033b460]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.10125aa0
cmp edi, 0xfffffffa
lea ebx, [edi + 5]
mov ecx, dword [ebp + 8]
jg 0x1012585a
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 + 0x1033b474]
push dword [edx + 0x1033b470]
call fcn.10131150
add esp, 8
mov eax, dword [0x10333380]
jmp 0x1012578c
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x1033b474]
push dword [edx + 0x1033b470]
call fcn.10131150
add esp, 8
mov eax, dword [0x10333380]
jmp 0x101257fd
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 0x1012573e
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x1033b470]
push edx
call fcn.10131120
add esp, 4
mov ebx, dword [ebp - 0x18]
jmp 0x101253a4
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 + 0x1033b460], eax
mov dword [ebx + 0x1033b464], 0
jmp 0x1012535a
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x1033b474]
push dword [edx + 0x1033b470]
call fcn.10131150
add esp, 8
mov eax, dword [0x10333380]
jmp 0x10125568
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x1033b474]
push dword [edx + 0x1033b470]
call fcn.10131150
add esp, 8
mov eax, dword [0x10333380]
jmp 0x101255cf
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 0x1012551a
mov edx, dword [eax + 0x28]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x101254b0
mov ecx, dword [0x10333380]
cmp ecx, 1
je 0x10125a21
mov eax, dword [ebp - 0x18]
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
cmp ecx, 2
jge 0x101259ea
mov dword [ebx + 0x1033b464], 0
jmp 0x10125a0f
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov dword [ebx + 0x1033b464], 0
push dword [eax + 0x1033b460]
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 0x101250ef
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
push dword [ebx + 0x1033b474]
push dword [ebx + 0x1033b470]
call fcn.10131150
add esp, 8
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [0x10333380]
jmp 0x101259cd