Function at 0x42cb60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42cbac
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42cf72
push 1
call dword [sym.imp.UxTheme.dll_SetThemeAppProperties]
push ebx
push ebx
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x48], esp
push edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call sub.MFC42.DLL_CString::CString_4
call fcn.0041be40
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x40], eax
jne 0x42cbe4
xor eax, eax
jmp 0x42cc18
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0045b980
mov eax, dword [ebp - 0x40]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, ebx
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x42cc40
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42cf72
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jae 0x42cf4d
mov eax, dword [ebp - 0x2c]
lea edi, [ebp - 0x28]
push edi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x42cf9b
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x42cf9b
cmp dword [eax + 0x28], 5
jne 0x42cf88
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.ole32.dll_ProgIDFromCLSID]
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x42cf9b
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 8]
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea edx, [ebp - 0x5c]
push ecx
push edx
lea edi, [esi + 0x10]
push 0x50000000
push 0x5e2540
push eax
mov ecx, edi
call sub.MFC42.DLL_CWnd::CreateControl
test eax, eax
je 0x42cd14
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetControlUnknown
cmp eax, ebx
je 0x42cd14
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push edx
push 0x4ec930
push eax
call dword [ecx]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x42cd29
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x34]
inc ecx
jmp 0x42cc4b
lea edx, [ebp - 0x38]
mov dword [ebp - 0x20], ebx
push edx
push 0x800
lea edx, [ebp - 0x34]
push 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], str.FormSizeCX
mov ecx, dword [eax]
push edx
push 0x4ec950
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push eax
push 3
push ecx
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetProperty
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
push ecx
push 0x800
lea ecx, [ebp - 0x34]
push 1
mov dword [ebp - 0x34], str.FormSizeCY
mov edx, dword [eax]
push ecx
push 0x4ec950
push eax
call dword [edx + 0x14]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x24]
push edx
push 3
push eax
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetProperty
jmp 0x42cdaf
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x42ce21
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x42ce21
mov eax, 0x88888889
mov dword [ebp - 0x4c], ebx
mul ecx
mov eax, 0x88888889
mov ecx, edx
mul edi
mov eax, dword [ebp - 0x54]
xor edi, edi
mov ebx, eax
sub ebx, dword [ebp - 0x5c]
shr ecx, 3
shr edx, 3
cmp ecx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jae 0x42cdfc
mov ebx, dword [ebp - 0x5c]
sub eax, ecx
sub eax, ebx
shr eax, 1
mov edi, eax
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x58]
sub eax, ebx
cmp edx, eax
jae 0x42ce0e
sub eax, edx
shr eax, 1
jmp 0x42ce11
mov eax, dword [ebp - 0x4c]
push 1
push edx
push ecx
push eax
push edi
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CWnd::MoveWindow
xor ebx, ebx
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x50]
push edx
push 0x800
lea edx, [ebp - 0x14]
push 1
mov dword [ebp - 0x14], str.OnSave
mov ecx, dword [eax]
push edx
push 0x4ec950
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x54]
push edx
push 0x800
lea edx, [ebp - 0x14]
push 1
mov dword [ebp - 0x14], str.OnLoad
mov ecx, dword [eax]
push edx
push 0x4ec950
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x58]
push edx
push 0x800
lea edx, [ebp - 0x14]
push 1
mov dword [ebp - 0x14], str.GetControlData
mov ecx, dword [eax]
push edx
push 0x4ec950
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
push edx
or edi, 0xffffffff
push 0x800
lea edx, [ebp - 0x14]
push 1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x14], str.SetNotifyWnd
mov ecx, dword [eax]
push edx
push 0x4ec950
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
push edx
push 0x800
lea edx, [ebp - 0x14]
push 1
mov dword [ebp - 0x14], str.SetHostProgramPath
mov ecx, dword [eax]
push edx
push 0x4ec950
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x3c], edi
je 0x42cf0e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov ecx, eax
call sub.MFC42.DLL_CWnd::GetParentOwner
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x3c]
push ecx
push 0x5c2a04
push ebx
push ebx
push 1
lea eax, [esi + 0x10]
push edx
push eax
call sub.MFC42.DLL_CWnd::InvokeHelper
add esp, 0x1c
cmp dword [ebp - 0x40], edi
je 0x42cf38
push ebx
mov ecx, 0x5e3648
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [ebp - 0x40]
push eax
push 0x5c2a00
push ebx
push ebx
push 1
add esi, 0x10
push ecx
push esi
call sub.MFC42.DLL_CWnd::InvokeHelper
add esp, 0x1c
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 7
call dword [sym.imp.UxTheme.dll_SetThemeAppProperties]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x68]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x28]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x34]
inc ecx
jmp 0x42cc4b