Find CCSPlayerInventory_SendInventoryUpdateEvent
Target: CCSPlayerInventory::SendInventoryUpdateEvent (func) in the CS2 server module, both server.dll (windows) and libserver.so (linux).
Do NOT anchor on raw byte patterns from older releases — they shift. Use anchors only to locate the
function, then generate a fresh minimal-unique function-head signature with relocated bytes wildcarded.
Method
Shortlist via functions constructing the inventory-full-update usermessage/event around m_pSOCache contents for the owning controller. The body packs the SO cache snapshot and sends it via the GC/usermessage path. Cross-check with callers in inventory-dirty flows (weapon paint mutations).
Mandatory self-check before emitting (func artifacts)
The pipeline re-reads the bytes at your `func_va` and deterministically regenerates `func_sig` from
them — if your `func_sig` does not match those bytes EXACTLY (with `??` matching anything), the run
aborts. Therefore:
- After picking the function, read the actual bytes at `func_va` via the IDA MCP (get-bytes/disasm).
- Derive `func_sig` FROM those bytes: keep stable opcode bytes literally, wildcard relocated/
variable operands (displacements, immediates, stack sizes) as `??`.
- `func_sig` MUST start at `func_va` (the true function head — verify with IDA's function start).
- Only then write the YAML. A mismatch is always a bug in YOUR output, never in the pipeline.
Output schema (STRICT)
Write the YAML file CCSPlayerInventory_SendInventoryUpdateEvent.{platform}.yaml with EXACTLY these fields — no more, no fewer.
Unknown extra fields make the output invalid and abort the run.
func_name: <SYMBOL_NAME>
func_va: "<hex virtual address, e.g. 0xaf8f90>"
func_rva: "<hex rva>"
func_size: "<hex size>"
func_sig: "<byte pattern, ?? wildcards, function head, minimal-unique>"
NEVER include vfunc_index, vfunc_offset, vfunc_sig or vtable_name — this is a non-virtual func artifact.
Verification
- Decompile the candidate and confirm the behavior matches the purpose above (not a caller or callee).
- Confirm uniqueness: the generated pattern must match exactly one location in the loaded binary.
- Produce ONLY the output file(s) listed in this skill's expected outputs, for the binary
loaded in THIS session (one platform per run). NEVER open or analyze the other platform's
binary — each platform is produced in its own dedicated run.
Prefer deterministic anchors first (RTTI / vtable / schema-network offsets); fall back to string anchors,
then caller/callee cross-checks. If a candidate cannot be confirmed, report the shortlist instead of
guessing — a skipped symbol is safer than a wrong signature.