The game "crashes" purposefully to write a hardware-specific profile to C:\Users\Public .
If you are playing a legitimate version of Hitman 2 and experience crashes without this specific message, you should follow standard PC optimization steps:
Use the Steam Client to check for corrupted or missing game files, which are a common cause of stability issues.
Hitman 2 requires a minimum of 8 GB of RAM and a dedicated GPU like the NVIDIA GeForce GTX 660.
Run the game as an administrator to ensure it has the necessary permissions to access system files. A Note on Modern Compatibility