Function at 0x1002aa90
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 0x1002ae36
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x29], 0
lea edx, [ebp - 0x198]
mov eax, dword [0x1003bda0]
call fcn.10015d38
lea eax, [ebp - 0x198]
push eax
lea edx, [ebp - 0x19c]
mov eax, dword [0x1003bd54]
call fcn.10015d38
mov edx, dword [ebp - 0x19c]
pop eax
call fcn.10012784
mov eax, dword [ebp - 0x198]
call fcn.1001297c
push eax
push 0
push 0x100000
call sub.KERNEL32.dll_OpenMutexA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1002ae18
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 0x1002ae08
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 [0x1003bda0]
call fcn.10015d38
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x1a4]
mov dl, byte [ebp - 0x64]
add dl, 0x30
call fcn.10012710
mov edx, dword [ebp - 0x1a4]
pop eax
call fcn.10012784
mov eax, dword [ebp - 0x1a0]
call fcn.1001297c
push eax
push 0
push 0xf001f
call sub.KERNEL32.dll_OpenFileMappingA
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x1002abe7
push 0
push 0
push 0
push 0xf001f
push edi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esi], eax
cmp dword [esi], 0
jne 0x1002abdf
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [ebx], eax
jmp 0x1002abe7
mov eax, dword [esi]
mov eax, dword [eax + 8]
add dword [ebp - 0x68], eax
cmp dword [ebx], 0
je 0x1002abff
inc dword [ebp - 0x64]
add esi, 4
add ebx, 4
cmp dword [ebp - 0x64], 0xa
jne 0x1002ab65
mov eax, dword [ebp - 0x68]
dec eax
cmp eax, 0
jl 0x1002adc1
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.1002aa04
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x1002ac5c
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
jne 0x1002ac5c
lea eax, [ebp - 0x191]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x1002ac60
xor ecx, ecx
jmp 0x1002ac62
mov cl, 1
test cl, cl
je 0x1002adb4
cmp byte [ebp + 8], 0
jne 0x1002aca0
mov eax, dword [ebp - 0x4c]
mov al, byte [eax]
cmp al, byte [ebp + 0xc]
jne 0x1002adb4
mov eax, dword [ebp - 0x54]
cmp dword [eax + 4], 0
jne 0x1002adb4
cmp dword [eax], 0
jne 0x1002adb4
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0
jne 0x1002adb4
mov byte [ebp - 0x29], 1
mov esi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
sub ebx, 2
sub ebx, esi
jl 0x1002ada9
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.1002aa04
pop ecx
mov edx, 0x5b
mov eax, dword [ebp - 0x44]
call fcn.10013fb0
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 0x1002ace8
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.10013fb0
mov edx, 0x104
mov eax, dword [ebp - 0x34]
call fcn.10013fb0
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 0x1002ad3d
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 0x1002ad54
mov ecx, 1
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
call fcn.10020208
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 0x1002ada9
inc esi
dec ebx
jne 0x1002acb6
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_InterlockedExchange
dec dword [ebp - 0x64]
cmp dword [ebp - 0x64], 0xffffffff
jne 0x1002ac0f
mov dword [ebp - 0x64], 9
lea esi, [ebp - 0x8c]
lea ebx, [ebp - 0x24]
cmp dword [esi], 0
je 0x1002adf1
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 0x1002add1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002ae0f
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 0x1002ae3d
lea eax, [ebp - 0x1a4]
mov edx, 4
call fcn.1001254c
ret