L L4D2node

RecvPropUtlVector

0x000d60a0 · 1044 bytes · __cdecl

_Z17RecvPropUtlVectorPciiPFvPviiES2_i8RecvProp

Decompiled

undefined (7 params)

/* RecvPropUtlVector(char*, int, int, void (*)(void*, int, int), void (*)(void*, int, int), int,
   RecvProp) */

void RecvPropUtlVector(RecvProp *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                      undefined4 param_5,undefined4 param_6,int param_7,undefined4 param_8,
                      int param_9,undefined4 param_10,undefined4 param_11,undefined4 param_12,
                      undefined4 param_13,undefined4 param_14,undefined4 param_15,
                      undefined4 param_16,undefined4 param_17,undefined4 param_18,
                      undefined4 param_19,undefined4 param_20,undefined4 param_21,
                      undefined4 param_22)

{
  uint uVar1;
  uint uVar2;
  RecvProp *pRVar3;
  undefined4 *puVar4;
  RecvProp *pRVar5;
  char *pcVar6;
  RecvTable *pRVar7;
  int iVar8;
  undefined4 uVar9;
  code *pcVar10;
  undefined4 local_5c;
  undefined4 local_58;
  undefined4 local_54;
  undefined4 local_50;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  
  RecvProp::RecvProp(param_1);
  *(undefined4 *)(param_1 + 4) = 6;
  *(undefined4 *)param_1 = param_2;
  *(undefined4 *)(param_1 + 0x2c) = 0;
  *(code **)(param_1 + 0x24) = DataTableRecvProxy_StaticDataTable;
  uVar1 = param_7 + 1;
  uVar2 = 0xffffffff;
  if (uVar1 < 0x2200001) {
    uVar2 = uVar1 * 0x3c;
  }
  pRVar3 = operator_new__(uVar2);
  iVar8 = param_7;
  pRVar5 = pRVar3;
  if (uVar1 != 0) {
    do {
                    /* try { // try from 000d6123 to 000d6127 has its CatchHandler @ 000d64b9 */
      RecvProp::RecvProp(pRVar5);
      iVar8 = iVar8 + -1;
      pRVar5 = pRVar5 + 0x3c;
    } while (iVar8 != -1);
  }
  puVar4 = operator_new(0x1c);
  puVar4[6] = param_7;
  puVar4[4] = param_4;
  puVar4[2] = param_5;
  puVar4[3] = param_6;
  puVar4[5] = param_3;
  if (param_9 == 6) {
    *puVar4 = param_17;
  }
  else {
    puVar4[1] = param_16;
  }
  pRVar5 = operator_new(0x3c);
                    /* try { // try from 000d6189 to 000d618d has its CatchHandler @ 000d64e5 */
  RecvProp::RecvProp(pRVar5);
  iVar8 = AllocateStringHelper("lengthprop%d",param_7);
  pcVar10 = RecvProxy_UtlVectorLength;
  uVar9 = 0;
  RecvPropInt((char *)&local_5c,iVar8,0,0,(_func_void_CRecvProxyData_ptr_void_ptr_void_ptr *)0x0);
  *(undefined4 *)pRVar5 = local_5c;
  *(undefined4 *)(pRVar5 + 4) = local_58;
  *(undefined4 *)(pRVar5 + 8) = local_54;
  *(undefined4 *)(pRVar5 + 0xc) = local_50;
  *(undefined4 *)(pRVar5 + 0x10) = local_4c;
  *(undefined4 *)(pRVar5 + 0x14) = local_48;
  *(undefined4 *)(pRVar5 + 0x18) = local_44;
  *(undefined4 *)(pRVar5 + 0x1c) = local_40;
  *(undefined4 *)(pRVar5 + 0x20) = local_3c;
  *(undefined4 *)(pRVar5 + 0x24) = local_38;
  *(undefined4 *)(pRVar5 + 0x28) = local_34;
  *(undefined4 *)(pRVar5 + 0x2c) = local_30;
  *(undefined4 *)(pRVar5 + 0x30) = local_2c;
  *(undefined4 *)(pRVar5 + 0x34) = local_28;
  *(undefined4 **)(pRVar5 + 0x14) = puVar4;
  *(undefined4 *)(pRVar5 + 0x38) = local_24;
  pcVar6 = (char *)AllocateUniqueDataTableName(false,"_LPT_%s_%d",param_2,param_7,uVar9,pcVar10);
  pRVar7 = operator_new(0x14);
                    /* try { // try from 000d627b to 000d627f has its CatchHandler @ 000d64e3 */
  RecvTable::RecvTable(pRVar7,pRVar5,1,pcVar6);
  pcVar10 = DataTableRecvProxy_LengthProxy;
  RecvPropDataTable((char *)&local_5c,0x2a3c28,0,(RecvTable *)0x0,
                    (_func_void_RecvProp_ptr_void_ptr_ptr_void_ptr_int *)pRVar7);
  *(undefined4 *)pRVar3 = local_5c;
  *(undefined4 *)(pRVar3 + 4) = local_58;
  *(undefined4 *)(pRVar3 + 8) = local_54;
  *(undefined4 *)(pRVar3 + 0xc) = local_50;
  *(undefined4 *)(pRVar3 + 0x10) = local_4c;
  *(undefined4 *)(pRVar3 + 0x14) = local_48;
  *(undefined4 *)(pRVar3 + 0x18) = local_44;
  *(undefined4 *)(pRVar3 + 0x1c) = local_40;
  *(undefined4 *)(pRVar3 + 0x20) = local_3c;
  *(undefined4 *)(pRVar3 + 0x24) = local_38;
  *(undefined4 *)(pRVar3 + 0x28) = local_34;
  *(undefined4 *)(pRVar3 + 0x2c) = local_30;
  *(undefined4 *)(pRVar3 + 0x30) = local_2c;
  *(undefined4 *)(pRVar3 + 0x34) = local_28;
  *(undefined4 **)(pRVar3 + 0x14) = puVar4;
  *(undefined4 *)(pRVar3 + 0x38) = local_24;
  uVar9 = AllocateStringHelper("%s",param_2);
  if (0 < param_7) {
    iVar8 = 0;
    pRVar5 = pRVar3 + 0x3c;
    do {
      while( true ) {
        *(int *)(pRVar5 + 4) = param_9;
        *(undefined4 *)(pRVar5 + 0x30) = param_20;
        *(undefined4 *)(pRVar5 + 0x34) = param_21;
        *(undefined4 *)(pRVar5 + 0x2c) = 0;
        *(undefined4 *)pRVar5 = param_8;
        *(undefined4 *)(pRVar5 + 8) = param_10;
        *(undefined4 *)(pRVar5 + 0xc) = param_11;
        *(undefined4 *)(pRVar5 + 0x10) = param_12;
        *(undefined4 *)(pRVar5 + 0x14) = param_13;
        *(undefined4 *)(pRVar5 + 0x18) = param_14;
        *(undefined4 *)(pRVar5 + 0x1c) = param_15;
        *(undefined4 *)(pRVar5 + 0x20) = param_16;
        *(undefined4 *)(pRVar5 + 0x24) = param_17;
        *(undefined4 *)(pRVar5 + 0x28) = param_18;
        *(undefined4 *)(pRVar5 + 0x38) = param_22;
        *(undefined **)pRVar5 = (&s_ClientElementNames)[iVar8];
        *(undefined4 *)(pRVar5 + 0x38) = uVar9;
        *(undefined4 **)(pRVar5 + 0x14) = puVar4;
        *(int *)(pRVar5 + 0x30) = iVar8;
        if (param_9 != 6) break;
        iVar8 = iVar8 + 1;
        *(code **)(pRVar5 + 0x24) = RecvProxy_UtlVectorElement_DataTable;
        pRVar5 = pRVar5 + 0x3c;
        if (iVar8 == param_7) goto LAB_000d644a;
      }
      iVar8 = iVar8 + 1;
      *(code **)(pRVar5 + 0x20) = RecvProxy_UtlVectorElement;
      pRVar5 = pRVar5 + 0x3c;
    } while (iVar8 != param_7);
  }
LAB_000d644a:
  pcVar6 = (char *)AllocateUniqueDataTableName(false,"_ST_%s_%d",param_2,param_7,pRVar7,pcVar10);
  pRVar7 = operator_new(0x14);
                    /* try { // try from 000d6497 to 000d649b has its CatchHandler @ 000d64d1 */
  RecvTable::RecvTable(pRVar7,pRVar3,uVar1,pcVar6);
  *(RecvTable **)(param_1 + 0x28) = pRVar7;
  return;
}

SourceMod gamedata

paste into addons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)

Just a Signatures{} block, ready to drop into a gamedata file. Wire it up in your plugin however you like - SDKCall, DHooks, raw memory ops, or anything else.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)