I had to do this in a past job too - a vendor provided a module with a license check which wouldn't allow the binary to run on Windows Server, but the "enterprise" solution which was licensed for Windows Server was not only not only sold anymore but lost!
Ghidra didn't exist yet and I didn't care to deal with the IDA demo, so I used OllyDbg and then just manually hex-patched the binary. Simpler times :)