add_fdes
0x000ae860 · 299 bytes · unknown
Decompiled
undefined (0 params)
void add_fdes(int *param_1)
{
int iVar1;
int in_EAX;
uint uVar2;
int iVar3;
int *in_EDX;
uint uVar4;
uint uVar5;
int local_38;
uint local_10;
uVar5 = (uint)(byte)(*(ushort *)(in_EAX + 0x10) >> 3);
base_from_object_isra_3(in_EAX + 8);
iVar3 = *param_1;
local_38 = 0;
do {
while( true ) {
if (iVar3 == 0) {
return;
}
if (param_1[1] != 0) break;
LAB_000ae8d6:
param_1 = (int *)((int)param_1 + *param_1 + 4);
iVar3 = *param_1;
}
if (((*(byte *)(in_EAX + 0x10) & 4) != 0) &&
(iVar3 = (int)param_1 + (4 - param_1[1]), local_38 != iVar3)) {
uVar5 = get_cie_encoding();
base_from_object_isra_3(in_EAX + 8);
local_38 = iVar3;
}
if (uVar5 == 0) {
if (param_1[2] != 0) goto LAB_000ae8bf;
goto LAB_000ae8d6;
}
read_encoded_value_with_base(param_1 + 2,&local_10);
uVar2 = size_of_encoded_value();
uVar4 = 0xffffffff;
if (uVar2 < 4) {
uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;
}
if ((local_10 & uVar4) != 0) {
LAB_000ae8bf:
iVar3 = *in_EDX;
if (iVar3 != 0) {
iVar1 = *(int *)(iVar3 + 4);
*(int *)(iVar3 + 4) = iVar1 + 1;
*(int **)(iVar3 + 8 + iVar1 * 4) = param_1;
}
goto LAB_000ae8d6;
}
param_1 = (int *)((int)param_1 + *param_1 + 4);
iVar3 = *param_1;
} while( true );
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
⚠ 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.