CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Find
0x0021de80 · 393 bytes · __thiscall
_ZNK7CUtlMapIy19PublishedFileInfo_ttE4FindERKy
Decompiled
undefined (2 params)
/* CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned short>::Find(unsigned long long const&)
const */
undefined4 __thiscall
CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Find
(CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short> *this,ulonglong *param_1)
{
undefined4 uVar1;
int iVar2;
undefined4 *puVar3;
int in_GS_OFFSET;
undefined4 local_2558;
undefined4 local_2554;
undefined4 local_2550;
undefined4 local_254c;
undefined4 local_2548 [33];
undefined4 local_24c4;
undefined4 local_24c0;
undefined4 local_24bc;
undefined4 local_24b8;
undefined4 local_24b4;
undefined4 local_24b0;
undefined4 local_24ac;
undefined4 local_24a8;
undefined4 local_24a4;
undefined4 local_24a0;
undefined4 local_249c;
undefined4 local_2498;
undefined4 local_2494 [2000];
undefined4 local_554 [322];
undefined **local_4c;
undefined4 local_48;
undefined4 local_44;
undefined4 local_40;
undefined4 local_3c;
undefined4 local_38;
undefined1 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
int local_20;
local_34 = 0;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
local_254c = 0;
local_24c4 = 0xffffffff;
local_24c0 = 0xffffffff;
local_24bc = 0xffffffff;
local_24b8 = 0xffffffff;
local_24b4 = 0;
puVar3 = local_2548;
for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
local_24b0 = 0;
local_24ac = 0;
local_24a8 = 0;
local_24a4 = 0;
local_24a0 = 0;
local_249c = 0;
local_2498 = 0;
*(undefined1 *)puVar3 = 0;
local_2550 = 0;
local_48 = 0;
local_44 = 0;
local_40 = 0;
local_3c = 0;
local_38 = 0;
local_4c = &PTR__CCopyableUtlVector_002c8068;
local_30 = 0;
local_2c = 0;
local_28 = 0;
local_24 = 0;
puVar3 = local_2494;
for (iVar2 = 2000; iVar2 != 0; iVar2 = iVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puVar3 = local_554;
for (iVar2 = 0x41; iVar2 != 0; iVar2 = iVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
local_2554 = *(undefined4 *)((int)param_1 + 4);
local_2558 = (undefined4)*param_1;
/* try { // try from 0021dfbd to 0021dfc1 has its CatchHandler @ 0021e009 */
uVar1 = CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Find((CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)this,(Node_t *)&local_2558);
local_4c = &PTR__CCopyableUtlVector_002c8068;
local_3c = 0;
CUtlMemory<char*,int>::Purge((CUtlMemory<char*,int> *)&local_48);
local_38 = local_48;
CUtlMemory<char*,int>::Purge((CUtlMemory<char*,int> *)&local_48);
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return uVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.