"""Resolve the two data tables that reference the SBC request-owner thunk.""" THUNK = 0x146B805B0 REFERENCES = (0x14366D3E0, 0x14381B5D0) print("thunk bytes", read_bytes(THUNK, 32).hex(" ")) for reference in REFERENCES: print("\n=== reference %#x ===" % reference) print("raw", read_bytes(reference - 0x40, 0x90).hex(" ")) for slot in range(reference - 0x40, reference + 0x48, 8): target = qword(slot) print("%#x rel=%+#x -> %#x %s xrefs=%s" % (slot, slot - reference, target, fname(target), xrefs_to(slot)[:8])) if func(target) is not None: print(dec(target, 60)[:5000])