Blizzard does not lose their rights to it when somebody uploads the source code publically. If someone decides to use theor source code that they did not obtain a license for, blizzard can always sue.
Reading and learning from said source code is, and should not ever be illegal.