Function at 0x48e0e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x48e9b4
cmp esi, 0x69
jge 0x48e588
inc esi
lea eax, [esi*4]
mov edx, esi
shl edx, 5
sub edx, eax
cmp esi, 0x272
jge 0x48e303
mov edi, edx
mov eax, dword [edi + 0x518178]
test eax, eax
je 0x48e2f0
cmp esi, 0x69
jge 0x48e241
mov eax, dword [edi + 0x51816c]
test eax, eax
je 0x48e169
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 0x518168]
jne 0x48e169
mov edi, dword [ebp + 0xc]
mov eax, 0x28
mov ebx, dword [ebp - 4]
mov dword [edi], esi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50fea0]
cmp eax, 2
jge 0x48e192
mov eax, dword [edi + 0x518164]
test eax, eax
je 0x48e184
mov eax, 0x98
jmp 0x48e1d7
mov dword [edi + 0x518164], 1
xor eax, eax
jmp 0x48e1d7
lea ebx, [edi + 0x518164]
push ebx
call fcn.004833c0
pop ecx
test eax, eax
je 0x48e1aa
mov eax, 0x98
jmp 0x48e1d7
mov eax, dword [edi + 0x518160]
test eax, eax
je 0x48e34a
mov dword [edi + 0x518164], 0
push 0xffffffffffffffff
push dword [edi + 0x518160]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004833c0
pop ecx
test eax, eax
je 0x48e1e2
mov eax, 0x98
jmp 0x48e1fa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x51816c], 1
mov dword [edi + 0x518168], eax
xor eax, eax
test eax, eax
jne 0x48e342
mov ebx, dword [edi + 0x518178]
test ebx, ebx
jne 0x48e318
mov eax, dword [0x50fea0]
mov dword [edi + 0x51816c], 0
cmp eax, 2
mov dword [edi + 0x518168], 0xffffffff
jge 0x48e2da
mov dword [edi + 0x518164], 0
jmp 0x48e2f0
mov eax, dword [0x50fea0]
cmp eax, 2
jge 0x48e261
mov eax, dword [edi + 0x518164]
test eax, eax
jne 0x48e29f
mov dword [edi + 0x518164], 1
jmp 0x48e29f
lea ebx, [edi + 0x518164]
push ebx
call fcn.004833c0
pop ecx
test eax, eax
jne 0x48e29f
mov eax, dword [edi + 0x518160]
test eax, eax
je 0x48e568
mov dword [edi + 0x518164], 0
push 0xffffffffffffffff
push dword [edi + 0x518160]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004833c0
pop ecx
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x48e556
mov ebx, dword [edi + 0x518178]
test ebx, ebx
jne 0x48e388
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x48e36a
cmp eax, 2
jge 0x48e2da
mov dword [edi + 0x518164], 0
jmp 0x48e2f0
push dword [edi + 0x518160]
mov dword [edi + 0x518164], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add edi, 0x1c
inc esi
cmp esi, 0x272
jl 0x48e123
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [edi], 0xffffffff
xor eax, eax
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.0048e9c0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [edx], ebx
mov ecx, dword [ebx + 0xf0]
add ecx, 5
mov ebx, dword [ebp - 4]
mov dword [edi], ecx
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
jmp 0x48e15a
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x518164], 0
mov dword [edi + 0x518160], eax
jmp 0x48e1c2
push dword [edi + 0x518174]
push dword [edi + 0x518170]
call fcn.00483370
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x48e2c9
mov eax, dword [ebx + 0xc]
mov edx, edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x48e3af
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10]
cmp eax, dword [ebx + 8]
jne 0x48e3af
mov eax, 0x28
jmp 0x48e445
mov eax, dword [0x50fea0]
cmp eax, 2
jge 0x48e3d2
mov eax, dword [ebx + 4]
test eax, eax
je 0x48e3c7
mov eax, 0x98
jmp 0x48e41e
mov dword [ebx + 4], 1
xor eax, eax
jmp 0x48e41e
mov dword [ebp - 0x10], edx
lea eax, [ebx + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.004833c0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x48e3f2
mov eax, 0x98
jmp 0x48e41e
mov eax, dword [ebx]
test eax, eax
je 0x48e537
mov dword [ebx + 4], 0
push 0xffffffffffffffff
push dword [ebx]
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call fcn.004833c0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x48e429
mov eax, 0x98
jmp 0x48e441
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0xc], 1
mov dword [ebx + 8], eax
xor eax, eax
test eax, eax
je 0x48e490
mov ecx, dword [0x50fea0]
cmp ecx, 1
je 0x48e4e8
cmp ecx, 2
jge 0x48e465
mov dword [edx + 0x518164], 0
jmp 0x48e481
push dword [edx + 0x518160]
mov dword [edx + 0x518164], 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
mov dword [edi], esi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x48e513
cmp eax, 2
jge 0x48e4ab
mov dword [edx + 0x518164], 0
jmp 0x48e4c1
push dword [edx + 0x518160]
mov dword [edx + 0x518164], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.0048e9c0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [edx], ebx
mov ecx, dword [ebx + 0xf0]
add ecx, 5
mov ebx, dword [ebp - 4]
mov dword [edi], ecx
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edx + 0x518174]
push dword [edx + 0x518170]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call fcn.00483370
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [0x50fea0]
jmp 0x48e454
push dword [edx + 0x518174]
push dword [edx + 0x518170]
mov dword [ebp - 0x10], edx
call fcn.00483370
mov edx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x48e49a
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 [ebx + 4], 0
mov dword [ebx], eax
jmp 0x48e403
lea eax, [edi + 0x518170]
push eax
call fcn.00483390
pop ecx
jmp 0x48e2ad
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x518164], 0
mov dword [edi + 0x518160], eax
jmp 0x48e28a
mov eax, 0x3ee4f99d
imul esi
mov ecx, esi
mov eax, dword [0x50fea0]
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
imul edx, edx, 0x209
neg edx
add edx, esi
lea ebx, [edx + 0x69]
mov dword [ebp - 0x10], ebx
cmp eax, 2
jge 0x48e5ef
lea eax, [edx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
mov ecx, dword [edx + 0x518164]
test ecx, ecx
jne 0x48e67f
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x518164], 1
jmp 0x48e67f
lea eax, [edx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x518164]
push ecx
call fcn.004833c0
pop ecx
test eax, eax
jne 0x48e67f
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov ecx, dword [edx + 0x518160]
test ecx, ecx
je 0x48e985
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x518164], 0
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
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 + 0x518164]
push ecx
call fcn.004833c0
pop ecx
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x48e964
mov eax, dword [ebp - 0x10]
lea ecx, [eax*4]
mov edx, eax
shl edx, 5
sub edx, ecx
mov ebx, dword [edx + 0x518178]
test ebx, ebx
je 0x48e6ba
lea ecx, [esi - 5]
cmp ecx, dword [ebx + 0xf0]
jle 0x48e6ba
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x48e6ab
test ebx, ebx
je 0x48e875
lea ecx, [esi - 5]
cmp ecx, dword [ebx + 0xf0]
jne 0x48e6d8
mov ebx, dword [ebx + 0x28]
test ebx, ebx
je 0x48e875
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x48e6f4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx + 8]
jne 0x48e6f4
mov eax, 0x28
jmp 0x48e774
mov eax, dword [0x50fea0]
cmp eax, 2
jge 0x48e717
mov eax, dword [ebx + 4]
test eax, eax
je 0x48e70c
mov eax, 0x98
jmp 0x48e753
mov dword [ebx + 4], 1
xor eax, eax
jmp 0x48e753
lea eax, [ebx + 4]
mov dword [ebp - 0x14], eax
push eax
call fcn.004833c0
pop ecx
test eax, eax
je 0x48e72f
mov eax, 0x98
jmp 0x48e753
mov eax, dword [ebx]
test eax, eax
je 0x48e94b
mov dword [ebx + 4], 0
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call fcn.004833c0
pop ecx
test eax, eax
je 0x48e75e
mov eax, 0x98
jmp 0x48e770
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0xc], 1
mov dword [ebx + 8], eax
xor eax, eax
test eax, eax
je 0x48e7ec
mov edx, dword [0x50fea0]
cmp edx, 1
je 0x48e8ea
cmp edx, 2
jge 0x48e7a3
mov ecx, dword [ebp - 0x10]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x518164], 0
jmp 0x48e7dd
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x518164], 0
mov edx, dword [ebp - 0x10]
lea ebx, [edx*4]
shl edx, 5
sub edx, ebx
push dword [edx + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
mov dword [edi], esi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x48e91e
cmp eax, 2
jge 0x48e81a
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x518164], 0
jmp 0x48e84e
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x518164], 0
mov esi, dword [ebp - 0x10]
lea ecx, [esi*4]
shl esi, 5
sub esi, ecx
push dword [esi + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.0048e9c0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [edx], ebx
mov ecx, dword [ebx + 0xf0]
add ecx, 5
mov ebx, dword [ebp - 4]
mov dword [edi], ecx
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x50fea0]
cmp ecx, 1
je 0x48e8cb
lea edx, [eax*4]
shl eax, 5
sub eax, edx
cmp ecx, 2
jge 0x48e89d
mov dword [eax + 0x518164], 0
jmp 0x48e8c2
mov dword [eax + 0x518164], 0
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518160]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebp - 0x10]
inc esi
jmp 0x48e107
push dword [edx + 0x518174]
push dword [edx + 0x518170]
call fcn.00483370
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x50fea0]
jmp 0x48e880
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x518174]
push dword [ecx + 0x518170]
call fcn.00483370
mov eax, dword [ebp - 0x14]
add esp, 8
mov edx, dword [0x50fea0]
jmp 0x48e783
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x518174]
push dword [edx + 0x518170]
call fcn.00483370
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x48e7fa
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx + 4], 0
mov dword [ebx], eax
jmp 0x48e740
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x518170]
push ecx
call fcn.00483390
pop ecx
jmp 0x48e68d
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 + 0x518160], eax
mov dword [ecx + 0x518164], 0
jmp 0x48e646
mov esi, 0xffffffff
jmp 0x48e106