{"type": "func", "start": 5370943440, "end": 5370943689, "name": "GameLevelManager::getStoredOnlineLevels", "pseudocode": "// \n// GameLevelManager::getStoredOnlineLevels from 0x1402217d0 to 0x1402218c9 (249 bytes)\n// \n// 35 xrefs:\n// > LevelPickerPopup::doPageRequest @ 0x1400ea18e\n// > FRequestProfilePage::onToggleAllObjects @ 0x140210252\n// > FRequestProfilePage::selectedCount @ 0x14021034a\n// > FRequestProfilePage::onDeleteSelected @ 0x140211049\n// > FRequestProfilePage::deleteSelected @ 0x14021146c\n// > FRequestProfilePage::onMarkRead @ 0x14021174b\n// > FRequestProfilePage::untoggleAll @ 0x140211ec9\n// > FRequestProfilePage::loadPage @ 0x140212539\n// > FRequestProfilePage::loadPage @ 0x1402125a6\n// > GameLevelManager::messageWasRemoved @ 0x14023c037\n// > GameLevelManager::invalidateMessages @ 0x14023c22f\n// > GameLevelManager::friendRequestWasRemoved @ 0x140258225\n// > GameLevelManager::purgeFriendRequestSearchCache @ 0x14025856b\n// > GameLevelManager::invalidateRequests @ 0x1402587d2\n// > GauntletLayer::init @ 0x1402fb58b\n// > InfoLayer::loadPage @ 0x1403d1825\n// > LeaderboardsLayer::selectLeaderboard @ 0x1403dc63d\n// > LevelBrowserLayer::loadPage @ 0x1403e4587\n// > LevelBrowserLayer::loadPage @ 0x1403e45f6\n// > LevelLeaderboard::loadScores @ 0x140429e5f\n// > MessagesProfilePage::onToggleAllObjects @ 0x140476365\n// > MessagesProfilePage::selectedCount @ 0x14047645a\n// > MessagesProfilePage::onDeleteSelected @ 0x14047678f\n// > MessagesProfilePage::deleteSelected @ 0x140476a7c\n// > MessagesProfilePage::untoggleAll @ 0x140477199\n// > MessagesProfilePage::loadPage @ 0x1404773d1\n// > MessagesProfilePage::loadPage @ 0x14047744c\n// > ProfilePage::onUpdate @ 0x140551e4d\n// > ProfilePage::loadPage @ 0x14055a05e\n// > ProfilePage::loadPage @ 0x14055a0cb\n// > ProfilePage::commentDeleteFailed @ 0x14055aa00\n// > TopArtistsLayer::init @ 0x14066e5bb\n// > TopArtistsLayer::loadPage @ 0x14066ed27\n// > TopArtistsLayer::loadPage @ 0x14066ed92\n// > <???> @ 0x14091bbc0\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:28:24 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GameLevelManager::getStoredOnlineLevels(__int64 a1, _BYTE *a2)\n{\n  size_t v4; // r8\n  __int64 v5; // rbx\n  void *v6; // r8\n  __int64 result; // rax\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+40h] [rbp-28h]\n\n  if ( !(unsigned __int8)GameLevelManager::isTimeValid() )\n    return 0;\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( a2[v4] );\n  sub_14003D230(Block, a2, v4);\n  v5 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1152), 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        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n  result = 0;\n  if ( v5 )\n    return v5;\n  return result;\n}", "assembly": "; \n; GameLevelManager::getStoredOnlineLevels from 0x1402217d0 to 0x1402218c9 (249 bytes)\n; \n; 35 xrefs:\n; > LevelPickerPopup::doPageRequest @ 0x1400ea18e\n; > FRequestProfilePage::onToggleAllObjects @ 0x140210252\n; > FRequestProfilePage::selectedCount @ 0x14021034a\n; > FRequestProfilePage::onDeleteSelected @ 0x140211049\n; > FRequestProfilePage::deleteSelected @ 0x14021146c\n; > FRequestProfilePage::onMarkRead @ 0x14021174b\n; > FRequestProfilePage::untoggleAll @ 0x140211ec9\n; > FRequestProfilePage::loadPage @ 0x140212539\n; > FRequestProfilePage::loadPage @ 0x1402125a6\n; > GameLevelManager::messageWasRemoved @ 0x14023c037\n; > GameLevelManager::invalidateMessages @ 0x14023c22f\n; > GameLevelManager::friendRequestWasRemoved @ 0x140258225\n; > GameLevelManager::purgeFriendRequestSearchCache @ 0x14025856b\n; > GameLevelManager::invalidateRequests @ 0x1402587d2\n; > GauntletLayer::init @ 0x1402fb58b\n; > InfoLayer::loadPage @ 0x1403d1825\n; > LeaderboardsLayer::selectLeaderboard @ 0x1403dc63d\n; > LevelBrowserLayer::loadPage @ 0x1403e4587\n; > LevelBrowserLayer::loadPage @ 0x1403e45f6\n; > LevelLeaderboard::loadScores @ 0x140429e5f\n; > MessagesProfilePage::onToggleAllObjects @ 0x140476365\n; > MessagesProfilePage::selectedCount @ 0x14047645a\n; > MessagesProfilePage::onDeleteSelected @ 0x14047678f\n; > MessagesProfilePage::deleteSelected @ 0x140476a7c\n; > MessagesProfilePage::untoggleAll @ 0x140477199\n; > MessagesProfilePage::loadPage @ 0x1404773d1\n; > MessagesProfilePage::loadPage @ 0x14047744c\n; > ProfilePage::onUpdate @ 0x140551e4d\n; > ProfilePage::loadPage @ 0x14055a05e\n; > ProfilePage::loadPage @ 0x14055a0cb\n; > ProfilePage::commentDeleteFailed @ 0x14055aa00\n; > TopArtistsLayer::init @ 0x14066e5bb\n; > TopArtistsLayer::loadPage @ 0x14066ed27\n; > TopArtistsLayer::loadPage @ 0x14066ed92\n; > <???> @ 0x14091bbc0\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:28:24 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402217d0\npush    rdi                                                            ; +0x5, 0x1402217d5\nsub     rsp, 60h                                                       ; +0x6, 0x1402217d6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402217da\nxor     rax, rsp                                                       ; +0x11, 0x1402217e1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1402217e4\nmov     rbx, rdx                                                       ; +0x19, 0x1402217e9\nmov     rdi, rcx                                                       ; +0x1c, 0x1402217ec\nmovss   xmm2, cs:dword_140835B44                                       ; +0x1f, 0x1402217ef\ncall    GameLevelManager__isTimeValid                                  ; +0x27, 0x1402217f7\ntest    al, al                                                         ; +0x2c, 0x1402217fc\njz      loc_1402218AC                                                  ; +0x2e, 0x1402217fe\nxorps   xmm0, xmm0                                                     ; +0x34, 0x140221804\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x37, 0x140221807\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x14022180c\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x3f, 0x14022180f\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x45, 0x140221815\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x14022181c\ninc     r8                                                             ; +0x50, 0x140221820\ncmp     byte ptr [rbx+r8], 0                                           ; +0x53, 0x140221823\njnz     short loc_140221820                                            ; +0x58, 0x140221828\nmov     rdx, rbx                                                       ; +0x5a, 0x14022182a\nlea     rcx, [rsp+68h+Block]                                           ; +0x5d, 0x14022182d\ncall    sub_14003D230                                                  ; +0x62, 0x140221832\nnop                                                                    ; +0x67, 0x140221837\nlea     rdx, [rsp+68h+Block]                                           ; +0x68, 0x140221838\nmov     rcx, [rdi+480h]                                                ; +0x6d, 0x14022183d\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, 0x140221844\nmov     rbx, rax                                                       ; +0x7a, 0x14022184a\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x7d, 0x14022184d\ncmp     rdx, 0Fh                                                       ; +0x82, 0x140221852\njbe     short loc_1402218A1                                            ; +0x86, 0x140221856\ninc     rdx                                                            ; +0x88, 0x140221858\nmov     r8, [rsp+68h+Block]                                            ; +0x8b, 0x14022185b\nmov     rcx, r8                                                        ; +0x90, 0x140221860\ncmp     rdx, 1000h                                                     ; +0x93, 0x140221863\njb      short loc_140221899                                            ; +0x9a, 0x14022186a\nadd     rdx, 27h ; '''                                                 ; +0x9c, 0x14022186c\nmov     r8, [r8-8]                                                     ; +0xa0, 0x140221870\nsub     rcx, r8                                                        ; +0xa4, 0x140221874\nsub     rcx, 8                                                         ; +0xa7, 0x140221877\ncmp     rcx, 1Fh                                                       ; +0xab, 0x14022187b\njbe     short loc_140221899                                            ; +0xaf, 0x14022187f\nxor     eax, eax                                                       ; +0xb1, 0x140221881\nmov     [rsp+68h+Reserved], rax; Reserved                              ; +0xb3, 0x140221883\nxor     r9d, r9d; LineNo                                               ; +0xb8, 0x140221888\nxor     r8d, r8d; FileName                                             ; +0xbb, 0x14022188b\nxor     edx, edx; FunctionName                                         ; +0xbe, 0x14022188e\nxor     ecx, ecx; Expression                                           ; +0xc0, 0x140221890\ncall    cs:_invoke_watson                                              ; +0xc2, 0x140221892\ndb 0CCh                                                                ; +0xc8, 0x140221898\nmov     rcx, r8; Block                                                 ; +0xc9, 0x140221899\ncall    j_j_free                                                       ; +0xcc, 0x14022189c\nxor     eax, eax                                                       ; +0xd1, 0x1402218a1\ntest    rbx, rbx                                                       ; +0xd3, 0x1402218a3\ncmovnz  rax, rbx                                                       ; +0xd6, 0x1402218a6\njmp     short loc_1402218AE                                            ; +0xda, 0x1402218aa\nxor     eax, eax                                                       ; +0xdc, 0x1402218ac\nmov     rcx, [rsp+68h+var_18]                                          ; +0xde, 0x1402218ae\nxor     rcx, rsp; StackCookie                                          ; +0xe3, 0x1402218b3\ncall    __security_check_cookie                                        ; +0xe6, 0x1402218b6\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xeb, 0x1402218bb\nadd     rsp, 60h                                                       ; +0xf3, 0x1402218c3\npop     rdi                                                            ; +0xf7, 0x1402218c7\nretn                                                                   ; +0xf8, 0x1402218c8", "xrefs": ["LevelPickerPopup::doPageRequest @ 0x1400ea18e", "FRequestProfilePage::onToggleAllObjects @ 0x140210252", "FRequestProfilePage::selectedCount @ 0x14021034a", "FRequestProfilePage::onDeleteSelected @ 0x140211049", "FRequestProfilePage::deleteSelected @ 0x14021146c", "FRequestProfilePage::onMarkRead @ 0x14021174b", "FRequestProfilePage::untoggleAll @ 0x140211ec9", "FRequestProfilePage::loadPage @ 0x140212539", "FRequestProfilePage::loadPage @ 0x1402125a6", "GameLevelManager::messageWasRemoved @ 0x14023c037", "GameLevelManager::invalidateMessages @ 0x14023c22f", "GameLevelManager::friendRequestWasRemoved @ 0x140258225", "GameLevelManager::purgeFriendRequestSearchCache @ 0x14025856b", "GameLevelManager::invalidateRequests @ 0x1402587d2", "GauntletLayer::init @ 0x1402fb58b", "InfoLayer::loadPage @ 0x1403d1825", "LeaderboardsLayer::selectLeaderboard @ 0x1403dc63d", "LevelBrowserLayer::loadPage @ 0x1403e4587", "LevelBrowserLayer::loadPage @ 0x1403e45f6", "LevelLeaderboard::loadScores @ 0x140429e5f", "MessagesProfilePage::onToggleAllObjects @ 0x140476365", "MessagesProfilePage::selectedCount @ 0x14047645a", "MessagesProfilePage::onDeleteSelected @ 0x14047678f", "MessagesProfilePage::deleteSelected @ 0x140476a7c", "MessagesProfilePage::untoggleAll @ 0x140477199", "MessagesProfilePage::loadPage @ 0x1404773d1", "MessagesProfilePage::loadPage @ 0x14047744c", "ProfilePage::onUpdate @ 0x140551e4d", "ProfilePage::loadPage @ 0x14055a05e", "ProfilePage::loadPage @ 0x14055a0cb", "ProfilePage::commentDeleteFailed @ 0x14055aa00", "TopArtistsLayer::init @ 0x14066e5bb", "TopArtistsLayer::loadPage @ 0x14066ed27", "TopArtistsLayer::loadPage @ 0x14066ed92", "<???> @ 0x14091bbc0"], "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"}