PotPlayer may no longer be updated to support XP (their download page still says it's also for XP!), but Extension\Media\PlayParse\MediaPlayParse - YouTube.as file is usable with the older XP compatible version and may be extracted from the installer using 7-Zip. The old parser of early 2021 is unable to stomach YouTube of 2022 as expected.
will be fixed in next build. since upstream is removing telemetry code, this may break codes that they no longer have.
https://github.com/roytam1/UXP/commit/393b7aac8ce224a0bd433ae2c8358c25b0f8d037
Try to look into advapi32.dll from One-Core-Api, it have mentioned function
Here is needed file set
https://www.mediafire.com/file/3qkzns2rw4ds5z9/advapi32_One-Core-API-x86.7z/file
https://github.com/Skulltrail192/One-Core-Api