L L4D2node

CNetworkStringTableDictionaryManager::Find

0x001a3370 · 295 bytes · __thiscall

_ZNK36CNetworkStringTableDictionaryManager4FindEPKc

Decompiled

undefined (2 params)

/* CNetworkStringTableDictionaryManager::Find(char const*) const */

undefined4 __thiscall
CNetworkStringTableDictionaryManager::Find(CNetworkStringTableDictionaryManager *this,char *param_1)

{
  ushort uVar1;
  char cVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  undefined4 local_24 [5];
  
  local_24[0] = HashStringCaselessIgnoreSlashes(param_1);
  uVar4 = (uint)*(ushort *)(this + 0x38);
  if (*(ushort *)(this + 0x38) != 0xffff) {
    iVar3 = *(int *)(this + 0x2c);
    do {
      while( true ) {
        iVar5 = uVar4 * 0x10;
        cVar2 = (**(code **)(this + 0x28))(local_24,iVar3 + 8 + iVar5);
        if (cVar2 != '\0') break;
        cVar2 = (**(code **)(this + 0x28))(*(int *)(this + 0x2c) + iVar5 + 8,local_24);
        if (cVar2 == '\0') {
          return *(undefined4 *)(*(int *)(this + 0x2c) + 0xc + iVar5);
        }
        if ((CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
             ::Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                         ::Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
          ::Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_003415ee = 0xffff;
          DAT_003415f0 = 0xffff;
          __cxa_guard_release(&CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                               ::Links(unsigned_short)::s_Sentinel);
        }
        iVar3 = *(int *)(this + 0x2c);
        uVar1 = *(ushort *)(iVar3 + 2 + iVar5);
        uVar4 = (uint)uVar1;
        if (uVar1 == 0xffff) {
          return 0xffffffff;
        }
      }
      if ((CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
           ::Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                       ::Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
        CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_003415ee = 0xffff;
        DAT_003415f0 = 0xffff;
        __cxa_guard_release(&CUtlRBTree<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                             ::Links(unsigned_short)::s_Sentinel);
      }
      iVar3 = *(int *)(this + 0x2c);
      uVar4 = (uint)*(ushort *)(iVar3 + iVar5);
    } while (*(ushort *)(iVar3 + iVar5) != 0xffff);
  }
  return 0xffffffff;
}

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)