Function at 0x456f50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c61f2
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], eax
lea eax, [edi + 0x20]
mov dword [edi], vtable.ViewMediatorBase.0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4c], edi
jb 0x456fc0
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [edi + 0x40], cl
and dword [edi + 0x40], 0xfffffeff
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x1c], ecx
mov dword [ebp - 4], 2
mov dword [edi], vtable.ViewMediatorUI.0
mov dword [edi + 0x50], ecx
mov byte [ebp - 4], 3
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x58]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x45700d
mov eax, dword [ecx]
jmp 0x45700f
mov eax, ecx
push 1
xor edx, edx
push str.0234
mov word [eax], dx
call fcn.00408a10
lea ecx, [edi + 0x74]
mov dword [edi + 0x70], 0
call fcn.00445200
lea ecx, [edi + 0x10c]
call fcn.00457330
mov byte [ebp - 4], 6
lea ecx, [edi + 0x1f4]
mov dword [edi + 0x1ec], 0
mov dword [edi + 0x1f0], 0
call fcn.0052f770
lea ecx, [edi + 0x1f8]
mov byte [ebp - 4], 7
call fcn.0052f770
lea ecx, [edi + 0x1fc]
mov byte [ebp - 4], 8
call fcn.0052f770
lea eax, [edi + 0x20c]
mov dword [edi + 0x200], 0x64
push eax
push 0x5e4e20
push 1
push 0
push 0x5e4e40
mov dword [edi + 0x204], 0
mov dword [edi + 0x208], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
lea ecx, [edi + 0x210]
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4570d6
mov eax, dword [ecx]
jmp 0x4570d8
mov eax, ecx
xor edx, edx
push edx
push 0x5f8398
mov word [eax], dx
call fcn.00408a10
lea eax, [edi + 0x228]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x457104
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x240]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x457121
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x258], ecx
mov dword [edi + 0x25c], ecx
mov word [edi + 0x260], cx
mov byte [edi + 0x270], cl
and dword [edi + 0x270], 0xfffffeff
mov dword [edi + 0x274], ecx
mov dword [edi + 0x278], ecx
mov dword [edi + 0x27c], ecx
mov byte [edi + 0x74], cl
mov byte [edi + 0x10c], cl
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4571b1
push 0x58
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push dword [ebp - 0x30]
mov esi, eax
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_ReleaseDC]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x6249b4]
comiss xmm0, dword [0x6248e0]
jbe 0x4571b1
mov byte [edi + 0x25c], 1
cmp dword [edi + 0x14], 1
jne 0x4571be
mov byte [edi + 0x25e], 1
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.0051e030
push 0x12
xor eax, eax
mov dword [ebp - 0x34], 7
push str.HTMLViewTester.dll
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
call fcn.00408a10
push ecx
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
mov byte [ebp - 4], 0x10
add esp, 4
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x45722d
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00409510
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4572c8
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x50]
call fcn.0052ab10
test al, al
je 0x4572c8
mov eax, fcn.00440db0
test eax, eax
je 0x457283
push str.Successfully_loaded_HTMLViewTester.
push 0x5f8398
push 0x5f8398
push str.ViewMediatorUI
push 0x5f8398
push 0xa
call fcn.00440db0
add esp, 0x18
mov eax, dword [edi + 0x50]
xor esi, esi
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4572a2
push str.initializeTester
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov edx, dword [edi + 0x50]
xor eax, eax
test edx, edx
je 0x4572b3
push str.registerHTMLView
push edx
call ecx
mov dword [edi + 0x54], eax
test esi, esi
je 0x4572c8
mov eax, dword [edi + 0xc]
push dword [eax + 0xc]
push dword [eax + 8]
call esi
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4572dd
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409510
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 0x14