L L4D2node

CBaseClient::SendSignonData

0x000fbd50 · 492 bytes · __thiscall

_ZN11CBaseClient14SendSignonDataEv

Decompiled

undefined (1 param)

/* CBaseClient::SendSignonData() */

undefined4 __thiscall CBaseClient::SendSignonData(CBaseClient *this)

{
  int iVar1;
  undefined4 uVar2;
  undefined **local_8c;
  undefined1 local_88;
  undefined4 local_84;
  undefined4 local_80;
  undefined4 local_7c;
  undefined8 local_78;
  undefined4 local_70;
  undefined4 local_6c;
  undefined8 local_68;
  undefined4 local_60;
  undefined4 local_5c;
  undefined1 local_58;
  undefined8 local_54;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  undefined4 local_14;
  undefined4 local_10;
  
  COM_TimestampedLog(" CBaseClient::SendSignonData");
  iVar1 = *(int *)(this + 0xb8);
  if (*(char *)(iVar1 + 0xe4) == '\0') {
    (**(code **)(**(int **)(this + 0xe8) + 0xac))(*(int **)(this + 0xe8),iVar1 + 0xd4,1);
    SetSignonState(this,4);
    local_3c = (**(code **)(**(int **)(this + 0xb8) + 0x40))(*(int **)(this + 0xb8));
    local_40 = *(undefined4 *)(this + 0xec);
    local_80 = 0;
    local_7c = 0;
    local_78 = 0;
    local_70 = 0;
    local_6c = 0;
    local_68 = 0;
    local_60 = 0;
    local_5c = 0;
    local_58 = 0;
    local_54 = 0;
    local_4c = 0;
    local_48 = 0;
    local_88 = 1;
    local_84 = 0;
    local_8c = &PTR__NET_SignonState_002a1888;
    local_34 = 0;
    local_30 = 0;
    local_2c = 0;
    local_28 = 0;
    local_24 = 0;
    local_20 = 0;
    local_1c = 0;
    local_18 = 0;
    local_14 = 0;
    local_10 = 0;
    local_38 = 0;
                    /* try { // try from 000fbe8a to 000fbeb3 has its CatchHandler @ 000fbf40 */
    FillSignOnFullServerInfo(this,(NET_SignonState *)&local_8c);
    uVar2 = (**(code **)(**(int **)(this + 0xe8) + 0xa8))
                      (*(int **)(this + 0xe8),(NET_SignonState *)&local_8c,0,0);
    local_8c = &PTR__NET_SignonState_002a1888;
    local_14 = 0;
    CUtlMemory<char,int>::Purge((CUtlMemory<char,int> *)&local_20);
    local_10 = local_20;
    CUtlMemory<char,int>::Purge((CUtlMemory<char,int> *)&local_20);
    local_28 = 0;
    CUtlMemory<char,int>::Purge((CUtlMemory<char,int> *)&local_34);
    local_24 = local_34;
    CUtlMemory<char,int>::Purge((CUtlMemory<char,int> *)&local_34);
    return uVar2;
  }
  Host_Error("Signon buffer overflowed %i bytes!!!\n",*(int *)(iVar1 + 0xe0) + 7 >> 3);
  return 0;
}

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)