Since you don't know what the code does I am going to guess this is for a school assignment and so I will give a few hints.
This looks like code (written in Microchip C?) for a PIC microcontroller. Might I suggest going to microchip.com and downloading the datasheet for the PIC16F628A (that's the one I like to use because its basic. link. Also availiable in Chinese and Japanese.) and looking through it for the definitions of the variables.
main() is the program that the microcontroller is going to run on startup. While main() is executing, interrupt() will be executed every time the microcontroller has an interrupt occur (meanwhile, main() will be paused in its execution). After interrupt() has finished executing, main() will resume right where it left off. Go through the datasheet, find what each of the registers (the variables in all caps) does, and hopefully you should be able to figure it out from there :-D.