I need to understand and reproduce (in another language) logic of following function (C code) and I don't really understand, what it is doing
double __thiscall sub_1(int this) {
return * (double *) (this + 12);
}
It's compiled OK, but crashed while running .exe file
I'm not strong with C at all, and cannot find out, what actual manipulation this set of operands is doing * (double *) It's not a dereferencing, because there is no pointers declared.
Anyway, can anyone tell me - what will be output of function
for sub_1(2) and why ?