INT64 *__fastcall HalpFindGhesEntry(INT64 a1, INT64 **a2){ INT64 *result; for( result = *a2; result != (INT64 *)a2; result = (INT64 *)*result ) { if( *((_DWORD *)result + 29) == (_DWORD)a1 ) return result; } return 0i64; }