Every unit has four sets of flags.
Unit Flag 1: 8192 - Unit is retreating (yellow arrow)
Unit Flag 2: 2048 - Hides the Banner
Unit Flag 3: This Flag is read-only (set by the Engine?)
Control Flag: