The item definitions are copied here by the routine at 34436, and then used by the routine at 36707. An item definition contains the following information:
Byte(s)
Contents
0
Current attribute
1,2
Address of the item's location in the attribute buffer at 23552
3
MSB of the address of the item's location in the screen buffer at 24576