// // TIFFGetConfiguredCODECs from 0xc2f184 to 0xc2f30c (392 bytes) // // 1 xrefs: // > @ 0xa7640 // // 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 // char *TIFFGetConfiguredCODECs() { _QWORD *v0; // x20 __int64 v1; // x21 void *v2; // x24 int v3; // w23 char *v4; // x19 __int64 v6; // x24 size_t v7; // x1 char **v8; // x20 char *v9; // t1 __int64 v10; // x1 __int64 v11; // x21 size_t v12; // x21 char *v13; // x3 char *v14; // t1 char *v15; // x0 char *v16; // x20 v0 = (_QWORD *)qword_1247860; if ( qword_1247860 ) { v1 = 0; v2 = nullptr; v3 = 1; do { ++v3; v4 = (char *)TIFFrealloc(v2, v1 + 24); if ( !v4 ) { TIFFfree(v2); return nullptr; } TIFFmemcpy(&v4[v1], v0, 0x18u); v0 = (_QWORD *)*v0; v2 = v4; v1 += 24; } while ( v0 ); v6 = 24LL * v3; v7 = v6; } else { v7 = 24; v4 = nullptr; v6 = 24; v3 = 1; } v8 = &TIFFBuiltinCODECS; if ( TIFFBuiltinCODECS ) { do { while ( !(unsigned int)TIFFIsCODECConfigured(*((unsigned __int16 *)v8 + 4)) ) { v9 = v8[3]; v8 += 3; if ( !v9 ) goto LABEL_13; } v10 = v3; v11 = 32LL * v3++; v12 = v11 - 8 * v10; v13 = (char *)TIFFrealloc(v4, v12); if ( !v13 ) goto LABEL_16; v4 = v13; TIFFmemcpy(&v13[v12 - 24], v8, 0x18u); v14 = v8[3]; v8 += 3; } while ( v14 ); LABEL_13: v6 = 24LL * v3; v7 = v6; } v15 = (char *)TIFFrealloc(v4, v7); v16 = v15; if ( v15 ) { TIFFmemset(&v15[v6 - 24], 0, 0x18u); return v16; } else { LABEL_16: TIFFfree(v4); return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source