{"type": "func", "start": 4301621008, "end": 4301621283, "name": "FriendsProfilePage::getUserListFinished", "pseudocode": "// \n// FriendsProfilePage::getUserListFinished from 0x100658710 to 0x100658823 (275 bytes)\n// \n// 2 xrefs:\n// > sub_100658830 @ 0x10065883c\n// > <???> @ 0x1009864c8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall FriendsProfilePage::getUserListFinished(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3)\n{\n  cocos2d::CCArray *m_users; // rdi\n  cocos2d::CCArray *v6; // rax\n  cocos2d::ccArray *data; // rax\n  __int64 num; // rcx\n  unsigned __int64 arr; // rax\n  unsigned __int64 v10; // rcx\n  GameLevelManager *v11; // rbx\n  GJAccountManager *v12; // rax\n  GJUserScore *v13; // rax\n\n  if ( a1->m_type == a3 )\n  {\n    m_users = a1->m_users;\n    if ( m_users )\n      cocos2d::CCObject::release(m_users);\n    a1->m_users = a2;\n    cocos2d::CCObject::retain(a2);\n    FriendsProfilePage::setupUsersBrowser(a1, a1->m_users, a3);\n    ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_circle->setVisible)(a1->m_circle, 0);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_refreshBtn->setVisible)(a1->m_refreshBtn, 1);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_noInternet->setVisible)(a1->m_noInternet, 0);\n    if ( !a1->m_type )\n    {\n      v6 = a1->m_users;\n      if ( v6 )\n      {\n        data = v6->data;\n        num = data->num;\n        if ( data->num )\n        {\n          arr = (unsigned __int64)data->arr;\n          v10 = arr + 8 * num - 8;\n          do\n          {\n            if ( !*(_QWORD *)arr )\n              break;\n            *(_BYTE *)(*(_QWORD *)arr + 688LL) = 0;\n            arr += 8LL;\n          }\n          while ( arr <= v10 );\n        }\n      }\n      v11 = GameLevelManager::sharedState();\n      v12 = GJAccountManager::sharedState();\n      v13 = GameLevelManager::userInfoForAccountID(v11, v12->m_accountID - v12->m_unkInt1);\n      if ( v13 )\n        v13->m_newFriendCount = 0;\n    }\n  }\n}", "assembly": "; \n; FriendsProfilePage::getUserListFinished from 0x100658710 to 0x100658823 (275 bytes)\n; \n; 2 xrefs:\n; > sub_100658830 @ 0x10065883c\n; > <???> @ 0x1009864c8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ncmp     [rdi+298h], edx                                                ; +0x0, 0x100658710\njnz     locret_100658822                                               ; +0x6, 0x100658716\npush    rbp                                                            ; +0xc, 0x10065871c\nmov     rbp, rsp                                                       ; +0xd, 0x10065871d\npush    r15                                                            ; +0x10, 0x100658720\npush    r14                                                            ; +0x12, 0x100658722\npush    rbx                                                            ; +0x14, 0x100658724\npush    rax                                                            ; +0x15, 0x100658725\nmov     rbx, rdi                                                       ; +0x16, 0x100658726\nmov     r14d, edx                                                      ; +0x19, 0x100658729\nmov     rdi, [rdi+2C8h]                                                ; +0x1c, 0x10065872c\ntest    rdi, rdi                                                       ; +0x23, 0x100658733\njz      short loc_100658743                                            ; +0x26, 0x100658736\nmov     r15, rsi                                                       ; +0x28, 0x100658738\ncall    cocos2d__CCObject__release                                     ; +0x2b, 0x10065873b\nmov     rsi, r15                                                       ; +0x30, 0x100658740\nmov     [rbx+2C8h], rsi                                                ; +0x33, 0x100658743\nmov     rdi, rsi                                                       ; +0x3a, 0x10065874a\ncall    cocos2d__CCObject__retain                                      ; +0x3d, 0x10065874d\nmov     rsi, [rbx+2C8h]                                                ; +0x42, 0x100658752\nmov     rdi, rbx                                                       ; +0x49, 0x100658759\nmov     edx, r14d                                                      ; +0x4c, 0x10065875c\ncall    FriendsProfilePage__setupUsersBrowser                          ; +0x4f, 0x10065875f\nmov     rdi, [rbx+2B8h]                                                ; +0x54, 0x100658764\nmov     rax, [rdi]                                                     ; +0x5b, 0x10065876b\nxor     esi, esi                                                       ; +0x5e, 0x10065876e\ncall    qword ptr [rax+148h]                                           ; +0x60, 0x100658770\nmov     rdi, [rbx+2D0h]                                                ; +0x66, 0x100658776\nmov     rax, [rdi]                                                     ; +0x6d, 0x10065877d\nmov     esi, 1                                                         ; +0x70, 0x100658780\ncall    qword ptr [rax+148h]                                           ; +0x75, 0x100658785\nmov     rdi, [rbx+2A0h]                                                ; +0x7b, 0x10065878b\nmov     rax, [rdi]                                                     ; +0x82, 0x100658792\nxor     esi, esi                                                       ; +0x85, 0x100658795\ncall    qword ptr [rax+148h]                                           ; +0x87, 0x100658797\ncmp     dword ptr [rbx+298h], 0                                        ; +0x8d, 0x10065879d\njnz     short loc_100658818                                            ; +0x94, 0x1006587a4\nmov     rax, [rbx+2C8h]                                                ; +0x96, 0x1006587a6\ntest    rax, rax                                                       ; +0x9d, 0x1006587ad\njz      short loc_1006587E8                                            ; +0xa0, 0x1006587b0\nmov     rax, [rax+38h]                                                 ; +0xa2, 0x1006587b2\nmov     ecx, [rax]                                                     ; +0xa6, 0x1006587b6\ntest    rcx, rcx                                                       ; +0xa8, 0x1006587b8\njz      short loc_1006587E8                                            ; +0xab, 0x1006587bb\nmov     rax, [rax+10h]                                                 ; +0xad, 0x1006587bd\nlea     rcx, [rax+rcx*8]                                               ; +0xb1, 0x1006587c1\nadd     rcx, 0FFFFFFFFFFFFFFF8h                                        ; +0xb5, 0x1006587c5\nnop     dword ptr [rax+00000000h]                                      ; +0xb9, 0x1006587c9\nmov     rdx, [rax]                                                     ; +0xc0, 0x1006587d0\ntest    rdx, rdx                                                       ; +0xc3, 0x1006587d3\njz      short loc_1006587E8                                            ; +0xc6, 0x1006587d6\nmov     byte ptr [rdx+2B0h], 0                                         ; +0xc8, 0x1006587d8\nadd     rax, 8                                                         ; +0xcf, 0x1006587df\ncmp     rax, rcx                                                       ; +0xd3, 0x1006587e3\njbe     short loc_1006587D0                                            ; +0xd6, 0x1006587e6\ncall    GameLevelManager__sharedState                                  ; +0xd8, 0x1006587e8\nmov     rbx, rax                                                       ; +0xdd, 0x1006587ed\ncall    GJAccountManager__sharedState                                  ; +0xe0, 0x1006587f0\nmov     esi, [rax+160h]                                                ; +0xe5, 0x1006587f5\nsub     esi, [rax+164h]                                                ; +0xeb, 0x1006587fb\nmov     rdi, rbx                                                       ; +0xf1, 0x100658801\ncall    GameLevelManager__userInfoForAccountID                         ; +0xf4, 0x100658804\ntest    rax, rax                                                       ; +0xf9, 0x100658809\njz      short loc_100658818                                            ; +0xfc, 0x10065880c\nmov     dword ptr [rax+2ACh], 0                                        ; +0xfe, 0x10065880e\nadd     rsp, 8                                                         ; +0x108, 0x100658818\npop     rbx                                                            ; +0x10c, 0x10065881c\npop     r14                                                            ; +0x10d, 0x10065881d\npop     r15                                                            ; +0x10f, 0x10065881f\npop     rbp                                                            ; +0x111, 0x100658821\nretn                                                                   ; +0x112, 0x100658822", "xrefs": ["sub_100658830 @ 0x10065883c", "<???> @ 0x1009864c8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}