// // sub_1002EAAEC from 0x1002eaaec to 0x1002eae84 (920 bytes) // // 2 xrefs: // > sub_1002EA62C @ 0x1002ea780 // > sub_1002EAAEC @ 0x1002ead70 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:02:53 +0000 // __int64 __fastcall sub_1002EAAEC(__int64 a1, __int64 a2, __int64 a3) { char *CString; // x0 char *v7; // x0 __int64 v8; // x21 __int64 v9; // x22 unsigned int i; // w23 __int64 v11; // x0 char *v12; // x24 char *v13; // x26 char *v14; // x25 std::string *v15; // x1 bool v16; // w0 bool v17; // w25 __int64 v18; // x25 __int64 v19; // x22 unsigned int j; // w23 __int64 v21; // x26 char *v22; // x0 __int64 v23; // x0 const void *v24; // x27 __int64 v25; // x27 char *v26; // x0 char *v27; // x0 std::string *v28; // x0 char *v29; // x1 __int64 v30; // x27 char *v31; // x0 std::string v33; // [xsp+0h] [xbp-E0h] BYREF void *v34[2]; // [xsp+18h] [xbp-C8h] BYREF char v35; // [xsp+2Fh] [xbp-B1h] void *v36[2]; // [xsp+30h] [xbp-B0h] BYREF char v37; // [xsp+47h] [xbp-99h] void *v38[2]; // [xsp+48h] [xbp-98h] BYREF char v39; // [xsp+5Fh] [xbp-81h] void *__p[2]; // [xsp+60h] [xbp-80h] BYREF char v41; // [xsp+77h] [xbp-69h] char __s[8]; // [xsp+78h] [xbp-68h] BYREF char v43; // [xsp+8Fh] [xbp-51h] CString = (char *)cocos2d::CCString::getCString(a1); sub_100009900(v38, CString); v7 = (char *)cocos2d::CCString::getCString(a2); sub_100009900(v36, v7); v8 = cocos2d::CCDictionary::createWithDictionary(a3); cocos2d::CCObject::retain(v8); v9 = cocos2d::CCDictionary::allKeys(v8); for ( i = 0; i < (unsigned int)sub_1002E757C(v9); ++i ) { v11 = sub_1002E75A0(v9, i); v12 = (char *)cocos2d::CCString::getCString(v11); v13 = (char *)cocos2d::CCString::getCString(a1); v14 = (char *)cocos2d::CCString::getCString(a2); sub_100009900(&v33, v12); sub_100009900(__s, v13); sub_100009900(__p, v14); sub_1001DFF38(&v33, __s, (__int64)__p); if ( v41 < 0 ) operator delete(__p[0]); if ( v43 < 0 ) operator delete(*(void **)__s); if ( (v33.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v15 = &v33; else v15 = (std::string *)v33.__r_.__value_.__r.__words[0]; sub_100009900(v34, (char *)v15); if ( SHIBYTE(v33.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v33.__r_.__value_.__l.__data_); sub_100009900(__s, v12); v16 = sub_1000045BC(v34, __s); v17 = v16; if ( v43 < 0 ) { operator delete(*(void **)__s); if ( v17 ) goto LABEL_20; } else if ( v16 ) { goto LABEL_20; } sub_100009900(__s, v12); v18 = cocos2d::CCDictionary::objectForKey(v8, __s); if ( v43 < 0 ) operator delete(*(void **)__s); cocos2d::CCDictionary::setObject(v8, v18, v34); sub_100009900(__s, v12); cocos2d::CCDictionary::removeObjectForKey(v8, __s); if ( v43 < 0 ) operator delete(*(void **)__s); LABEL_20: if ( v35 < 0 ) operator delete(v34[0]); } v19 = cocos2d::CCDictionary::allKeys(v8); for ( j = 0; j < (unsigned int)sub_1002E757C(v19); ++j ) { v21 = sub_1002E75A0(v19, j); v22 = (char *)cocos2d::CCString::getCString(v21); sub_100009900(__s, v22); v23 = cocos2d::CCDictionary::objectForKey(v8, __s); v24 = (const void *)v23; if ( v43 < 0 ) { operator delete(*(void **)__s); if ( !v24 ) continue; } else if ( !v23 ) { continue; } if ( __dynamic_cast( v24, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { v25 = sub_1002EAAEC(a1, a2, v24); v26 = (char *)cocos2d::CCString::getCString(v21); sub_100009900(__s, v26); cocos2d::CCDictionary::setObject(v8, v25, __s); } else { v27 = (char *)cocos2d::CCString::getCString(v24); v28 = (std::string *)sub_100009900(__s, v27); sub_1001DFF38(v28, (char *)v38, (__int64)v36); if ( v43 >= 0 ) v29 = __s; else v29 = *(char **)__s; sub_100009900(__p, v29); v30 = sub_1003064AC(__p); if ( v41 < 0 ) operator delete(__p[0]); v31 = (char *)cocos2d::CCString::getCString(v21); sub_100009900(__p, v31); cocos2d::CCDictionary::setObject(v8, v30, __p); if ( v41 < 0 ) operator delete(__p[0]); } if ( v43 < 0 ) operator delete(*(void **)__s); } if ( v37 < 0 ) operator delete(v36[0]); if ( v39 < 0 ) operator delete(v38[0]); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source