int __fastcall ImageRenderCheckContext(_DWORD *p_count, void *count) { int Pool; // eax if ( !p_count ) return -1; Pool = PeiAllocatePool(count); if ( !Pool ) return -1; p_count[1] = Pool; *p_count = count; return 0; }