{"type": "func", "start": 5370163760, "end": 5370164123, "name": "GameLevelManager::resetStoredUserList", "pseudocode": "// \n// GameLevelManager::resetStoredUserList from 0x140163230 to 0x14016339b (363 bytes)\n// \n// 8 xrefs:\n// > FriendsProfilePage::onUpdate @ 0x140140b65\n// > GameLevelManager::onAcceptFriendRequestCompleted @ 0x140161645\n// > GameLevelManager::onBlockUserCompleted @ 0x1401623b9\n// > ProfilePage::init @ 0x1403beab5\n// > ProfilePage::init @ 0x1403beaf9\n// > ProfilePage::onUpdate @ 0x1403bfc1b\n// > ProfilePage::onUpdate @ 0x1403bfc5f\n// > <???> @ 0x1406cac2c\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 GameLevelManager::resetStoredUserList(GameLevelManager *a1, UserListType a2)\n{\n  void *v2; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v4; // [rsp+30h] [rbp-28h]\n  unsigned __int64 v5; // [rsp+38h] [rbp-20h]\n\n  if ( !a2 )\n  {\n    HIWORD(Block[1]) = 0;\n    v4 = 11;\n    v5 = 15;\n    qmemcpy(Block, \"get_friend\", 10);\n    *(_DWORD *)((char *)&Block[1] + 2) = (unsigned __int8)aGetFriends[10];\n    cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, Block);\n    if ( v5 <= 0xF )\n      return;\n    v2 = Block[0];\n    if ( v5 + 1 >= 0x1000 )\n    {\n      v2 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v2 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    goto LABEL_11;\n  }\n  if ( a2 == Blocked )\n  {\n    HIWORD(Block[1]) = 0;\n    v4 = 11;\n    v5 = 15;\n    qmemcpy(Block, \"get_blocke\", 10);\n    *(_DWORD *)((char *)&Block[1] + 2) = (unsigned __int8)aGetBlocked[10];\n    cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, Block);\n    if ( v5 > 0xF )\n    {\n      v2 = Block[0];\n      if ( v5 + 1 >= 0x1000 )\n      {\n        v2 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v2 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\nLABEL_11:\n      j_j_free(v2);\n    }\n  }\n}", "assembly": "; \n; GameLevelManager::resetStoredUserList from 0x140163230 to 0x14016339b (363 bytes)\n; \n; 8 xrefs:\n; > FriendsProfilePage::onUpdate @ 0x140140b65\n; > GameLevelManager::onAcceptFriendRequestCompleted @ 0x140161645\n; > GameLevelManager::onBlockUserCompleted @ 0x1401623b9\n; > ProfilePage::init @ 0x1403beab5\n; > ProfilePage::init @ 0x1403beaf9\n; > ProfilePage::onUpdate @ 0x1403bfc1b\n; > ProfilePage::onUpdate @ 0x1403bfc5f\n; > <???> @ 0x1406cac2c\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\nsub     rsp, 58h                                                       ; +0x0, 0x140163230\nmov     rax, cs:__security_cookie                                      ; +0x4, 0x140163234\nxor     rax, rsp                                                       ; +0xb, 0x14016323b\nmov     [rsp+58h+var_18], rax                                          ; +0xe, 0x14016323e\ntest    edx, edx                                                       ; +0x13, 0x140163243\njz      loc_1401632F2                                                  ; +0x15, 0x140163245\ncmp     edx, 1                                                         ; +0x1b, 0x14016324b\njnz     loc_140163389                                                  ; +0x1e, 0x14016324e\nxorps   xmm0, xmm0                                                     ; +0x24, 0x140163254\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x27, 0x140163257\nmov     [rsp+58h+var_28], 0Bh                                          ; +0x2c, 0x14016325c\nmov     [rsp+58h+var_20], 0Fh                                          ; +0x35, 0x140163265\nmovsd   xmm0, qword ptr cs:aGetBlocked; \"get_blocked\"                  ; +0x3e, 0x14016326e\nmovsd   [rsp+58h+Block], xmm0                                          ; +0x46, 0x140163276\nmovzx   eax, word ptr cs:aGetBlocked+8; \"ked\"                          ; +0x4c, 0x14016327c\nmov     word ptr [rsp+58h+Block+8], ax                                 ; +0x53, 0x140163283\nmovzx   eax, byte ptr cs:aGetBlocked+0Ah; \"d\"                          ; +0x58, 0x140163288\nmov     byte ptr [rsp+58h+Block+0Ah], al                               ; +0x5f, 0x14016328f\nmov     byte ptr [rsp+58h+Block+0Bh], 0                                ; +0x63, 0x140163293\nlea     rdx, [rsp+58h+Block]                                           ; +0x68, 0x140163298\nmov     rcx, [rcx+220h]                                                ; +0x6d, 0x14016329d\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x74, 0x1401632a4\nnop                                                                    ; +0x7a, 0x1401632aa\nmov     rdx, [rsp+58h+var_20]                                          ; +0x7b, 0x1401632ab\ncmp     rdx, 0Fh                                                       ; +0x80, 0x1401632b0\njbe     loc_140163389                                                  ; +0x84, 0x1401632b4\ninc     rdx                                                            ; +0x8a, 0x1401632ba\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x8d, 0x1401632bd\nmov     rax, rcx                                                       ; +0x92, 0x1401632c2\ncmp     rdx, 1000h                                                     ; +0x95, 0x1401632c5\njb      loc_140163384                                                  ; +0x9c, 0x1401632cc\nadd     rdx, 27h ; '''                                                 ; +0xa2, 0x1401632d2\nmov     rcx, [rcx-8]                                                   ; +0xa6, 0x1401632d6\nsub     rax, rcx                                                       ; +0xaa, 0x1401632da\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xad, 0x1401632dd\ncmp     rax, 1Fh                                                       ; +0xb1, 0x1401632e1\njbe     loc_140163384                                                  ; +0xb5, 0x1401632e5\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xbb, 0x1401632eb\nalign 2                                                                ; +0xc1, 0x1401632f1\nxorps   xmm0, xmm0                                                     ; +0xc2, 0x1401632f2\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0xc5, 0x1401632f5\nmov     [rsp+58h+var_28], 0Bh                                          ; +0xca, 0x1401632fa\nmov     [rsp+58h+var_20], 0Fh                                          ; +0xd3, 0x140163303\nmovsd   xmm0, qword ptr cs:aGetFriends; \"get_friends\"                  ; +0xdc, 0x14016330c\nmovsd   [rsp+58h+Block], xmm0                                          ; +0xe4, 0x140163314\nmovzx   eax, word ptr cs:aGetFriends+8; \"nds\"                          ; +0xea, 0x14016331a\nmov     word ptr [rsp+58h+Block+8], ax                                 ; +0xf1, 0x140163321\nmovzx   eax, byte ptr cs:aGetFriends+0Ah; \"s\"                          ; +0xf6, 0x140163326\nmov     byte ptr [rsp+58h+Block+0Ah], al                               ; +0xfd, 0x14016332d\nmov     byte ptr [rsp+58h+Block+0Bh], 0                                ; +0x101, 0x140163331\nlea     rdx, [rsp+58h+Block]                                           ; +0x106, 0x140163336\nmov     rcx, [rcx+220h]                                                ; +0x10b, 0x14016333b\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x112, 0x140163342\nnop                                                                    ; +0x118, 0x140163348\nmov     rdx, [rsp+58h+var_20]                                          ; +0x119, 0x140163349\ncmp     rdx, 0Fh                                                       ; +0x11e, 0x14016334e\njbe     short loc_140163389                                            ; +0x122, 0x140163352\ninc     rdx                                                            ; +0x124, 0x140163354\nmov     rcx, [rsp+58h+Block]                                           ; +0x127, 0x140163357\nmov     rax, rcx                                                       ; +0x12c, 0x14016335c\ncmp     rdx, 1000h                                                     ; +0x12f, 0x14016335f\njb      short loc_140163384                                            ; +0x136, 0x140163366\nadd     rdx, 27h ; '''                                                 ; +0x138, 0x140163368\nmov     rcx, [rcx-8]                                                   ; +0x13c, 0x14016336c\nsub     rax, rcx                                                       ; +0x140, 0x140163370\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x143, 0x140163373\ncmp     rax, 1Fh                                                       ; +0x147, 0x140163377\njbe     short loc_140163384                                            ; +0x14b, 0x14016337b\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x14d, 0x14016337d\nalign 4                                                                ; +0x153, 0x140163383\ncall    j_j_free                                                       ; +0x154, 0x140163384\nmov     rcx, [rsp+58h+var_18]                                          ; +0x159, 0x140163389\nxor     rcx, rsp; StackCookie                                          ; +0x15e, 0x14016338e\ncall    __security_check_cookie                                        ; +0x161, 0x140163391\nadd     rsp, 58h                                                       ; +0x166, 0x140163396\nretn                                                                   ; +0x16a, 0x14016339a", "xrefs": ["FriendsProfilePage::onUpdate @ 0x140140b65", "GameLevelManager::onAcceptFriendRequestCompleted @ 0x140161645", "GameLevelManager::onBlockUserCompleted @ 0x1401623b9", "ProfilePage::init @ 0x1403beab5", "ProfilePage::init @ 0x1403beaf9", "ProfilePage::onUpdate @ 0x1403bfc1b", "ProfilePage::onUpdate @ 0x1403bfc5f", "<???> @ 0x1406cac2c"], "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"}