{"type": "func", "start": 5373387520, "end": 5373387768, "name": "MessagesProfilePage::onToggleAllObjects", "pseudocode": "// \n// MessagesProfilePage::onToggleAllObjects from 0x140476300 to 0x1404763f8 (248 bytes)\n// \n// 2 xrefs:\n// > MessagesProfilePage::init @ 0x140475dee\n// > <???> @ 0x140928370\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:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MessagesProfilePage::onToggleAllObjects(__int64 a1)\n{\n  _BYTE *v2; // rbx\n  __int64 v3; // rcx\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::CCArray *v5; // rbx\n  int v6; // esi\n  unsigned int v7; // r9d\n  unsigned int *v8; // rdx\n  __int64 v9; // rax\n  unsigned __int64 v10; // rdx\n  unsigned __int64 i; // r8\n  void *v12; // [rsp+30h] [rbp+8h]\n\n  v2 = (_BYTE *)(a1 + 704);\n  if ( *(_QWORD *)(a1 + 728) > 0xFu )\n    v2 = *(_BYTE **)v2;\n  v3 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v12 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v12);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v3 = *(_QWORD *)&qword_14090BFB0;\n  }\n  StoredOnlineLevels = (cocos2d::CCArray *)GameLevelManager::getStoredOnlineLevels(v3, v2);\n  v5 = StoredOnlineLevels;\n  if ( StoredOnlineLevels && cocos2d::CCArray::count(StoredOnlineLevels) )\n  {\n    v6 = MessagesProfilePage::selectedCount(a1);\n    v7 = cocos2d::CCArray::count(v5);\n    v8 = *((unsigned int **)v5 + 7);\n    v9 = *v8;\n    if ( (_DWORD)v9 )\n    {\n      v10 = *((_QWORD *)v8 + 2);\n      for ( i = v10 + 8 * (v9 - 1); v10 <= i; v10 += 8LL )\n      {\n        if ( !*(_QWORD *)v10 )\n          break;\n        *(_BYTE *)(*(_QWORD *)v10 + 466LL) = v6 != v7;\n      }\n    }\n    MessagesProfilePage::updateSelectUI(a1);\n    CustomListView::reloadAll(*(_QWORD *)(*(_QWORD *)(a1 + 752) + 544LL));\n  }\n}", "assembly": "; \n; MessagesProfilePage::onToggleAllObjects from 0x140476300 to 0x1404763f8 (248 bytes)\n; \n; 2 xrefs:\n; > MessagesProfilePage::init @ 0x140475dee\n; > <???> @ 0x140928370\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:40 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140476300\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140476305\npush    rdi                                                            ; +0xa, 0x14047630a\nsub     rsp, 20h                                                       ; +0xb, 0x14047630b\nmov     rdi, rcx                                                       ; +0xf, 0x14047630f\nlea     rbx, [rcx+2C0h]                                                ; +0x12, 0x140476312\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x19, 0x140476319\njbe     short loc_140476323                                            ; +0x1e, 0x14047631e\nmov     rbx, [rbx]                                                     ; +0x20, 0x140476320\nmov     rcx, cs:qword_14090BFB0                                        ; +0x23, 0x140476323\ntest    rcx, rcx                                                       ; +0x2a, 0x14047632a\njnz     short loc_140476362                                            ; +0x2d, 0x14047632d\nmov     ecx, 690h; Size                                                ; +0x2f, 0x14047632f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x34, 0x140476334\nmov     [rsp+28h+arg_0], rax                                           ; +0x39, 0x140476339\nmov     rcx, rax                                                       ; +0x3e, 0x14047633e\ncall    GameLevelManager__GameLevelManager                             ; +0x41, 0x140476341\nnop                                                                    ; +0x46, 0x140476346\nmov     cs:qword_14090BFB0, rax                                        ; +0x47, 0x140476347\nmov     rcx, [rax]                                                     ; +0x4e, 0x14047634e\nmov     r8, [rcx+48h]                                                  ; +0x51, 0x140476351\nmov     rcx, rax                                                       ; +0x55, 0x140476355\ncall    r8                                                             ; +0x58, 0x140476358\nmov     rcx, cs:qword_14090BFB0                                        ; +0x5b, 0x14047635b\nmov     rdx, rbx                                                       ; +0x62, 0x140476362\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x65, 0x140476365\nmov     rbx, rax                                                       ; +0x6a, 0x14047636a\ntest    rax, rax                                                       ; +0x6d, 0x14047636d\njz      short loc_1404763E8                                            ; +0x70, 0x140476370\nmov     rcx, rax                                                       ; +0x72, 0x140476372\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x140476375\ntest    eax, eax                                                       ; +0x7b, 0x14047637b\njz      short loc_1404763E8                                            ; +0x7d, 0x14047637d\nmov     rcx, rdi                                                       ; +0x7f, 0x14047637f\ncall    MessagesProfilePage__selectedCount                             ; +0x82, 0x140476382\nmov     esi, eax                                                       ; +0x87, 0x140476387\nmov     rcx, rbx                                                       ; +0x89, 0x140476389\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8c, 0x14047638c\nmov     r9d, eax                                                       ; +0x92, 0x140476392\nmov     rdx, [rbx+38h]                                                 ; +0x95, 0x140476395\nmov     eax, [rdx]                                                     ; +0x99, 0x140476399\ntest    eax, eax                                                       ; +0x9b, 0x14047639b\njz      short loc_1404763CD                                            ; +0x9d, 0x14047639d\nmov     rdx, [rdx+10h]                                                 ; +0x9f, 0x14047639f\nlea     r8, [rax-1]                                                    ; +0xa3, 0x1404763a3\nlea     r8, [rdx+r8*8]                                                 ; +0xa7, 0x1404763a7\ncmp     rdx, r8                                                        ; +0xab, 0x1404763ab\nja      short loc_1404763CD                                            ; +0xae, 0x1404763ae\nmov     rcx, [rdx]                                                     ; +0xb0, 0x1404763b0\ntest    rcx, rcx                                                       ; +0xb3, 0x1404763b3\njz      short loc_1404763CD                                            ; +0xb6, 0x1404763b6\ncmp     esi, r9d                                                       ; +0xb8, 0x1404763b8\nsetnz   al                                                             ; +0xbb, 0x1404763bb\nmov     [rcx+1D2h], al                                                 ; +0xbe, 0x1404763be\nadd     rdx, 8                                                         ; +0xc4, 0x1404763c4\ncmp     rdx, r8                                                        ; +0xc8, 0x1404763c8\njbe     short loc_1404763B0                                            ; +0xcb, 0x1404763cb\nmov     rcx, rdi                                                       ; +0xcd, 0x1404763cd\ncall    MessagesProfilePage__updateSelectUI                            ; +0xd0, 0x1404763d0\nmov     rcx, [rdi+2F0h]                                                ; +0xd5, 0x1404763d5\nmov     rcx, [rcx+220h]                                                ; +0xdc, 0x1404763dc\ncall    CustomListView__reloadAll                                      ; +0xe3, 0x1404763e3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xe8, 0x1404763e8\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xed, 0x1404763ed\nadd     rsp, 20h                                                       ; +0xf2, 0x1404763f2\npop     rdi                                                            ; +0xf6, 0x1404763f6\nretn                                                                   ; +0xf7, 0x1404763f7", "xrefs": ["MessagesProfilePage::init @ 0x140475dee", "<???> @ 0x140928370"], "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"}