Here below is attached source code of function set_hook, which works, but after performance of the callback function and transfer control back to function __common_hook_proc, on a line 80 (mov byte ptr [edi], 0E9h) is throwing exception "Access violation writing location". Help fix please!
P.S. Sorry for BAD english, but please help to me!!