"""Bind the live draft-purchase URI builder to one of its two response factories."""

for literal in (
    "purchase/mode/",
    "/purchase/mode/",
    "draft",
    "ut/%s/draft/mode",
    "FutPurchaseDraftModeServerResponse",
):
    print("\nLITERAL", repr(literal))
    for hit in find_all(literal.encode() + b"\x00"):
        print(hex(hit), rd_str(hit), xrefs_to(hit)[:100])

for target in (0x180224EF8, 0x1802262F0, 0x18014C090, 0x180150260):
    print("\nTARGET", hex(target), fname(target))
    print("XREFS", xrefs_to(target)[:200])
    for frm, typ, fn, ent in xrefs_to(target):
        if ent:
            print("\nOWNER", hex(ent), fn)
            print(dec(ent, 300))

print("QUERY_DONE")
