//
// sub_100240884 from 0x100240884 to 0x10024092c (168 bytes)
//
// 7 xrefs:
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1001942e0
// > cocos2d::ZipUtils::decompressString2 @ 0x10023d9a4
// > cocos2d::ZipUtils::decompressString2 @ 0x10023da00
// > cocos2d::ZipUtils::decompressString @ 0x10023dc24
// > cocos2d::ZipUtils::decompressString @ 0x10023dc70
// > cocos2d::ZipUtils::base64DecodeEnc @ 0x10023ddcc
// > cocos2d::ZipUtils::base64URLDecode @ 0x10023e240
//
// 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
//
void *__fastcall sub_100240884(unsigned __int8 *a1, unsigned int a2, void **a3, char a4)
{
void *result; // x0
unsigned int v9; // [xsp+Ch] [xbp-24h] BYREF
v9 = 0;
result = malloc((unsigned __int64)(float)((float)((float)((float)a2 * 3.0) * 0.25) + 4.0));
*a3 = result;
if ( result )
{
if ( (unsigned int)sub_1002405E0(a1, a2, (__int64)result, &v9, a4) )
{
printf("Base64Utils: error decoding");
free(*a3);
*a3 = nullptr;
return nullptr;
}
else
{
return (void *)v9;
}
}
return result;
}