// // sub_6D4FE0 from 0x6d4fe0 to 0x6d51e4 (516 bytes) // // 1 xrefs: // > sub_6D5D40 @ 0x6d5da4 // // 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 // int __fastcall sub_6D4FE0(_DWORD *a1) { int v1; // r4 int v2; // r0 int j; // [sp+8h] [bp-14h] int i; // [sp+8h] [bp-14h] int v8; // [sp+Ch] [bp-10h] v8 = (1 << *((_WORD *)a1 + 12)) - 1; if ( *((_WORD *)a1 + 12) == 16 ) v8 = 255; a1[14] = TIFFmalloc(v8 + 1); if ( a1[14] ) { if ( *((_WORD *)a1 + 16) ) { for ( i = 0; i <= v8; ++i ) *(_BYTE *)(a1[14] + i) = 255 * i / v8; } else { for ( j = 0; j <= v8; ++j ) *(_BYTE *)(a1[14] + j) = 255 * (v8 - j) / v8; } if ( *((unsigned __int16 *)a1 + 12) <= 0x10u && (*((_WORD *)a1 + 16) == 1 || !*((_WORD *)a1 + 16)) ) { if ( !sub_6D49C8(a1) ) return 0; TIFFfree(a1[14]); a1[14] = 0; } return 1; } v1 = *(_DWORD *)(*a1 + 628); v2 = TIFFFileName(*a1); TIFFErrorExt(v1, v2, "No space for photometric conversion table"); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source