// // GameLevelManager::createAndGetCommentsFull from 0x4d28ac to 0x4d2ae0 (564 bytes) // // 2 xrefs: // > GameLevelManager::createAndGetLevelComments @ 0x4d2b16 // > GameLevelManager::createAndGetAccountComments @ 0x4d2d90 // // 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:50:48 +0000 // cocos2d::CCArray *__fastcall GameLevelManager::createAndGetCommentsFull( cocos2d::CCArray *a1, int a2, int a3, int a4, int a5) { cocos2d::CCArray *v6; // r0 bool v7; // zf cocos2d::CCArray *v8; // r9 size_t v9; // r0 cocos2d::CCArray *v10; // r11 unsigned int i; // r8 cocos2d::CCString *v12; // r0 const char *CString; // r0 const char *v14; // r4 size_t v15; // r0 cocos2d::CCArray *v16; // r5 cocos2d::CCString *v17; // r0 const char *v18; // r10 size_t v19; // r0 cocos2d::CCString *v20; // r0 const char *v21; // r10 size_t v22; // r0 GJComment *v23; // r0 cocos2d::CCDictionary *v24; // r1 int *v25; // r4 cocos2d::CCNode *v26; // r0 cocos2d::CCDictionary *v27; // r1 cocos2d::CCNode *v28; // r5 cocos2d::CCObject *v29; // r0 char *v30; // r10 GJComment *v31; // r0 cocos2d::CCDictionary *v32; // r1 const char *v35; // [sp+4h] [bp-68h] int v38[3]; // [sp+1Ch] [bp-50h] BYREF int v39[3]; // [sp+28h] [bp-44h] BYREF int v40[3]; // [sp+34h] [bp-38h] BYREF int v41[3]; // [sp+40h] [bp-2Ch] BYREF int v42[3]; // [sp+4Ch] [bp-20h] BYREF int v43; // [sp+58h] [bp-14h] BYREF int v44; // [sp+5Ch] [bp-10h] int v45; // [sp+60h] [bp-Ch] v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v7 = (*(_BYTE *)a2 & 1) == 0; if ( (*(_BYTE *)a2 & 1) == 0 ) ++a2; v43 = 0; if ( !v7 ) a2 = *(_DWORD *)(a2 + 8); v44 = 0; v45 = 0; v8 = v6; v9 = strlen((const char *)a2); std::string::__init(&v43, (const void *)a2, v9); v10 = sub_4C1A88(&v43, "|"); std::string::~string((int)&v43); for ( i = 0; i < cocos2d::CCArray::count(v10); ++i ) { v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, i); CString = (const char *)cocos2d::CCString::getCString(v12); memset(v38, 0, sizeof(v38)); v14 = CString; v15 = strlen(CString); std::string::__init(v38, v14, v15); if ( a4 ) { std::string::basic_string(&v43, (int)v38); v31 = (GJComment *)GameLevelManager::responseToDict((cocos2d::CCDictionary *)&v43, 1); v25 = GJComment::create(v31, v32); std::string::~string((int)&v43); if ( !v25 ) goto LABEL_24; v25[77] = a3; goto LABEL_21; } v16 = sub_4C1A88(v38, ":"); if ( cocos2d::CCArray::count(v16) > 1u ) { v17 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 0); v18 = (const char *)cocos2d::CCString::getCString(v17); memset(v39, 0, sizeof(v39)); v19 = strlen(v18); std::string::__init(v39, v18, v19); v20 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 1u); v21 = (const char *)cocos2d::CCString::getCString(v20); v43 = 0; v44 = 0; v45 = 0; v22 = strlen(v21); std::string::__init(&v43, v21, v22); std::string::basic_string(v40, (int)v39); v23 = (GJComment *)GameLevelManager::responseToDict((cocos2d::CCDictionary *)v40, 1); v25 = GJComment::create(v23, v24); std::string::~string((int)v40); std::string::basic_string(v41, (int)&v43); v26 = (cocos2d::CCNode *)GameLevelManager::responseToDict((cocos2d::CCDictionary *)v41, 1); v28 = GJUserScore::create(v26, v27); std::string::~string((int)v41); if ( v28 ) { if ( (cocos2d::CCNode *)v25[89] != v28 ) { cocos2d::CCObject::retain(v28); v29 = (cocos2d::CCObject *)v25[89]; if ( v29 ) cocos2d::CCObject::release(v29); v25[89] = (int)v28; } v30 = *((char **)v28 + 74); v35 = (const char *)v25[73]; std::string::basic_string(v42, (int)v28 + 264); GameLevelManager::storeUserName((unsigned __int8 *)a1, v35, v30, (unsigned __int8 *)v42); std::string::~string((int)v42); } std::string::~string((int)&v43); std::string::~string((int)v39); if ( v25 ) { if ( !v25[75] ) v25[75] = a3; LABEL_21: if ( v25[86] != 3 ) v25[86] = a5; cocos2d::CCArray::addObject(v8, (cocos2d::CCObject *)v25); } } LABEL_24: std::string::~string((int)v38); } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source