{"type": "func", "start": 5372083072, "end": 5372083230, "name": "MessagesProfilePage::untoggleAll", "pseudocode": "// \n// MessagesProfilePage::untoggleAll from 0x140337b80 to 0x140337c1e (158 bytes)\n// \n// 3 xrefs:\n// > MessagesProfilePage::onClose @ 0x140337b06\n// > MessagesProfilePage::loadPage @ 0x140337d39\n// > <???> @ 0x1406d52ac\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 MessagesProfilePage::untoggleAll(MessagesProfilePage *a1)\n{\n  std::string *p_m_messageKey; // rbx\n  GameLevelManager *v2; // rcx\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::ccArray *data; // rax\n  __int64 num; // rcx\n  cocos2d::CCObject **arr; // rax\n  cocos2d::CCObject **i; // rdx\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  p_m_messageKey = &a1->m_messageKey;\n  if ( a1->m_messageKey.m_data.m_capacity > 0xF )\n    p_m_messageKey = (std::string *)p_m_messageKey->m_data.m_bigStorage;\n  v2 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v8 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v2 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, p_m_messageKey->m_data.m_smallStorage._Elems);\n  if ( StoredOnlineLevels )\n  {\n    data = StoredOnlineLevels->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        if ( !*arr )\n          break;\n        BYTE2((*arr)[8].m_nTag) = 0;\n      }\n    }\n  }\n}", "assembly": "; \n; MessagesProfilePage::untoggleAll from 0x140337b80 to 0x140337c1e (158 bytes)\n; \n; 3 xrefs:\n; > MessagesProfilePage::onClose @ 0x140337b06\n; > MessagesProfilePage::loadPage @ 0x140337d39\n; > <???> @ 0x1406d52ac\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\npush    rbx                                                            ; +0x0, 0x140337b80\nsub     rsp, 20h                                                       ; +0x2, 0x140337b82\nlea     rbx, [rcx+2A0h]                                                ; +0x6, 0x140337b86\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xd, 0x140337b8d\njbe     short loc_140337B97                                            ; +0x12, 0x140337b92\nmov     rbx, [rbx]                                                     ; +0x14, 0x140337b94\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x17, 0x140337b97\ntest    rcx, rcx                                                       ; +0x1e, 0x140337b9e\njnz     short loc_140337BD3                                            ; +0x21, 0x140337ba1\nmov     ecx, 3D0h; Size                                                ; +0x23, 0x140337ba3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x140337ba8\nmov     [rsp+28h+arg_0], rax                                           ; +0x2d, 0x140337bad\nmov     rcx, rax                                                       ; +0x32, 0x140337bb2\ncall    sub_140141280                                                  ; +0x35, 0x140337bb5\nnop                                                                    ; +0x3a, 0x140337bba\nmov     cs:qword_1406C2EC0, rax                                        ; +0x3b, 0x140337bbb\nmov     r8, [rax]                                                      ; +0x42, 0x140337bc2\nmov     rcx, rax                                                       ; +0x45, 0x140337bc5\ncall    qword ptr [r8+48h]                                             ; +0x48, 0x140337bc8\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x4c, 0x140337bcc\nmov     rdx, rbx                                                       ; +0x53, 0x140337bd3\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x56, 0x140337bd6\ntest    rax, rax                                                       ; +0x5b, 0x140337bdb\njz      short loc_140337C18                                            ; +0x5e, 0x140337bde\nmov     rax, [rax+38h]                                                 ; +0x60, 0x140337be0\nmov     ecx, [rax]                                                     ; +0x64, 0x140337be4\ntest    ecx, ecx                                                       ; +0x66, 0x140337be6\njz      short loc_140337C18                                            ; +0x68, 0x140337be8\nmov     rax, [rax+10h]                                                 ; +0x6a, 0x140337bea\nlea     rdx, [rcx-1]                                                   ; +0x6e, 0x140337bee\nlea     rdx, [rax+rdx*8]                                               ; +0x72, 0x140337bf2\ncmp     rax, rdx                                                       ; +0x76, 0x140337bf6\nja      short loc_140337C18                                            ; +0x79, 0x140337bf9\nnop     dword ptr [rax+rax+00h]                                        ; +0x7b, 0x140337bfb\nmov     rcx, [rax]                                                     ; +0x80, 0x140337c00\ntest    rcx, rcx                                                       ; +0x83, 0x140337c03\njz      short loc_140337C18                                            ; +0x86, 0x140337c06\nmov     byte ptr [rcx+1D2h], 0                                         ; +0x88, 0x140337c08\nadd     rax, 8                                                         ; +0x8f, 0x140337c0f\ncmp     rax, rdx                                                       ; +0x93, 0x140337c13\njbe     short loc_140337C00                                            ; +0x96, 0x140337c16\nadd     rsp, 20h                                                       ; +0x98, 0x140337c18\npop     rbx                                                            ; +0x9c, 0x140337c1c\nretn                                                                   ; +0x9d, 0x140337c1d", "xrefs": ["MessagesProfilePage::onClose @ 0x140337b06", "MessagesProfilePage::loadPage @ 0x140337d39", "<???> @ 0x1406d52ac"], "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"}