uw_install_context_1
0x00bf6fc0 · 275 bytes · unknown
Decompiled
undefined (0 params)
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
int uw_install_context_1(void)
{
undefined4 *__src;
int in_EAX;
undefined4 *puVar1;
int in_EDX;
int iVar2;
undefined4 local_20 [4];
if ((((*(uint *)(in_EDX + 0x60) & 0x40000000) == 0) || (*(char *)(in_EDX + 0x70) == '\0')) &&
(*(int *)(in_EDX + 0x10) == 0)) {
if (DAT_0105b844 != '\x04') goto LAB_00bf700b;
if ((*(uint *)(in_EDX + 0x60) & 0x40000000) != 0) {
*(undefined1 *)(in_EDX + 0x70) = 0;
}
*(undefined4 **)(in_EDX + 0x10) = local_20;
local_20[0] = *(undefined4 *)(in_EDX + 0x48);
}
iVar2 = 0;
do {
while( true ) {
puVar1 = *(undefined4 **)(in_EAX + iVar2 * 4);
__src = *(undefined4 **)(in_EDX + iVar2 * 4);
if (*(char *)(in_EAX + 0x6c + iVar2) != '\0') goto LAB_00bf700b;
if (*(char *)(in_EDX + 0x6c + iVar2) != '\0') break;
if (((__src != (void *)0x0) && (puVar1 != (undefined4 *)0x0)) && (__src != puVar1)) {
memcpy(puVar1,__src,(uint)(byte)(&dwarf_reg_size_table)[iVar2]);
}
LAB_00bf7064:
iVar2 = iVar2 + 1;
if (iVar2 == 0x11) goto LAB_00bf7070;
}
if (puVar1 == (undefined4 *)0x0) goto LAB_00bf7064;
if ((&dwarf_reg_size_table)[iVar2] != '\x04') goto LAB_00bf700b;
iVar2 = iVar2 + 1;
*puVar1 = __src;
} while (iVar2 != 0x11);
LAB_00bf7070:
if (((*(byte *)(in_EAX + 99) & 0x40) != 0) && (*(char *)(in_EAX + 0x70) != '\0')) {
return 0;
}
if (*(int *)(in_EAX + 0x10) != 0) {
return 0;
}
puVar1 = *(undefined4 **)(in_EDX + 0x10);
if (((*(byte *)(in_EDX + 99) & 0x40) == 0) || (*(char *)(in_EDX + 0x70) == '\0')) {
if (DAT_0105b844 != '\x04') {
LAB_00bf700b:
/* WARNING: Subroutine does not return */
abort();
}
puVar1 = (undefined4 *)*puVar1;
}
return (int)puVar1 + (*(int *)(in_EDX + 0x68) - *(int *)(in_EAX + 0x48));
}
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.