L L4D2node

CNetworkStringTableDictionaryManager::HashStringCaselessIgnoreSlashes

0x001a30c0 · 164 bytes · __regparm3

_ZNK36CNetworkStringTableDictionaryManager31HashStringCaselessIgnoreSlashesEPKc.isra.25

Decompiled

undefined (1 param)

/* CNetworkStringTableDictionaryManager::HashStringCaselessIgnoreSlashes(char const*) const [clone
   .isra.25] */

undefined4 __regparm3
CNetworkStringTableDictionaryManager::HashStringCaselessIgnoreSlashes(char *param_1)

{
  undefined1 *puVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  undefined4 uStackY_40;
  int aiStack_38 [2];
  undefined1 auStack_30 [12];
  undefined4 local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == (char *)0x0) {
    param_1 = "";
  }
  uStackY_40 = 0x1a30e8;
  iVar3 = _V_strlen(param_1);
  iVar2 = -((iVar3 + 0x10U & 0xfffffff0) + 0x10);
  puVar1 = auStack_30 + iVar2;
  *(char **)((int)aiStack_38 + iVar2) = param_1;
  *(int *)((int)aiStack_38 + iVar2 + 4) = iVar3 + 1;
  *(undefined1 **)(&stack0xffffffc4 + iVar2) = puVar1;
  *(undefined4 *)((int)&uStackY_40 + iVar2) = 0x1a3110;
  V_strncpy(*(char **)(&stack0xffffffc4 + iVar2),*(char **)((int)aiStack_38 + iVar2),
            *(int *)((int)aiStack_38 + iVar2 + 4));
  *(undefined4 *)((int)aiStack_38 + iVar2) = 0x2f;
  *(undefined1 **)(&stack0xffffffc4 + iVar2) = puVar1;
  *(undefined4 *)((int)&uStackY_40 + iVar2) = 0x1a3120;
  V_FixSlashes(*(char **)(&stack0xffffffc4 + iVar2),*(char *)((int)aiStack_38 + iVar2));
  *(undefined1 **)(&stack0xffffffc4 + iVar2) = puVar1;
  *(undefined4 *)((int)&uStackY_40 + iVar2) = 0x1a3128;
  _V_strlower(*(char **)(&stack0xffffffc4 + iVar2));
  *(undefined4 **)(&stack0xffffffc4 + iVar2) = &local_24;
  *(undefined4 *)((int)&uStackY_40 + iVar2) = 0x1a3130;
  CRC32_Init(*(ulong **)(&stack0xffffffc4 + iVar2));
  *(int *)((int)aiStack_38 + iVar2 + 4) = iVar3 + 1;
  *(undefined1 **)((int)aiStack_38 + iVar2) = puVar1;
  *(undefined4 **)(&stack0xffffffc4 + iVar2) = &local_24;
  *(undefined4 *)((int)&uStackY_40 + iVar2) = 0x1a3140;
  CRC32_ProcessBuffer(*(ulong **)(&stack0xffffffc4 + iVar2),*(void **)((int)aiStack_38 + iVar2),
                      *(int *)((int)aiStack_38 + iVar2 + 4));
  *(undefined4 **)(&stack0xffffffc4 + iVar2) = &local_24;
  *(undefined4 *)((int)&uStackY_40 + iVar2) = 0x1a3148;
  CRC32_Final(*(ulong **)(&stack0xffffffc4 + iVar2));
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_24;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)((int)&uStackY_40 + iVar2) = &UNK_001a3164;
  __stack_chk_fail();
}

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)