The 1999 GM manual has the diagnostics for the transfer case, it may be worth checking out. The two volumes can be downloaded at this link (see post #77)…
Does anyone have newer official CK Illustrated Parts Catalogs? I have seen online scans of the diagrams but never pdfs of them. I have found the 1988 to 91 CK Illustrated Parts Catalog...
www.gmt400.com
Here is a screenshot example of the tables from that manual…
Regarding your unconnected red plug from your initial post, it kind of looks like the EVO sensor plug on the back of the power steering pump. If the EVO system has been deleted (and they often are as they’re problematic), the plug is just tied up out of the way when the sensor’s solenoid valve is removed. If you don’t have a connector and valve on the back of your PS pump, that’s likely what it is. This is where it would go if it hasn’t already been converted…
Here’s the pump with the EVO deleted: