Rewrite call_function_*() functions

Instead of pushing arguments one by one push them all at once with a single
x86 instruction.