Lab 19: Accessing __thiscall Objects

In this lab we want to overwrite a property of the __thiscall object. We will tackle this in a few simple steps.

  • Attach a hook to the non-exported GetWalkingSpeed function pointer

    • Print the WalkingSpeed float to the output area. What is the walking speed?

float __thiscall Player::GetWalkingSpeed(class Player* this)
{
    return ((int32_t)((long double)this->m_walkingSpeed));
}