Function at 0x453db0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d670c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5060c0]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a4300
add esi, 0x124
add esp, 0xc
cmp dword [esi + 0x14], 7
jbe 0x453e04
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push 0x4ed148
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x218]
push str.PreviewAddin.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.00425cf0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x238]
cmp dword [ebp - 0x224], 7
cmova esi, dword [ebp - 0x238]
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x454024
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00404a20
test al, al
jne 0x453eb3
test esi, esi
jne 0x453e92
xor ecx, ecx
jmp 0x453ea6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453e97
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x220]
call fcn.00404cd0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x453ef7
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x453eed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45402e
push ecx
push edx
call fcn.004a23b3
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x454024
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x21c]
mov edi, dword [ebp - 0x220]
push edi
push str._XD__Reg_PreviewAddin__s
push eax
call fcn.0041f6d0
mov esi, dword [ebp - 0x21c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x453f7b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453fec
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x454024
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
push str._s___s_
push eax
call fcn.0041f6d0
mov esi, dword [ebp - 0x21c]
add esp, 0xc
push 0
push 0
push esi
push str.regsvr32.exe
call fcn.00458020
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x453fec
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x454008
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.004a2700
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404ea0
call fcn.004a78df
int3