Function at 0x408cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415147
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, 6
push ebx
mov ebx, ecx
cmp dword [ebx + 0x170], eax
jb 0x408d03
push 0x30
push 0x42fa10
push str.Beta
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x408fdd
push ebp
push esi
push edi
lea ebp, [ebx + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
test eax, eax
je 0x408fc8
mov edi, dword [esp + 0x280]
mov eax, dword [eax]
cmp eax, dword [edi + 0x18]
jne 0x408fc8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp]
mov dword [esp + 0x278], 0
call fcn.004109b0
mov ecx, dword [ebp]
push eax
call fcn.004109b0
push eax
lea eax, [esp + 0x18]
push str.._s._sAll_Files_._.
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push ecx
mov ecx, dword [ebp]
push 6
call fcn.00410990
push eax
push 0
push 0
lea ecx, [esp + 0x8c]
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [esp + 0x278], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
lea ecx, [esp + 0x74]
sbb eax, eax
and eax, 0xc
add eax, 0x4c
mov dword [esp + 0xd4], eax
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x408f8f
lea esi, [ebx + 0x1d4]
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::GetSelectionCharFormat
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x38]
xor edx, 0x20
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0x3c
mov dword [esp + 0x40], 0x40000020
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], 0x969696
call sub.MFC42.DLL_CRichEditCtrl::SetSelectionCharFormat
mov eax, dword [edi + 0x1c]
lea ecx, [eax + 0x11]
add eax, 0xb
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::SetSel
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call sub.MFC42.DLL_CRichEditCtrl::SetSelectionCharFormat
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
push eax
push eax
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::SetSel
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp]
mov byte [esp + 0x278], 2
call fcn.00410990
push eax
lea eax, [esp + 0x18]
push 0x42fe98
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x1f4]
add esp, 0xc
push ecx
push 0
push 0xc2
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x28]
call fcn.00410960
lea eax, [esp + 0x20]
lea ecx, [esp + 0x74]
push eax
mov byte [esp + 0x27c], 3
mov dword [esp + 0x30], 0x13
call sub.MFC42.DLL_CFileDialog::GetPathName
mov eax, dword [eax]
mov edx, dword [ebp]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add edx, 0x128
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CFileDialog::GetFileName
mov eax, dword [eax]
mov edx, dword [ebp]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add edx, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CFileDialog::GetFileExt
mov eax, dword [eax]
mov edx, dword [ebp]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add edx, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0xbc]
lea edx, [esp + 0x28]
add ecx, 0x818
push edx
push eax
mov dword [esp + 0x38], 0x22c
call fcn.0040f0c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call fcn.00410970
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x124]
mov byte [esp + 0x278], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x278], 0
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x408d10
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x264]
pop ebx
mov dword fs:[0], ecx
add esp, 0x26c
ret 4