{"type": "func", "start": 5370058880, "end": 5370059106, "name": "GameLevelManager::getStoredOnlineLevels", "pseudocode": "// \n// GameLevelManager::getStoredOnlineLevels from 0x140149880 to 0x140149962 (226 bytes)\n// \n// 30 xrefs:\n// > FRequestProfilePage::onToggleAllObjects @ 0x14013e5dd\n// > FRequestProfilePage::onDeleteSelected @ 0x14013e7bc\n// > FRequestProfilePage::deleteSelected @ 0x14013eaa9\n// > FRequestProfilePage::untoggleAll @ 0x14013ee86\n// > FRequestProfilePage::loadPage @ 0x14013f45e\n// > FRequestProfilePage::loadPage @ 0x14013f4c8\n// > GameLevelManager::messageWasRemoved @ 0x14015bb57\n// > GameLevelManager::invalidateMessages @ 0x14015bd51\n// > GameLevelManager::friendRequestWasRemoved @ 0x140163407\n// > GameLevelManager::invalidateRequests @ 0x140163601\n// > GauntletLayer::init @ 0x1401f6827\n// > InfoLayer::loadPage @ 0x1402be600\n// > LeaderboardsLayer::selectLeaderboard @ 0x1402c3458\n// > LevelBrowserLayer::loadPage @ 0x1402caa36\n// > LevelBrowserLayer::loadPage @ 0x1402caaa2\n// > LevelLeaderboard::loadScores @ 0x140302465\n// > MessagesProfilePage::onToggleAllObjects @ 0x14033719d\n// > MessagesProfilePage::onDeleteSelected @ 0x14033740c\n// > MessagesProfilePage::deleteSelected @ 0x1403376f9\n// > MessagesProfilePage::untoggleAll @ 0x140337bd6\n// > MessagesProfilePage::loadPage @ 0x140337e0e\n// > MessagesProfilePage::loadPage @ 0x140337e86\n// > ProfilePage::onUpdate @ 0x1403bf9da\n// > ProfilePage::loadPage @ 0x1403c62e8\n// > ProfilePage::loadPage @ 0x1403c6352\n// > ProfilePage::commentDeleteFailed @ 0x1403c6bfc\n// > TopArtistsLayer::init @ 0x1404cb1e3\n// > TopArtistsLayer::loadPage @ 0x1404cb904\n// > TopArtistsLayer::loadPage @ 0x1404cb96c\n// > <???> @ 0x1406ca6b0\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\ncocos2d::CCArray *GameLevelManager::getStoredOnlineLevels(GameLevelManager *a1, const char *a2)\n{\n  size_t v4; // r8\n  cocos2d::CCArray *v5; // rbx\n  void *v6; // rcx\n  cocos2d::CCArray *result; // rax\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+30h] [rbp-28h]\n\n  if ( !GameLevelManager::isTimeValid(a1, a2, 3600.0) )\n    return nullptr;\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( a2[v4] );\n  sub_14003A930(Block, a2, v4);\n  v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_storedLevels, Block);\n  if ( *((_QWORD *)&v9 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v6);\n  }\n  result = nullptr;\n  if ( v5 )\n    return v5;\n  return result;\n}", "assembly": "; \n; GameLevelManager::getStoredOnlineLevels from 0x140149880 to 0x140149962 (226 bytes)\n; \n; 30 xrefs:\n; > FRequestProfilePage::onToggleAllObjects @ 0x14013e5dd\n; > FRequestProfilePage::onDeleteSelected @ 0x14013e7bc\n; > FRequestProfilePage::deleteSelected @ 0x14013eaa9\n; > FRequestProfilePage::untoggleAll @ 0x14013ee86\n; > FRequestProfilePage::loadPage @ 0x14013f45e\n; > FRequestProfilePage::loadPage @ 0x14013f4c8\n; > GameLevelManager::messageWasRemoved @ 0x14015bb57\n; > GameLevelManager::invalidateMessages @ 0x14015bd51\n; > GameLevelManager::friendRequestWasRemoved @ 0x140163407\n; > GameLevelManager::invalidateRequests @ 0x140163601\n; > GauntletLayer::init @ 0x1401f6827\n; > InfoLayer::loadPage @ 0x1402be600\n; > LeaderboardsLayer::selectLeaderboard @ 0x1402c3458\n; > LevelBrowserLayer::loadPage @ 0x1402caa36\n; > LevelBrowserLayer::loadPage @ 0x1402caaa2\n; > LevelLeaderboard::loadScores @ 0x140302465\n; > MessagesProfilePage::onToggleAllObjects @ 0x14033719d\n; > MessagesProfilePage::onDeleteSelected @ 0x14033740c\n; > MessagesProfilePage::deleteSelected @ 0x1403376f9\n; > MessagesProfilePage::untoggleAll @ 0x140337bd6\n; > MessagesProfilePage::loadPage @ 0x140337e0e\n; > MessagesProfilePage::loadPage @ 0x140337e86\n; > ProfilePage::onUpdate @ 0x1403bf9da\n; > ProfilePage::loadPage @ 0x1403c62e8\n; > ProfilePage::loadPage @ 0x1403c6352\n; > ProfilePage::commentDeleteFailed @ 0x1403c6bfc\n; > TopArtistsLayer::init @ 0x1404cb1e3\n; > TopArtistsLayer::loadPage @ 0x1404cb904\n; > TopArtistsLayer::loadPage @ 0x1404cb96c\n; > <???> @ 0x1406ca6b0\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_10], rbx                                              ; +0x0, 0x140149880\npush    rdi                                                            ; +0x5, 0x140149885\nsub     rsp, 50h                                                       ; +0x6, 0x140149886\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14014988a\nxor     rax, rsp                                                       ; +0x11, 0x140149891\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x140149894\nmov     rbx, rdx                                                       ; +0x19, 0x140149899\nmov     rdi, rcx                                                       ; +0x1c, 0x14014989c\nmovss   xmm2, cs:dword_1406235AC                                       ; +0x1f, 0x14014989f\ncall    GameLevelManager__isTimeValid                                  ; +0x27, 0x1401498a7\ntest    al, al                                                         ; +0x2c, 0x1401498ac\njz      loc_140149948                                                  ; +0x2e, 0x1401498ae\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1401498b4\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x37, 0x1401498b7\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x1401498bc\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x3f, 0x1401498bf\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x45, 0x1401498c5\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1401498cc\ninc     r8                                                             ; +0x50, 0x1401498d0\ncmp     byte ptr [rbx+r8], 0                                           ; +0x53, 0x1401498d3\njnz     short loc_1401498D0                                            ; +0x58, 0x1401498d8\nmov     rdx, rbx                                                       ; +0x5a, 0x1401498da\nlea     rcx, [rsp+58h+Block]                                           ; +0x5d, 0x1401498dd\ncall    sub_14003A930                                                  ; +0x62, 0x1401498e2\nnop                                                                    ; +0x67, 0x1401498e7\nlea     rdx, [rsp+58h+Block]                                           ; +0x68, 0x1401498e8\nmov     rcx, [rdi+220h]                                                ; +0x6d, 0x1401498ed\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x74, 0x1401498f4\nmov     rbx, rax                                                       ; +0x7a, 0x1401498fa\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x7d, 0x1401498fd\ncmp     rdx, 0Fh                                                       ; +0x82, 0x140149902\njbe     short loc_14014993D                                            ; +0x86, 0x140149906\ninc     rdx                                                            ; +0x88, 0x140149908\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x8b, 0x14014990b\nmov     rax, rcx                                                       ; +0x90, 0x140149910\ncmp     rdx, 1000h                                                     ; +0x93, 0x140149913\njb      short loc_140149938                                            ; +0x9a, 0x14014991a\nadd     rdx, 27h ; '''                                                 ; +0x9c, 0x14014991c\nmov     rcx, [rcx-8]                                                   ; +0xa0, 0x140149920\nsub     rax, rcx                                                       ; +0xa4, 0x140149924\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xa7, 0x140149927\ncmp     rax, 1Fh                                                       ; +0xab, 0x14014992b\njbe     short loc_140149938                                            ; +0xaf, 0x14014992f\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb1, 0x140149931\nalign 8                                                                ; +0xb7, 0x140149937\ncall    j_j_free                                                       ; +0xb8, 0x140149938\nxor     eax, eax                                                       ; +0xbd, 0x14014993d\ntest    rbx, rbx                                                       ; +0xbf, 0x14014993f\ncmovnz  rax, rbx                                                       ; +0xc2, 0x140149942\njmp     short loc_14014994A                                            ; +0xc6, 0x140149946\nxor     eax, eax                                                       ; +0xc8, 0x140149948\nmov     rcx, [rsp+58h+var_18]                                          ; +0xca, 0x14014994a\nxor     rcx, rsp; StackCookie                                          ; +0xcf, 0x14014994f\ncall    __security_check_cookie                                        ; +0xd2, 0x140149952\nmov     rbx, [rsp+58h+arg_10]                                          ; +0xd7, 0x140149957\nadd     rsp, 50h                                                       ; +0xdc, 0x14014995c\npop     rdi                                                            ; +0xe0, 0x140149960\nretn                                                                   ; +0xe1, 0x140149961", "xrefs": ["FRequestProfilePage::onToggleAllObjects @ 0x14013e5dd", "FRequestProfilePage::onDeleteSelected @ 0x14013e7bc", "FRequestProfilePage::deleteSelected @ 0x14013eaa9", "FRequestProfilePage::untoggleAll @ 0x14013ee86", "FRequestProfilePage::loadPage @ 0x14013f45e", "FRequestProfilePage::loadPage @ 0x14013f4c8", "GameLevelManager::messageWasRemoved @ 0x14015bb57", "GameLevelManager::invalidateMessages @ 0x14015bd51", "GameLevelManager::friendRequestWasRemoved @ 0x140163407", "GameLevelManager::invalidateRequests @ 0x140163601", "GauntletLayer::init @ 0x1401f6827", "InfoLayer::loadPage @ 0x1402be600", "LeaderboardsLayer::selectLeaderboard @ 0x1402c3458", "LevelBrowserLayer::loadPage @ 0x1402caa36", "LevelBrowserLayer::loadPage @ 0x1402caaa2", "LevelLeaderboard::loadScores @ 0x140302465", "MessagesProfilePage::onToggleAllObjects @ 0x14033719d", "MessagesProfilePage::onDeleteSelected @ 0x14033740c", "MessagesProfilePage::deleteSelected @ 0x1403376f9", "MessagesProfilePage::untoggleAll @ 0x140337bd6", "MessagesProfilePage::loadPage @ 0x140337e0e", "MessagesProfilePage::loadPage @ 0x140337e86", "ProfilePage::onUpdate @ 0x1403bf9da", "ProfilePage::loadPage @ 0x1403c62e8", "ProfilePage::loadPage @ 0x1403c6352", "ProfilePage::commentDeleteFailed @ 0x1403c6bfc", "TopArtistsLayer::init @ 0x1404cb1e3", "TopArtistsLayer::loadPage @ 0x1404cb904", "TopArtistsLayer::loadPage @ 0x1404cb96c", "<???> @ 0x1406ca6b0"], "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"}