rendered paste body.text:2212E0B0 ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
.text:2212E0B0
.text:2212E0B0
.text:2212E0B0 CGlobalEntityList__NextEnt proc near ; CODE XREF: CGlobalEntityList__NextEntByClass_CAI_BaseNPC_+9p
.text:2212E0B0 ; CGlobalEntityList__NextEntByClass_CAI_BaseNPC_+32p ...
.text:2212E0B0 56 push esi
.text:2212E0B1 8B F1 mov esi, ecx
.text:2212E0B3 8B 4C 24 08 mov ecx, [esp+8]
.text:2212E0B7 85 C9 test ecx, ecx
.text:2212E0B9 75 10 jnz short loc_2212E0CB
.text:2212E0BB 8B B6 04 00 01 00 mov esi, [esi+10004h]
.text:2212E0C1 85 F6 test esi, esi
.text:2212E0C3 74 2B jz short loc_2212E0F0
.text:2212E0C5 8B 06 mov eax, [esi]
.text:2212E0C7 5E pop esi
.text:2212E0C8 C2 04 00 retn 4
.text:2212E0CB ; ---------------------------------------------------------------------------
.text:2212E0CB
.text:2212E0CB loc_2212E0CB: ; CODE XREF: CGlobalEntityList__NextEnt+9j
.text:2212E0CB 8B 01 mov eax, [ecx]
.text:2212E0CD FF 50 08 call dword ptr [eax+8]
.text:2212E0D0 8B 08 mov ecx, [eax]
.text:2212E0D2 81 E1 FF 0F 00 00 and ecx, 0FFFh
.text:2212E0D8 C1 E1 04 shl ecx, 4
.text:2212E0DB 8D 44 31 04 lea eax, [ecx+esi+4]
.text:2212E0DF 85 C0 test eax, eax
.text:2212E0E1 74 0D jz short loc_2212E0F0
.text:2212E0E3 8B 40 0C mov eax, [eax+0Ch]
.text:2212E0E6 85 C0 test eax, eax
.text:2212E0E8 74 06 jz short loc_2212E0F0
.text:2212E0EA 8B 00 mov eax, [eax]
.text:2212E0EC 5E pop esi
.text:2212E0ED C2 04 00 retn 4