// // GameLevelManager::onGetAccountCommentsCompleted from 0x84b564 to 0x84b954 (1008 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85bf94 // > @ 0xf8380 // // 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:55:23 +0000 // __int64 __fastcall GameLevelManager::onGetAccountCommentsCompleted(__int64 **this, __int64 a2, char *a3) { char *v5; // x19 int v6; // w25 _BOOL4 v7; // w24 const char *v8; // x1 size_t v9; // x0 cocos2d::CCArray *v10; // x23 cocos2d::CCString *v11; // x0 const char *CString; // x0 size_t v13; // x0 cocos2d::CCString *v14; // x0 size_t v15; // x0 __int64 *v16; // x23 __int64 v17; // x1 void (__fastcall *v18)(__int64 *, __int64 *, char *); // x27 cocos2d::CCObject *AccountComments; // x23 void (__fastcall ***v20)(_QWORD, cocos2d::CCObject *, char *); // x0 __int64 v21; // x0 char *v23; // [xsp+68h] [xbp+68h] char *v24; // [xsp+68h] [xbp+68h] char *v25; // [xsp+68h] [xbp+68h] __int64 v26; // [xsp+70h] [xbp+70h] BYREF size_t v27; // [xsp+78h] [xbp+78h] void *v28; // [xsp+80h] [xbp+80h] __int64 v29; // [xsp+88h] [xbp+88h] BYREF size_t v30; // [xsp+90h] [xbp+90h] void *v31; // [xsp+98h] [xbp+98h] __int64 v32; // [xsp+A0h] [xbp+A0h] BYREF size_t v33; // [xsp+A8h] [xbp+A8h] void *v34; // [xsp+B0h] [xbp+B0h] __int64 v35; // [xsp+B8h] [xbp+B8h] BYREF size_t v36; // [xsp+C0h] [xbp+C0h] void *v37; // [xsp+C8h] [xbp+C8h] __int64 v38; // [xsp+D0h] [xbp+D0h] BYREF size_t v39; // [xsp+D8h] [xbp+D8h] void *v40; // [xsp+E0h] [xbp+E0h] v5 = a3 + 1; if ( (*a3 & 1) != 0 ) v5 = *((char **)a3 + 2); v6 = GameLevelManager::levelIDFromCommentKey((GameLevelManager *)this, v5); GameLevelManager::removeDLFromActive((GameLevelManager *)this, v5); v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, &word_117CE08, 2u); v7 = sub_7FEA60(a2, (__int64)&v38); if ( (v38 & 1) != 0 ) operator delete(v40); if ( !v7 ) { v8 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v8 = *(const char **)(a2 + 16); v23 = (char *)v8; v38 = 0; v39 = 0; v40 = nullptr; v9 = strlen(v8); std::string::__init(&v38, v23, v9); v10 = sub_80CFCC((unsigned __int8 *)&v38, "#"); if ( (v38 & 1) != 0 ) { operator delete(v40); if ( (unsigned int)cocos2d::CCArray::count(v10) > 1 ) { LABEL_10: v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, 0); CString = (const char *)cocos2d::CCString::getCString(v11); v26 = 0; v24 = (char *)CString; v27 = 0; v28 = nullptr; v13 = strlen(CString); std::string::__init(&v26, v24, v13); v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, 1u); v25 = (char *)cocos2d::CCString::getCString(v14); v29 = 0; v30 = 0; v31 = nullptr; v15 = strlen(v25); std::string::__init(&v29, v25, v15); v16 = *(this + 155); if ( v16 ) { v17 = *v16; v32 = 0; v33 = 0; v34 = nullptr; v18 = *(void (__fastcall **)(__int64 *, __int64 *, char *))(v17 + 24); if ( (v29 & 1) != 0 ) { std::string::__init(&v32, v31, v30); } else { v34 = v31; v32 = v29; v33 = v30; } v18(v16, &v32, v5); if ( (v32 & 1) != 0 ) operator delete(v34); } v35 = 0; v36 = 0; v37 = nullptr; if ( (v26 & 1) != 0 ) { std::string::__init(&v35, v28, v27); } else { v37 = v28; v35 = v26; v36 = v27; } AccountComments = GameLevelManager::createAndGetAccountComments(this, (char *)&v35, v6); if ( (v35 & 1) != 0 ) operator delete(v37); v38 = 0; v39 = 0; v40 = nullptr; if ( (v29 & 1) != 0 ) { std::string::__init(&v38, v31, v30); } else { v40 = v31; v38 = v29; v39 = v30; } GameLevelManager::storeCommentsResult((GameLevelManager *)this, AccountComments, (__int64)&v38, v5); if ( (v38 & 1) != 0 ) operator delete(v40); v20 = (void (__fastcall ***)(_QWORD, cocos2d::CCObject *, char *))*(this + 155); if ( v20 ) (**v20)(v20, AccountComments, v5); if ( (v29 & 1) != 0 ) operator delete(v31); if ( (v26 & 1) != 0 ) operator delete(v28); return _stack_chk_guard; } } else if ( (unsigned int)cocos2d::CCArray::count(v10) > 1 ) { goto LABEL_10; } } v21 = (__int64)*(this + 155); if ( v21 ) (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v21 + 8LL))(v21, v5); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source