{"type": "func", "start": 5370013040, "end": 5370013262, "name": "FRequestProfilePage::onToggleAllObjects", "pseudocode": "// \n// FRequestProfilePage::onToggleAllObjects from 0x14013e570 to 0x14013e64e (222 bytes)\n// \n// 2 xrefs:\n// > FRequestProfilePage::init @ 0x14013e0d8\n// > <???> @ 0x1406ca1b8\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 FRequestProfilePage::onToggleAllObjects(FRequestProfilePage *a1, cocos2d::CCObject *a2)\n{\n  std::string *p_m_key; // rdi\n  GameLevelManager *v4; // rcx\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::CCArray *v6; // rdi\n  cocos2d::ccArray *data; // rax\n  __int64 num; // rcx\n  cocos2d::CCObject **arr; // rax\n  unsigned __int64 i; // r8\n  void *v11; // [rsp+30h] [rbp+8h]\n\n  a1->m_toggledAll = !a1->m_toggledAll;\n  p_m_key = &a1->m_key;\n  if ( a1->m_key.m_data.m_capacity > 0xF )\n    p_m_key = (std::string *)p_m_key->m_data.m_bigStorage;\n  v4 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v11 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280(v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v4, p_m_key->m_data.m_smallStorage._Elems);\n  v6 = StoredOnlineLevels;\n  if ( StoredOnlineLevels && cocos2d::CCArray::count(StoredOnlineLevels) )\n  {\n    data = v6->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      for ( i = (unsigned __int64)&arr[num - 1]; (unsigned __int64)arr <= i; ++arr )\n      {\n        if ( !*arr )\n          break;\n        BYTE1((*arr)[13].m_uIndexInArray) = a1->m_toggledAll;\n      }\n    }\n    CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list);\n  }\n}", "assembly": "; \n; FRequestProfilePage::onToggleAllObjects from 0x14013e570 to 0x14013e64e (222 bytes)\n; \n; 2 xrefs:\n; > FRequestProfilePage::init @ 0x14013e0d8\n; > <???> @ 0x1406ca1b8\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, 0x14013e570\npush    rdi                                                            ; +0x5, 0x14013e575\nsub     rsp, 20h                                                       ; +0x6, 0x14013e576\nmov     rbx, rcx                                                       ; +0xa, 0x14013e57a\ncmp     byte ptr [rcx+318h], 0                                         ; +0xd, 0x14013e57d\nsetz    al                                                             ; +0x14, 0x14013e584\nmov     [rcx+318h], al                                                 ; +0x17, 0x14013e587\nlea     rdi, [rcx+2A0h]                                                ; +0x1d, 0x14013e58d\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x24, 0x14013e594\njbe     short loc_14013E59E                                            ; +0x29, 0x14013e599\nmov     rdi, [rdi]                                                     ; +0x2b, 0x14013e59b\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x2e, 0x14013e59e\ntest    rcx, rcx                                                       ; +0x35, 0x14013e5a5\njnz     short loc_14013E5DA                                            ; +0x38, 0x14013e5a8\nmov     ecx, 3D0h; Size                                                ; +0x3a, 0x14013e5aa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3f, 0x14013e5af\nmov     [rsp+28h+arg_0], rax                                           ; +0x44, 0x14013e5b4\nmov     rcx, rax                                                       ; +0x49, 0x14013e5b9\ncall    sub_140141280                                                  ; +0x4c, 0x14013e5bc\nnop                                                                    ; +0x51, 0x14013e5c1\nmov     cs:qword_1406C2EC0, rax                                        ; +0x52, 0x14013e5c2\nmov     r8, [rax]                                                      ; +0x59, 0x14013e5c9\nmov     rcx, rax                                                       ; +0x5c, 0x14013e5cc\ncall    qword ptr [r8+48h]                                             ; +0x5f, 0x14013e5cf\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x63, 0x14013e5d3\nmov     rdx, rdi                                                       ; +0x6a, 0x14013e5da\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x6d, 0x14013e5dd\nmov     rdi, rax                                                       ; +0x72, 0x14013e5e2\ntest    rax, rax                                                       ; +0x75, 0x14013e5e5\njz      short loc_14013E643                                            ; +0x78, 0x14013e5e8\nmov     rcx, rax                                                       ; +0x7a, 0x14013e5ea\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7d, 0x14013e5ed\ntest    eax, eax                                                       ; +0x83, 0x14013e5f3\njz      short loc_14013E643                                            ; +0x85, 0x14013e5f5\nmov     rax, [rdi+38h]                                                 ; +0x87, 0x14013e5f7\nmov     ecx, [rax]                                                     ; +0x8b, 0x14013e5fb\ntest    ecx, ecx                                                       ; +0x8d, 0x14013e5fd\njz      short loc_14013E630                                            ; +0x8f, 0x14013e5ff\nmov     rax, [rax+10h]                                                 ; +0x91, 0x14013e601\nlea     r8, [rcx-1]                                                    ; +0x95, 0x14013e605\nlea     r8, [rax+r8*8]                                                 ; +0x99, 0x14013e609\ncmp     rax, r8                                                        ; +0x9d, 0x14013e60d\nja      short loc_14013E630                                            ; +0xa0, 0x14013e610\nmov     rdx, [rax]                                                     ; +0xa2, 0x14013e612\ntest    rdx, rdx                                                       ; +0xa5, 0x14013e615\njz      short loc_14013E630                                            ; +0xa8, 0x14013e618\nmovzx   ecx, byte ptr [rbx+318h]                                       ; +0xaa, 0x14013e61a\nmov     [rdx+2F9h], cl                                                 ; +0xb1, 0x14013e621\nadd     rax, 8                                                         ; +0xb7, 0x14013e627\ncmp     rax, r8                                                        ; +0xbb, 0x14013e62b\njbe     short loc_14013E612                                            ; +0xbe, 0x14013e62e\nmov     rcx, [rbx+2D0h]                                                ; +0xc0, 0x14013e630\nmov     rcx, [rcx+220h]                                                ; +0xc7, 0x14013e637\ncall    CustomListView__reloadAll                                      ; +0xce, 0x14013e63e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd3, 0x14013e643\nadd     rsp, 20h                                                       ; +0xd8, 0x14013e648\npop     rdi                                                            ; +0xdc, 0x14013e64c\nretn                                                                   ; +0xdd, 0x14013e64d", "xrefs": ["FRequestProfilePage::init @ 0x14013e0d8", "<???> @ 0x1406ca1b8"], "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"}