rendered paste bodyint __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;}