Find UTIL_Remove
Locate UTIL_Remove in CS2 server.dll or server.so using IDA Pro MCP tools.
Method
Search for the extinguish event string:
mcp__ida-pro-mcp__find_regex pattern="Molotov\.Extinguish"Get cross-references to the string:
mcp__ida-pro-mcp__xrefs_to addrs="<string_addr>"Decompile the referencing function:
mcp__ida-pro-mcp__decompile addr="<function_addr>"Analyze the decompiled function to identify the extinguish-finalization pattern:
Look for this sequence:
- A call with "Molotov.Extinguish" string
- A call to
sub_1576A10with "particles/inferno_fx/extinguish_fire.vpcf" particle resource - Positional data from object pointer (e.g.,
*(double *)(a1 + offset)) - Immediately after: A function call taking only
this(a1) as argument
This final call is UTIL_Remove.
Rename the function:
mcp__ida-pro-mcp__rename batch={"func": [{"addr": "<util_remove_addr>", "name": "UTIL_Remove"}]}Generate and validate unique signature:
ALWAYS Use SKILL
/generate-signature-for-functionto generate a robust and unique signature for the function.Write IDA analysis output as YAML beside the binary:
ALWAYS Use SKILL
/write-func-as-yamlto write the analysis results.Required parameters:
func_name:UTIL_Removefunc_addr: The function address from step 4func_sig: The validated signature from step 6
Signature Pattern
The function is identified by analyzing the extinguish-finalization pattern:
sub_1857410(&v52, a1, "Molotov.Extinguish", 0, 1, &v67, 0.0);
sub_1576A10(
"particles/inferno_fx/extinguish_fire.vpcf",
0, 0, 0xFFFFFFFFLL, 0, 0,
*(double *)(a1 + 5584),
*(float *)(a1 + 5592),
*(double *)&v58,
*((float *)&v58 + 2));
sub_14FE9C0(a1); // <- This is UTIL_Remove
Function Characteristics
- Parameters:
(this)wherethisis an entity pointer - Purpose: Entity removal/cleanup function called after extinguish effects
- Context: Part of the Molotov/Incendiary grenade extinguish workflow
- Call Pattern: Takes only the entity pointer, no additional arguments
- Position: Called immediately after particle effect spawn, before function return
Output YAML Format
The output YAML filename depends on the platform:
server.dll→UTIL_Remove.windows.yamlserver.so→UTIL_Remove.linux.yaml
func_va: 0x14fe9c0 # Virtual address of the function - This can change when game updates.
func_rva: 0x14fe9c0 # Relative virtual address (VA - image base) - This can change when game updates.
func_size: 0x21 # Function size in bytes - This can change when game updates.
func_sig: 48 89 FE 48 85 FF 74 18 48 8D 05 ?? ?? ?? ?? 48 8B 38 E9 ?? ?? ?? ?? # Unique byte signature for pattern scanning