Function at 0x4069b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407aab
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x40d028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 0xff
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0x1e4]
call sub.mfc90u.dll_CWinApp::InitInstance
push 0
call sub.mfc90u.dll_AfxEnableControlContainer
add esp, 4
lea ecx, [ebp - 0x1d4]
call sub.mfc90u.dll_CCommandLineInfo::CCommandLineInfo
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1d4]
push ecx
mov ecx, dword [ebp - 0x1e4]
call sub.mfc90u.dll_CWinApp::ParseCommandLine
push str.E9923709_0A33_4ba4_AFA8_3DC5C03CD64C
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x1e4]
mov dword [edx + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406a6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x406a6e
mov dword [ebp - 0x1e8], 0
jmp 0x406a78
mov dword [ebp - 0x1e8], 1
mov al, byte [ebp - 0x1e8]
mov byte [ebp - 0xd], al
push 1
movzx ecx, byte [ebp - 0xd]
push ecx
lea ecx, [ebp - 0x1bc]
call dword [sym.imp.mfc90u.dll_]
push eax
mov ecx, 0x40d750
call fcn.00407550
movzx edx, al
test edx, edx
je 0x406acd
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d4]
call fcn.0040413a
mov eax, dword [ebp - 0x1d8]
jmp 0x406c4f
push str.Local_AppWizard_Generated_Applications
mov ecx, dword [ebp - 0x1e4]
call sub.mfc90u.dll_CWinApp::SetRegistryKey
mov dword [ebp - 0x1ac], 0
xor eax, eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
lea ecx, [ebp - 0x1ac]
push ecx
push str.32770
call fcn.00401b80
push eax
call dword [sym.imp.USER32.dll_GetClassInfoW]
mov dword [ebp - 0x188], str.2C56D011_A73E_4977_82C2_8F2CAE945BF1
lea edx, [ebp - 0x1ac]
push edx
call sub.mfc90u.dll_AfxRegisterClass
mov ecx, dword [ebp - 0x1e4]
call fcn.00406580
movzx eax, al
test eax, eax
jne 0x406b86
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d4]
call fcn.0040413a
mov eax, dword [ebp - 0x1dc]
jmp 0x406c4f
call sub.mfc90u.dll_AfxOleInit
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1ec], ecx
cmp dword [ebp - 0x1ec], 1
je 0x406baf
jmp 0x406bcc
mov edx, dword [ebp - 0x1e4]
mov byte [edx + 0xac], 1
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
lea ecx, [ebp - 0x184]
call fcn.00405c90
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1e4]
lea edx, [ebp - 0x184]
mov dword [ecx + 0x20], edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x184]
call fcn.00401ae0
lea ecx, [ebp - 0x184]
call sub.mfc90u.dll_CDialog::DoModal
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x184]
call fcn.00405be0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d4]
call fcn.0040413a
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret