{"type": "func", "start": 5373392800, "end": 5373393145, "name": "MessagesProfilePage::loadMessagesFinished", "pseudocode": "// \n// MessagesProfilePage::loadMessagesFinished from 0x1404777a0 to 0x1404778f9 (345 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407b4f08\n// > <???> @ 0x140928490\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:41 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall MessagesProfilePage::loadMessagesFinished(__int64 a1, cocos2d::CCObject *a2, _BYTE *a3)\n{\n  _QWORD *v5; // rsi\n  __int64 result; // rax\n  __int64 v7; // rdx\n  int v8; // ebx\n  unsigned int *v9; // rcx\n  __int64 v10; // rax\n  unsigned __int64 v11; // rcx\n  unsigned __int64 i; // r8\n  int v13; // edx\n  __int64 v14; // rax\n  int v15; // edi\n  __int64 v16; // rcx\n  struct cocos2d::CCObject *v17; // rax\n  void *v18; // [rsp+30h] [rbp+8h]\n\n  v5 = (_QWORD *)(a1 - 688);\n  result = MessagesProfilePage::isCorrect((_QWORD *)(a1 - 688), a3);\n  if ( (_BYTE)result )\n  {\n    MessagesProfilePage::setupCommentsBrowser(v5, a2);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 72) + 336LL))(*(_QWORD *)(a1 + 72), 0);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 56) + 336LL))(*(_QWORD *)(a1 + 56), 0);\n    LOBYTE(v7) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 112) + 336LL))(*(_QWORD *)(a1 + 112), v7);\n    if ( !*(_BYTE *)(a1 + 8) && a2 && cocos2d::CCArray::count(a2) )\n    {\n      v8 = 0;\n      v9 = *((unsigned int **)a2 + 7);\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          v13 = v8;\n          if ( !*(_QWORD *)v11 )\n            break;\n          ++v8;\n          if ( *(_BYTE *)(*(_QWORD *)v11 + 464LL) )\n            v8 = v13;\n        }\n      }\n      v14 = GJAccountManager::sharedState();\n      v15 = *(_DWORD *)(v14 + 360) - *(_DWORD *)(v14 + 364);\n      v16 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v18 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v18);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v16 = *(_QWORD *)&qword_14090BFB0;\n      }\n      v17 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v16 + 1232), v15);\n      if ( v17 )\n      {\n        if ( *((_DWORD *)v17 + 191) < v8 )\n          *((_DWORD *)v17 + 191) = v8;\n      }\n    }\n    return MessagesProfilePage::updateSelectUI((__int64)v5);\n  }\n  return result;\n}", "assembly": "; \n; MessagesProfilePage::loadMessagesFinished from 0x1404777a0 to 0x1404778f9 (345 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407b4f08\n; > <???> @ 0x140928490\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:41 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404777a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1404777a5\npush    rdi                                                            ; +0xa, 0x1404777aa\nsub     rsp, 20h                                                       ; +0xb, 0x1404777ab\nmov     rdi, rdx                                                       ; +0xf, 0x1404777af\nmov     rbx, rcx                                                       ; +0x12, 0x1404777b2\nlea     rsi, [rcx-2B0h]                                                ; +0x15, 0x1404777b5\nmov     rdx, r8                                                        ; +0x1c, 0x1404777bc\nmov     rcx, rsi                                                       ; +0x1f, 0x1404777bf\ncall    MessagesProfilePage__isCorrect                                 ; +0x22, 0x1404777c2\ntest    al, al                                                         ; +0x27, 0x1404777c7\njz      loc_1404778E9                                                  ; +0x29, 0x1404777c9\nmov     rdx, rdi                                                       ; +0x2f, 0x1404777cf\nmov     rcx, rsi                                                       ; +0x32, 0x1404777d2\ncall    MessagesProfilePage__setupCommentsBrowser                      ; +0x35, 0x1404777d5\nmov     rcx, [rbx+48h]                                                 ; +0x3a, 0x1404777da\nmov     rax, [rcx]                                                     ; +0x3e, 0x1404777de\nxor     edx, edx                                                       ; +0x41, 0x1404777e1\ncall    qword ptr [rax+150h]                                           ; +0x43, 0x1404777e3\nmov     rcx, [rbx+38h]                                                 ; +0x49, 0x1404777e9\nmov     rax, [rcx]                                                     ; +0x4d, 0x1404777ed\nxor     edx, edx                                                       ; +0x50, 0x1404777f0\ncall    qword ptr [rax+150h]                                           ; +0x52, 0x1404777f2\nmov     rcx, [rbx+70h]                                                 ; +0x58, 0x1404777f8\nmov     rax, [rcx]                                                     ; +0x5c, 0x1404777fc\nmov     dl, 1                                                          ; +0x5f, 0x1404777ff\ncall    qword ptr [rax+150h]                                           ; +0x61, 0x140477801\ncmp     byte ptr [rbx+8], 0                                            ; +0x67, 0x140477807\njnz     loc_1404778E1                                                  ; +0x6b, 0x14047780b\ntest    rdi, rdi                                                       ; +0x71, 0x140477811\njz      loc_1404778E1                                                  ; +0x74, 0x140477814\nmov     rcx, rdi                                                       ; +0x7a, 0x14047781a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7d, 0x14047781d\ntest    eax, eax                                                       ; +0x83, 0x140477823\njz      loc_1404778E1                                                  ; +0x85, 0x140477825\nxor     ebx, ebx                                                       ; +0x8b, 0x14047782b\nmov     rcx, [rdi+38h]                                                 ; +0x8d, 0x14047782d\nmov     eax, [rcx]                                                     ; +0x91, 0x140477831\ntest    eax, eax                                                       ; +0x93, 0x140477833\njz      short loc_14047786F                                            ; +0x95, 0x140477835\nmov     rcx, [rcx+10h]                                                 ; +0x97, 0x140477837\nlea     r8, [rax-1]                                                    ; +0x9b, 0x14047783b\nlea     r8, [rcx+r8*8]                                                 ; +0x9f, 0x14047783f\ncmp     rcx, r8                                                        ; +0xa3, 0x140477843\nja      short loc_14047786F                                            ; +0xa6, 0x140477846\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xa8, 0x140477848\nmov     edx, ebx                                                       ; +0xb0, 0x140477850\nmov     rax, [rcx]                                                     ; +0xb2, 0x140477852\ntest    rax, rax                                                       ; +0xb5, 0x140477855\njz      short loc_14047786F                                            ; +0xb8, 0x140477858\ninc     ebx                                                            ; +0xba, 0x14047785a\ncmp     byte ptr [rax+1D0h], 0                                         ; +0xbc, 0x14047785c\ncmovnz  ebx, edx                                                       ; +0xc3, 0x140477863\nadd     rcx, 8                                                         ; +0xc6, 0x140477866\ncmp     rcx, r8                                                        ; +0xca, 0x14047786a\njbe     short loc_140477850                                            ; +0xcd, 0x14047786d\ncall    GJAccountManager__sharedState                                  ; +0xcf, 0x14047786f\nmov     edi, [rax+168h]                                                ; +0xd4, 0x140477874\nsub     edi, [rax+16Ch]                                                ; +0xda, 0x14047787a\nmov     rcx, cs:qword_14090BFB0                                        ; +0xe0, 0x140477880\ntest    rcx, rcx                                                       ; +0xe7, 0x140477887\njnz     short loc_1404778BE                                            ; +0xea, 0x14047788a\nmov     ecx, 690h; Size                                                ; +0xec, 0x14047788c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf1, 0x140477891\nmov     [rsp+28h+arg_0], rax                                           ; +0xf6, 0x140477896\nmov     rcx, rax                                                       ; +0xfb, 0x14047789b\ncall    GameLevelManager__GameLevelManager                             ; +0xfe, 0x14047789e\nnop                                                                    ; +0x103, 0x1404778a3\nmov     cs:qword_14090BFB0, rax                                        ; +0x104, 0x1404778a4\nmov     rcx, [rax]                                                     ; +0x10b, 0x1404778ab\nmov     rdx, [rcx+48h]                                                 ; +0x10e, 0x1404778ae\nmov     rcx, rax                                                       ; +0x112, 0x1404778b2\ncall    rdx                                                            ; +0x115, 0x1404778b5\nmov     rcx, cs:qword_14090BFB0                                        ; +0x117, 0x1404778b7\nmovsxd  rdx, edi                                                       ; +0x11e, 0x1404778be\nmov     rcx, [rcx+4D0h]                                                ; +0x121, 0x1404778c1\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x128, 0x1404778c8\ntest    rax, rax                                                       ; +0x12e, 0x1404778ce\njz      short loc_1404778E1                                            ; +0x131, 0x1404778d1\ncmp     [rax+2FCh], ebx                                                ; +0x133, 0x1404778d3\njge     short loc_1404778E1                                            ; +0x139, 0x1404778d9\nmov     [rax+2FCh], ebx                                                ; +0x13b, 0x1404778db\nmov     rcx, rsi                                                       ; +0x141, 0x1404778e1\ncall    MessagesProfilePage__updateSelectUI                            ; +0x144, 0x1404778e4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x149, 0x1404778e9\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x14e, 0x1404778ee\nadd     rsp, 20h                                                       ; +0x153, 0x1404778f3\npop     rdi                                                            ; +0x157, 0x1404778f7\nretn                                                                   ; +0x158, 0x1404778f8", "xrefs": ["<???> @ 0x1407b4f08", "<???> @ 0x140928490"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}