i keep having DirectX error while I'm playing a game, i thought i might have some corrupted files so i tried to update it.
while installing i got this error:
A cabinet file necessary for installation cannot be trusted. Please verify the Cryptographic services are enabled and the cabinet file certificate is valid
I have Win vista 32-bits.

I've checked my cryptographic services in the administrative tools and they where set to automatic so normal, i also reset them and nothing changed.

I'm also having some flashing screens while windows boots

so any help on this ?
I've run Microsoft genuine advantage diagnostic tool and here what i got:
Diagnostic Report (1.9.0011.0):
-----------------------------------------
WGA Data-->
Validation Status: Genuine
Validation Code: 0

Cached Validation Code: N/A, hr = 0xc004f012
Windows Product Key: *****-*****-YQQTB-FWK9V-932CC
Windows Product Key Hash: L1zPFFvNQ04Nunm9BorPaqFl4jI=
Windows Product ID: 89580-OEM-7332132-00031
Windows Product ID Type: 2
Windows License Type: OEM SLP
Windows OS version: 6.0.6001.2.00010100.1.0.001
ID: {59B69783-6139-4F6F-B2D0-2765EC3C204B}(1)
Is Admin: Yes
TestCab: 0x0
WGA Version: N/A, hr = 0x80070002
Signed By: N/A, hr = 0x80070002
Product Name: Windows Vista (TM) Ultimate
Architecture: 0x00000000
Build lab: 6001.vistasp1_gdr.090302-1506
TTS Error:
Validation Diagnostic:
Resolution Status: N/A

WgaER Data-->
ThreatID(s): N/A, hr = 0x80070002
Version: 6.0.6001.18152

WGA Notifications Data-->
Cached Result: N/A, hr = 0x80070002
File Exists: No
Version: N/A, hr = 0x80070002
WgaTray.exe Signed By: N/A, hr = 0x80070002
WgaLogon.dll Signed By: N/A, hr = 0x80070002

OGA Notifications Data-->
Cached Result: N/A, hr = 0x80070002
Version: N/A, hr = 0x80070002
OGAExec.exe Signed By: N/A, hr = 0x80070002
OGAAddin.dll Signed By: N/A, hr = 0x80070002

OGA Data-->
Office Status: 103 Blocked VLK
Microsoft Office Enterprise 2007 - 103 Blocked VLK
OGA Version: N/A, 0x80070002
Signed By: N/A, hr = 0x80070002
Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005

Browser Data-->
Proxy settings: N/A
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
Default Browser: C:\Program Files\Mozilla Firefox\firefox.exe
Download signed ActiveX controls: Prompt
Download unsigned ActiveX controls: Disabled
Run ActiveX controls and plug-ins: Allowed
Initialize and script ActiveX controls not marked as safe: Disabled
Allow scripting of Internet Explorer Webbrowser control: Disabled
Active scripting: Allowed
Script ActiveX controls marked as safe for scripting: Allowed

File Scan Data-->

Other data-->
Office Details: <GenuineResults><MachineData><UGUID>{59B69783-6139-4F6F-B2D0-2765EC3C204B}</UGUID><Version>1.9.0011.0</Version><OS>6.0.6001.2.00010100.1.0.001</OS><Architecture>x32</Architecture><PKey>*****-*****-*****-*****-932CC</PKey><PID>89580-OEM-7332132-00031</PID><PIDType>2</PIDType><SID>S-1-5-21-2236164689-3826977557-1067933647</SID><SYSTEM><Manufacturer>INTEL_</Manufacturer><Model>DQ965GF_</Model></SYSTEM><BIOS><Manufacturer>Intel Corp.</Manufacturer><Version>CO96510J.86A.6088.2008.1201.0056</Version><SMBIOSVersion major="2" minor="4"/><Date>20081201000000.000000+000</Date></BIOS><HWID>83313507018400FA</HWID><UserLCID>0409</UserLCID><SystemLCID>0409</SystemLCID><TimeZone>Middle East Standard Time(GMT+02:00)</TimeZone><iJoin>0</iJoin><SBID><stat>3</stat><msppid></msppid><name></name><model></model></SBID><OEM><OEMID>_ASUS_</OEMID><OEMTableID>Notebook</OEMTableID></OEM><GANotification/></MachineData><Software><Office><Result>103</Result><Products><Product GUID="{90120000-0030-0000-0000-0000000FF1CE}"><LegitResult>103</LegitResult><Name>Microsoft Office Enterprise 2007</Name><Ver>12</Ver><Val>C0A25836FDBE5AC</Val><Hash>FmDbcrRY1pTOcrz4ZUZRHhpUuc0=</Hash><Pid>89388-726-2958074-65768</Pid><PidType>14</PidType></Product></Products><Applications><App Id="15" Version="12" Result="103"/><App Id="16" Version="12" Result="103"/><App Id="18" Version="12" Result="103"/><App Id="19" Version="12" Result="103"/><App Id="1A" Version="12" Result="103"/><App Id="1B" Version="12" Result="103"/><App Id="44" Version="12" Result="103"/><App Id="A1" Version="12" Result="103"/><App Id="BA" Version="12" Result="103"/></Applications></Office></Software></GenuineResults>

Spsys.log Content: 0x80070002

Licensing Data-->
Software licensing service version: 6.0.6001.18000
Name: Windows(TM) Vista, Ultimate edition
Description: Windows Operating System - Vista, OEM_SLP channel
Activation ID: 5e802570-4657-4e84-bfbc-6a0e531b84af
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 89580-00146-321-300031-02-1033-6001.0000-1062009
Installation ID: 005582627255135020474953407143211994122536024472636074
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=43473
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=43474
Use License URL: http://go.microsoft.com/fwlink/?LinkID=43476
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=43475
Partial Product Key: 932CC
License Status: Licensed

HWID Data-->
HWID Hash Current: PAAAAAMABgABAAEAAgABAAAAAQABAAEAeqju6b6YGJsVPyTa1BJqcS737NjGmNr5+EXy9Hf24lZ4nyqF

OEM Activation 1.0 Data-->
N/A

OEM Activation 2.0 Data-->
BIOS valid for OA 2.0: yes
Windows marker version: 0x20000
OEMID and OEMTableID Consistent: yes
BIOS Information:
ACPI Table Name OEMID Value OEMTableID Value
APIC INTEL DQ965GF
FACP INTEL DQ965GF
MCFG INTEL DQ965GF
WDDT INTEL DQ965GF
ASF! INTEL DQ965GF
SSDT INTEL CpuPm
SSDT INTEL CpuPm
SSDT INTEL CpuPm
SSDT INTEL CpuPm
SSDT INTEL CpuPm
TCPA INTEL TIANO
SLIC _ASUS_ Notebook
i dk if this should help
GN90, this error could pop up due to different reasons. The MDT report you kindly gave sort of points out to cryptography issue (90% chance). Try this. If it gives you a different error, then we could narrow things down.

1- Go to start menu, type "cmd", right-click on it, and select "run as administrator".
2- When you get the command prompt screen, type "regsvr32 softpub.dll" and press ENTER. If you get the following message "DllRegisterServer in Softpub.dll succeeded", proceed with the next step.
3- regsvr32 Wintrust.dll,
regsvr32 Initpki.dll,
regsvr32 Dssenh.dll,
regsvr32 Rsaenh.dll,
regsvr32 Gpkcsp.dll,
regsvr32 Sccbase.dll,
regsvr32 Slbcsp.dll,
regsvr32 Mssip32.dll,
regsvr32 Cryptdlg.dll

4- If none gives you errors, the problem should be gone (basically). Type "exit" to quit command prompt, restart your computer. Let us know if this works for you. Have a good one.