linear_search_fdes
0x0029e440 · 342 bytes · unknown
Decompiled
undefined (0 params)
int * linear_search_fdes(int param_1)
{
int in_EAX;
undefined4 uVar1;
uint uVar2;
int *in_EDX;
uint uVar3;
int iVar4;
uint uVar5;
int local_30;
uint local_14;
uint local_10;
uVar5 = (uint)(byte)(*(ushort *)(in_EAX + 0x10) >> 3);
base_from_object_isra_3(in_EAX + 8);
iVar4 = *in_EDX;
local_30 = 0;
do {
if (iVar4 == 0) {
return (int *)0x0;
}
if (in_EDX[1] != 0) {
if (((*(byte *)(in_EAX + 0x10) & 4) != 0) &&
(iVar4 = (int)in_EDX + (4 - in_EDX[1]), local_30 != iVar4)) {
uVar5 = get_cie_encoding();
base_from_object_isra_3(in_EAX + 8);
local_30 = iVar4;
}
if (uVar5 == 0) {
local_14 = in_EDX[2];
local_10 = in_EDX[3];
if ((local_14 != 0) && (param_1 - local_14 < local_10)) {
return in_EDX;
}
}
else {
uVar1 = read_encoded_value_with_base(in_EDX + 2,&local_14);
read_encoded_value_with_base(uVar1,&local_10);
uVar2 = size_of_encoded_value();
uVar3 = 0xffffffff;
if (uVar2 < 4) {
uVar3 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;
}
if (((uVar3 & local_14) != 0) && (param_1 - local_14 < local_10)) {
return in_EDX;
}
}
}
in_EDX = (int *)((int)in_EDX + *in_EDX + 4);
iVar4 = *in_EDX;
} 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.