//
// VP8LGetInfo from 0xc6ec90 to 0xc6ed84 (244 bytes)
//
// 6 xrefs:
// > sub_C706DC @ 0xc70a80
// > sub_C70D58 @ 0xc711b8
// > WebPGetInfo @ 0xc71824
// > WebPGetFeaturesInternal @ 0xc71fcc
// > WebPDecode @ 0xc724dc
// > ??> @ 0x59e68
//
// 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 VP8LGetInfo(_BYTE *a1, unsigned __int64 a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
__int64 result; // x0
int v11; // w25
int v12; // w20
int v13; // w19
_BYTE v14[36]; // [xsp+58h] [xbp+58h] BYREF
int v15; // [xsp+7Ch] [xbp+7Ch]
if ( !a1 )
return 0;
if ( a2 <= 4 )
return 0;
if ( !VP8LCheckSignature(a1, a2) )
return 0;
sub_CB6260(v14, a1, a2);
if ( (unsigned int)sub_CB6574(v14, 8) != 47 )
return 0;
v11 = sub_CB6574(v14, 14) + 1;
v12 = sub_CB6574(v14, 14) + 1;
v13 = sub_CB6574(v14, 1);
result = sub_CB6574(v14, 3);
if ( (_DWORD)result )
return 0;
if ( !v15 )
{
if ( a3 )
*a3 = v11;
if ( a4 )
*a4 = v12;
if ( a5 )
*a5 = v13;
return 1;
}
return result;
}