Is it possible to find the binary that does this and nop out the offending function? How would you approach this with a debugger?
If you go the "modify system files by hand" part you have to jump through hoops to disable security and signing features, not to mention it'll be overwritten via updates.
https://support.microsoft.com/en-us/topic/kb5017130-managing...