// // GameLevelManager::onRateDemonCompleted from 0x4c1ffc to 0x4c2136 (314 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4daf1a // // 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:24 +0000 // int (***__fastcall GameLevelManager::onRateDemonCompleted(GameLevelManager *a1, unsigned __int8 *a2, char *a3))(void) { cocos2d::CCDictionary *v5; // r6 char v6; // r1 const char *v7; // r5 size_t v8; // r0 int SplitIntFromKey; // r0 const char *v10; // r6 _BOOL4 v11; // r5 int v12; // r0 cocos2d::CCDictionary *v13; // r5 cocos2d::CCString *v14; // r0 const char *CString; // r0 const char *v16; // r6 size_t v17; // r0 int (***result)(void); // r0 _BOOL4 v19; // r8 GameManager *v20; // r0 GameManager *v21; // r0 int (*v22)(void); // r3 int v23; // [sp+0h] [bp-14h] BYREF int v24; // [sp+4h] [bp-10h] int v25; // [sp+8h] [bp-Ch] v5 = *((cocos2d::CCDictionary **)a1 + 187); v23 = 0; v6 = *a3; v24 = 0; v25 = 0; if ( (v6 & 1) != 0 ) v7 = *((const char **)a3 + 2); else v7 = a3 + 1; v8 = strlen(v7); std::string::__init(&v23, v7, v8); cocos2d::CCDictionary::removeObjectForKey(v5); std::string::~string((int)&v23); SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v7, 1u); v23 = 0; v24 = 0; v25 = 0; v10 = (const char *)SplitIntFromKey; std::string::__init(&v23, "-1", 2u); v11 = sub_4A9CC4(a2, (unsigned __int8 *)&v23); std::string::~string((int)&v23); if ( v11 ) { v12 = *((_DWORD *)a1 + 222); if ( v12 ) (*(void (__fastcall **)(int, const char *, int))(*(_DWORD *)v12 + 4))(v12, v10, 56); v13 = *((cocos2d::CCDictionary **)a1 + 143); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v10); CString = (const char *)cocos2d::CCString::getCString(v14); v23 = 0; v24 = 0; v25 = 0; v16 = CString; v17 = strlen(CString); std::string::__init(&v23, v16, v17); cocos2d::CCDictionary::removeObjectForKey(v13); return (int (***)(void))std::string::~string((int)&v23); } else { v23 = 0; v24 = 0; v25 = 0; std::string::__init(&v23, "-2", 2u); v19 = sub_4A9CC4(a2, (unsigned __int8 *)&v23); v20 = (GameManager *)std::string::~string((int)&v23); if ( v19 ) { v21 = (GameManager *)GameManager::sharedState(v20); GameManager::setHasRatingPower(v21, 0); result = *((int (****)(void))a1 + 222); if ( !result ) return result; v22 = (*result)[1]; } else { result = *((int (****)(void))a1 + 222); if ( !result ) return result; v22 = **result; } return (int (***)(void))v22(); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source