// // FriendsProfilePage::getUserListFinished from 0x140214d40 to 0x1402155fc (2236 bytes) // // 2 xrefs: // > @ 0x140757450 // > @ 0x14091b6b0 // // 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:28:20 +0000 // // Hidden C++ exception states: #wind=8 void __fastcall FriendsProfilePage::getUserListFinished(__int64 a1, cocos2d::CCObject *a2, int a3) { cocos2d::CCObject *v5; // rcx __int64 v6; // rdx __int64 v7; // rcx __int64 v8; // rcx cocos2d::CCObject *v9; // rcx __int64 v10; // rbx __int64 v11; // r8 unsigned __int8 v12; // si __int64 v13; // rax unsigned int *v14; // rcx __int64 v15; // rax unsigned __int64 v16; // rcx unsigned __int64 v17; // rdx __int64 v18; // rcx __int64 v19; // rdx __int64 v20; // rcx __int64 v21; // rcx __int64 v22; // r14 __int64 v23; // rbx cocos2d::CCString *v24; // rax int v25; // ebx void *v26; // r8 __int64 v27; // rax _QWORD *v28; // rcx int v29; // r15d __int64 v30; // r14 __int64 v31; // rbx cocos2d::CCString *v32; // rax int v33; // ebx void *v34; // r8 __int64 v35; // rax __int64 v36; // r14 __int64 v37; // rbx cocos2d::CCString *v38; // rax int v39; // ebx void *v40; // r8 __int64 v41; // rax __int64 v42; // r14 __int64 v43; // rbx cocos2d::CCString *v44; // rax int v45; // ebx void *v46; // r8 __int64 v47; // rax __int64 v48; // rax __int64 v49; // rax _QWORD *i; // rdx __int64 v51; // rax int v52; // ebx __int64 v53; // rcx struct cocos2d::CCObject *v54; // rax void *v55; // [rsp+30h] [rbp-29h] void *v56; // [rsp+30h] [rbp-29h] void *v57; // [rsp+30h] [rbp-29h] void *v58; // [rsp+30h] [rbp-29h] void *v59; // [rsp+30h] [rbp-29h] void *v60[2]; // [rsp+38h] [rbp-21h] BYREF __int64 v61; // [rsp+48h] [rbp-11h] unsigned __int64 v62; // [rsp+50h] [rbp-9h] void *Block[2]; // [rsp+58h] [rbp-1h] BYREF __int64 v64; // [rsp+68h] [rbp+Fh] unsigned __int64 v65; // [rsp+70h] [rbp+17h] void *v66[2]; // [rsp+78h] [rbp+1Fh] BYREF __int64 v67; // [rsp+88h] [rbp+2Fh] unsigned __int64 v68; // [rsp+90h] [rbp+37h] if ( a3 == 2 ) { if ( *(_DWORD *)(a1 + 8) != 1 ) { v5 = *(cocos2d::CCObject **)(a1 + 64); if ( v5 ) cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 64) = a2; cocos2d::CCObject::retain(a2); *(_BYTE *)(a1 + 120) = 1; FriendsProfilePage::updateCountLabel(a1 - 808); v7 = *(_QWORD *)(a1 - 112); if ( v7 ) LoadingCircle::fadeAndRemove(v7); v8 = *(_QWORD *)(a1 - 48); if ( v8 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 512LL))(v8); *(_QWORD *)(a1 - 48) = 0; } LOBYTE(v6) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 104) + 336LL))(*(_QWORD *)(a1 + 104), v6); } } else if ( *(_DWORD *)(a1 + 8) == a3 ) { v9 = *(cocos2d::CCObject **)(a1 + 48); if ( v9 ) cocos2d::CCObject::release(v9); *(_QWORD *)(a1 + 48) = a2; cocos2d::CCObject::retain(a2); v10 = a1 - 808; FriendsProfilePage::sortUsers(a1 - 808); v11 = *(_QWORD *)(a1 + 128); if ( v11 ) { v12 = 0; v13 = *(_QWORD *)(a1 + 48); if ( v13 ) { v14 = *(unsigned int **)(v13 + 56); v15 = *v14; if ( (_DWORD)v15 ) { v16 = *((_QWORD *)v14 + 2); v17 = v16 + 8 * (v15 - 1); if ( v16 <= v17 ) { while ( *(_QWORD *)v16 ) { if ( *(int *)(*(_QWORD *)v16 + 472LL) > 0 ) { v12 = 1; break; } v16 += 8LL; if ( v16 > v17 ) break; } } } } (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v11 + 336LL))(*(_QWORD *)(a1 + 128), v12); v18 = *(_QWORD *)(a1 + 152); if ( v18 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v18 + 336LL))(v18, v12); } if ( *(_QWORD *)(a1 + 88) ) FriendsProfilePage::filterUsersWithQuery(a1 - 808); FriendsProfilePage::updateCountLabel(a1 - 808); v20 = *(_QWORD *)(v10 + 696); if ( v20 ) LoadingCircle::fadeAndRemove(v20); v21 = *(_QWORD *)(v10 + 760); if ( v21 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v21 + 512LL))(v21); *(_QWORD *)(v10 + 760) = 0; } LOBYTE(v19) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 104) + 336LL))(*(_QWORD *)(a1 + 104), v19); if ( !*(_DWORD *)(a1 + 8) ) { v22 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v55 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v55); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v22 = qword_14090BFD0; } v23 = AchievementManager::sharedState(); *(_OWORD *)Block = 0; v64 = 0; v65 = 0; Block[0] = sub_14003D460(0x20u); v64 = 22; v65 = 31; strcpy((char *)Block[0], "geometry.ach.friends01"); v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v23 + 352), Block); v25 = cocos2d::CCString::intValue(v24); if ( v65 > 0xF ) { v26 = Block[0]; if ( v65 + 1 >= 0x1000 ) { v26 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v26); } if ( v25 < 100 ) { *(_OWORD *)v60 = 0; v60[0] = sub_14003D460(0x20u); v61 = 22; v62 = 31; strcpy((char *)v60[0], "geometry.ach.friends01"); GameManager::completedAchievement(v22, v60); v27 = AchievementManager::sharedState(); AchievementManager::reportAchievementWithID(v27, (__int64)"geometry.ach.friends01", 100); } v29 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 48)); if ( v29 >= 10 ) { v30 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v56 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v56); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v30 = qword_14090BFD0; } v31 = AchievementManager::sharedState(); *(_OWORD *)v66 = 0; v67 = 0; v68 = 0; v66[0] = sub_14003D460(0x20u); v67 = 22; v68 = 31; strcpy((char *)v66[0], "geometry.ach.friends02"); v32 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v31 + 352), v66); v33 = cocos2d::CCString::intValue(v32); if ( v68 > 0xF ) { v34 = v66[0]; if ( v68 + 1 >= 0x1000 ) { v34 = *((void **)v66[0] - 1); if ( (unsigned __int64)((char *)v66[0] - (char *)v34 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v34); } v67 = 0; v68 = 15; LOBYTE(v66[0]) = 0; if ( v33 < 100 ) { *(_OWORD *)v60 = 0; v61 = 0; v62 = 0; v60[0] = sub_14003D460(0x20u); v61 = 22; v62 = 31; strcpy((char *)v60[0], "geometry.ach.friends02"); GameManager::completedAchievement(v30, v60); v35 = AchievementManager::sharedState(); AchievementManager::reportAchievementWithID(v35, (__int64)"geometry.ach.friends02", 100); } } if ( v29 >= 25 ) { v36 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v57 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v57); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v36 = qword_14090BFD0; } v37 = AchievementManager::sharedState(); *(_OWORD *)Block = 0; v64 = 0; v65 = 0; Block[0] = sub_14003D460(0x20u); v64 = 22; v65 = 31; strcpy((char *)Block[0], "geometry.ach.friends03"); v38 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v37 + 352), Block); v39 = cocos2d::CCString::intValue(v38); if ( v65 > 0xF ) { v40 = Block[0]; if ( v65 + 1 >= 0x1000 ) { v40 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v40 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v40); } v64 = 0; v65 = 15; LOBYTE(Block[0]) = 0; if ( v39 < 100 ) { *(_OWORD *)v60 = 0; v61 = 0; v62 = 0; v60[0] = sub_14003D460(0x20u); v61 = 22; v62 = 31; strcpy((char *)v60[0], "geometry.ach.friends03"); GameManager::completedAchievement(v36, v60); v41 = AchievementManager::sharedState(); AchievementManager::reportAchievementWithID(v41, (__int64)"geometry.ach.friends03", 100); } } if ( v29 >= 50 ) { v42 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v58 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v58); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v42 = qword_14090BFD0; } v43 = AchievementManager::sharedState(); *(_OWORD *)v60 = 0; v61 = 0; v62 = 0; v60[0] = sub_14003D460(0x20u); v61 = 22; v62 = 31; strcpy((char *)v60[0], "geometry.ach.friends04"); v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v43 + 352), v60); v45 = cocos2d::CCString::intValue(v44); if ( v62 > 0xF ) { v46 = v60[0]; if ( v62 + 1 >= 0x1000 ) { v46 = *((void **)v60[0] - 1); if ( (unsigned __int64)((char *)v60[0] - (char *)v46 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v46); } if ( v45 < 100 ) { *(_OWORD *)v60 = 0; v61 = 0; v62 = 0; v60[0] = sub_14003D460(0x20u); v61 = 22; v62 = 31; strcpy((char *)v60[0], "geometry.ach.friends04"); GameManager::completedAchievement(v42, v60); v47 = AchievementManager::sharedState(); AchievementManager::reportAchievementWithID(v47, (__int64)"geometry.ach.friends04", 100); } } v48 = *(_QWORD *)(a1 + 48); if ( v48 ) { v28 = *(_QWORD **)(v48 + 56); v49 = *(unsigned int *)v28; if ( (_DWORD)v49 ) { v28 = (_QWORD *)v28[2]; for ( i = &v28[v49 - 1]; v28 <= i; ++v28 ) { if ( !*v28 ) break; *(_BYTE *)(*v28 + 796LL) = 0; } } } v51 = GJAccountManager::sharedState(v28); v52 = *(_DWORD *)(v51 + 360) - *(_DWORD *)(v51 + 364); v53 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v59 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v59); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v53 = *(_QWORD *)&qword_14090BFB0; } v54 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v53 + 1232), v52); if ( v54 ) *((_DWORD *)v54 + 193) = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source