{"type": "func", "start": 5370220560, "end": 5370220730, "name": "DailyLevelPage::downloadAndCreateNode", "pseudocode": "// \n// DailyLevelPage::downloadAndCreateNode from 0x140171010 to 0x1401710ba (170 bytes)\n// \n// 3 xrefs:\n// > DailyLevelPage::dailyStatusFinished @ 0x140170b65\n// > DailyLevelPage::claimLevelReward @ 0x140172831\n// > <???> @ 0x14091832c\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\nstruct cocos2d::CCAction *__fastcall DailyLevelPage::downloadAndCreateNode(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rbx\n  struct cocos2d::CCFiniteTimeAction *v4; // rax\n  struct cocos2d::CCAction *v5; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  *(_BYTE *)(a1 + 728) = 1;\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v7 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v7);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  GameLevelManager::downloadLevel(v2, *(unsigned int *)(a1 + 736), 0, 0);\n  v3 = cocos2d::CCCallFunc::create(a1, DailyLevelPage::createNodeIfLoaded);\n  v4 = cocos2d::CCDelayTime::create(0.5);\n  v5 = cocos2d::CCSequence::create(v4, v3, 0);\n  return cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v5);\n}", "assembly": "; \n; DailyLevelPage::downloadAndCreateNode from 0x140171010 to 0x1401710ba (170 bytes)\n; \n; 3 xrefs:\n; > DailyLevelPage::dailyStatusFinished @ 0x140170b65\n; > DailyLevelPage::claimLevelReward @ 0x140172831\n; > <???> @ 0x14091832c\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, 0x140171010\npush    rdi                                                            ; +0x5, 0x140171015\nsub     rsp, 20h                                                       ; +0x6, 0x140171016\nmov     rdi, rcx                                                       ; +0xa, 0x14017101a\nmov     byte ptr [rcx+2D8h], 1                                         ; +0xd, 0x14017101d\nmov     rcx, cs:qword_14090BFB0                                        ; +0x14, 0x140171024\ntest    rcx, rcx                                                       ; +0x1b, 0x14017102b\njnz     short loc_140171062                                            ; +0x1e, 0x14017102e\nmov     ecx, 690h; Size                                                ; +0x20, 0x140171030\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x140171035\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x14017103a\nmov     rcx, rax                                                       ; +0x2f, 0x14017103f\ncall    GameLevelManager__GameLevelManager                             ; +0x32, 0x140171042\nnop                                                                    ; +0x37, 0x140171047\nmov     cs:qword_14090BFB0, rax                                        ; +0x38, 0x140171048\nmov     rcx, [rax]                                                     ; +0x3f, 0x14017104f\nmov     rdx, [rcx+48h]                                                 ; +0x42, 0x140171052\nmov     rcx, rax                                                       ; +0x46, 0x140171056\ncall    rdx                                                            ; +0x49, 0x140171059\nmov     rcx, cs:qword_14090BFB0                                        ; +0x4b, 0x14017105b\nxor     r9d, r9d                                                       ; +0x52, 0x140171062\nxor     r8d, r8d                                                       ; +0x55, 0x140171065\nmov     edx, [rdi+2E0h]                                                ; +0x58, 0x140171068\ncall    GameLevelManager__downloadLevel                                ; +0x5e, 0x14017106e\nlea     rdx, DailyLevelPage__createNodeIfLoaded                        ; +0x63, 0x140171073\nmov     rcx, rdi                                                       ; +0x6a, 0x14017107a\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x6d, 0x14017107d\nmov     rbx, rax                                                       ; +0x73, 0x140171083\nmovss   xmm0, cs:dword_140834F20                                       ; +0x76, 0x140171086\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x7e, 0x14017108e\nmov     rcx, rax                                                       ; +0x84, 0x140171094\nxor     r8d, r8d                                                       ; +0x87, 0x140171097\nmov     rdx, rbx                                                       ; +0x8a, 0x14017109a\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x8d, 0x14017109d\nmov     rdx, rax                                                       ; +0x93, 0x1401710a3\nmov     rcx, rdi                                                       ; +0x96, 0x1401710a6\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x99, 0x1401710a9\nadd     rsp, 20h                                                       ; +0x9e, 0x1401710ae\npop     rdi                                                            ; +0xa2, 0x1401710b2\njmp     cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xa3, 0x1401710b3", "xrefs": ["DailyLevelPage::dailyStatusFinished @ 0x140170b65", "DailyLevelPage::claimLevelReward @ 0x140172831", "<???> @ 0x14091832c"], "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"}