{"type": "func", "start": 5370227376, "end": 5370227570, "name": "DailyLevelPage::onTheSafe", "pseudocode": "// \n// DailyLevelPage::onTheSafe from 0x140172ab0 to 0x140172b72 (194 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::init @ 0x140170129\n// > <???> @ 0x1409183a4\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:27:31 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall DailyLevelPage::onTheSafe(__int64 a1)\n{\n  __int64 v1; // rbx\n  __int64 v2; // rdx\n  __int64 v3; // rcx\n  __int64 v4; // r8\n  __int64 v5; // r9\n  struct cocos2d::CCScene *v6; // rdi\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  struct cocos2d::CCScene *v9; // rbx\n  __int64 v10; // rcx\n  cocos2d::CCDirector *v11; // rax\n  __int64 result; // rax\n  void *v13; // [rsp+30h] [rbp+8h]\n\n  v1 = LevelBrowserLayer::safeSearchObject(*(unsigned int *)(a1 + 732));\n  v6 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v3, v2, v4, v5);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v7) + 232) = v6;\n  v8 = LevelBrowserLayer::create(v1);\n  (*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v8);\n  v9 = cocos2d::CCTransitionFade::create(0.5, v6);\n  v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);\n  cocos2d::CCDirector::pushScene(v11, v9);\n  result = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v13 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v13);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    result = qword_14090BFD0;\n  }\n  *(_DWORD *)(result + 740) = 1;\n  return result;\n}", "assembly": "; \n; DailyLevelPage::onTheSafe from 0x140172ab0 to 0x140172b72 (194 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::init @ 0x140170129\n; > <???> @ 0x1409183a4\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:27:31 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140172ab0\npush    rdi                                                            ; +0x5, 0x140172ab5\nsub     rsp, 20h                                                       ; +0x6, 0x140172ab6\nmov     ecx, [rcx+2DCh]                                                ; +0xa, 0x140172aba\ncall    LevelBrowserLayer__safeSearchObject                            ; +0x10, 0x140172ac0\nmov     rbx, rax                                                       ; +0x15, 0x140172ac5\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x18, 0x140172ac8\nmov     rdi, rax                                                       ; +0x1e, 0x140172ace\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x21, 0x140172ad1\nmov     [rax+0E8h], rdi                                                ; +0x27, 0x140172ad7\nmov     rcx, rbx                                                       ; +0x2e, 0x140172ade\ncall    LevelBrowserLayer__create                                      ; +0x31, 0x140172ae1\nmov     rcx, [rdi]                                                     ; +0x36, 0x140172ae6\nmov     r8, [rcx+1D0h]                                                 ; +0x39, 0x140172ae9\nmov     rdx, rax                                                       ; +0x40, 0x140172af0\nmov     rcx, rdi                                                       ; +0x43, 0x140172af3\ncall    r8                                                             ; +0x46, 0x140172af6\nmov     rdx, rdi                                                       ; +0x49, 0x140172af9\nmovss   xmm0, cs:dword_140834F20                                       ; +0x4c, 0x140172afc\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x54, 0x140172b04\nmov     rbx, rax                                                       ; +0x5a, 0x140172b0a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x5d, 0x140172b0d\nmov     rcx, rax                                                       ; +0x63, 0x140172b13\nmov     rdx, rbx                                                       ; +0x66, 0x140172b16\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x69, 0x140172b19\nmov     rax, cs:qword_14090BFD0                                        ; +0x6f, 0x140172b1f\ntest    rax, rax                                                       ; +0x76, 0x140172b26\njnz     short loc_140172B5D                                            ; +0x79, 0x140172b29\nmov     ecx, 6E8h; Size                                                ; +0x7b, 0x140172b2b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x80, 0x140172b30\nmov     [rsp+28h+arg_0], rax                                           ; +0x85, 0x140172b35\nmov     rcx, rax                                                       ; +0x8a, 0x140172b3a\ncall    GameManager__GameManager                                       ; +0x8d, 0x140172b3d\nnop                                                                    ; +0x92, 0x140172b42\nmov     cs:qword_14090BFD0, rax                                        ; +0x93, 0x140172b43\nmov     rcx, [rax]                                                     ; +0x9a, 0x140172b4a\nmov     rdx, [rcx+48h]                                                 ; +0x9d, 0x140172b4d\nmov     rcx, rax                                                       ; +0xa1, 0x140172b51\ncall    rdx                                                            ; +0xa4, 0x140172b54\nmov     rax, cs:qword_14090BFD0                                        ; +0xa6, 0x140172b56\nmov     dword ptr [rax+2E4h], 1                                        ; +0xad, 0x140172b5d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb7, 0x140172b67\nadd     rsp, 20h                                                       ; +0xbc, 0x140172b6c\npop     rdi                                                            ; +0xc0, 0x140172b70\nretn                                                                   ; +0xc1, 0x140172b71", "xrefs": ["DailyLevelPage::init @ 0x140170129", "<???> @ 0x1409183a4"], "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"}