Function at 0x10028cec
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x28], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x10029092
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x29], 0
lea edx, [ebp - 0x198]
mov eax, dword [0x10037df4]
call fcn.1001520c
lea eax, [ebp - 0x198]
push eax
lea edx, [ebp - 0x19c]
mov eax, dword [0x10037da8]
call fcn.1001520c
mov edx, dword [ebp - 0x19c]
pop eax
call fcn.100127a0
mov eax, dword [ebp - 0x198]
call fcn.10012998
push eax
push 0
push 0x100000
call sub.KERNEL32.dll_OpenMutexA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10029074
push 0x104
lea eax, [ebp - 0x191]
push eax
push ebx
call sub.KERNEL32.dll_GetModuleFileNameA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x10029064
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 1
lea ebx, [ebp - 0x8c]
lea esi, [ebp - 0x24]
lea edx, [ebp - 0x1a0]
mov eax, dword [0x10037df4]
call fcn.1001520c
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x1a4]
mov dl, byte [ebp - 0x64]
add dl, 0x30
call fcn.100126f0
mov edx, dword [ebp - 0x1a4]
pop eax
call fcn.100127a0
mov eax, dword [ebp - 0x1a0]
call fcn.10012998
push eax
push 0
push 0xf001f
call sub.KERNEL32.dll_OpenFileMappingA
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x10028e43
push 0
push 0
push 0
push 0xf001f
push edi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esi], eax
cmp dword [esi], 0
jne 0x10028e3b
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [ebx], eax
jmp 0x10028e43
mov eax, dword [esi]
mov eax, dword [eax + 8]
add dword [ebp - 0x68], eax
cmp dword [ebx], 0
je 0x10028e5b
inc dword [ebp - 0x64]
add esi, 4
add ebx, 4
cmp dword [ebp - 0x64], 0xa
jne 0x10028dc1
mov eax, dword [ebp - 0x68]
dec eax
cmp eax, 0
jl 0x1002901d
mov dword [ebp - 0x64], eax
push ebp
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x64]
call fcn.10028c60
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x10028eb8
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
jne 0x10028eb8
lea eax, [ebp - 0x191]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x10028ebc
xor ecx, ecx
jmp 0x10028ebe
mov cl, 1
test cl, cl
je 0x10029010
cmp byte [ebp + 8], 0
jne 0x10028efc
mov eax, dword [ebp - 0x4c]
mov al, byte [eax]
cmp al, byte [ebp + 0xc]
jne 0x10029010
mov eax, dword [ebp - 0x54]
cmp dword [eax + 4], 0
jne 0x10029010
cmp dword [eax], 0
jne 0x10029010
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0
jne 0x10029010
mov byte [ebp - 0x29], 1
mov esi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
sub ebx, 2
sub ebx, esi
jl 0x10029005
inc ebx
push ebp
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x38]
lea eax, [esi + 1]
call fcn.10028c60
pop ecx
mov edx, 0x5b
mov eax, dword [ebp - 0x44]
call fcn.10013e9c
mov eax, 0x5a
mov edx, dword [ebp - 0x48]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x44]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x10028f44
mov eax, dword [ebp - 0x50]
mov al, byte [eax]
mov edx, dword [ebp - 0x4c]
mov byte [edx], al
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
mov dword [edx], eax
mov edx, 0x104
mov eax, dword [ebp - 0x3c]
call fcn.10013e9c
mov edx, 0x104
mov eax, dword [ebp - 0x34]
call fcn.10013e9c
mov eax, 0x103
mov edx, dword [ebp - 0x40]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x10028f99
mov eax, 0x103
mov edx, dword [ebp - 0x38]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x34]
mov byte [ecx + eax], dl
dec eax
test eax, eax
jne 0x10028fb0
mov ecx, 1
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
call fcn.1001f0b4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x10029005
inc esi
dec ebx
jne 0x10028f12
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_InterlockedExchange
dec dword [ebp - 0x64]
cmp dword [ebp - 0x64], 0xffffffff
jne 0x10028e6b
mov dword [ebp - 0x64], 9
lea esi, [ebp - 0x8c]
lea ebx, [ebp - 0x24]
cmp dword [esi], 0
je 0x1002904d
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
add ebx, 4
add esi, 4
dec dword [ebp - 0x64]
jne 0x1002902d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002906b
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10029099
lea eax, [ebp - 0x1a4]
mov edx, 4
call fcn.1001252c
ret