Ok, this function is called when an entity is thinking. The code saves the entity's owner in EntOwner. But there is a special case for the bomb when dropped, it should have no owner. That's why the -1.
Why are you trying to optimize ? You have found a major performance issue or something ?