Standard entry code for procedures and functions is as follows on the 80x86 architecture:
The generated exit sequence for procedure and functions looks as follows:
Where xx is the total size of the pushed parameters.
To have more information on function return values take a look at section 6.1, page 331.