{"type": "func", "start": 4297268192, "end": 4297268582, "name": "DailyLevelPage::dailyStatusFailed", "pseudocode": "// \n// DailyLevelPage::dailyStatusFailed from 0x100231be0 to 0x100231d66 (390 bytes)\n// \n// 2 xrefs:\n// > sub_100231E10 @ 0x100231e1c\n// > <???> @ 0x1008e1f48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall DailyLevelPage::dailyStatusFailed(DailyLevelPage *a1, GJTimedLevelType a2, GJErrorCode a3)\n{\n  DialogObject *v3; // rax\n  DialogLayer *v4; // r14\n  GameStatsManager *v5; // rax\n  unsigned int v6; // r14d\n  unsigned int v7; // eax\n  int v8; // ecx\n  int v9; // r8d\n  int v10; // r9d\n  cocos2d::CCAction *v11; // rax\n  _QWORD v12[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n  char v14; // [rsp+18h] [rbp-28h] BYREF\n  void *v15[4]; // [rsp+19h] [rbp-27h] BYREF\n\n  if ( a3 == UpdateApp )\n  {\n    a1->m_gettingDailyStatus = 1;\n    v14 = 24;\n    strcpy((char *)v15, \"The Mechanic\");\n    __p = operator new(0x50u);\n    v12[0] = 81;\n    v12[1] = 78;\n    strcpy((char *)__p, \"Please <cg>update</c> your <cl>application</c> to download this <cy>level</c>.\");\n    v3 = (DialogObject *)DialogObject::create(&v14, v12, 37, 0, 0xFFFFFF, 1.0);\n    v4 = DialogLayer::create(v3, 4);\n    if ( (v12[0] & 1) != 0 )\n      operator delete(__p);\n    if ( (v14 & 1) != 0 )\n      operator delete(*(void **)((char *)&v15[1] + 7));\n    DialogLayer::addToMainScene(v4);\n    DialogLayer::updateChatPlacement(v4, Center);\n    DialogLayer::animateIn(v4, FromCenter);\n  }\n  else\n  {\n    v5 = GameStatsManager::sharedState();\n    if ( !GameStatsManager::areChallengesLoaded(v5) )\n    {\n      v6 = (unsigned int)cocos2d::CCDelayTime::create(5.0);\n      v7 = (unsigned int)cocos2d::CCCallFunc::create(\n                           a1,\n                           (cocos2d::SEL_CallFunc)(unsigned __int64)DailyLevelPage::tryGetDailyStatus);\n      v11 = (cocos2d::CCAction *)sub_1003B5760(v6, v7, 0, v8, v9, v10);\n      cocos2d::CCNode::runAction(a1, v11);\n    }\n  }\n  if ( a1->m_gettingDailyStatus )\n  {\n    ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_timeCircle->setVisible)(a1->m_timeCircle, 0);\n    ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_nodeCircle->setVisible)(a1->m_nodeCircle, 0);\n  }\n}", "assembly": "; \n; DailyLevelPage::dailyStatusFailed from 0x100231be0 to 0x100231d66 (390 bytes)\n; \n; 2 xrefs:\n; > sub_100231E10 @ 0x100231e1c\n; > <???> @ 0x1008e1f48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100231be0\nmov     rbp, rsp                                                       ; +0x1, 0x100231be1\npush    r14                                                            ; +0x4, 0x100231be4\npush    rbx                                                            ; +0x6, 0x100231be6\nsub     rsp, 30h                                                       ; +0x7, 0x100231be7\nmov     rbx, rdi                                                       ; +0xb, 0x100231beb\ncmp     edx, 3                                                         ; +0xe, 0x100231bee\njnz     loc_100231CE4                                                  ; +0x11, 0x100231bf1\nmov     byte ptr [rbx+2A8h], 1                                         ; +0x17, 0x100231bf7\nmov     [rbp+var_28], 18h                                              ; +0x1e, 0x100231bfe\nmov     rax, 6863654D20656854h                                         ; +0x22, 0x100231c02\nmov     [rbp+var_27], rax                                              ; +0x2c, 0x100231c0c\nmov     dword ptr [rbp-1Fh], 63696E61h                                 ; +0x30, 0x100231c10\nmov     byte ptr [rbp-1Bh], 0                                          ; +0x37, 0x100231c17\nmov     edi, 50h ; 'P'; __sz                                           ; +0x3b, 0x100231c1b\ncall    __Znwm; operator new(ulong)                                    ; +0x40, 0x100231c20\nmov     [rbp+__p], rax                                                 ; +0x45, 0x100231c25\nmov     [rbp+var_40], 51h ; 'Q'                                        ; +0x49, 0x100231c29\nmov     [rbp+var_38], 4Eh ; 'N'                                        ; +0x51, 0x100231c31\nmovups  xmm0, xmmword ptr cs:aPleaseCgUpdate+3Eh; \"s <cy>level</c>.\"   ; +0x59, 0x100231c39\nmovups  xmmword ptr [rax+3Eh], xmm0                                    ; +0x60, 0x100231c40\nmovups  xmm0, xmmword ptr cs:aPleaseCgUpdate+30h; \"o download this <cy>level</c>.\" ; +0x64, 0x100231c44\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x6b, 0x100231c4b\nmovups  xmm0, xmmword ptr cs:aPleaseCgUpdate+20h; \"pplication</c> to download this <cy>lev\"... ; +0x6f, 0x100231c4f\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x76, 0x100231c56\nmovups  xmm0, xmmword ptr cs:aPleaseCgUpdate+10h; \"e</c> your <cl>application</c> to downl\"... ; +0x7a, 0x100231c5a\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x81, 0x100231c61\nmovups  xmm0, xmmword ptr cs:aPleaseCgUpdate; \"Please <cg>update</c> your <cl>applicat\"... ; +0x85, 0x100231c65\nmovups  xmmword ptr [rax], xmm0                                        ; +0x8c, 0x100231c6c\nmov     byte ptr [rax+4Eh], 0                                          ; +0x8f, 0x100231c6f\nlea     rdi, [rbp+var_28]                                              ; +0x93, 0x100231c73\nlea     rsi, [rbp+var_40]                                              ; +0x97, 0x100231c77\nmovss   xmm0, cs:alpha                                                 ; +0x9b, 0x100231c7b\nmov     edx, 25h ; '%'                                                 ; +0xa3, 0x100231c83\nxor     ecx, ecx                                                       ; +0xa8, 0x100231c88\nmov     r8d, 0FFFFFFh                                                  ; +0xaa, 0x100231c8a\ncall    DialogObject__create                                           ; +0xb0, 0x100231c90\nmov     rdi, rax                                                       ; +0xb5, 0x100231c95\nmov     esi, 4                                                         ; +0xb8, 0x100231c98\ncall    DialogLayer__create                                            ; +0xbd, 0x100231c9d\nmov     r14, rax                                                       ; +0xc2, 0x100231ca2\ntest    byte ptr [rbp+var_40], 1                                       ; +0xc5, 0x100231ca5\njz      short loc_100231CB4                                            ; +0xc9, 0x100231ca9\nmov     rdi, [rbp+__p]; __p                                            ; +0xcb, 0x100231cab\ncall    __ZdlPv; operator delete(void *)                               ; +0xcf, 0x100231caf\ntest    [rbp+var_28], 1                                                ; +0xd4, 0x100231cb4\njz      short loc_100231CC3                                            ; +0xd8, 0x100231cb8\nmov     rdi, [rbp+var_18]; __p                                         ; +0xda, 0x100231cba\ncall    __ZdlPv; operator delete(void *)                               ; +0xde, 0x100231cbe\nmov     rdi, r14                                                       ; +0xe3, 0x100231cc3\ncall    DialogLayer__addToMainScene                                    ; +0xe6, 0x100231cc6\nmov     rdi, r14                                                       ; +0xeb, 0x100231ccb\nxor     esi, esi                                                       ; +0xee, 0x100231cce\ncall    DialogLayer__updateChatPlacement                               ; +0xf0, 0x100231cd0\nmov     rdi, r14                                                       ; +0xf5, 0x100231cd5\nmov     esi, 1                                                         ; +0xf8, 0x100231cd8\ncall    DialogLayer__animateIn                                         ; +0xfd, 0x100231cdd\njmp     short loc_100231D30                                            ; +0x102, 0x100231ce2\ncall    GameStatsManager__sharedState                                  ; +0x104, 0x100231ce4\nmov     rdi, rax                                                       ; +0x109, 0x100231ce9\ncall    GameStatsManager__areChallengesLoaded                          ; +0x10c, 0x100231cec\ntest    al, al                                                         ; +0x111, 0x100231cf1\njnz     short loc_100231D30                                            ; +0x113, 0x100231cf3\nmovss   xmm0, cs:flt_100815088                                         ; +0x115, 0x100231cf5\ncall    cocos2d__CCDelayTime__create                                   ; +0x11d, 0x100231cfd\nmov     r14, rax                                                       ; +0x122, 0x100231d02\nlea     rsi, DailyLevelPage__tryGetDailyStatus                         ; +0x125, 0x100231d05\nmov     rdi, rbx                                                       ; +0x12c, 0x100231d0c\nxor     edx, edx                                                       ; +0x12f, 0x100231d0f\ncall    cocos2d__CCCallFunc__create                                    ; +0x131, 0x100231d11\nmov     rdi, r14                                                       ; +0x136, 0x100231d16\nmov     rsi, rax                                                       ; +0x139, 0x100231d19\nxor     edx, edx                                                       ; +0x13c, 0x100231d1c\nxor     eax, eax                                                       ; +0x13e, 0x100231d1e\ncall    sub_1003B5760                                                  ; +0x140, 0x100231d20\nmov     rdi, rbx                                                       ; +0x145, 0x100231d25\nmov     rsi, rax                                                       ; +0x148, 0x100231d28\ncall    cocos2d__CCNode__runAction                                     ; +0x14b, 0x100231d2b\ncmp     byte ptr [rbx+2A8h], 1                                         ; +0x150, 0x100231d30\njnz     short loc_100231D5D                                            ; +0x157, 0x100231d37\nmov     rdi, [rbx+298h]                                                ; +0x159, 0x100231d39\nmov     rax, [rdi]                                                     ; +0x160, 0x100231d40\nxor     esi, esi                                                       ; +0x163, 0x100231d43\ncall    qword ptr [rax+148h]                                           ; +0x165, 0x100231d45\nmov     rdi, [rbx+2A0h]                                                ; +0x16b, 0x100231d4b\nmov     rax, [rdi]                                                     ; +0x172, 0x100231d52\nxor     esi, esi                                                       ; +0x175, 0x100231d55\ncall    qword ptr [rax+148h]                                           ; +0x177, 0x100231d57\nadd     rsp, 30h                                                       ; +0x17d, 0x100231d5d\npop     rbx                                                            ; +0x181, 0x100231d61\npop     r14                                                            ; +0x182, 0x100231d62\npop     rbp                                                            ; +0x184, 0x100231d64\nretn                                                                   ; +0x185, 0x100231d65", "xrefs": ["sub_100231E10 @ 0x100231e1c", "<???> @ 0x1008e1f48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}