AgaHackTools.Example.MemoryModule.OffsetScanner.SignOnState C# (CSharp) Method

SignOnState() static private method

static private SignOnState ( ISmartMemory memUtils ) : void
memUtils ISmartMemory
return void
        static void SignOnState(ISmartMemory memUtils)
        {
            scan = memUtils["engine.dll"].Find(
                new byte[] { 0x51, 0xA1, 0x00, 0x00, 0x00, 0x00, 0x8B, 0x51, 0x00, 0x83, 0xB8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x40, 0x3B, 0xD1 },
                "xx????xx?xx?????xxxx");
            if (scan.Success)
            {
                int tmp = memUtils.Read<int>((IntPtr)(scan.Address.ToInt32() + 11));
                Offsets.SignOnState = (IntPtr)tmp;
                Logger.Info(ObjectEx.GetName(() => Offsets.SignOnState) + "\n" + Offsets.SignOnState.ToString("X8"));
            }
        }