// // TIFFReadRGBAStrip from 0xc53228 to 0xc533cc (420 bytes) // // 1 xrefs: // > @ 0x45570 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall TIFFReadRGBAStrip(__int64 a1, unsigned int a2) { unsigned int v4; // w21 __int64 v5; // x0 __int64 v6; // x20 __int64 v7; // x0 __int64 v9; // x0 __int64 v10; // x20 __int64 v11; // x0 __int64 v12; // x0 __int64 v13; // x20 __int64 v14; // x0 unsigned int v15; // [xsp+54h] [xbp+54h] BYREF __int64 v16[17]; // [xsp+58h] [xbp+58h] BYREF unsigned int v17; // [xsp+E0h] [xbp+E0h] int v18; // [xsp+E4h] [xbp+E4h] char v19; // [xsp+E8h] [xbp+E8h] BYREF _BYTE v20[7]; // [xsp+E9h] [xbp+E9h] BYREF v19 = 0; memset(v20, 0, 0x3FFu); v4 = TIFFIsTiled(a1); if ( v4 ) { v12 = a1; v13 = *(_QWORD *)(a1 + 952); v4 = 0; v14 = TIFFFileName(v12); TIFFErrorExt(v13, v14, "Can't use TIFFReadRGBAStrip() with tiled file."); } else { TIFFGetFieldDefaulted(a1, 278, &v15); if ( a2 % v15 ) { v5 = a1; v6 = *(_QWORD *)(a1 + 952); v7 = TIFFFileName(v5); TIFFErrorExt(v6, v7, "Row passed to TIFFReadRGBAStrip() must be first in a strip."); } else if ( (unsigned int)TIFFRGBAImageOK(a1, &v19) && (unsigned int)TIFFRGBAImageBegin((__int64)v16, (const char **)a1, 0, &v19) ) { v17 = a2; v18 = 0; v4 = TIFFRGBAImageGet(v16); TIFFRGBAImageEnd((__int64)v16); } else { v9 = a1; v10 = *(_QWORD *)(a1 + 952); v11 = TIFFFileName(v9); TIFFErrorExt(v10, v11, "%s", &v19); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source