// // GameLevelManager::onRemoveFriendCompleted from 0x80e5c0 to 0x80e7e0 (544 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85aa28 // > @ 0xd7cc8 // // 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:54:49 +0000 // __int64 __fastcall GameLevelManager::onRemoveFriendCompleted(GameLevelManager *a1, __int64 a2, char *a3) { char *v5; // x19 size_t v6; // x0 __int64 v7; // x21 unsigned int SplitIntFromKey; // w21 _BOOL4 v9; // w19 __int64 v10; // x0 __int64 v12; // x0 __int64 v13; // x1 __int64 v14; // x0 unsigned int v15; // w19 cocos2d::CCArray *StoredUserList; // x20 __int64 v17; // x0 __int64 v18; // [xsp+40h] [xbp+40h] BYREF __int64 v19; // [xsp+48h] [xbp+48h] void *v20; // [xsp+50h] [xbp+50h] v5 = a3 + 1; if ( (*a3 & 1) != 0 ) v5 = *((char **)a3 + 2); v18 = 0; v19 = 0; v20 = nullptr; v6 = strlen(v5); v7 = *((_QWORD *)a1 + 136); std::string::__init(&v18, v5, v6); cocos2d::CCDictionary::removeObjectForKey(v7, &v18); if ( (v18 & 1) != 0 ) operator delete(v20); SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v5, 1u); v18 = 0; v19 = 0; v20 = nullptr; std::string::__init(&v18, &word_117CE08, 2u); v9 = sub_7FEA60(a2, (__int64)&v18); if ( (v18 & 1) != 0 ) operator delete(v20); v10 = *((_QWORD *)a1 + 170); if ( v9 ) { if ( v10 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v10 + 8LL))(v10, SplitIntFromKey, 39); } else { if ( v10 ) (**(void (__fastcall ***)(__int64, _QWORD, __int64))v10)(v10, SplitIntFromKey, 39); v12 = GameLevelManager::userInfoForAccountID((cocos2d::CCDictionary **)a1, SplitIntFromKey); v13 = v12; if ( v12 ) { *(_DWORD *)(v12 + 688) = 0; v14 = *((_QWORD *)a1 + 169); if ( v14 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 16LL))(v14, v13); } v15 = 0; StoredUserList = (cocos2d::CCArray *)GameLevelManager::getStoredUserList((__int64)a1, 0); if ( StoredUserList ) { while ( v15 < (unsigned int)cocos2d::CCArray::count(StoredUserList) ) { if ( SplitIntFromKey == *(_DWORD *)(cocos2d::CCArray::objectAtIndex(StoredUserList, v15) + 376) ) { cocos2d::CCArray::removeObjectAtIndex(StoredUserList, v15, 1); v17 = *((_QWORD *)a1 + 171); if ( !v17 ) break; (*(void (__fastcall **)(__int64, cocos2d::CCArray *, _QWORD))(*(_QWORD *)v17 + 16LL))(v17, StoredUserList, 0); GameLevelManager::resetStoredUserList((__int64)a1, 4); return _stack_chk_guard; } ++v15; } } GameLevelManager::resetStoredUserList((__int64)a1, 4); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source