All pastes #919873 Raw Edit

SetControlBit WoW Func

public c v1 · immutable
#919873 ·published 2008-02-27 01:32 UTC
rendered paste body
int __thiscall SetControlBit(int this, int Flag, int Enabled, int GetTickCount, int Unknown){  __int16 Flag_; // bx@1  int GetTickCount_; // edi@1  int this_; // esi@1  int result; // eax@2  int v9; // eax@8  Flag_ = Flag;  GetTickCount_ = GetTickCount;  this_ = this;  if ( Enabled )    result = ControlBitEnable(Flag, GetTickCount);  else    result = ControlBitDisable(Flag, GetTickCount, Unknown);  if ( result )  {    if ( Enabled )    {      if ( Flag_ & 0x10F0 || Flag_ & 3 && (v9 = *(_DWORD *)(this_ + 4), v9 & 1) && v9 & 2 )        sub_530460();    }    result = sub_530730(this_, GetTickCount_, 1);  }  return result;}