Looks like it's Windows code, loading the address of the Process Environment Block (PEB), via the Thread Information Block, which can be accessed via the FS segment.
The PEB contains, amongest other things, a flag indicating if the process is being debugged.
MSDN has a page about it here