// // ObjectManager::replaceAllOccurencesOfString from 0x6adc6c to 0x6ae368 (1788 bytes) // // 4 xrefs: // > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x68f320 // > ObjectManager::replaceAllOccurencesOfString @ 0x6ae04c // > ObjectManager::loadCopiedSets @ 0x6ae508 // > @ 0xbfb00 // // 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 12:50:49 +0000 // cocos2d::CCObject *__fastcall ObjectManager::replaceAllOccurencesOfString( ObjectManager *this, cocos2d::CCString *a2, cocos2d::CCString *a3, cocos2d::CCDictionary *a4) { const char *CString; // x0 size_t v7; // x0 size_t v8; // x0 cocos2d::CCDictionary *v9; // x1 cocos2d::CCObject *v10; // x27 cocos2d::CCArray *v11; // x28 unsigned int i; // w24 cocos2d::CCString *v13; // x0 char *v14; // x23 char *v15; // x26 char *v16; // x25 size_t v17; // x0 size_t v18; // x0 size_t v19; // x0 const char *v20; // x1 size_t v21; // x0 size_t v22; // x0 _BOOL4 v23; // w25 size_t v24; // x0 cocos2d::CCObject *v25; // x1 size_t v26; // x0 cocos2d::CCArray *v27; // x25 unsigned int v28; // w20 cocos2d::CCString *v29; // x24 const char *v30; // x0 size_t v31; // x0 cocos2d::CCString *v32; // x26 cocos2d::CCDictionary *v33; // x3 cocos2d::CCObject *v34; // x26 const char *v35; // x0 size_t v36; // x0 const char *v37; // x0 size_t v38; // x0 const char *v39; // x1 size_t v40; // x0 cocos2d::CCObject *v41; // x26 const char *v42; // x0 size_t v43; // x0 char *v47; // [xsp+98h] [xbp+98h] char *v48; // [xsp+98h] [xbp+98h] char *v49; // [xsp+98h] [xbp+98h] cocos2d::CCObject *v50; // [xsp+98h] [xbp+98h] char *v51; // [xsp+98h] [xbp+98h] char *v52; // [xsp+98h] [xbp+98h] char *v53; // [xsp+98h] [xbp+98h] char *v54; // [xsp+98h] [xbp+98h] char *v55; // [xsp+98h] [xbp+98h] __int64 v56[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v57; // [xsp+B8h] [xbp+B8h] __int64 v58[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v59; // [xsp+D0h] [xbp+D0h] __int64 v60[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v61; // [xsp+E8h] [xbp+E8h] __int64 v62[2]; // [xsp+F0h] [xbp+F0h] BYREF void *v63; // [xsp+100h] [xbp+100h] __int64 v64[2]; // [xsp+108h] [xbp+108h] BYREF void *v65; // [xsp+118h] [xbp+118h] __int64 v66[2]; // [xsp+120h] [xbp+120h] BYREF void *v67; // [xsp+130h] [xbp+130h] __int64 v68[2]; // [xsp+138h] [xbp+138h] BYREF void *v69; // [xsp+148h] [xbp+148h] __int64 v70[2]; // [xsp+150h] [xbp+150h] BYREF void *v71; // [xsp+160h] [xbp+160h] __int64 v72[2]; // [xsp+168h] [xbp+168h] BYREF void *v73; // [xsp+178h] [xbp+178h] __int64 v74[2]; // [xsp+180h] [xbp+180h] BYREF void *v75; // [xsp+190h] [xbp+190h] __int64 v76[2]; // [xsp+198h] [xbp+198h] BYREF void *v77; // [xsp+1A8h] [xbp+1A8h] __int64 v78; // [xsp+1B0h] [xbp+1B0h] BYREF __int64 v79; // [xsp+1B8h] [xbp+1B8h] void *v80; // [xsp+1C0h] [xbp+1C0h] CString = (const char *)cocos2d::CCString::getCString(this); v56[0] = 0; v56[1] = 0; v57 = nullptr; v47 = (char *)CString; v7 = strlen(CString); std::string::__init(v56, v47, v7); v48 = (char *)cocos2d::CCString::getCString(a2); v59 = nullptr; v58[0] = 0; v58[1] = 0; v8 = strlen(v48); std::string::__init(v58, v48, v8); v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::createWithDictionary(a3, v9); cocos2d::CCObject::retain(v10); v11 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v10); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v11); ++i ) { v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, i); v14 = (char *)cocos2d::CCString::getCString(v13); v15 = (char *)cocos2d::CCString::getCString(this); v16 = (char *)cocos2d::CCString::getCString(a2); v60[0] = 0; v60[1] = 0; v61 = nullptr; v17 = strlen(v14); std::string::__init(v60, v14, v17); v76[0] = 0; v76[1] = 0; v77 = nullptr; v18 = strlen(v15); std::string::__init(v76, v15, v18); v78 = 0; v79 = 0; v80 = nullptr; v19 = strlen(v16); std::string::__init(&v78, v16, v19); sub_6ADB44(v60, (char *)v76, (__int64)&v78); if ( (v78 & 1) != 0 ) operator delete(v80); if ( (v76[0] & 1) != 0 ) operator delete(v77); v20 = (char *)v60 + 1; if ( (v60[0] & 1) != 0 ) v20 = (const char *)v61; v78 = 0; v79 = 0; v80 = nullptr; v49 = (char *)v20; v21 = strlen(v20); std::string::__init(&v78, v49, v21); if ( (v60[0] & 1) != 0 ) operator delete(v61); v62[0] = 0; v62[1] = 0; v63 = nullptr; v22 = strlen(v14); std::string::__init(v62, v14, v22); v23 = sub_6ACFE4((__int64)&v78, (__int64)v62); if ( (v62[0] & 1) != 0 ) { operator delete(v63); if ( v23 ) goto LABEL_13; } else if ( v23 ) { goto LABEL_13; } v64[0] = 0; v64[1] = 0; v65 = nullptr; v24 = strlen(v14); std::string::__init(v64, v14, v24); v25 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v10, v64); if ( (v64[0] & 1) != 0 ) { v50 = v25; operator delete(v65); v25 = v50; } cocos2d::CCDictionary::setObject((int)v10, v25); v66[0] = 0; v66[1] = 0; v67 = nullptr; v26 = strlen(v14); std::string::__init(v66, v14, v26); cocos2d::CCDictionary::removeObjectForKey(v10, v66); if ( (v66[0] & 1) != 0 ) operator delete(v67); LABEL_13: if ( (v78 & 1) != 0 ) operator delete(v80); } v27 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v10); v28 = 0; while ( v28 < (unsigned int)cocos2d::CCArray::count(v27) ) { v29 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v27, v28); v30 = (const char *)cocos2d::CCString::getCString(v29); v68[0] = 0; v68[1] = 0; v69 = nullptr; v51 = (char *)v30; v31 = strlen(v30); std::string::__init(v68, v51, v31); v32 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v10, v68); if ( (v68[0] & 1) != 0 ) operator delete(v69); if ( v32 ) { if ( _dynamic_cast( v32, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { v34 = (cocos2d::CCObject *)ObjectManager::replaceAllOccurencesOfString(this, a2, v32, v33); v35 = (const char *)cocos2d::CCString::getCString(v29); v70[0] = 0; v70[1] = 0; v71 = nullptr; v52 = (char *)v35; v36 = strlen(v35); std::string::__init(v70, v52, v36); cocos2d::CCDictionary::setObject((int)v10, v34); if ( (v70[0] & 1) == 0 ) goto LABEL_27; ++v28; operator delete(v71); } else { v37 = (const char *)cocos2d::CCString::getCString(v32); v78 = 0; v79 = 0; v80 = nullptr; v53 = (char *)v37; v38 = strlen(v37); std::string::__init(&v78, v53, v38); sub_6ADB44(&v78, (char *)v56, (__int64)v58); v39 = (char *)&v78 + 1; if ( (v78 & 1) != 0 ) v39 = (const char *)v80; v54 = (char *)v39; v72[0] = 0; v72[1] = 0; v73 = nullptr; v40 = strlen(v39); std::string::__init(v72, v54, v40); v41 = (cocos2d::CCObject *)cocos2d::CCString::create(v72); if ( (v72[0] & 1) != 0 ) operator delete(v73); v42 = (const char *)cocos2d::CCString::getCString(v29); v74[0] = 0; v74[1] = 0; v75 = nullptr; v55 = (char *)v42; v43 = strlen(v42); std::string::__init(v74, v55, v43); cocos2d::CCDictionary::setObject((int)v10, v41); if ( (v74[0] & 1) != 0 ) operator delete(v75); if ( (v78 & 1) == 0 ) goto LABEL_27; ++v28; operator delete(v80); } } else { LABEL_27: ++v28; } } if ( (v58[0] & 1) != 0 ) operator delete(v59); if ( (v56[0] & 1) != 0 ) operator delete(v57); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source