8cba70dc90
- Add 8 files present in docker/fifa17-python/tools but missing from the top-level tree: fut_accounts.py + 7 test_*.py contracts (all committed in the server's docker tree; byte-identical to the running image). - Preserve newer responder work already matching the running container: utas_server.py (offlineSeason), lsx_responder_v2.py (OPENFUT_BIND), blaze_responder_v3b.py, autopatch.py, pow_server.py, fut_store.py, test_fut_contract.py, fifa17-hook-m1.sh. - Add 30 newer ghidra_queries (draft purchase/state, SBC 9-26, runtime registries). Local tree is now a strict superset of B with all shared files byte-identical.
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
"""Locate event 0x753c users and category-listener registration/removal paths."""
|
|
|
|
import struct
|
|
|
|
EVENT = 0x753C
|
|
NOTIFIER = 0x18017AA80
|
|
|
|
print("=== immediate/data occurrences of event 0x753c ===")
|
|
seen = set()
|
|
for hit in find_all(struct.pack("<I", EVENT)):
|
|
print("hit", hex(hit))
|
|
owner = func(hit)
|
|
if owner is not None:
|
|
entry = int(owner.getEntryPoint().getOffset())
|
|
print(" containing", hex(entry), owner.getName())
|
|
seen.add(entry)
|
|
for row in xrefs_to(hit):
|
|
print(" ", row)
|
|
if row[3]:
|
|
seen.add(row[3])
|
|
|
|
print("\n=== decompile functions referencing event literal ===")
|
|
for entry in sorted(seen):
|
|
print("\n--- %#x %s ---" % (entry, fname(entry)))
|
|
print(dec(entry))
|
|
|
|
print("\n=== category request ctor/dtor and notifier neighborhood ===")
|
|
for target in (0x18017A7C0, 0x18017AA10, NOTIFIER, 0x18017AAF0, 0x18017B1C0):
|
|
print("\n--- %#x %s ---" % (target, fname(target)))
|
|
print("callers", callers(target))
|
|
print("xrefs", xrefs_to(target))
|