Function at 0x4c9500
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5166e0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp edi, 1
jle 0x4c955c
push 0x529dc8
push dword [esi + 4]
call fcn.0045276e
add esp, 8
test eax, eax
jne 0x4c955c
mov edx, esi
mov ecx, edi
call fcn.004c9a90
xor eax, eax
jmp 0x4c980e
push 0x400
lea eax, [ebp - 0x810]
push eax
push 0xffffffffffffffff
push dword [esi]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [sym.imp.PHDPFuncs.dll_int___cdecl_VerifyEmbeddedSignature_wchar_t_const__]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x81c], eax
xor esi, esi
mov dword [ebp - 0x8cc], 0x529624
mov eax, 0x529624
mov dword [ebp - 0x8c8], str.EcoIface.dll
mov dword [ebp - 0x8c4], str.TRC.Behaviors.dll
mov dword [ebp - 0x8c0], str.TRC.Common.dll
mov dword [ebp - 0x8bc], str.TRC.Constants.dll
mov dword [ebp - 0x8b8], str.TRC.Controls.dll
mov dword [ebp - 0x8b4], str.TRC.Converters.dll
mov dword [ebp - 0x8b0], str.TRC.Core.dll
mov dword [ebp - 0x8ac], str.TRC.EventManager.dll
mov dword [ebp - 0x8a8], str.TRC.GlobalEditor.dll
mov dword [ebp - 0x8a4], str.TRC.Graphics.dll
mov dword [ebp - 0x8a0], str.TRC.Import.dll
mov dword [ebp - 0x89c], str.TRC.Merge.dll
mov dword [ebp - 0x898], str.TRC.PhaseConfig.Matching.dll
mov dword [ebp - 0x894], str.TRC.PhdSql.CaseList.dll
mov dword [ebp - 0x890], str.TRC.PhdSql.CreateDal.dll
mov dword [ebp - 0x88c], str.TRC.PhdSql.Evaluation.dll
mov dword [ebp - 0x888], str.TRC.PhdSql.Framework.Dal.dll
mov dword [ebp - 0x884], str.TRC.PhdSql.GraphPrint.dll
mov dword [ebp - 0x880], str.TRC.PhdSql.ManageDatabase.dll
mov dword [ebp - 0x87c], str.TRC.PhdSql.ScenarioManager.dll
mov dword [ebp - 0x878], str.TRC.PhdSql.SmoAccess.dll
mov dword [ebp - 0x874], str.TRC.PhdSql.Tables.Base.dll
mov dword [ebp - 0x870], str.TRC.PhdSql.Tables.Corp.dll
mov dword [ebp - 0x86c], str.TRC.PhdSql.Tables.dll
mov dword [ebp - 0x868], str.TRC.PhdSql.Tables.IRR.dll
mov dword [ebp - 0x864], str.TRC.PhdSql.Tables.Projects.dll
mov dword [ebp - 0x860], str.TRC.PhdSql.Tables.Rpt.dll
mov dword [ebp - 0x85c], str.TRC.PhdSql.Tables.Tbm.dll
mov dword [ebp - 0x858], str.TRC.PhdSql.Tables.Users.dll
mov dword [ebp - 0x854], str.TRC.ProjectsProspects.dll
mov dword [ebp - 0x850], str.TRC.Resources.dll
mov dword [ebp - 0x84c], str.TRC.UiCore.dll
mov dword [ebp - 0x848], str.TRC.Utilities.dll
mov dword [ebp - 0x844], str.TRC.ViewModels.dll
mov dword [ebp - 0x840], str.databaseTransfer.exe
mov dword [ebp - 0x83c], str.NewDatabase.exe
mov dword [ebp - 0x838], str.NewDatabase_Defaults.exe
mov dword [ebp - 0x834], str.NewDatabase_Rpt.exe
mov dword [ebp - 0x830], str.NewDatabase_Rules.exe
mov dword [ebp - 0x82c], str.NewDatabase_Users.exe
mov dword [ebp - 0x828], str.PhdAdhocQa.exe
mov dword [ebp - 0x824], str.sql_depend.exe
mov dword [ebp - 0x820], str.TRC.PHDWin.exe
mov dword [ebp - 0x818], 0
push eax
call edi
add esp, 4
test eax, eax
je 0x4c9809
mov eax, dword [ebp + esi*4 - 0x8c8]
inc esi
test eax, eax
jne 0x4c9751
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4c9829
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0x11
push 1
push 3
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 0
push str.TRC.PHD.EcoEngine._d._d._d
push eax
call fcn.0040a480
mov esi, dword [ebp - 0x814]
add esp, 0x14
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x4c97c3
lea edi, [eax + 1]
jmp 0x4c97e6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4c97e4
call dword [sym.imp.PHDPFuncs.dll__LogInit]
call fcn.004c93e0
call dword [sym.imp.PHDPFuncs.dll__LogClose]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c9805
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x4c980e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404320
int3