Function at 0x477110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ef74a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x67d070]
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 esi, ecx
mov dword [ebp - 0x48], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 8]
mov dword [esi], vtable.ViewMediatorBase.0
mov byte [esi + 4], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4c], esi
jb 0x47716c
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov word [esi + 0x20], cx
mov dword [ebp - 4], ecx
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x28]
mov dword [esi], vtable.ViewMediatorUI.0
call fcn.004a5d40
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call fcn.004a5d40
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.004a5d40
lea eax, [esi + 0x44]
mov dword [esi + 0x38], 0x64
push eax
push 0x60d7f0
push 1
push 0
push 0x60d810
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov word [esi + 0x48], 0
mov byte [esi + 0x58], 0
and dword [esi + 0x58], 0xfffffeff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
xor eax, eax
mov dword [esi + 0x78], 0x3e99999a
mov byte [esi + 0x7c], 1
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0x2710
mov dword [esi + 0xa8], 0x2712
mov dword [esi + 0xac], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0049bed0
push 0x12
xor eax, eax
mov dword [ebp - 0x30], 7
push str.HTMLViewTester.dll
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00407060
push ecx
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0049c840
mov byte [ebp - 4], 8
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4772f1
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407b40
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 0x47735c
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x70]
call fcn.004b9cd0
test al, al
je 0x47735c
mov eax, dword [esi + 0x70]
xor edi, edi
mov ecx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x477336
push str.initializeTester
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
mov edx, dword [esi + 0x70]
xor eax, eax
test edx, edx
je 0x477347
push str.registerHTMLView
push edx
call ecx
mov dword [esi + 0xac], eax
test edi, edi
je 0x47735c
push dword [ebp - 0x2c]
push dword [ebp + 8]
call edi
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x477371
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407b40
mov eax, esi
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.00599c70
mov esp, ebp
pop ebp
ret 8