Sometimes your money ahead to buy a whole parts car

Anybody know what this melted mess is for? car seems to still run and I have seen this on a couple other cars I looked at.

its the back of the voltage reg they all do it
its some sort of glue to cover the board in it