Function at 0x4030f3
Capabilities:
Get common file path

Disassembly:
jmp 0x42f5a0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52713e
push eax
mov dword fs:[0], esp
sub esp, 0xde8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x24a0]
test eax, eax
je 0x42f778
lea ecx, [esp + 0x10]
call fcn.004fdecc
mov dword [esp + 0xe00], 0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x5e8]
push 0x400
push ecx
push 0x3ea6
push eax
call fcn.0040182a
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x400
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
lea edi, [esp + 0x5e8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
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 + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0xe00], 1
call fcn.004fdecc
mov byte [esp + 0xe00], 2
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x1e8]
push 0x400
push ecx
push 0x3f08
push eax
call fcn.0040182a
add esp, 0x10
lea ecx, [esp + 0x14]
push 0x400
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
lea edi, [esp + 0x1e8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
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 + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x14]
push 1
push str.LostSelection
push str.WarningMessage
push ebx
push ecx
mov byte [esp + 0xe14], 3
push ebp
lea ecx, [esp + 0x30]
call fcn.0048fa40
lea ecx, [esp + 0x14]
mov byte [esp + 0xe00], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xe00], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call fcn.0048fce0
lea ecx, [esp + 0x84]
mov dword [esp + 0xe00], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0xe00], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe00], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0xe00], 7
call sub.MFC42.DLL_CString::CString
or ebx, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0xe00], ebx
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x42f77b
or ebx, 0xffffffff
cmp dword [ebp + 0x25e8], 1
jle 0x42f790
mov ecx, ebp
call fcn.00401681
jmp 0x42f93f
lea ecx, [esp + 0x8c]
call fcn.004eda90
mov edx, dword [0x566a70]
mov dword [esp + 0xe00], 0xb
test ebp, ebp
mov dword [esp + 0x8c], edx
jne 0x42f7bc
xor ecx, ecx
jmp 0x42f7bf
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x21ec]
mov edx, dword [ebp + 0x21e8]
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x24cc]
mov dword [esp + 0xb4], edx
mov edx, dword [ebp + 0x24d0]
mov dword [esp + 0x9c], eax
mov eax, dword [0x566a04]
mov dword [esp + 0x90], ecx
mov dword [esp + 0xcc], 0x566a74
mov dword [esp + 0xd0], str.SaveEncodeSettings
mov dword [esp + 0xa0], edx
mov eax, dword [eax + 8]
test eax, eax
je 0x42f84c
mov eax, dword [eax]
mov edx, dword [eax - 8]
test edx, edx
jne 0x42f84c
lea edx, [esp + 0x9e8]
push edx
push 0
push 0
push 0x27
push ecx
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jne 0x42f84c
lea eax, [esp + 0x9e8]
mov dword [esp + 0xc8], eax
mov cl, byte [ebp + 0x24d4]
lea eax, [ebp + 0x24d4]
test cl, cl
je 0x42f863
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x24b0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
lea esi, [ebp + 0x20e4]
je 0x42f88f
lea ecx, [esp + 0xd4]
push 0x105
push ecx
push esi
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
jmp 0x42f89a
lea edx, [esp + 0xd4]
push esi
push edx
call edi
lea eax, [esp + 0x8c]
push eax
call fcn.004edaf0
add esp, 4
test eax, eax
je 0x42f92a
mov eax, dword [ebp + 0x25dc]
mov ecx, dword [ebp + 0x25e8]
cmp eax, ecx
jge 0x42f8cd
test eax, eax
jl 0x42f8cd
mov ecx, dword [ebp + 0x25e4]
mov eax, dword [ecx + eax*4]
jmp 0x42f8cf
xor eax, eax
mov dword [eax], 0
mov edx, dword [esp + 0xb4]
lea eax, [esp + 0xd4]
mov dword [ebp + 0x2228], 0
push eax
push esi
mov dword [ebp + 0x21e8], edx
call edi
mov ecx, ebp
call fcn.0040156e
mov ecx, ebp
call fcn.00401a7d
push esi
mov ecx, 0x566958
call sub.MFC42.DLL_CWinApp::AddToRecentFileList
lea ecx, [esp + 0x8c]
mov dword [esp + 0xe00], ebx
call fcn.004edae0
mov eax, 1
jmp 0x42f93f
lea ecx, [esp + 0x8c]
mov dword [esp + 0xe00], ebx
call fcn.004edae0
xor eax, eax
mov ecx, dword [esp + 0xdf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdf4
ret