// // ObjectManager::replaceAllOccurencesOfString from 0x3d6f14 to 0x3d72a8 (916 bytes) // // 3 xrefs: // > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x3c4e4c // > ObjectManager::replaceAllOccurencesOfString @ 0x3d726e // > ObjectManager::loadCopiedSets @ 0x3d73cc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:46:45 +0000 // cocos2d::CCObject *__fastcall ObjectManager::replaceAllOccurencesOfString( ObjectManager *this, cocos2d::CCString *a2, cocos2d::CCString *a3, cocos2d::CCDictionary *a4) { int v4; // r11 const char *CString; // r4 size_t v7; // r0 const char *v8; // r5 size_t v9; // r0 cocos2d::CCDictionary *v10; // r1 cocos2d::CCObject *v11; // r5 unsigned int v12; // r7 cocos2d::CCString *v13; // r0 const char *v14; // r6 const char *v15; // r11 const char *v16; // r10 size_t v17; // r0 size_t v18; // r0 size_t v19; // r0 const char *v20; // r10 size_t v21; // r0 size_t v22; // r0 size_t v23; // r0 size_t v24; // r0 unsigned int v25; // r6 cocos2d::CCString *v26; // r10 const char *v27; // r8 size_t v28; // r0 cocos2d::CCString *v29; // r8 cocos2d::CCDictionary *v30; // r3 const char *v31; // r9 size_t v32; // r0 size_t v33; // r0 const char *v34; // r10 size_t v35; // r0 int *v36; // r0 cocos2d::CCObject *v38; // r8 const char *v39; // r9 size_t v40; // r0 cocos2d::CCArray *v41; // [sp+8h] [bp-B4h] cocos2d::CCArray *v43; // [sp+10h] [bp-ACh] int v45[3]; // [sp+24h] [bp-98h] BYREF int v46[3]; // [sp+30h] [bp-8Ch] BYREF char v47[4]; // [sp+3Ch] [bp-80h] BYREF int v48; // [sp+40h] [bp-7Ch] const char *v49; // [sp+44h] [bp-78h] int v50[3]; // [sp+48h] [bp-74h] BYREF int v51[3]; // [sp+54h] [bp-68h] BYREF int v52[3]; // [sp+60h] [bp-5Ch] BYREF int v53[3]; // [sp+6Ch] [bp-50h] BYREF int v54[3]; // [sp+78h] [bp-44h] BYREF int v55[3]; // [sp+84h] [bp-38h] BYREF int v56[3]; // [sp+90h] [bp-2Ch] BYREF int v57[3]; // [sp+9Ch] [bp-20h] BYREF unsigned __int8 *v58; // [sp+A8h] [bp-14h] BYREF int v59; // [sp+ACh] [bp-10h] char *v60; // [sp+B0h] [bp-Ch] memset(v45, 0, sizeof(v45)); CString = (const char *)cocos2d::CCString::getCString(this); v7 = strlen(CString); std::string::__init(v45, CString, v7); v8 = (const char *)cocos2d::CCString::getCString(a2); memset(v46, 0, sizeof(v46)); v9 = strlen(v8); std::string::__init(v46, v8, v9); v11 = (cocos2d::CCObject *)cocos2d::CCDictionary::createWithDictionary(a3, v10); cocos2d::CCObject::retain(v11); v12 = 0; v41 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v11); while ( v12 < cocos2d::CCArray::count(v41) ) { v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v41, v12); v14 = (const char *)cocos2d::CCString::getCString(v13); v15 = (const char *)cocos2d::CCString::getCString(this); v16 = (const char *)cocos2d::CCString::getCString(a2); *(_DWORD *)v47 = 0; v48 = 0; v49 = nullptr; v17 = strlen(v14); std::string::__init((int *)v47, v14, v17); memset(v57, 0, sizeof(v57)); v18 = strlen(v15); std::string::__init(v57, v15, v18); v58 = nullptr; v59 = 0; v60 = nullptr; v19 = strlen(v16); std::string::__init((int *)&v58, v16, v19); sub_3D6E64((unsigned __int8 **)v47, (unsigned __int8 *)v57, (unsigned __int8 *)&v58); std::string::~string((int)&v58); std::string::~string((int)v57); if ( (v47[0] & 1) != 0 ) v20 = v49; else v20 = &v47[1]; v58 = nullptr; v59 = 0; v60 = nullptr; v21 = strlen(v20); std::string::__init((int *)&v58, v20, v21); std::string::~string((int)v47); memset(v50, 0, sizeof(v50)); v22 = strlen(v14); std::string::__init(v50, v14, v22); v4 = sub_3D6880((unsigned __int8 *)&v58, (unsigned __int8 *)v50); std::string::~string((int)v50); if ( !v4 ) { memset(v51, 0, sizeof(v51)); v23 = strlen(v14); std::string::__init(v51, v14, v23); v4 = cocos2d::CCDictionary::objectForKey(v11, v51); std::string::~string((int)v51); cocos2d::CCDictionary::setObject((int)v11, (cocos2d::CCObject *)v4); memset(v52, 0, sizeof(v52)); v24 = strlen(v14); std::string::__init(v52, v14, v24); cocos2d::CCDictionary::removeObjectForKey(v11); std::string::~string((int)v52); } ++v12; std::string::~string((int)&v58); } v25 = 0; v43 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v11); while ( v25 < cocos2d::CCArray::count(v43) ) { v26 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v43, v25); v27 = (const char *)cocos2d::CCString::getCString(v26); memset(v53, 0, sizeof(v53)); v28 = strlen(v27); std::string::__init(v53, v27, v28); v29 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v11, v53); std::string::~string((int)v53); if ( v29 ) { if ( _dynamic_cast( v29, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { v38 = (cocos2d::CCObject *)ObjectManager::replaceAllOccurencesOfString(this, a2, v29, v30); v39 = (const char *)cocos2d::CCString::getCString(v26); memset(v54, 0, sizeof(v54)); v40 = strlen(v39); std::string::__init(v54, v39, v40); cocos2d::CCDictionary::setObject((int)v11, v38); v36 = v54; } else { v31 = (const char *)cocos2d::CCString::getCString(v29); v58 = nullptr; v59 = 0; v60 = nullptr; v32 = strlen(v31); std::string::__init((int *)&v58, v31, v32); sub_3D6E64(&v58, (unsigned __int8 *)v45, (unsigned __int8 *)v46); v55[0] = 0; v55[1] = 0; if ( ((unsigned __int8)v58 & 1) == 0 ) v4 = (int)&v58 + 1; v55[2] = 0; if ( ((unsigned __int8)v58 & 1) != 0 ) v4 = (int)v60; v33 = strlen((const char *)v4); std::string::__init(v55, (const void *)v4, v33); v4 = cocos2d::CCString::create(v55); std::string::~string((int)v55); v34 = (const char *)cocos2d::CCString::getCString(v26); memset(v56, 0, sizeof(v56)); v35 = strlen(v34); std::string::__init(v56, v34, v35); cocos2d::CCDictionary::setObject((int)v11, (cocos2d::CCObject *)v4); std::string::~string((int)v56); v36 = (int *)&v58; } std::string::~string((int)v36); } ++v25; } std::string::~string((int)v46); std::string::~string((int)v45); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source