Dear Student,
The egg is comprised of protein albumin an white layer surrounding yolk, upon external stress factor like heat, ionic strength of solution, pH results in denaturation of albumin protein which ultimately results in destruction of the egg freshness leads to foul smell on breaking.
Regards.