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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], 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 0x42bcbc
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42bfd5
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 - 0x40], 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.0041bb50
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x38], eax
jne 0x42bcf4
xor eax, eax
jmp 0x42bd28
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.004551e0
mov eax, dword [ebp - 0x38]
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 0x42bd50
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42bfd5
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jae 0x42bfb0
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 0x42bffe
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 0x42bffe
cmp dword [eax + 0x28], 5
jne 0x42bfeb
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.ole32.dll_ProgIDFromCLSID]
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x42bffe
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 4]
lea edx, [ebp - 0x54]
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 + 4]
mov eax, dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea edx, [ebp - 0x54]
push ecx
push edx
lea edi, [esi + 0xc]
push 0x50000000
push 0x554ea0
push eax
mov ecx, edi
call sub.MFC42.DLL_CWnd::CreateControl
test eax, eax
je 0x42be24
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetControlUnknown
cmp eax, ebx
je 0x42be24
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push edx
push 0x4e1328
push eax
call dword [ecx]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x42be39
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x34]
inc ecx
jmp 0x42bd5b
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 0x4e1348
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 - 0x14]
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 0x4e1348
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 0x42bebf
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x42bf2f
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x42bf2f
mov eax, 0x88888889
mov dword [ebp - 0x44], ebx
mul ecx
mov eax, 0x88888889
mov ecx, edx
mul edi
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov ebx, eax
sub ebx, dword [ebp - 0x54]
shr ecx, 3
shr edx, 3
cmp ecx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jae 0x42bf0c
mov ebx, dword [ebp - 0x54]
sub eax, ecx
sub eax, ebx
shr eax, 1
mov edi, eax
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x50]
sub eax, ebx
cmp edx, eax
jae 0x42bf1e
sub eax, edx
shr eax, 1
jmp 0x42bf21
mov eax, dword [ebp - 0x44]
push 1
push edx
push ecx
push eax
push edi
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CWnd::MoveWindow
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x4c]
push edx
push 0x800
lea edx, [ebp - 0x18]
push 1
mov dword [ebp - 0x18], str.OnSave
mov ecx, dword [eax]
push edx
push 0x4e1348
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x50]
push edx
push 0x800
lea edx, [ebp - 0x18]
push 1
mov dword [ebp - 0x18], str.OnLoad
mov ecx, dword [eax]
push edx
push 0x4e1348
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
add esi, 0x54
push esi
push 0x800
lea edx, [ebp - 0x18]
push 1
mov dword [ebp - 0x18], str.GetControlData
mov ecx, dword [eax]
push edx
push 0x4e1348
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 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 - 0x60]
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 0x42bd5b