L L4D2node

get_cie_encoding

0x00bf7b10 · 233 bytes · unknown

Decompiled

undefined (0 params)

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char get_cie_encoding(void)

{
  char cVar1;
  int in_EAX;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  char *pcVar5;
  undefined1 local_14 [4];
  undefined4 local_10;
  
  local_10 = 0xbf7b1a;
  sVar2 = strlen((char *)(in_EAX + 9));
  pcVar3 = (char *)(in_EAX + 10 + sVar2);
  if (3 < *(byte *)(in_EAX + 8)) {
    if (*pcVar3 != '\x04') {
      return -1;
    }
    if (pcVar3[1] != '\0') {
      return -1;
    }
    pcVar3 = pcVar3 + 2;
  }
  if (*(char *)(in_EAX + 9) != 'z') {
    return '\0';
  }
  do {
    cVar1 = *pcVar3;
    pcVar3 = pcVar3 + 1;
  } while (cVar1 < '\0');
  pcVar3 = (char *)read_sleb128();
  if (*(char *)(in_EAX + 8) == '\x01') {
    pcVar4 = pcVar3 + 1;
  }
  else {
    do {
      pcVar4 = pcVar3 + 1;
      cVar1 = *pcVar3;
      pcVar3 = pcVar4;
    } while (cVar1 < '\0');
  }
  pcVar3 = (char *)(in_EAX + 10);
  do {
    pcVar5 = pcVar4 + 1;
    cVar1 = *pcVar4;
    pcVar4 = pcVar5;
  } while (cVar1 < '\0');
  cVar1 = *(char *)(in_EAX + 10);
  while (cVar1 != 'R') {
    while (cVar1 != 'P') {
      if (cVar1 != 'L') {
        return '\0';
      }
      pcVar3 = pcVar3 + 1;
      cVar1 = *pcVar3;
      pcVar5 = pcVar5 + 1;
      if (cVar1 == 'R') goto LAB_00bf7bd0;
    }
    pcVar3 = pcVar3 + 1;
    pcVar5 = (char *)read_encoded_value_with_base(pcVar5 + 1,local_14);
    cVar1 = *pcVar3;
  }
LAB_00bf7bd0:
  return *pcVar5;
}

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.



        
        

⚠ This function has no mangled symbol — it may be internal/static. The Linux gamedata field uses @-prefix symbol resolution which requires an exported mangled name. You'll need a Linux byte signature for this one (extract via extract_signature.java).


          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)