79224452

Date: 2024-11-25 20:04:40
Score: 1
Natty:
Report link

Thank you for the detailed question and an interesting puzzle. It is not clear to me where it crashes or with what exception. Knowing the framework you are using is helpful as well. il2cpp:5E0B10E0 (this is the original GetShoppingVisitorsCount function?) seems cut off at the end after calling sub_5D6506A0.

Regardless, in Hacks::CallUserFunction() you are calling typedef int32_t(__thiscall* ShoppingVisitorsCountFunc)(User* user, const void* methodInfo);

The current Hacks object pointer is then the this pointer of il2cpp:5E0B10E0. But I suspect that the called function is expecting the Mods object as this (if it's a __thiscall) and that may very well be the source of the crash. I also think that il2cpp:5E0B10E0 is NOT __thiscall and it only has one argument, as ECS does not seem to be used (other than passibly in one of the sub-functions. It also seems to endlessly recurse if the DWORD at arg0 + 0x134 is null.

Reference: visual studio this calling convention: https://learn.microsoft.com/en-us/cpp/cpp/thiscall?view=msvc-170

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Dominik Weber