#include //------------------------------------------------------------------------ static main(void) { auto refAddr, f, s, l, f_null, f_reg, f_hash; f_null = 0xAE4FD0; f_reg = 0x618A30; f_hash = 0x61A070; for (refAddr = RfirstB (f_reg); refAddr != BADADDR; refAddr = RnextB (f_reg, refAddr)) { f = GetOperandValue(refAddr - 10, 0); if (f != f_null) { MakeNameEx(f, "n_" + GetString(GetOperandValue(refAddr - 5, 0),-1, GetStringType(refAddr-5)), SN_CHECK); MakeFunction(f,BADADDR); }; }; for (refAddr = RfirstB (f_hash); refAddr != BADADDR; refAddr = RnextB (f_hash, refAddr)) { f = GetOperandValue(refAddr + 5, 0); if (f >= 0x00401000 && f != f_null) { l = GetOperandValue(refAddr - 5, 1); if (l != -1) { s = GetString(GetOperandValue(refAddr - 5, 1),-1, GetStringType(refAddr-5)); if (s != "") { MakeNameEx(f, "n_" + s, SN_CHECK); MakeFunction(f,BADADDR); }; }; }; }; }