Based on inline Hook,u can see sth about from these.
https://bbs.pediy.com/thread-251412.htm 一篇文章带你理解HOOK技术
https://bbs.ichunqiu.com/forum.php?mod=viewthread&tid=39930 PeDoll 开源及使用教程
it is really a good tool, but the writer seemed like disupdate.