Scripting automaticly finding place of Invoke or _ATL_EVENT_ENTRY array initialization in code, what's generally one of first thing You should do analizing BHO.