{"type": "func", "start": 5370939360, "end": 5370939583, "name": "GameLevelManager::getSavedDailyLevel", "pseudocode": "// \n// GameLevelManager::getSavedDailyLevel from 0x1402207e0 to 0x1402208bf (223 bytes)\n// \n// 16 xrefs:\n// > CreatorLayer::sceneWillResume @ 0x1401398c0\n// > LevelCell::loadCustomLevelCell @ 0x140149461\n// > LevelCell::loadCustomLevelCell @ 0x1401496b6\n// > DailyLevelPage::init @ 0x140170661\n// > DailyLevelPage::createNodeIfLoaded @ 0x14017116d\n// > EditLevelLayer::onDeathTracker @ 0x140179d63\n// > GameLevelManager::saveFetchedLevels @ 0x14021e47a\n// > GameLevelManager::saveLevel @ 0x140220a03\n// > GameLevelManager::gotoLevelPage @ 0x14022145b\n// > GameLevelManager::replayPlatformerSaveJournal @ 0x140223a3e\n// > GameLevelManager::processOnDownloadLevelCompleted @ 0x14023335a\n// > GameStatsManager::getTotalCollectedCurrency @ 0x1402e7a56\n// > GauntletLayer::unlockActiveItem @ 0x1402fd1ba\n// > InfoLayer::onLevelInfo @ 0x1403d0dbe\n// > LevelInfoLayer::onDeathTracker @ 0x14041ee30\n// > <???> @ 0x14091bb84\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__int64 __fastcall GameLevelManager::getSavedDailyLevel(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  const char *CString; // rax\n  size_t v4; // r8\n  __int64 v5; // rbx\n  void *v6; // r8\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+40h] [rbp-28h]\n\n  v2 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);\n  CString = cocos2d::CCString::getCString(v2);\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_14003D230(Block, CString, v4);\n  v5 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 944), 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  return v5;\n}", "assembly": "; \n; GameLevelManager::getSavedDailyLevel from 0x1402207e0 to 0x1402208bf (223 bytes)\n; \n; 16 xrefs:\n; > CreatorLayer::sceneWillResume @ 0x1401398c0\n; > LevelCell::loadCustomLevelCell @ 0x140149461\n; > LevelCell::loadCustomLevelCell @ 0x1401496b6\n; > DailyLevelPage::init @ 0x140170661\n; > DailyLevelPage::createNodeIfLoaded @ 0x14017116d\n; > EditLevelLayer::onDeathTracker @ 0x140179d63\n; > GameLevelManager::saveFetchedLevels @ 0x14021e47a\n; > GameLevelManager::saveLevel @ 0x140220a03\n; > GameLevelManager::gotoLevelPage @ 0x14022145b\n; > GameLevelManager::replayPlatformerSaveJournal @ 0x140223a3e\n; > GameLevelManager::processOnDownloadLevelCompleted @ 0x14023335a\n; > GameStatsManager::getTotalCollectedCurrency @ 0x1402e7a56\n; > GauntletLayer::unlockActiveItem @ 0x1402fd1ba\n; > InfoLayer::onLevelInfo @ 0x1403d0dbe\n; > LevelInfoLayer::onDeathTracker @ 0x14041ee30\n; > <???> @ 0x14091bb84\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; \npush    rbx                                                            ; +0x0, 0x1402207e0\nsub     rsp, 60h                                                       ; +0x2, 0x1402207e2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402207e6\nxor     rax, rsp                                                       ; +0xd, 0x1402207ed\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x1402207f0\nmov     rbx, rcx                                                       ; +0x15, 0x1402207f5\nlea     rcx, word_1406ED6F8                                            ; +0x18, 0x1402207f8\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1f, 0x1402207ff\nmov     rcx, rax                                                       ; +0x25, 0x140220805\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x28, 0x140220808\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x14022080e\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x31, 0x140220811\nxorps   xmm1, xmm1                                                     ; +0x36, 0x140220816\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x39, 0x140220819\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3f, 0x14022081f\ninc     r8                                                             ; +0x46, 0x140220826\ncmp     byte ptr [rax+r8], 0                                           ; +0x49, 0x140220829\njnz     short loc_140220826                                            ; +0x4e, 0x14022082e\nmov     rdx, rax                                                       ; +0x50, 0x140220830\nlea     rcx, [rsp+68h+Block]                                           ; +0x53, 0x140220833\ncall    sub_14003D230                                                  ; +0x58, 0x140220838\nnop                                                                    ; +0x5d, 0x14022083d\nlea     rdx, [rsp+68h+Block]                                           ; +0x5e, 0x14022083e\nmov     rcx, [rbx+3B0h]                                                ; +0x63, 0x140220843\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 &) ; +0x6a, 0x14022084a\nmov     rbx, rax                                                       ; +0x70, 0x140220850\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x73, 0x140220853\ncmp     rdx, 0Fh                                                       ; +0x78, 0x140220858\njbe     short loc_1402208A9                                            ; +0x7c, 0x14022085c\ninc     rdx                                                            ; +0x7e, 0x14022085e\nmov     r8, [rsp+68h+Block]                                            ; +0x81, 0x140220861\nmov     rcx, r8                                                        ; +0x86, 0x140220866\ncmp     rdx, 1000h                                                     ; +0x89, 0x140220869\njb      short loc_1402208A1                                            ; +0x90, 0x140220870\nadd     rdx, 27h ; '''                                                 ; +0x92, 0x140220872\nmov     r8, [r8-8]                                                     ; +0x96, 0x140220876\nsub     rcx, r8                                                        ; +0x9a, 0x14022087a\nsub     rcx, 8                                                         ; +0x9d, 0x14022087d\ncmp     rcx, 1Fh                                                       ; +0xa1, 0x140220881\njbe     short loc_1402208A1                                            ; +0xa5, 0x140220885\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xa7, 0x140220887\nxor     r9d, r9d; LineNo                                               ; +0xb0, 0x140220890\nxor     r8d, r8d; FileName                                             ; +0xb3, 0x140220893\nxor     edx, edx; FunctionName                                         ; +0xb6, 0x140220896\nxor     ecx, ecx; Expression                                           ; +0xb8, 0x140220898\ncall    cs:_invoke_watson                                              ; +0xba, 0x14022089a\ndb 0CCh                                                                ; +0xc0, 0x1402208a0\nmov     rcx, r8; Block                                                 ; +0xc1, 0x1402208a1\ncall    j_j_free                                                       ; +0xc4, 0x1402208a4\nmov     rax, rbx                                                       ; +0xc9, 0x1402208a9\nmov     rcx, [rsp+68h+var_18]                                          ; +0xcc, 0x1402208ac\nxor     rcx, rsp; StackCookie                                          ; +0xd1, 0x1402208b1\ncall    __security_check_cookie                                        ; +0xd4, 0x1402208b4\nadd     rsp, 60h                                                       ; +0xd9, 0x1402208b9\npop     rbx                                                            ; +0xdd, 0x1402208bd\nretn                                                                   ; +0xde, 0x1402208be", "xrefs": ["CreatorLayer::sceneWillResume @ 0x1401398c0", "LevelCell::loadCustomLevelCell @ 0x140149461", "LevelCell::loadCustomLevelCell @ 0x1401496b6", "DailyLevelPage::init @ 0x140170661", "DailyLevelPage::createNodeIfLoaded @ 0x14017116d", "EditLevelLayer::onDeathTracker @ 0x140179d63", "GameLevelManager::saveFetchedLevels @ 0x14021e47a", "GameLevelManager::saveLevel @ 0x140220a03", "GameLevelManager::gotoLevelPage @ 0x14022145b", "GameLevelManager::replayPlatformerSaveJournal @ 0x140223a3e", "GameLevelManager::processOnDownloadLevelCompleted @ 0x14023335a", "GameStatsManager::getTotalCollectedCurrency @ 0x1402e7a56", "GauntletLayer::unlockActiveItem @ 0x1402fd1ba", "InfoLayer::onLevelInfo @ 0x1403d0dbe", "LevelInfoLayer::onDeathTracker @ 0x14041ee30", "<???> @ 0x14091bb84"], "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"}