// // MessagesProfilePage::deleteSelected from 0x140476a10 to 0x140476c8b (635 bytes) // // 2 xrefs: // > MessagesProfilePage::FLAlert_Clicked @ 0x140476cb2 // > @ 0x140928400 // // This function is hookable on this platform (idp: pc, 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 11:32:41 +0000 // // Hidden C++ exception states: #wind=5 int __fastcall MessagesProfilePage::deleteSelected(__int64 a1) { _BYTE *v2; // rbx __int64 v3; // rcx __int64 StoredOnlineLevels; // rax __int64 v5; // rcx __int64 v6; // rbx cocos2d::CCArray *v7; // r15 int v8; // esi unsigned int *v9; // rdi __int64 v10; // rax struct cocos2d::CCObject **v11; // rdi struct cocos2d::CCObject **i; // r14 struct cocos2d::CCObject *v13; // rbx __int64 v14; // rbx __int64 v15; // rcx __int64 v16; // rax cocos2d::CCObject *v17; // rax __int64 v18; // rax int v19; // ebx __int64 v20; // rcx struct cocos2d::CCObject *v21; // rax int v22; // ecx __int128 v24; // [rsp+20h] [rbp-48h] BYREF __int64 v25; // [rsp+30h] [rbp-38h] __int64 v26; // [rsp+38h] [rbp-30h] void *v27; // [rsp+70h] [rbp+8h] void *v28; // [rsp+70h] [rbp+8h] void *v29; // [rsp+70h] [rbp+8h] v2 = (_BYTE *)(a1 + 704); if ( *(_QWORD *)(a1 + 728) > 0xFu ) v2 = *(_BYTE **)v2; v3 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v27 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v27); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v3 = *(_QWORD *)&qword_14090BFB0; } StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v3, v2); v6 = StoredOnlineLevels; if ( StoredOnlineLevels ) { v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); v8 = 0; v9 = *(unsigned int **)(v6 + 56); v10 = *v9; if ( (_DWORD)v10 ) { v11 = *((struct cocos2d::CCObject ***)v9 + 2); for ( i = &v11[v10 - 1]; v11 <= i; ++v11 ) { v13 = *v11; if ( !*v11 ) break; if ( *((_BYTE *)v13 + 466) ) { cocos2d::CCArray::addObject(v7, *v11); if ( !*((_BYTE *)v13 + 464) ) { *((_BYTE *)v13 + 464) = 1; ++v8; } } } } LODWORD(StoredOnlineLevels) = cocos2d::CCArray::count(v7); if ( (_DWORD)StoredOnlineLevels ) { v14 = a1 + 688; if ( !a1 ) v14 = 0; v15 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v28 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v28); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v15 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v15 + 1512) = v14; v16 = a1 + 672; if ( !a1 ) v16 = 0; *(_QWORD *)(v15 + 1488) = v16; if ( (unsigned __int8)GameLevelManager::deleteUserMessages(v15, nullptr, v7, *(_BYTE *)(a1 + 696)) ) { v24 = 0; *(_QWORD *)&v24 = sub_14003D460(0x20u); v25 = 20; v26 = 31; strcpy((char *)v24, "Deleting Messages..."); v17 = UploadActionPopup::create(a1 + 680, (__int64)&v24); *(_QWORD *)(a1 + 768) = v17; (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v17 + 1064LL))(v17); } if ( v8 > 0 ) { v18 = GJAccountManager::sharedState(); v19 = *(_DWORD *)(v18 + 360) - *(_DWORD *)(v18 + 364); v20 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v29 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v29); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v20 = *(_QWORD *)&qword_14090BFB0; } v21 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v20 + 1232), v19); if ( v21 ) { v22 = *((_DWORD *)v21 + 191) - v8; if ( v22 < 0 ) v22 = 0; *((_DWORD *)v21 + 191) = v22; } } LODWORD(StoredOnlineLevels) = MessagesProfilePage::updateSelectUI(a1); } } return StoredOnlineLevels; }
GD Web Decomp Icon

GD Web Decomp

Raw Source