L L4D2node

GCSDK::CJobMgr::~CJobMgr

0x00060cb0 · 718 bytes · __thiscall

_ZN5GCSDK7CJobMgrD1Ev

Decompiled

undefined (1 param)

/* GCSDK::CJobMgr::~CJobMgr() */

void __thiscall GCSDK::CJobMgr::~CJobMgr(CJobMgr *this)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  ::RemoveAll((CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
               *)(this + 0x11c));
  *(undefined2 *)(this + 0x130) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
           *)(this + 0x120));
  *(undefined2 *)(this + 0x132) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
           *)(this + 0x120));
  iVar1 = *(int *)(this + 0x114);
  if (iVar1 != -1) {
    iVar3 = 0;
    iVar2 = 0;
    if (0 < *(int *)(this + 0x100)) {
      do {
        if ((iVar2 < *(int *)(this + 0x100)) && (iVar2 <= iVar1)) {
          if ((CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
               ::Links(int)::s_Sentinel == '\0') &&
             (iVar1 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
                                           ::Links(int)::s_Sentinel), iVar1 != 0)) {
            CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
            ::Links(int)::s_Sentinel = 0xffffffff;
            DAT_000d2844 = 0xffffffff;
            DAT_000d2848 = 0xffffffff;
            __cxa_guard_release(&CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
                                 ::Links(int)::s_Sentinel);
          }
          if (iVar2 != *(int *)(*(int *)(this + 0xfc) + iVar3)) {
            ((int *)(*(int *)(this + 0xfc) + iVar3))[1] = *(int *)(this + 0x110);
            *(int *)(*(int *)(this + 0xfc) + iVar3) = iVar2;
            *(int *)(this + 0x110) = iVar2;
          }
          iVar1 = *(int *)(this + 0x114);
        }
        do {
          if (((iVar2 == iVar1) || (iVar2 = iVar2 + 1, iVar2 < 0)) ||
             (*(int *)(this + 0x100) <= iVar2)) goto LAB_00060d50;
          iVar3 = iVar3 + 0xec;
        } while (iVar2 < 0);
      } while( true );
    }
LAB_00060d50:
    *(undefined4 *)(this + 0x108) = 0xffffffff;
    *(undefined4 *)(this + 0x10c) = 0;
  }
  *(undefined4 *)(this + 0x110) = 0xffffffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>::
  Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>
         *)(this + 0xfc));
  *(undefined4 *)(this + 0x114) = 0xffffffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>::
  Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>
         *)(this + 0xfc));
  CUtlRBTree<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  ::RemoveAll((CUtlRBTree<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
               *)(this + 0x90));
  *(undefined2 *)(this + 0xa4) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
           *)(this + 0x94));
  *(undefined2 *)(this + 0xa6) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
           *)(this + 0x94));
  if (*(int *)(this + 0x88) != -1) {
    iVar1 = *(int *)(this + 0x74);
    if (*(int *)(this + 0x74) != -1) {
      do {
        iVar2 = *(int *)(this + 0x68) + iVar1 * 0x24;
        *(int *)(iVar2 + 0x1c) = iVar1;
        iVar1 = *(int *)(iVar2 + 0x20);
      } while (*(int *)(iVar2 + 0x20) != -1);
      *(undefined4 *)(iVar2 + 0x20) = *(undefined4 *)(this + 0x7c);
      if (*(int *)(this + 0x74) != -1) {
        *(int *)(this + 0x7c) = *(int *)(this + 0x74);
      }
    }
    *(undefined4 *)(this + 0x74) = 0xffffffff;
    *(undefined4 *)(this + 0x78) = 0xffffffff;
    *(undefined4 *)(this + 0x80) = 0;
  }
  if (-1 < *(int *)(this + 0x70)) {
    if (*(void **)(this + 0x68) != (void *)0x0) {
      free(*(void **)(this + 0x68));
      *(undefined4 *)(this + 0x68) = 0;
    }
    *(undefined4 *)(this + 0x6c) = 0;
  }
  *(undefined4 *)(this + 0x5c) = 0;
  CUtlMemory<GCSDK::CJobMgr::JobSleeping_t,int>::Purge
            ((CUtlMemory<GCSDK::CJobMgr::JobSleeping_t,int> *)(this + 0x50));
  *(undefined4 *)(this + 0x60) = *(undefined4 *)(this + 0x50);
  CUtlMemory<GCSDK::CJobMgr::JobSleeping_t,int>::Purge
            ((CUtlMemory<GCSDK::CJobMgr::JobSleeping_t,int> *)(this + 0x50));
  if (*(int *)(this + 0x44) != -1) {
    iVar1 = *(int *)(this + 0x30);
    if (*(int *)(this + 0x30) != -1) {
      do {
        iVar2 = *(int *)(this + 0x24) + iVar1 * 0x14;
        *(int *)(iVar2 + 0xc) = iVar1;
        iVar1 = *(int *)(iVar2 + 0x10);
      } while (*(int *)(iVar2 + 0x10) != -1);
      *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(this + 0x38);
      if (*(int *)(this + 0x30) != -1) {
        *(int *)(this + 0x38) = *(int *)(this + 0x30);
      }
    }
    *(undefined4 *)(this + 0x30) = 0xffffffff;
    *(undefined4 *)(this + 0x34) = 0xffffffff;
    *(undefined4 *)(this + 0x3c) = 0;
  }
  if (-1 < *(int *)(this + 0x2c)) {
    if (*(void **)(this + 0x24) != (void *)0x0) {
      free(*(void **)(this + 0x24));
      *(undefined4 *)(this + 0x24) = 0;
    }
    *(undefined4 *)(this + 0x28) = 0;
  }
  CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
  ::RemoveAll((CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
               *)this);
  *(undefined4 *)(this + 0x18) = 0xffffffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>::Purge
            ((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>
              *)(this + 4));
  *(undefined4 *)(this + 0x1c) = 0xffffffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>::Purge
            ((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>
              *)(this + 4));
  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)