// // FRequestProfilePage::deleteSelected from 0x1007911e0 to 0x1007913a6 (454 bytes) // // 2 xrefs: // > FRequestProfilePage::FLAlert_Clicked @ 0x1007913e4 // > sub_1007913F0 @ 0x10079141b // // 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 // void __fastcall FRequestProfilePage::deleteSelected(FRequestProfilePage *a1) { GameLevelManager *v1; // rax cocos2d::CCArray *StoredOnlineLevels; // rax cocos2d::CCArray *v3; // r15 cocos2d::CCArray *v4; // r14 cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r13 cocos2d::CCObject **v7; // rbx int v8; // r12d cocos2d::CCObject *v9; // r15 GameLevelManager *v10; // rax UploadActionPopup *m_uploadPopup; // rax GameLevelManager *v12; // rbx GJAccountManager *v13; // rax GJUserScore *v14; // rax int v15; // edx __int128 v16[4]; // [rsp+10h] [rbp-40h] BYREF v1 = GameLevelManager::sharedState(); if ( (a1->m_key.m_data.m_short.sizex2 & 1) != 0 ) { StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v1, a1->m_key.m_data.m_long.longStorage); if ( !StoredOnlineLevels ) return; } else { StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v1, a1->m_key.m_data.m_short.shortStorage.__elems_); if ( !StoredOnlineLevels ) return; } v3 = StoredOnlineLevels; v4 = (cocos2d::CCArray *)sub_10071F9E0(); data = v3->data; if ( data->num ) { arr = data->arr; v7 = &arr[data->num - 1]; v8 = 0; do { v9 = *arr; if ( !*arr ) break; if ( BYTE1(v9[12].m_nTag) == 1 ) { sub_10071FCD0((__int64)v4, *arr); if ( LOBYTE(v9[12].m_nTag) == 1 ) { LOBYTE(v9[12].m_nTag) = 0; ++v8; } } ++arr; } while ( arr <= v7 ); } else { v8 = 0; } if ( (unsigned int)sub_100720070((__int64)v4) ) { GameLevelManager::sharedState()->m_friendRequestDelegate = &a1->FriendRequestDelegate; GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v10 = GameLevelManager::sharedState(); if ( GameLevelManager::deleteFriendRequests(v10, 0, v4, 0) ) { strcpy((char *)v16, "(Deleting Requests..."); m_uploadPopup = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, v16); a1->m_uploadPopup = m_uploadPopup; if ( (v16[0] & 1) != 0 ) { operator delete(*(void **)&v16[1]); m_uploadPopup = a1->m_uploadPopup; } ((void (__fastcall *)(UploadActionPopup *))m_uploadPopup->show)(m_uploadPopup); } if ( v8 > 0 ) { v12 = GameLevelManager::sharedState(); v13 = GJAccountManager::sharedState(); v14 = GameLevelManager::userInfoForAccountID(v12, v13->m_accountID - v13->m_unkInt1); if ( v14 ) { v15 = 0; if ( v14->m_friendReqCount - v8 > 0 ) v15 = v14->m_friendReqCount - v8; v14->m_friendReqCount = v15; } } } }