Why put pepper on a dish before cooking?
According to wikipedia, the melting point of piperine - the compound responsible for the pungency of black pepper - is 130 degrees celsius, so it's definitely not a given that anything you'll be cooking will heat all of the piperine above 130 degrees celsius - at which point you'd begin to get significantly faster decomposition (and lose the peppery flavor).

Now, the maillard reaction doesn't occur until around 155 celsius, so for cooking steak it's pretty much a given that the outside of the steak (including all of the pepper on the surface) will get hot enough to melt and begin to decompose, so it's certainly possible that you'd lose much of the pepper flavor from the actual peppercorns.

So the two questions are, how much is actually lost?  and where does it all go?

Most recipes that call for crusting cooked meat with black pepper call for a coarse grind.  One good reason for this is that by minimizing surface area, you are not allowing the piperine to heat up and decompose as quickly, so depending on how coarse your pepper is, and how hot you sear your steaks, you may have a not-insignificant amount of piperine left in your pepper.  I haven't found a good source for how fast piperine breaks down at various temperatures so you'd have to test this a bit to see how much of the flavor you could expect to lose.

Probably more important is the "where does it all go?" part of this question.  For this you have to consider that even though the ultimate tempurature of the pepper is far above its melting point, during cooking it has heated up slowly, not instantly, leaving a good portion of time where the piperine was melting but before it was hot enough to decompose very quickly.  During this phase, piperine can escape from the peppercorn, while still intact (not decomposed) and migrate through the steak (or other dish).  While cooking a steak, piperine should migrate far enough into the steak that it does not ultimately reach a temperature where it decomposes.  This will cause that portion of the steak to be flavored with piperine.  So, the benefit of heating the pepper is specifically so that it will melt and migrate into the dish (i.e. meld with the foods), something that you don't get by sprinkling it on the top afterwards.