{"type": "func", "start": 4297154000, "end": 4297154551, "name": "DailyLevelPage::dailyStatusFinished", "pseudocode": "// \n// DailyLevelPage::dailyStatusFinished from 0x100215dd0 to 0x100215ff7 (551 bytes)\n// \n// 2 xrefs:\n// > sub_100216200 @ 0x10021620c\n// > <???> @ 0x100ae65f8\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 12:27:00 +0000\n// \n\nchar __fastcall DailyLevelPage::dailyStatusFinished(__int64 a1, double a2)\n{\n  double v3; // xmm0_8\n  __int64 v4; // r14\n  __int64 v5; // rax\n  int DailyID; // eax\n  __int64 v7; // rax\n  __int64 v8; // rax\n  int v9; // r14d\n  __int64 v10; // rax\n  __int64 v11; // r14\n  __int64 v12; // rdi\n  double v13; // xmm0_8\n  __int64 v14; // rax\n  int v15; // r14d\n  int v16; // eax\n  int v17; // ecx\n  int v18; // r8d\n  int v19; // r9d\n  __int64 v20; // rax\n  double v21; // xmm0_8\n  __int64 v22; // rax\n  __int64 v23; // rdi\n  char v25[15]; // [rsp+9h] [rbp-27h] BYREF\n\n  DailyLevelPage::updateTimers(a1, a2);\n  v3 = (*(double (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 688) + 344LL))(*(_QWORD *)(a1 + 688), 1);\n  DailyLevelPage::updateTimers(a1, v3);\n  cocos2d::CCNode::unschedule(a1, DailyLevelPage::updateTimers, 0);\n  cocos2d::CCNode::schedule_1(a1, DailyLevelPage::updateTimers, 0, COERCE_DOUBLE(1065353216));\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 696) + 344LL))(*(_QWORD *)(a1 + 696), 0);\n  v4 = GameStatsManager::sharedState();\n  v5 = GameLevelManager::sharedState(COERCE_DOUBLE(1065353216));\n  DailyID = GameLevelManager::getDailyID(v5, *(unsigned int *)(a1 + 732));\n  LOBYTE(v7) = GameStatsManager::hasCompletedDailyLevel(v4, DailyID);\n  if ( !(_BYTE)v7 )\n  {\n    v8 = GameLevelManager::sharedState(COERCE_DOUBLE(1065353216));\n    v9 = GameLevelManager::getDailyID(v8, *(unsigned int *)(a1 + 732));\n    v10 = GameLevelManager::sharedState(COERCE_DOUBLE(1065353216));\n    LODWORD(v7) = GameLevelManager::getActiveDailyID(v10, *(unsigned int *)(a1 + 732));\n    if ( v9 > (int)v7 )\n    {\n      v11 = *(_QWORD *)(a1 + 720);\n      if ( v11 )\n      {\n        if ( *(_BYTE *)(v11 + 369) == 1 )\n        {\n          strcpy(v25, \"00:00:00\");\n          v12 = *(_QWORD *)(v11 + 344);\n          if ( v12 )\n            (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 928LL))(v12, v25);\n          v13 = DailyLevelPage::exitDailyNode(a1, *(_QWORD *)(a1 + 720), 0.0);\n          *(_BYTE *)(a1 + 728) = 1;\n          v14 = GameLevelManager::sharedState(v13);\n          GameLevelManager::downloadLevel(v14, *(unsigned int *)(a1 + 736), 0, 0);\n          v15 = cocos2d::CCDelayTime::create(0.5);\n          v16 = cocos2d::CCCallFunc::create(a1, DailyLevelPage::createNodeIfLoaded, 0);\n          v20 = sub_10039EB60(v15, v16, 0, v17, v18, v19);\n          LOBYTE(v7) = cocos2d::CCNode::runAction(a1, v20);\n        }\n        else\n        {\n          v23 = *(_QWORD *)(v11 + 360);\n          if ( v23 )\n          {\n            v7 = *(_QWORD *)(v11 + 328);\n            if ( !v7 || *(_DWORD *)(v7 + 864) - *(_DWORD *)(v7 + 868) <= 99 )\n            {\n              (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 344LL))(v23, 1);\n              LOBYTE(v7) = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v11 + 360) + 1272LL))(\n                             *(_QWORD *)(v11 + 360),\n                             1);\n            }\n          }\n        }\n      }\n      else\n      {\n        v21 = (*(double (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 1);\n        v22 = GameLevelManager::sharedState(v21);\n        LOBYTE(v7) = GameLevelManager::downloadLevel(v22, *(unsigned int *)(a1 + 736), 0, 0);\n      }\n    }\n  }\n  return v7;\n}", "assembly": "; \n; DailyLevelPage::dailyStatusFinished from 0x100215dd0 to 0x100215ff7 (551 bytes)\n; \n; 2 xrefs:\n; > sub_100216200 @ 0x10021620c\n; > <???> @ 0x100ae65f8\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 12:27:00 +0000\n; \npush    rbp                                                            ; +0x0, 0x100215dd0\nmov     rbp, rsp                                                       ; +0x1, 0x100215dd1\npush    r14                                                            ; +0x4, 0x100215dd4\npush    rbx                                                            ; +0x6, 0x100215dd6\nsub     rsp, 20h                                                       ; +0x7, 0x100215dd7\nmov     rbx, rdi                                                       ; +0xb, 0x100215ddb\ncall    DailyLevelPage__updateTimers                                   ; +0xe, 0x100215dde\nlea     r14, DailyLevelPage__updateTimers                              ; +0x13, 0x100215de3\nmov     rdi, [rbx+2B0h]                                                ; +0x1a, 0x100215dea\nmov     rax, [rdi]                                                     ; +0x21, 0x100215df1\nmov     esi, 1                                                         ; +0x24, 0x100215df4\ncall    qword ptr [rax+158h]                                           ; +0x29, 0x100215df9\nmov     rdi, rbx                                                       ; +0x2f, 0x100215dff\ncall    DailyLevelPage__updateTimers                                   ; +0x32, 0x100215e02\nmov     rdi, rbx                                                       ; +0x37, 0x100215e07\nmov     rsi, r14                                                       ; +0x3a, 0x100215e0a\nxor     edx, edx                                                       ; +0x3d, 0x100215e0d\ncall    cocos2d__CCNode__unschedule                                    ; +0x3f, 0x100215e0f\nmovss   xmm0, cs:alpha                                                 ; +0x44, 0x100215e14\nmov     rdi, rbx                                                       ; +0x4c, 0x100215e1c\nmov     rsi, r14                                                       ; +0x4f, 0x100215e1f\nxor     edx, edx                                                       ; +0x52, 0x100215e22\ncall    cocos2d__CCNode__schedule_1                                    ; +0x54, 0x100215e24\nmov     rdi, [rbx+2B8h]                                                ; +0x59, 0x100215e29\nmov     rax, [rdi]                                                     ; +0x60, 0x100215e30\nxor     esi, esi                                                       ; +0x63, 0x100215e33\ncall    qword ptr [rax+158h]                                           ; +0x65, 0x100215e35\ncall    GameStatsManager__sharedState                                  ; +0x6b, 0x100215e3b\nmov     r14, rax                                                       ; +0x70, 0x100215e40\ncall    GameLevelManager__sharedState                                  ; +0x73, 0x100215e43\nmov     esi, [rbx+2DCh]                                                ; +0x78, 0x100215e48\nmov     rdi, rax                                                       ; +0x7e, 0x100215e4e\ncall    GameLevelManager__getDailyID                                   ; +0x81, 0x100215e51\nmov     rdi, r14                                                       ; +0x86, 0x100215e56\nmov     esi, eax                                                       ; +0x89, 0x100215e59\ncall    GameStatsManager__hasCompletedDailyLevel                       ; +0x8b, 0x100215e5b\ntest    al, al                                                         ; +0x90, 0x100215e60\njnz     loc_100215FC0                                                  ; +0x92, 0x100215e62\ncall    GameLevelManager__sharedState                                  ; +0x98, 0x100215e68\nmov     esi, [rbx+2DCh]                                                ; +0x9d, 0x100215e6d\nmov     rdi, rax                                                       ; +0xa3, 0x100215e73\ncall    GameLevelManager__getDailyID                                   ; +0xa6, 0x100215e76\nmov     r14d, eax                                                      ; +0xab, 0x100215e7b\ncall    GameLevelManager__sharedState                                  ; +0xae, 0x100215e7e\nmov     esi, [rbx+2DCh]                                                ; +0xb3, 0x100215e83\nmov     rdi, rax                                                       ; +0xb9, 0x100215e89\ncall    GameLevelManager__getActiveDailyID                             ; +0xbc, 0x100215e8c\ncmp     r14d, eax                                                      ; +0xc1, 0x100215e91\njle     loc_100215FC0                                                  ; +0xc4, 0x100215e94\nmov     r14, [rbx+2D0h]                                                ; +0xca, 0x100215e9a\ntest    r14, r14                                                       ; +0xd1, 0x100215ea1\njz      loc_100215F63                                                  ; +0xd4, 0x100215ea4\ncmp     byte ptr [r14+171h], 1                                         ; +0xda, 0x100215eaa\njnz     loc_100215F97                                                  ; +0xe2, 0x100215eb2\nmov     [rbp+var_28], 10h                                              ; +0xe8, 0x100215eb8\nmov     rax, 30303A30303A3030h                                         ; +0xec, 0x100215ebc\nmov     qword ptr [rbp+var_27], rax                                    ; +0xf6, 0x100215ec6\nmov     [rbp+var_27+8], 0                                              ; +0xfa, 0x100215eca\nmov     rdi, [r14+158h]                                                ; +0xfe, 0x100215ece\ntest    rdi, rdi                                                       ; +0x105, 0x100215ed5\njz      short loc_100215EF6                                            ; +0x108, 0x100215ed8\nlea     rsi, [rbp+var_27]                                              ; +0x10a, 0x100215eda\nmov     rax, [rdi]                                                     ; +0x10e, 0x100215ede\ncall    qword ptr [rax+3A0h]                                           ; +0x111, 0x100215ee1\ntest    [rbp+var_28], 1                                                ; +0x117, 0x100215ee7\njz      short loc_100215EF6                                            ; +0x11b, 0x100215eeb\nmov     rdi, [rbp+__p]; __p                                            ; +0x11d, 0x100215eed\ncall    __ZdlPv; operator delete(void *)                               ; +0x121, 0x100215ef1\nmov     rsi, [rbx+2D0h]                                                ; +0x126, 0x100215ef6\nxorps   xmm0, xmm0                                                     ; +0x12d, 0x100215efd\nmov     rdi, rbx                                                       ; +0x130, 0x100215f00\ncall    DailyLevelPage__exitDailyNode                                  ; +0x133, 0x100215f03\nmov     byte ptr [rbx+2D8h], 1                                         ; +0x138, 0x100215f08\ncall    GameLevelManager__sharedState                                  ; +0x13f, 0x100215f0f\nmov     esi, [rbx+2E0h]                                                ; +0x144, 0x100215f14\nmov     rdi, rax                                                       ; +0x14a, 0x100215f1a\nxor     edx, edx                                                       ; +0x14d, 0x100215f1d\nxor     ecx, ecx                                                       ; +0x14f, 0x100215f1f\ncall    GameLevelManager__downloadLevel                                ; +0x151, 0x100215f21\nmovss   xmm0, cs:dword_100A03578                                       ; +0x156, 0x100215f26\ncall    cocos2d__CCDelayTime__create                                   ; +0x15e, 0x100215f2e\nmov     r14, rax                                                       ; +0x163, 0x100215f33\nlea     rsi, DailyLevelPage__createNodeIfLoaded                        ; +0x166, 0x100215f36\nmov     rdi, rbx                                                       ; +0x16d, 0x100215f3d\nxor     edx, edx                                                       ; +0x170, 0x100215f40\ncall    cocos2d__CCCallFunc__create                                    ; +0x172, 0x100215f42\nmov     rdi, r14                                                       ; +0x177, 0x100215f47\nmov     rsi, rax                                                       ; +0x17a, 0x100215f4a\nxor     edx, edx                                                       ; +0x17d, 0x100215f4d\nxor     eax, eax                                                       ; +0x17f, 0x100215f4f\ncall    sub_10039EB60                                                  ; +0x181, 0x100215f51\nmov     rdi, rbx                                                       ; +0x186, 0x100215f56\nmov     rsi, rax                                                       ; +0x189, 0x100215f59\ncall    cocos2d__CCNode__runAction                                     ; +0x18c, 0x100215f5c\njmp     short loc_100215FC0                                            ; +0x191, 0x100215f61\nmov     rdi, [rbx+2C0h]                                                ; +0x193, 0x100215f63\nmov     rax, [rdi]                                                     ; +0x19a, 0x100215f6a\nmov     esi, 1                                                         ; +0x19d, 0x100215f6d\ncall    qword ptr [rax+158h]                                           ; +0x1a2, 0x100215f72\ncall    GameLevelManager__sharedState                                  ; +0x1a8, 0x100215f78\nmov     esi, [rbx+2E0h]                                                ; +0x1ad, 0x100215f7d\nmov     rdi, rax                                                       ; +0x1b3, 0x100215f83\nxor     edx, edx                                                       ; +0x1b6, 0x100215f86\nxor     ecx, ecx                                                       ; +0x1b8, 0x100215f88\nadd     rsp, 20h                                                       ; +0x1ba, 0x100215f8a\npop     rbx                                                            ; +0x1be, 0x100215f8e\npop     r14                                                            ; +0x1bf, 0x100215f8f\npop     rbp                                                            ; +0x1c1, 0x100215f91\njmp     GameLevelManager__downloadLevel                                ; +0x1c2, 0x100215f92\nmov     rdi, [r14+168h]                                                ; +0x1c7, 0x100215f97\ntest    rdi, rdi                                                       ; +0x1ce, 0x100215f9e\njz      short loc_100215FC0                                            ; +0x1d1, 0x100215fa1\nmov     rax, [r14+148h]                                                ; +0x1d3, 0x100215fa3\ntest    rax, rax                                                       ; +0x1da, 0x100215faa\njz      short loc_100215FC9                                            ; +0x1dd, 0x100215fad\nmov     ecx, [rax+360h]                                                ; +0x1df, 0x100215faf\nsub     ecx, [rax+364h]                                                ; +0x1e5, 0x100215fb5\ncmp     ecx, 63h ; 'c'                                                 ; +0x1eb, 0x100215fbb\njle     short loc_100215FC9                                            ; +0x1ee, 0x100215fbe\nadd     rsp, 20h                                                       ; +0x1f0, 0x100215fc0\npop     rbx                                                            ; +0x1f4, 0x100215fc4\npop     r14                                                            ; +0x1f5, 0x100215fc5\npop     rbp                                                            ; +0x1f7, 0x100215fc7\nretn                                                                   ; +0x1f8, 0x100215fc8\nmov     rax, [rdi]                                                     ; +0x1f9, 0x100215fc9\nmov     esi, 1                                                         ; +0x1fc, 0x100215fcc\ncall    qword ptr [rax+158h]                                           ; +0x201, 0x100215fd1\nmov     rdi, [r14+168h]                                                ; +0x207, 0x100215fd7\nmov     rax, [rdi]                                                     ; +0x20e, 0x100215fde\nmov     rax, [rax+4F8h]                                                ; +0x211, 0x100215fe1\nmov     esi, 1                                                         ; +0x218, 0x100215fe8\nadd     rsp, 20h                                                       ; +0x21d, 0x100215fed\npop     rbx                                                            ; +0x221, 0x100215ff1\npop     r14                                                            ; +0x222, 0x100215ff2\npop     rbp                                                            ; +0x224, 0x100215ff4\njmp     rax                                                            ; +0x225, 0x100215ff5", "xrefs": ["sub_100216200 @ 0x10021620c", "<???> @ 0x100ae65f8"], "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"}