Hi,
I got the solution.
Problem was with register.
"Esp" register is not available for 64 bit,so it was not identifying that.
Using "Rsp" instead of "Esp" fixed the problem.

Thanks.