// // GameLevelManager::onRemoveFriendCompleted from 0x10008d294 to 0x10008d424 (400 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100089884 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCArray *__fastcall GameLevelManager::onRemoveFriendCompleted(GameLevelManager *a1, _QWORD *a2, char *__s) { char *v3; // x20 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x22 GameLevelManager *v7; // x0 __int64 SplitIntFromKey; // x20 _BOOL4 v9; // w21 cocos2d::CCArray *result; // x0 cocos2d::CCObject *v11; // x0 cocos2d::CCObject *v12; // x1 UserInfoDelegate *m_userInfoDelegate; // x0 cocos2d::CCArray *v14; // x21 __int64 v15; // x22 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v17; // [xsp+1Fh] [xbp-21h] v3 = __s; if ( __s[23] < 0 ) v3 = *(char **)__s; m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_100009900(__p, v3); v7 = (GameLevelManager *)cocos2d::CCDictionary::removeObjectForKey_1((int)m_friendReqAndUserBlocks, (char *)__p); if ( v17 < 0 ) operator delete(__p[0]); SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v7, v3, 1); sub_100009900(__p, "-1"); v9 = sub_1000045BC(a2, __p); if ( v17 < 0 ) operator delete(__p[0]); result = (cocos2d::CCArray *)a1->m_uploadActionDelegate; if ( v9 ) { if ( result ) return (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCArray *, __int64, __int64))result->~CCArray)( result, SplitIntFromKey, 33); } else { if ( result ) ((void (__fastcall *)(cocos2d::CCArray *, __int64, __int64))result->copyWithZone)(result, SplitIntFromKey, 33); v11 = cocos2d::CCDictionary::objectForKey(a1->m_storedUserInfo, (int)SplitIntFromKey); if ( v11 ) { v12 = v11; LODWORD(v11[12].__vftable) = 0; m_userInfoDelegate = a1->m_userInfoDelegate; if ( m_userInfoDelegate ) ((void (__fastcall *)(UserInfoDelegate *, cocos2d::CCObject *))m_userInfoDelegate->userInfoChanged)( m_userInfoDelegate, v12); } result = GameLevelManager::getStoredUserList(a1, (UserListType)0); if ( result ) { v14 = result; result = (cocos2d::CCArray *)sub_10024A36C(result); if ( (_DWORD)result ) { v15 = 0; while ( *(_DWORD *)(sub_10024A388(v14, v15) + 376) != (_DWORD)SplitIntFromKey ) { v15 = (unsigned int)(v15 + 1); result = (cocos2d::CCArray *)sub_10024A36C(v14); if ( (unsigned int)v15 >= (unsigned int)result ) return result; } sub_10024A44C(v14, v15, 1); result = (cocos2d::CCArray *)a1->m_userListDelegate; if ( result ) return (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCArray *, cocos2d::CCArray *, _QWORD))result->~CCArray_0)( result, v14, 0); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source