1

Loading the source into IDA, I have this function:

According to the source for Lua, this function should be passed a pointer to the Lua_State struct:

LUA_API int lua_gettop (lua_State *L) {
  return cast_int(L->top - L->base);
}

I'm currently trying to figure out what pointer is being passed to this procedure (In this case arg_0). I can attach a breakpoint and it correctly breaks, but how would I find the associated .data location for where it's stored?

1
  • Hint: Press H key upon ebp+arg_0. – Biswapriyo May 13 '19 at 4:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.