Function at 0x486124
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
xor eax, eax
xor edx, edx
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x7f
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0xc], 0x7f
mov dword [ebp - 0x10], edx
mov dword [edi], ecx
mov dword [ebp - 0x18], eax
push edi
lea edi, [ebp - 0x16c]
xor ebx, ebx
mov ecx, 0x10
mov esi, 0x5d6356
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x18], 0
pop edi
jne 0x48617a
mov eax, 1
jmp 0x4868b1
cmp dword [ebp + 0x14], 0
je 0x486190
cmp dword [ebp + 0x14], 1
je 0x486190
mov eax, 6
jmp 0x4868b1
mov edx, dword [ebp + 0x18]
xor ecx, ecx
xor eax, eax
mov dword [edx + 0x34], ecx
mov dword [ebp - 0x178], 0xc
mov dword [ebp - 0x170], eax
lea edx, [ebp - 0x18c]
push 1
push edx
call sub.advapi32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x4861c6
mov eax, 3
jmp 0x4868b1
push 0
push 0
push 1
lea edx, [ebp - 0x18c]
push edx
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x4861e6
mov eax, 3
jmp 0x4868b1
lea edx, [ebp - 0x18c]
mov dword [ebp - 0x174], edx
push 0x5d6418
push 0
lea ecx, [ebp - 0x178]
push ecx
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x486218
mov eax, 3
jmp 0x4868b1
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0x5d622c
call fcn.004859c8
add esp, 0x10
test eax, eax
je 0x4864da
mov edx, dword [ebp + 0x1c]
mov esi, dword [edx]
cmp esi, dword [ebp - 8]
jae 0x4864ce
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + esi*4]
add eax, 4
push eax
call fcn.00485f7c
add esp, 0xc
test eax, eax
je 0x4864c4
push 0x40
push 0
lea edx, [ebp - 0x16c]
push edx
call sub.CC3260MT.DLL__memset
add esp, 0xc
lea ecx, [ebp - 0x16c]
push 7
push 0x5d6446
push ecx
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
push 0x38
mov eax, dword [ebp - 4]
mov edx, dword [eax + esi*4]
add edx, 8
push edx
lea ecx, [ebp - 0x165]
push ecx
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
lea eax, [ebp - 0x16c]
push eax
push 0
lea edx, [ebp - 0x178]
push edx
call sub.kernel32.dll_CreateMutexA
mov ebx, eax
test ebx, ebx
jne 0x4862db
mov eax, 3
jmp 0x4868b1
cmp dword [ebp + 0x10], 0
je 0x48637c
mov dword [edi], 0xff
push edi
lea edx, [ebp - 0x12c]
push edx
push 8
push 0x5d644e
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0048609c
add esp, 0x14
test eax, eax
je 0x486366
cmp dword [edi], 0xa
jne 0x486366
cmp byte [ebp - 0x124], 0
jne 0x486321
cmp byte [ebp - 0x123], 0
je 0x486337
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
push 8
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call sub.CC3260MT.DLL__memcmp
add esp, 0xc
test eax, eax
je 0x48637c
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
mov edx, dword [ebp - 0x10]
push edx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
cmp dword [ebp + 0xc], 0
je 0x48641d
mov dword [edi], 0xff
push edi
lea ecx, [ebp - 0x12c]
push ecx
push 8
push 0x5d6457
mov eax, dword [ebp - 0x10]
push eax
call fcn.0048609c
add esp, 0x14
test eax, eax
je 0x486407
cmp dword [edi], 0xa
jne 0x486407
cmp byte [ebp - 0x124], 0
jne 0x4863c2
cmp byte [ebp - 0x123], 0
je 0x4863d8
mov edx, dword [ebp - 0x10]
push edx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
push 8
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.CC3260MT.DLL__memcmp
add esp, 0xc
test eax, eax
je 0x48641d
mov edx, dword [ebp - 0x10]
push edx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
cmp dword [ebp + 8], 0
je 0x4864b5
mov dword [edi], 0xff
push edi
lea eax, [ebp - 0x12c]
push eax
push 8
push 0x5d6460
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048609c
add esp, 0x14
test eax, eax
je 0x4864a2
cmp dword [edi], 0x12
jne 0x4864a2
cmp byte [ebp - 0x11c], 0
jne 0x486463
cmp byte [ebp - 0x11b], 0
je 0x486476
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
push 8
lea eax, [ebp - 0x12c]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.CC3260MT.DLL__memcmp
add esp, 0xc
test eax, eax
je 0x4864b5
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4864c4
mov dword [ebp - 0x18], 1
inc esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
jmp 0x4864ce
inc esi
cmp esi, dword [ebp - 8]
jb 0x486250
mov edx, dword [ebp - 4]
push edx
call fcn.00485990
pop ecx
jmp 0x486511
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00485fd8
mov edx, dword [ebp + 0x18]
pop ecx
xor ecx, ecx
mov dword [edx + 0x34], ecx
xor ecx, ecx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x30], 0xffffffff
mov edx, dword [ebp + 0x18]
mov eax, 8
mov dword [edx + 0x2c], ecx
jmp 0x4868b1
cmp dword [ebp - 0x18], 0
je 0x486548
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_ReleaseMutex
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00485fd8
pop ecx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x34], ebx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + 0x2c], edx
xor eax, eax
jmp 0x4868b1
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 8]
jbe 0x486559
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
jmp 0x48655c
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00485edc
pop ecx
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 4]
push ecx
push 0x5d6469
lea eax, [ebp - 0x2c]
push eax
call fcn.004859c8
add esp, 0x10
test eax, eax
je 0x486815
cmp esi, dword [ebp - 0xc]
jae 0x486809
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + esi*4]
add edx, 4
push edx
call fcn.00485f7c
add esp, 0xc
test eax, eax
je 0x4867ff
push 0x40
push 0
lea ecx, [ebp - 0x16c]
push ecx
call sub.CC3260MT.DLL__memset
add esp, 0xc
lea eax, [ebp - 0x16c]
push 7
push 0x5d647f
push eax
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
push 0x38
mov edx, dword [ebp - 4]
mov ecx, dword [edx + esi*4]
add ecx, 8
push ecx
lea eax, [ebp - 0x165]
push eax
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
lea edx, [ebp - 0x16c]
push edx
push 0
lea ecx, [ebp - 0x178]
push ecx
call sub.kernel32.dll_CreateMutexA
cmp dword [ebp + 0x10], 0
mov ebx, eax
je 0x4866b2
mov dword [edi], 0xff
push edi
lea eax, [ebp - 0x12c]
push eax
push 8
push 0x5d6487
push ebx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00485ff8
add esp, 0x18
test eax, eax
je 0x48669c
cmp dword [edi], 0xa
jne 0x48669c
cmp byte [ebp - 0x124], 0
jne 0x486657
cmp byte [ebp - 0x123], 0
je 0x48666d
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
push 8
lea eax, [ebp - 0x12c]
push eax
mov edx, dword [ebp + 0x10]
push edx
call sub.CC3260MT.DLL__memcmp
add esp, 0xc
test eax, eax
je 0x4866b2
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
cmp dword [ebp + 0xc], 0
je 0x486754
mov dword [edi], 0xff
push edi
lea edx, [ebp - 0x12c]
push edx
push 8
push 0x5d6490
push ebx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485ff8
add esp, 0x18
test eax, eax
je 0x48673e
cmp dword [edi], 0xa
jne 0x48673e
cmp byte [ebp - 0x124], 0
jne 0x4866f9
cmp byte [ebp - 0x123], 0
je 0x48670f
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
push 8
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.CC3260MT.DLL__memcmp
add esp, 0xc
test eax, eax
je 0x486754
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
mov edx, dword [ebp - 0x10]
push edx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
cmp dword [ebp + 8], 0
je 0x4867ed
mov dword [edi], 0xff
push edi
lea ecx, [ebp - 0x12c]
push ecx
push 8
push 0x5d6499
push ebx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485ff8
add esp, 0x18
test eax, eax
je 0x4867da
cmp dword [edi], 0x12
jne 0x4867da
cmp byte [ebp - 0x11c], 0
jne 0x48679b
cmp byte [ebp - 0x11b], 0
je 0x4867ae
mov edx, dword [ebp - 0x10]
push edx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
push 8
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.CC3260MT.DLL__memcmp
add esp, 0xc
test eax, eax
je 0x4867ed
mov edx, dword [ebp - 0x10]
push edx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485fb4
pop ecx
push ebx
call fcn.00485fd8
pop ecx
jmp 0x4867ff
mov dword [ebp - 0x18], 1
add esi, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
inc esi
mov dword [eax], esi
jmp 0x486809
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x486593
mov edx, dword [ebp - 4]
push edx
call fcn.00485990
pop ecx
jmp 0x486849
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00485fd8
mov edx, dword [ebp + 0x18]
pop ecx
xor ecx, ecx
mov dword [edx + 0x34], ecx
xor ecx, ecx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x30], 0xffffffff
mov edx, dword [ebp + 0x18]
mov eax, 8
mov dword [edx + 0x2c], ecx
jmp 0x4868b1
cmp dword [ebp - 0x18], 0
je 0x48687f
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_ReleaseMutex
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00485fd8
pop ecx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x34], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x2c], 0xaa
xor eax, eax
jmp 0x4868b1
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_ReleaseMutex
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00485fd8
pop ecx
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + 0x34], edx
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x30], 0xffffffff
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18