// // cocos2d::CCConfiguration::getNumber from 0xab04b4 to 0xab0608 (340 bytes) // // 2 xrefs: // > cocos2d::CCDirector::setDefaultValues @ 0xad5cf0 // > @ 0x89ac0 // // 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 // double cocos2d::CCConfiguration::getNumber(cocos2d::CCConfiguration *a1, const char *a2, double a3) { cocos2d::CCDictionary *v4; // x21 const void *v5; // x21 char *v6; // x0 double *v7; // x0 unsigned int *v9; // x1 int v10; // w2 int *v11; // x0 cocos2d::CCString *v12; // x0 std::string v13; // [xsp+40h] [xbp+40h] BYREF v4 = *(cocos2d::CCDictionary **)&a1[1].m_uIndexInArray; sub_D153B8((int)&v13, (char *)a2); v5 = (const void *)cocos2d::CCDictionary::objectForKey(v4, &v13); v6 = (char *)v13.m_data.m_data - 24; if ( (__int64 *)v13.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_2; if ( &pthread_create ) { v9 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v10 - 1; } if ( v10 > 0 ) { LABEL_2: if ( !v5 ) return a3; } else { operator delete(v6); if ( !v5 ) return a3; } v7 = (double *)_dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDouble, 0); if ( v7 ) return v7[7]; v11 = (int *)_dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCInteger, 0); if ( v11 ) return (double)v11[14]; v12 = (cocos2d::CCString *)_dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( !v12 ) return a3; return cocos2d::CCString::doubleValue(v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source