{"type": "func", "start": 5370021904, "end": 5370022227, "name": "FriendsProfilePage::getUserListFinished", "pseudocode": "// \n// FriendsProfilePage::getUserListFinished from 0x140140810 to 0x140140953 (323 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140558790\n// > <???> @ 0x1406ca2b4\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\n// Hidden C++ exception states: #wind=1\nvoid FriendsProfilePage::getUserListFinished(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3)\n{\n  cocos2d::CCObject *v6; // rcx\n  __int64 v7; // rdx\n  __int64 v8; // rax\n  unsigned int *v9; // rax\n  __int64 v10; // rcx\n  unsigned __int64 v11; // rax\n  unsigned __int64 i; // rdx\n  GJAccountManager *v13; // rax\n  int v14; // ebx\n  __int64 v15; // rcx\n  struct cocos2d::CCObject *v16; // rax\n  void *v17; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_uID == a3 )\n  {\n    v6 = *(cocos2d::CCObject **)&a1->m_fRotationX;\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    *(_QWORD *)&a1->m_fRotationX = a2;\n    cocos2d::CCObject::retain(a2);\n    FriendsProfilePage::setupUsersBrowser(\n      (FriendsProfilePage *)((char *)a1 - 656),\n      *(cocos2d::CCArray **)&a1->m_fRotationX,\n      a3);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_unknown2 + 320LL))(*(_QWORD *)&a1->m_unknown2, 0);\n    LOBYTE(v7) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fScaleX + 320LL))(*(_QWORD *)&a1->m_fScaleX, v7);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_nTag + 320LL))(*(_QWORD *)&a1->m_nTag, 0);\n    if ( !a1->m_uID )\n    {\n      v8 = *(_QWORD *)&a1->m_fRotationX;\n      if ( v8 )\n      {\n        v9 = *(unsigned int **)(v8 + 56);\n        v10 = *v9;\n        if ( (_DWORD)v10 )\n        {\n          v11 = *((_QWORD *)v9 + 2);\n          for ( i = v11 + 8 * (v10 - 1); v11 <= i; v11 += 8LL )\n          {\n            if ( !*(_QWORD *)v11 )\n              break;\n            *(_BYTE *)(*(_QWORD *)v11 + 760LL) = 0;\n          }\n        }\n      }\n      v13 = GJAccountManager::sharedState();\n      v14 = v13->m_accountID - v13->m_unkInt1;\n      v15 = qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v17 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280(v17);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v15 = qword_1406C2EC0;\n      }\n      v16 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v15 + 600), v14);\n      if ( v16 )\n        v16[13].m_eObjType = 0;\n    }\n  }\n}", "assembly": "; \n; FriendsProfilePage::getUserListFinished from 0x140140810 to 0x140140953 (323 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140558790\n; > <???> @ 0x1406ca2b4\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140140810\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140140815\npush    rdi                                                            ; +0xa, 0x14014081a\nsub     rsp, 20h                                                       ; +0xb, 0x14014081b\nmov     edi, r8d                                                       ; +0xf, 0x14014081f\nmov     rsi, rdx                                                       ; +0x12, 0x140140822\nmov     rbx, rcx                                                       ; +0x15, 0x140140825\ncmp     [rcx+8], r8d                                                   ; +0x18, 0x140140828\njnz     loc_140140943                                                  ; +0x1c, 0x14014082c\nmov     rcx, [rcx+38h]                                                 ; +0x22, 0x140140832\ntest    rcx, rcx                                                       ; +0x26, 0x140140836\njz      short loc_140140841                                            ; +0x29, 0x140140839\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2b, 0x14014083b\nmov     [rbx+38h], rsi                                                 ; +0x31, 0x140140841\nmov     rcx, rsi                                                       ; +0x35, 0x140140845\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x140140848\nlea     rcx, [rbx-290h]                                                ; +0x3e, 0x14014084e\nmov     r8d, edi                                                       ; +0x45, 0x140140855\nmov     rdx, [rbx+38h]                                                 ; +0x48, 0x140140858\ncall    FriendsProfilePage__setupUsersBrowser                          ; +0x4c, 0x14014085c\nmov     rcx, [rbx+28h]                                                 ; +0x51, 0x140140861\nmov     rax, [rcx]                                                     ; +0x55, 0x140140865\nxor     edx, edx                                                       ; +0x58, 0x140140868\ncall    qword ptr [rax+140h]                                           ; +0x5a, 0x14014086a\nmov     rcx, [rbx+40h]                                                 ; +0x60, 0x140140870\nmov     rax, [rcx]                                                     ; +0x64, 0x140140874\nmov     dl, 1                                                          ; +0x67, 0x140140877\ncall    qword ptr [rax+140h]                                           ; +0x69, 0x140140879\nmov     rcx, [rbx+10h]                                                 ; +0x6f, 0x14014087f\nmov     rax, [rcx]                                                     ; +0x73, 0x140140883\nxor     edx, edx                                                       ; +0x76, 0x140140886\ncall    qword ptr [rax+140h]                                           ; +0x78, 0x140140888\ncmp     dword ptr [rbx+8], 0                                           ; +0x7e, 0x14014088e\njnz     loc_140140943                                                  ; +0x82, 0x140140892\nmov     rax, [rbx+38h]                                                 ; +0x88, 0x140140898\ntest    rax, rax                                                       ; +0x8c, 0x14014089c\njz      short loc_1401408D8                                            ; +0x8f, 0x14014089f\nmov     rax, [rax+38h]                                                 ; +0x91, 0x1401408a1\nmov     ecx, [rax]                                                     ; +0x95, 0x1401408a5\ntest    ecx, ecx                                                       ; +0x97, 0x1401408a7\njz      short loc_1401408D8                                            ; +0x99, 0x1401408a9\nmov     rax, [rax+10h]                                                 ; +0x9b, 0x1401408ab\nlea     rdx, [rcx-1]                                                   ; +0x9f, 0x1401408af\nlea     rdx, [rax+rdx*8]                                               ; +0xa3, 0x1401408b3\ncmp     rax, rdx                                                       ; +0xa7, 0x1401408b7\nja      short loc_1401408D8                                            ; +0xaa, 0x1401408ba\nnop     dword ptr [rax+00h]                                            ; +0xac, 0x1401408bc\nmov     rcx, [rax]                                                     ; +0xb0, 0x1401408c0\ntest    rcx, rcx                                                       ; +0xb3, 0x1401408c3\njz      short loc_1401408D8                                            ; +0xb6, 0x1401408c6\nmov     byte ptr [rcx+2F8h], 0                                         ; +0xb8, 0x1401408c8\nadd     rax, 8                                                         ; +0xbf, 0x1401408cf\ncmp     rax, rdx                                                       ; +0xc3, 0x1401408d3\njbe     short loc_1401408C0                                            ; +0xc6, 0x1401408d6\ncall    GJAccountManager__sharedState                                  ; +0xc8, 0x1401408d8\nmov     ebx, [rax+168h]                                                ; +0xcd, 0x1401408dd\nsub     ebx, [rax+16Ch]                                                ; +0xd3, 0x1401408e3\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xd9, 0x1401408e9\ntest    rcx, rcx                                                       ; +0xe0, 0x1401408f0\njnz     short loc_140140924                                            ; +0xe3, 0x1401408f3\nmov     ecx, 3D0h; Size                                                ; +0xe5, 0x1401408f5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xea, 0x1401408fa\nmov     [rsp+28h+arg_0], rax                                           ; +0xef, 0x1401408ff\nmov     rcx, rax                                                       ; +0xf4, 0x140140904\ncall    sub_140141280                                                  ; +0xf7, 0x140140907\nnop                                                                    ; +0xfc, 0x14014090c\nmov     cs:qword_1406C2EC0, rax                                        ; +0xfd, 0x14014090d\nmov     rdx, [rax]                                                     ; +0x104, 0x140140914\nmov     rcx, rax                                                       ; +0x107, 0x140140917\ncall    qword ptr [rdx+48h]                                            ; +0x10a, 0x14014091a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x10d, 0x14014091d\nmovsxd  rdx, ebx                                                       ; +0x114, 0x140140924\nmov     rcx, [rcx+258h]                                                ; +0x117, 0x140140927\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x11e, 0x14014092e\ntest    rax, rax                                                       ; +0x124, 0x140140934\njz      short loc_140140943                                            ; +0x127, 0x140140937\nmov     dword ptr [rax+2F4h], 0                                        ; +0x129, 0x140140939\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x133, 0x140140943\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x138, 0x140140948\nadd     rsp, 20h                                                       ; +0x13d, 0x14014094d\npop     rdi                                                            ; +0x141, 0x140140951\nretn                                                                   ; +0x142, 0x140140952", "xrefs": ["<???> @ 0x140558790", "<???> @ 0x1406ca2b4"], "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"}