I'm reverse engineering a piece of code that has hundreds of calls to a couple of functions I'm not exactly sure what they are doing but looks like standard library functions that do some byte reading?
They are as I currently call them read8
and read16
and show in IDA Pro as pseudocode:
int __cdecl read8(int a1)
{
return *(_DWORD *)(a1 + 8);
}
int __cdecl read16(int a1)
{
return *(_DWORD *)(a1 + 16);
}
So given a pointer a1
do they read a single DWORD
positioned as the 8th and 16th DWORD after the initial address of a1
?