Function at 0x417350
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x421f34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x8c
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CDialog::CDialog
lea ebx, [esi + 0x64]
mov dword [esp + 0x1c], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x6c]
mov byte [esp + 0x1c], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0x74]
mov byte [esp + 0x1c], 3
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
push str.SBOROO
mov ecx, ebx
mov byte [esp + 0x20], 4
mov dword [esi], 0x425d60
mov dword [esi + 0x60], 0xbb8
call fcn.0041f8a4
push 0x43ee00
mov ecx, edi
mov dword [esi + 0x68], 0x5dc
call fcn.0041f8a4
push 0x43ee00
lea ecx, [esi + 0x70]
call fcn.0041f8a4
push 0x43ee00
mov ecx, ebp
call fcn.0041f8a4
xor eax, eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0xbb8
push str.TIMEWAIT
push str.W3CHART_OPTIONS
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x60], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push str.SEOROO
push str.KEYSEQ
lea ecx, [esp + 0x2c]
push str.W3CHART_OPTIONS
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, ebx
mov byte [esp + 0x20], 5
call fcn.0041f8b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push str.SSOROO
push str.KEYSEQ2
push str.W3CHART_OPTIONS
lea edx, [esp + 0x30]
mov ecx, eax
push edx
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x70]
mov byte [esp + 0x20], 6
call fcn.0041f8b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x5dc
push str.TIMEWAIT2
push str.W3CHART_OPTIONS
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x68], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x43ee00
push str.INSTALLPATH
lea ecx, [esp + 0x2c]
push str.W3CHART_OPTIONS
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, edi
mov byte [esp + 0x20], 7
call fcn.0041f8b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x43ee00
push str.BWEXE109
lea edx, [esp + 0x2c]
push str.W3CHART_OPTIONS
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, ebp
mov byte [esp + 0x20], 8
call fcn.0041f8b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
push str.AUTOKEYS
push str.W3CHART_OPTIONS
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x78], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
push str.AUTOCHECK
push str.W3CHART_OPTIONS
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x7c], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
push str.BGGRID
push str.W3CHART_OPTIONS
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x80], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
push str.MAXAPM
push str.W3CHART_OPTIONS
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x84], eax
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4175e5
push edi
call fcn.004177c0
add esp, 4
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x417640
push edi
mov ecx, ebp
call fcn.0041f8b0
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, ebp
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x42b04c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x417634
push 0x42b04c
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
push str.starcraft1_1_.09b.exe
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4