Looks like a bad case of bumble foot. A small puncture, tear or cut can let in bacteria, causing the foot to become infected. It's very common in chickens. Do a search for bumble foot and you will find out all you need to know about it. It will be up to you if you want to treat it or cull...