Function at 0x401860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40532b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x40a028]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x40a028]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
mov esi, ecx
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinApp::InitInstance]
xor edi, edi
push edi
call fcn.004045a0
test eax, eax
jne 0x4018e3
push 0xffffffffffffffff
push edi
push 0x68
call dword [sym.imp.mfc100u.dll_AfxMessageBox]
xor eax, eax
jmp 0x401bdc
call dword [sym.imp.mfc100u.dll_AfxOleInit]
test eax, eax
jne 0x4018ff
push 0xffffffffffffffff
push edi
push 0x64
call dword [sym.imp.mfc100u.dll_AfxMessageBox]
xor eax, eax
jmp 0x401bdc
push edi
call dword [sym.imp.mfc100u.dll_AfxEnableControlContainer]
add esp, 4
push 0x406c20
mov ebx, 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x40a7bc], eax
cmp eax, edi
je 0x401931
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4018dc
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinApp::SetRegistryKey]
push 4
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinApp::LoadStdProfileSettings]
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinAppEx::InitContextMenuManager]
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinAppEx::InitKeyboardManager]
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinAppEx::InitTooltipManager]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
or edi, 0xffffffff
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], 0xc8
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x48], ebx
call dword [sym.imp.mfc100u.dll_CMFCToolTipCtrl::GetThisClass]
push eax
push 0xffff
mov ecx, 0x40a7f0
call dword [sym.imp.mfc100u.dll_CWinAppEx::GetTooltipManager]
mov ecx, eax
call dword [sym.imp.mfc100u.dll_CTooltipManager::SetTooltipParams]
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xc8], 0
test eax, eax
je 0x4019fe
push 0x4071d8
push 0x407648
push 0x406fcc
push 0x80
mov ecx, eax
call dword [sym.imp.mfc100u.dll_CSingleDocTemplate::CSingleDocTemplate]
jmp 0x401a00
xor eax, eax
mov dword [esp + 0xc8], edi
test eax, eax
je 0x4018dc
push eax
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinApp::AddDocTemplate]
lea ecx, [esp + 0x60]
call dword [0x406204]
lea edx, [esp + 0x60]
push edx
mov ecx, esi
mov dword [esp + 0xcc], ebx
call dword [sym.imp.mfc100u.dll_CWinApp::ParseCommandLine]
push 0x65
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], vtable.CRegistry.0
call dword [0x406678]
mov dword [esp + 0x14], 0x80000001
mov byte [esp + 0xc8], 3
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
mov edi, eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x2c
lea edx, [esp + 0x90]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x8c]
push eax
lea edi, [esp + 0x14]
mov dword [esp + 0x90], 0x2c
mov dword [esp + 0x24], ebx
call fcn.00401d40
test eax, eax
je 0x401acf
mov ecx, dword [esp + 0x94]
mov dword [esi + 0x4c], ecx
push 0x40a428
lea edi, [esp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.00403e00
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinApp::ProcessShellCommand]
test eax, eax
jne 0x401b39
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.CRegistry.0
test eax, eax
je 0x401b09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x60]
mov dword [esp + 0xc8], 0xffffffff
call dword [sym.imp.mfc100u.dll_CCommandLineInfo::CCommandLineInfo]
xor eax, eax
jmp 0x401bdc
cmp dword [0x40a42c], 0
mov eax, dword [esi + 0x20]
je 0x401b68
test eax, eax
jne 0x401b57
push 3
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x401b7b
mov eax, dword [eax + 0x20]
push 3
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x401b7b
test eax, eax
je 0x401b6f
mov eax, dword [eax + 0x20]
push 3
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x20]
push 5
call dword [sym.imp.mfc100u.dll_CWnd::ShowWindow]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.CRegistry.0
test eax, eax
je 0x401bb1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x60]
mov dword [esp + 0xc8], 0xffffffff
call dword [sym.imp.mfc100u.dll_CCommandLineInfo::CCommandLineInfo]
mov eax, ebx
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0040489a
mov esp, ebp
pop ebp
ret