Where would a customization for "Load more" button in subpanel be?

Hello. I have to do some "detective work". One of our clients have a customization specific to them so that when they click the "load more" button for the Opportunities subpanel from Accounts module, they system does 2 queries. The "regular" one that should happen, and another one that like the first one but offset with 5 records and some missing joins, that overwrite stuff. This is a very very old site that got upgraded during years, step by step since 6.5 era. I checked subpanel definition PHP and record and relate.js files, nothing suspicious. Where should I continue my hunt?