{"type": "func", "start": 5373391168, "end": 5373391326, "name": "MessagesProfilePage::untoggleAll", "pseudocode": "// \n// MessagesProfilePage::untoggleAll from 0x140477140 to 0x1404771de (158 bytes)\n// \n// 4 xrefs:\n// > MessagesProfilePage::onClose @ 0x140476f97\n// > MessagesProfilePage::loadPage @ 0x1404772f9\n// > <???> @ 0x140928460\n// > <???> @ 0x14092846c\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_QWORD *__fastcall MessagesProfilePage::untoggleAll(__int64 a1)\n{\n  _BYTE *v1; // rbx\n  __int64 v2; // rcx\n  _QWORD *result; // rax\n  __int64 v4; // rcx\n  _QWORD *i; // rdx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v1 = (_BYTE *)(a1 + 704);\n  if ( *(_QWORD *)(a1 + 728) > 0xFu )\n    v1 = *(_BYTE **)v1;\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v6 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  result = (_QWORD *)GameLevelManager::getStoredOnlineLevels(v2, v1);\n  if ( result )\n  {\n    result = (_QWORD *)result[7];\n    v4 = *(unsigned int *)result;\n    if ( (_DWORD)v4 )\n    {\n      result = (_QWORD *)result[2];\n      for ( i = &result[v4 - 1]; result <= i; ++result )\n      {\n        if ( !*result )\n          break;\n        *(_BYTE *)(*result + 466LL) = 0;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; MessagesProfilePage::untoggleAll from 0x140477140 to 0x1404771de (158 bytes)\n; \n; 4 xrefs:\n; > MessagesProfilePage::onClose @ 0x140476f97\n; > MessagesProfilePage::loadPage @ 0x1404772f9\n; > <???> @ 0x140928460\n; > <???> @ 0x14092846c\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; \npush    rbx                                                            ; +0x0, 0x140477140\nsub     rsp, 20h                                                       ; +0x2, 0x140477142\nlea     rbx, [rcx+2C0h]                                                ; +0x6, 0x140477146\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xd, 0x14047714d\njbe     short loc_140477157                                            ; +0x12, 0x140477152\nmov     rbx, [rbx]                                                     ; +0x14, 0x140477154\nmov     rcx, cs:qword_14090BFB0                                        ; +0x17, 0x140477157\ntest    rcx, rcx                                                       ; +0x1e, 0x14047715e\njnz     short loc_140477196                                            ; +0x21, 0x140477161\nmov     ecx, 690h; Size                                                ; +0x23, 0x140477163\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x140477168\nmov     [rsp+28h+arg_0], rax                                           ; +0x2d, 0x14047716d\nmov     rcx, rax                                                       ; +0x32, 0x140477172\ncall    GameLevelManager__GameLevelManager                             ; +0x35, 0x140477175\nnop                                                                    ; +0x3a, 0x14047717a\nmov     cs:qword_14090BFB0, rax                                        ; +0x3b, 0x14047717b\nmov     rcx, [rax]                                                     ; +0x42, 0x140477182\nmov     r8, [rcx+48h]                                                  ; +0x45, 0x140477185\nmov     rcx, rax                                                       ; +0x49, 0x140477189\ncall    r8                                                             ; +0x4c, 0x14047718c\nmov     rcx, cs:qword_14090BFB0                                        ; +0x4f, 0x14047718f\nmov     rdx, rbx                                                       ; +0x56, 0x140477196\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x59, 0x140477199\ntest    rax, rax                                                       ; +0x5e, 0x14047719e\njz      short loc_1404771D8                                            ; +0x61, 0x1404771a1\nmov     rax, [rax+38h]                                                 ; +0x63, 0x1404771a3\nmov     ecx, [rax]                                                     ; +0x67, 0x1404771a7\ntest    ecx, ecx                                                       ; +0x69, 0x1404771a9\njz      short loc_1404771D8                                            ; +0x6b, 0x1404771ab\nmov     rax, [rax+10h]                                                 ; +0x6d, 0x1404771ad\nlea     rdx, [rcx-1]                                                   ; +0x71, 0x1404771b1\nlea     rdx, [rax+rdx*8]                                               ; +0x75, 0x1404771b5\ncmp     rax, rdx                                                       ; +0x79, 0x1404771b9\nja      short loc_1404771D8                                            ; +0x7c, 0x1404771bc\nxchg    ax, ax                                                         ; +0x7e, 0x1404771be\nmov     rcx, [rax]                                                     ; +0x80, 0x1404771c0\ntest    rcx, rcx                                                       ; +0x83, 0x1404771c3\njz      short loc_1404771D8                                            ; +0x86, 0x1404771c6\nmov     byte ptr [rcx+1D2h], 0                                         ; +0x88, 0x1404771c8\nadd     rax, 8                                                         ; +0x8f, 0x1404771cf\ncmp     rax, rdx                                                       ; +0x93, 0x1404771d3\njbe     short loc_1404771C0                                            ; +0x96, 0x1404771d6\nadd     rsp, 20h                                                       ; +0x98, 0x1404771d8\npop     rbx                                                            ; +0x9c, 0x1404771dc\nretn                                                                   ; +0x9d, 0x1404771dd", "xrefs": ["MessagesProfilePage::onClose @ 0x140476f97", "MessagesProfilePage::loadPage @ 0x1404772f9", "<???> @ 0x140928460", "<???> @ 0x14092846c"], "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"}