Usually what it does is that the battery powers some RAM, so that its non volatile when power is removed, either that NVRAM is on the EC, or its inside the PCH(chipset) itself, never paid much attention about that part.
What kind of mods are you doing in a laptop BIOS that brick it so hard that you need to re-flash it?