{"type": "func", "start": 5372084672, "end": 5372085006, "name": "MessagesProfilePage::loadMessagesFinished", "pseudocode": "// \n// MessagesProfilePage::loadMessagesFinished from 0x1403381c0 to 0x14033830e (334 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405ab8c0\n// > <???> @ 0x1406d52d0\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 MessagesProfilePage::loadMessagesFinished(MessagesProfilePage *a1, cocos2d::CCArray *a2, const char *a3)\n{\n  __int64 v5; // rdx\n  signed int v6; // ebx\n  cocos2d::ccArray *data; // rcx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rcx\n  cocos2d::CCObject **i; // r8\n  signed int v11; // edx\n  GJAccountManager *v12; // rax\n  int v13; // edi\n  __int64 v14; // rcx\n  struct cocos2d::CCObject *v15; // rax\n  void *v16; // [rsp+30h] [rbp+8h]\n\n  if ( FRequestProfilePage::isCorrect(&a1[-1].m_sTransform.d, a3) )\n  {\n    MessagesProfilePage::setupCommentsBrowser((MessagesProfilePage *)((char *)a1 - 656), a2);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fVertexZ + 320LL))(*(_QWORD *)&a1->m_fVertexZ, 0);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fRotationX + 320LL))(*(_QWORD *)&a1->m_fRotationX, 0);\n    LOBYTE(v5) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_obContentSize.height + 320LL))(\n      *(_QWORD *)&a1->m_obContentSize.height,\n      v5);\n    if ( !LOBYTE(a1->m_uID) && a2 && cocos2d::CCArray::count(a2) )\n    {\n      v6 = 0;\n      data = a2->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          v11 = v6;\n          if ( !*arr )\n            break;\n          ++v6;\n          if ( LOBYTE((*arr)[8].m_nTag) )\n            v6 = v11;\n        }\n      }\n      v12 = GJAccountManager::sharedState();\n      v13 = v12->m_accountID - v12->m_unkInt1;\n      v14 = qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v16 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v16);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v14 = qword_1406C2EC0;\n      }\n      v15 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v14 + 600), v13);\n      if ( v15 )\n      {\n        if ( (signed int)v15[13].m_uReference < v6 )\n          v15[13].m_uReference = v6;\n      }\n    }\n  }\n}", "assembly": "; \n; MessagesProfilePage::loadMessagesFinished from 0x1403381c0 to 0x14033830e (334 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405ab8c0\n; > <???> @ 0x1406d52d0\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, 0x1403381c0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1403381c5\npush    rdi                                                            ; +0xa, 0x1403381ca\nsub     rsp, 20h                                                       ; +0xb, 0x1403381cb\nmov     rdi, rdx                                                       ; +0xf, 0x1403381cf\nmov     rbx, rcx                                                       ; +0x12, 0x1403381d2\nmov     rdx, r8                                                        ; +0x15, 0x1403381d5\nadd     rcx, 0FFFFFFFFFFFFFD70h                                        ; +0x18, 0x1403381d8\ncall    FRequestProfilePage__isCorrect; Merged with: FRequestProfilePage::isCorrect, MessagesProfilePage::isCorrect ; +0x1f, 0x1403381df\ntest    al, al                                                         ; +0x24, 0x1403381e4\njz      loc_1403382FE                                                  ; +0x26, 0x1403381e6\nmov     rdx, rdi                                                       ; +0x2c, 0x1403381ec\nlea     rcx, [rbx-290h]                                                ; +0x2f, 0x1403381ef\ncall    MessagesProfilePage__setupCommentsBrowser                      ; +0x36, 0x1403381f6\nmov     rcx, [rbx+48h]                                                 ; +0x3b, 0x1403381fb\nmov     rax, [rcx]                                                     ; +0x3f, 0x1403381ff\nxor     edx, edx                                                       ; +0x42, 0x140338202\ncall    qword ptr [rax+140h]                                           ; +0x44, 0x140338204\nmov     rcx, [rbx+38h]                                                 ; +0x4a, 0x14033820a\nmov     rax, [rcx]                                                     ; +0x4e, 0x14033820e\nxor     edx, edx                                                       ; +0x51, 0x140338211\ncall    qword ptr [rax+140h]                                           ; +0x53, 0x140338213\nmov     rcx, [rbx+70h]                                                 ; +0x59, 0x140338219\nmov     rax, [rcx]                                                     ; +0x5d, 0x14033821d\nmov     dl, 1                                                          ; +0x60, 0x140338220\ncall    qword ptr [rax+140h]                                           ; +0x62, 0x140338222\ncmp     byte ptr [rbx+8], 0                                            ; +0x68, 0x140338228\njnz     loc_1403382FE                                                  ; +0x6c, 0x14033822c\ntest    rdi, rdi                                                       ; +0x72, 0x140338232\njz      loc_1403382FE                                                  ; +0x75, 0x140338235\nmov     rcx, rdi                                                       ; +0x7b, 0x14033823b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7e, 0x14033823e\ntest    eax, eax                                                       ; +0x84, 0x140338244\njz      loc_1403382FE                                                  ; +0x86, 0x140338246\nxor     ebx, ebx                                                       ; +0x8c, 0x14033824c\nmov     rcx, [rdi+38h]                                                 ; +0x8e, 0x14033824e\nmov     eax, [rcx]                                                     ; +0x92, 0x140338252\ntest    eax, eax                                                       ; +0x94, 0x140338254\njz      short loc_14033828F                                            ; +0x96, 0x140338256\nmov     rcx, [rcx+10h]                                                 ; +0x98, 0x140338258\nlea     r8, [rax-1]                                                    ; +0x9c, 0x14033825c\nlea     r8, [rcx+r8*8]                                                 ; +0xa0, 0x140338260\ncmp     rcx, r8                                                        ; +0xa4, 0x140338264\nja      short loc_14033828F                                            ; +0xa7, 0x140338267\nnop     dword ptr [rax+00000000h]                                      ; +0xa9, 0x140338269\nmov     edx, ebx                                                       ; +0xb0, 0x140338270\nmov     rax, [rcx]                                                     ; +0xb2, 0x140338272\ntest    rax, rax                                                       ; +0xb5, 0x140338275\njz      short loc_14033828F                                            ; +0xb8, 0x140338278\ninc     ebx                                                            ; +0xba, 0x14033827a\ncmp     byte ptr [rax+1D0h], 0                                         ; +0xbc, 0x14033827c\ncmovnz  ebx, edx                                                       ; +0xc3, 0x140338283\nadd     rcx, 8                                                         ; +0xc6, 0x140338286\ncmp     rcx, r8                                                        ; +0xca, 0x14033828a\njbe     short loc_140338270                                            ; +0xcd, 0x14033828d\ncall    GJAccountManager__sharedState                                  ; +0xcf, 0x14033828f\nmov     edi, [rax+168h]                                                ; +0xd4, 0x140338294\nsub     edi, [rax+16Ch]                                                ; +0xda, 0x14033829a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xe0, 0x1403382a0\ntest    rcx, rcx                                                       ; +0xe7, 0x1403382a7\njnz     short loc_1403382DB                                            ; +0xea, 0x1403382aa\nmov     ecx, 3D0h; Size                                                ; +0xec, 0x1403382ac\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf1, 0x1403382b1\nmov     [rsp+28h+arg_0], rax                                           ; +0xf6, 0x1403382b6\nmov     rcx, rax                                                       ; +0xfb, 0x1403382bb\ncall    sub_140141280                                                  ; +0xfe, 0x1403382be\nnop                                                                    ; +0x103, 0x1403382c3\nmov     cs:qword_1406C2EC0, rax                                        ; +0x104, 0x1403382c4\nmov     rdx, [rax]                                                     ; +0x10b, 0x1403382cb\nmov     rcx, rax                                                       ; +0x10e, 0x1403382ce\ncall    qword ptr [rdx+48h]                                            ; +0x111, 0x1403382d1\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x114, 0x1403382d4\nmovsxd  rdx, edi                                                       ; +0x11b, 0x1403382db\nmov     rcx, [rcx+258h]                                                ; +0x11e, 0x1403382de\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x125, 0x1403382e5\ntest    rax, rax                                                       ; +0x12b, 0x1403382eb\njz      short loc_1403382FE                                            ; +0x12e, 0x1403382ee\ncmp     [rax+2ECh], ebx                                                ; +0x130, 0x1403382f0\njge     short loc_1403382FE                                            ; +0x136, 0x1403382f6\nmov     [rax+2ECh], ebx                                                ; +0x138, 0x1403382f8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x13e, 0x1403382fe\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x143, 0x140338303\nadd     rsp, 20h                                                       ; +0x148, 0x140338308\npop     rdi                                                            ; +0x14c, 0x14033830c\nretn                                                                   ; +0x14d, 0x14033830d", "xrefs": ["<???> @ 0x1405ab8c0", "<???> @ 0x1406d52d0"], "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"}