Function at 0x4027b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570172
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push esi
push edi
push 0
push 0x5c5f8c
mov edi, ecx
mov eax, dword [edi + 0x20]
push 0x5c59c0
push 0
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov ecx, dword [eax + 0x20]
add esp, 0x14
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x402822
mov edx, dword [edi + 0x20]
push 0
push 0x5c5f8c
push 0x5c59c0
push 0
push edx
call sub.MSVCR71.dll___RTDynamicCast
mov eax, dword [eax + 0x20]
add esp, 0x14
push eax
call dword [sym.imp.USER32.dll_OpenIcon]
mov ecx, dword [edi + 0x20]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0x5c5f8c
push 0x5c59c0
push 0
push ecx
call sub.MSVCR71.dll___RTDynamicCast
mov edx, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
add esp, 0x14
push edx
call esi
mov eax, dword [edi + 0x20]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push 0
push 0x5c5f8c
push 0x5c59c0
push 0
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov ecx, dword [eax + 0x20]
add esp, 0x14
push ecx
call esi
mov edx, dword [edi + 0x20]
push 0
push 0x5c5f8c
push 0x5c59c0
push 0
push edx
call sub.MSVCR71.dll___RTDynamicCast
mov eax, dword [eax + 0x20]
add esp, 0x14
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [edi + 0x20]
push 0
push 0x5c5f8c
push 0x5c59c0
push 0
push ecx
call sub.MSVCR71.dll___RTDynamicCast
mov edx, dword [eax + 0x20]
add esp, 0x14
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov dword [esp + 0x2a4], 0
mov al, byte [edi + 0xc2]
test al, al
jne 0x402a4d
mov eax, dword [0x68c9b4]
push 1
push 0
add eax, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
setne al
mov byte [esp + 0x30], al
test al, al
mov byte [esp + 0x2a4], 1
je 0x402a2a
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str..nct
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test ecx, ecx
setne cl
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0044bec0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a4], 2
call sub.MFC71.DLL_CDialog::DoModal
cmp eax, 1
jne 0x402a0c
lea esi, [esp + 0x18]
lea eax, [esp + 0x38]
call fcn.00402020
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x278]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0xfc]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x280]
mov ebx, dword [esp + 0x27c]
mov dword [esp + 0x28], edx
xor edx, edx
test esi, esi
setne dl
test eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
je 0x4029cd
cmp eax, 3
mov byte [esp + 0x13], 0
jne 0x4029d2
mov byte [esp + 0x13], 1
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4029e1
cmp eax, 3
sete al
mov byte [ecx], al
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a4], 1
call fcn.0044c1c0
mov byte [esp + 0x2a4], 0
mov ecx, dword [0x68c9b4]
mov dword [ecx + 0x2c], 1
jmp 0x402da1
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a4], 1
call fcn.0044c1c0
mov edx, dword [0x68c9b4]
mov dword [edx + 0x2c], 1
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor eax, eax
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x402a57
mov byte [eax], 0
mov eax, dword [edi + 0xac]
mov ecx, dword [eax + 4]
mov esi, dword [ecx + edi + 0xb8]
push 0x105
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Preallocate]
mov esi, dword [esi + 0x38]
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Append_1]
push 0x5c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
cmp eax, 0xffffffff
je 0x402aa1
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 0xc]
dec ecx
cmp eax, ecx
je 0x402aad
push 0x5c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::AppendChar_1]
mov esi, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 0x28], esi
call fcn.0051e8c5
push 0x57e144
lea ecx, [esp + 0x20]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
push 0x57e144
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a8], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
mov eax, esi
sub eax, 2
mov byte [esp + 0x2a4], 5
je 0x402b69
dec eax
jne 0x402b04
push str.DefaultMixedTemplate
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_6]
test ebx, ebx
je 0x402b1a
mov eax, dword [ebx]
push 0xc
mov ecx, ebx
call dword [eax + 0x38]
test al, al
mov eax, str.Data_TitleMax.nct
jne 0x402b1f
mov eax, str.Data_Title.nct
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00407a40
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a4], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x402bcb
push str.DefaultDataTemplate
jmp 0x402bc1
test ebx, ebx
je 0x402b7f
mov edx, dword [ebx]
push 0xc
mov ecx, ebx
call dword [edx + 0x38]
test al, al
mov eax, str.Audio_TitleMax.nct
jne 0x402b84
mov eax, str.Audio_Title.nct
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00407a40
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a4], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push str.DefaultAudioTemplate
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_6]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x57e818
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call sub.MFC71.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a4], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 0xc]
test eax, eax
mov ebx, 9
lea ecx, [esp + 0xc]
je 0x402d63
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x402d6e
mov ecx, dword [esp + 0xc]
push 0x57e764
push ecx
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
jne 0x402d57
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
push 0x208
push 0x208
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2ac], bl
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer_1]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00451490
add esp, 8
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2ac], 0xb
call fcn.00451640
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a4], 0xd
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push 0x57e758
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00407a40
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x2b0], 0xe
call fcn.004079b0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 0xf
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x402d6e
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
jmp 0x402d6e
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty_1]
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
mov byte [edi + 0xc2], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a4], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402db3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
test ebx, ebx
push 0
push 0x5c5f34
push 0x5c5f50
push 0
jne 0x402e31
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
push eax
push 0x5c5f68
call fcn.00402740
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [ecx - 0xc]
add esp, 0x14
test eax, eax
jne 0x402e0a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push ebx
push edx
push ebx
push eax
push esi
call fcn.00452d60
jmp 0x402ec3
mov ecx, dword [esi + 0x94]
test ecx, ecx
jne 0x402e1d
mov dword [esp + 0x14], ecx
jmp 0x402ec3
mov eax, dword [esi + 0x98]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
jmp 0x402ec3
push 0
push 0x5c5f68
call fcn.00402740
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
je 0x402f7e
cmp ebx, 0xb
jne 0x402e5d
mov dword [esp + 0x14], 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push 0
push ecx
push ebx
push edx
push esi
call fcn.00452d60
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x402ec3
push 0
push 0x5c5f34
push 0x5c5f50
push 0
push eax
push 0x5c5f68
call fcn.00402740
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x402ec3
mov eax, dword [esi]
push 1
push 1
push 0
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0xbc]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x84]
test esi, esi
je 0x402f7e
mov al, byte [esp + 0x13]
test al, al
jne 0x402ee0
mov eax, dword [esp + 0x14]
push 1
push eax
push esi
call fcn.004530e0
push 0
push 1
push 0
mov ecx, esi
call sub.MFC71.DLL_CDocument::UpdateAllViews
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004537b0
lea ecx, [esi + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty_1]
cmp dword [esi + 0xcc], 1
jne 0x402f11
inc dword [0x68ca2c]
jmp 0x402f17
inc dword [0x68ca28]
call fcn.00454d70
push 0
push 0x5c5f8c
push 0x5c59c0
mov dword [esi + 0x48], 0
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x7c]
push eax
call sub.MSVCR71.dll___RTDynamicCast
add esp, 0x14
push eax
call fcn.00414630
mov al, byte [ebp + 8]
test al, al
je 0x402f7e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x402f7e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x402f7e
test ebx, ebx
jne 0x402f7e
call fcn.004090a0
mov ecx, dword [eax + 0x20]
push ebx
push 0x2720
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [esp + 0x29c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10