Would this be legal?
But it would be a breach of copyright for Chessbase to distribute or modify the code, after their license has been terminated.