Function at 0x411d90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56a924
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5c9030]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
call fcn.00439ede
mov ecx, dword [eax + 8]
call fcn.00412ce7
push 0x2f
mov edi, str.EEventManager.cpp
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x411df8
push 0x2f
jmp 0x411e08
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x411e13
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x411e15
mov eax, edi
push 1
push 0xa0
push eax
lea esi, [esp + 0x28]
call fcn.00404e75
xor ebx, ebx
push str.Starting_Event_Manager__
push ebx
mov ecx, eax
mov dword [esp + 0xd8], ebx
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
or dword [esp + 0xd4], 0xffffffff
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00404ee1
push 0x2f
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x411e67
push 0x2f
jmp 0x411e77
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x411e82
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x411e84
mov eax, edi
push 1
push 0xa1
push eax
lea esi, [esp + 0x28]
call fcn.00404e75
push str.CEEventManagerApp::InitInstance
push ebx
mov ecx, eax
mov dword [esp + 0xd8], 1
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
or dword [esp + 0xd4], 0xffffffff
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00404ee1
push 0x598bdd
call fcn.00411d67
mov dword [esp], str.EPSON_Event_Manager
push 1
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x5d1678], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x411f95
push str.Epson_Event_Manager_Background
push 0x59af1c
call dword [sym.imp.USER32.dll_FindWindowW]
push dword [0x5d1678]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2f
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x411f30
push 0x2f
jmp 0x411f40
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x411f4b
push 0x5c
push edi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x411f4d
mov eax, edi
push 1
push 0xac
push eax
lea esi, [esp + 0x78]
call fcn.00404e75
push str.This_is_second_instance_of_Event_Manager__
push ebx
mov ecx, eax
mov dword [esp + 0xd8], 2
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
or dword [esp + 0xd4], 0xffffffff
pop ecx
lea ecx, [esp + 0x6c]
call fcn.00404ee1
mov edi, dword [esp + 0x14]
jmp 0x411ffc
mov edi, dword [esp + 0x14]
call fcn.0041205f
push 0xe28
call fcn.00438288
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xd0], 3
cmp eax, ebx
je 0x411fc6
push eax
call fcn.00418634
mov esi, eax
jmp 0x411fc8
xor esi, esi
or dword [esp + 0xd0], 0xffffffff
mov edi, dword [esp + 0x14]
push ebx
push ebx
push ebx
mov dword [edi + 0x20], esi
mov eax, dword [esi]
push 0x80
mov ecx, esi
mov dword [esp + 0x20], esi
call dword [eax + 0x164]
push ebx
mov ecx, esi
call fcn.0043be3d
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x18]
push edi
call fcn.00411335
cmp dword [edi + 0x20], ebx
je 0x412038
push ebx
call fcn.0043d051
pop ecx
push 4
mov ecx, edi
call fcn.0043ad89
push ebx
call fcn.00539a85
pop ecx
push eax
call fcn.0053c713
pop ecx
push dword [esp + 0x10]
lea ebx, [edi + 0xb8]
call fcn.00415af6
xor eax, eax
inc eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.005381db
mov esp, ebp
pop ebp
ret