Function at 0x408030
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x417ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
push 0xe162
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::LoadStringA
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4080b9
test cl, cl
je 0x4080b5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4080b9
add eax, 2
add esi, 2
test cl, cl
jne 0x408095
xor eax, eax
jmp 0x4080be
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
test cl, cl
jne 0x408111
mov eax, dword [ebx + 0xa4]
mov esi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4080f5
test cl, cl
je 0x4080f1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4080f5
add eax, 2
add esi, 2
test cl, cl
jne 0x4080d1
xor eax, eax
jmp 0x4080fa
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
test cl, cl
je 0x40814e
lea ecx, [ebx + 0x54]
call fcn.00404c50
test eax, eax
je 0x40814e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.004163f4
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push ebp
lea edx, [esp + 0x1c]
push 0xe715
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_AfxFormatString1
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
push 0x200
push 0
call sub.MFC42.DLL_CDocument::UpdateAllViews
lea edi, [ebx + 0x54]
push ebx
mov ecx, edi
call fcn.00404c70
push ebp
mov ecx, edi
call fcn.00405040
mov esi, eax
test esi, esi
je 0x408292
mov ebx, 3
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
cmp esi, 1
mov byte [esp + 0x28], bl
je 0x40820f
cmp esi, 2
je 0x408234
cmp esi, ebx
je 0x408254
cmp esi, 4
je 0x40825f
cmp esi, 5
je 0x40826a
cmp esi, 6
je 0x408278
cmp esi, 7
je 0x408278
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::RestoreWaitCursor
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.004163f4
push ebp
mov ecx, edi
call fcn.00405040
mov esi, eax
test esi, esi
jne 0x4081a1
jmp 0x40828e
push ebp
lea ecx, [esp + 0x34]
push 0xe811
push ecx
call sub.MFC42.DLL_AfxFormatString1
mov edx, dword [esp + 0x30]
push 0
push 0x34
push edx
call sub.MFC42.DLL_AfxMessageBox_1
cmp eax, 7
jne 0x408280
jmp 0x408278
push ebp
lea eax, [esp + 0x34]
push 0xe812
push eax
call sub.MFC42.DLL_AfxFormatString1
mov ecx, dword [esp + 0x30]
push 0
push 0x30
push ecx
call sub.MFC42.DLL_AfxMessageBox_1
jmp 0x408278
push 0xffffffffffffffff
push 0x30
push 0xe827
jmp 0x408273
push 0xffffffffffffffff
push 0x30
push 0xe82c
jmp 0x408273
push 0xffffffffffffffff
push 0x30
push 0xe82d
call sub.MFC42.DLL_AfxMessageBox
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.004163f4
mov ebx, dword [esp + 0x10]
push 0xe001
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::LoadStringA
lea edx, [esp + 0x18]
mov ecx, ebx
push edx
push 0x200
push 0
call sub.MFC42.DLL_CDocument::UpdateAllViews
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4082f4
cmp esi, 1
jne 0x4082c9
push 0
mov ecx, ebx
call fcn.00407920
push ebp
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
mov byte [esp + 0x2c], 4
call fcn.00408360
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.004163f4
jmp 0x408318
mov ecx, dword [ebx + 0xa4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408318
push 0
push 0x30
push 0
mov ecx, ebx
mov dword [ebx + 0xa8], 0
call sub.MFC42.DLL_CDocument::UpdateAllViews
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.004163f4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.004163f4
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4