{"type": "func", "start": 5370219408, "end": 5370220030, "name": "DailyLevelPage::dailyStatusFailed", "pseudocode": "// \n// DailyLevelPage::dailyStatusFailed from 0x140170b90 to 0x140170dfe (622 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140745ae0\n// > <???> @ 0x140918308\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=2\nstruct cocos2d::CCAction *__fastcall DailyLevelPage::dailyStatusFailed(__int64 a1, __int64 a2, int a3)\n{\n  int v4; // r9d\n  __int64 v5; // rax\n  __int64 DialogLayer; // rsi\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  __int64 v9; // rdi\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  struct cocos2d::CCAction *result; // rax\n  __int64 v13; // rbx\n  struct cocos2d::CCFiniteTimeAction *v14; // rax\n  struct cocos2d::CCAction *v15; // rax\n  _BYTE v16[8]; // [rsp+30h] [rbp-50h] BYREF\n  __int128 v17; // [rsp+38h] [rbp-48h] BYREF\n  __int64 v18; // [rsp+48h] [rbp-38h]\n  __int64 v19; // [rsp+50h] [rbp-30h]\n  char v20[14]; // [rsp+58h] [rbp-28h] BYREF\n  __int16 v21; // [rsp+66h] [rbp-1Ah]\n  __int64 v22; // [rsp+68h] [rbp-18h]\n  __int64 v23; // [rsp+70h] [rbp-10h]\n  __int16 v24; // [rsp+B0h] [rbp+30h] BYREF\n  char v25; // [rsp+B2h] [rbp+32h]\n  __int128 *v26; // [rsp+B8h] [rbp+38h] BYREF\n\n  if ( a3 == 3 )\n  {\n    *(_BYTE *)(a1 + 40) = 1;\n    v26 = &v17;\n    v24 = -1;\n    v25 = -1;\n    v17 = 0;\n    v18 = 0;\n    v19 = 0;\n    *(_QWORD *)&v17 = sub_14003D460(0x50u);\n    v18 = 78;\n    v19 = 79;\n    strcpy((char *)v17, \"Please <cg>update</c> your <cl>application</c> to download this <cy>level</c>.\");\n    v22 = 12;\n    v23 = 15;\n    strcpy(v20, \"The Mechanic\");\n    v20[13] = 0;\n    v21 = 0;\n    v5 = DialogObject::create((unsigned int)v20, (unsigned int)&v17, 37, v4, 0, (__int64)&v24);\n    DialogLayer = DialogLayer::createDialogLayer(v5, 0, 4);\n    DialogLayer::addToMainScene(DialogLayer);\n    v8 = cocos2d::CCDirector::sharedDirector(v7);\n    cocos2d::CCDirector::getWinSize(v8, &v26);\n    v9 = **(_QWORD **)(DialogLayer + 560);\n    v10 = *(_QWORD *)(DialogLayer + 560);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, *(float *)&v26 * 0.5, *((float *)&v26 + 1) * 0.5);\n    (*(void (__fastcall **)(__int64, __int64))(v9 + 184))(v10, v11);\n    result = (struct cocos2d::CCAction *)DialogLayer::animateIn(DialogLayer, 1);\n  }\n  else\n  {\n    result = (struct cocos2d::CCAction *)qword_14090BFE0;\n    if ( !qword_14090BFE0 )\n    {\n      v26 = (__int128 *)operator new(0x3E8u);\n      qword_14090BFE0 = sub_1402D6480(v26);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n      result = (struct cocos2d::CCAction *)qword_14090BFE0;\n    }\n    if ( *((double *)result + 71) <= 0.0 )\n    {\n      v13 = cocos2d::CCCallFunc::create(a1 - 672, DailyLevelPage::tryGetDailyStatus);\n      v14 = cocos2d::CCDelayTime::create(5.0);\n      v15 = cocos2d::CCSequence::create(v14, v13, 0);\n      result = cocos2d::CCNode::runAction((cocos2d::CCNode *)(a1 - 672), v15);\n    }\n  }\n  if ( *(_BYTE *)(a1 + 40) )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 24) + 336LL))(*(_QWORD *)(a1 + 24), 0);\n    return (struct cocos2d::CCAction *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 32) + 336LL))(\n                                         *(_QWORD *)(a1 + 32),\n                                         0);\n  }\n  return result;\n}", "assembly": "; \n; DailyLevelPage::dailyStatusFailed from 0x140170b90 to 0x140170dfe (622 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140745ae0\n; > <???> @ 0x140918308\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-18h+arg_0], rbx                                           ; +0x0, 0x140170b90\nmov     [rsp-18h+arg_8], rsi                                           ; +0x5, 0x140170b95\npush    rbp                                                            ; +0xa, 0x140170b9a\npush    rdi                                                            ; +0xb, 0x140170b9b\npush    r14                                                            ; +0xc, 0x140170b9c\nmov     rbp, rsp                                                       ; +0xe, 0x140170b9e\nsub     rsp, 80h                                                       ; +0x11, 0x140170ba1\nmov     r14, rcx                                                       ; +0x18, 0x140170ba8\ncmp     r8d, 3                                                         ; +0x1b, 0x140170bab\njnz     loc_140170D2F                                                  ; +0x1f, 0x140170baf\nmov     byte ptr [rcx+28h], 1                                          ; +0x25, 0x140170bb5\nlea     rax, [rbp+var_48]                                              ; +0x29, 0x140170bb9\nmov     [rbp+arg_18], rax                                              ; +0x2d, 0x140170bbd\nmovzx   eax, cs:word_140702F88                                         ; +0x31, 0x140170bc1\nmov     [rbp+arg_10], ax                                               ; +0x38, 0x140170bc8\nmovzx   eax, cs:byte_140702F8A                                         ; +0x3c, 0x140170bcc\nmov     [rbp+arg_12], al                                               ; +0x43, 0x140170bd3\nxorps   xmm0, xmm0                                                     ; +0x46, 0x140170bd6\nmovups  [rbp+var_48], xmm0                                             ; +0x49, 0x140170bd9\nxor     eax, eax                                                       ; +0x4d, 0x140170bdd\nmov     [rbp+var_38], rax                                              ; +0x4f, 0x140170bdf\nmov     [rbp+var_30], rax                                              ; +0x53, 0x140170be3\nmov     ecx, 50h ; 'P'                                                 ; +0x57, 0x140170be7\ncall    sub_14003D460                                                  ; +0x5c, 0x140170bec\nmov     rcx, rax                                                       ; +0x61, 0x140170bf1\nmov     qword ptr [rbp+var_48], rax                                    ; +0x64, 0x140170bf4\nmov     [rbp+var_38], 4Eh ; 'N'                                        ; +0x68, 0x140170bf8\nmov     [rbp+var_30], 4Fh ; 'O'                                        ; +0x70, 0x140170c00\nmovaps  xmm0, cs:xmmword_140744FB0                                     ; +0x78, 0x140170c08\nmovups  xmmword ptr [rax], xmm0                                        ; +0x7f, 0x140170c0f\nmovaps  xmm1, cs:xmmword_140744FC0                                     ; +0x82, 0x140170c12\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x89, 0x140170c19\nmovaps  xmm0, cs:xmmword_140744FD0                                     ; +0x8d, 0x140170c1d\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x94, 0x140170c24\nmovaps  xmm1, cs:xmmword_140744FE0                                     ; +0x98, 0x140170c28\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x9f, 0x140170c2f\nmovsd   xmm0, cs:qword_140744FF0                                       ; +0xa3, 0x140170c33\nmovsd   qword ptr [rax+40h], xmm0                                      ; +0xab, 0x140170c3b\nmov     eax, cs:dword_140744FF8                                        ; +0xb0, 0x140170c40\nmov     [rcx+48h], eax                                                 ; +0xb6, 0x140170c46\nmovzx   eax, cs:word_140744FFC                                         ; +0xb9, 0x140170c49\nmov     [rcx+4Ch], ax                                                  ; +0xc0, 0x140170c50\nmov     byte ptr [rcx+4Eh], 0                                          ; +0xc4, 0x140170c54\nxorps   xmm0, xmm0                                                     ; +0xc8, 0x140170c58\nmovups  [rbp+var_28], xmm0                                             ; +0xcb, 0x140170c5b\nmov     [rbp+var_18], 0Ch                                              ; +0xcf, 0x140170c5f\nmov     [rbp+var_10], 0Fh                                              ; +0xd7, 0x140170c67\nmovsd   xmm0, cs:qword_140745128                                       ; +0xdf, 0x140170c6f\nmovsd   qword ptr [rbp+var_28], xmm0                                   ; +0xe7, 0x140170c77\nmov     eax, cs:dword_140745130                                        ; +0xec, 0x140170c7c\nmov     dword ptr [rbp+var_28+8], eax                                  ; +0xf2, 0x140170c82\nmov     byte ptr [rbp+var_28+0Ch], 0                                   ; +0xf5, 0x140170c85\nlea     rax, [rbp+arg_10]                                              ; +0xf9, 0x140170c89\nmov     [rsp+80h+var_58], rax                                          ; +0xfd, 0x140170c8d\nmov     [rsp+80h+var_60], 0                                            ; +0x102, 0x140170c92\nmovss   xmm3, cs:flt_140835080                                         ; +0x107, 0x140170c97\nmov     r8d, 25h ; '%'                                                 ; +0x10f, 0x140170c9f\nlea     rdx, [rbp+var_48]                                              ; +0x115, 0x140170ca5\nlea     rcx, [rbp+var_28]                                              ; +0x119, 0x140170ca9\ncall    DialogObject__create                                           ; +0x11d, 0x140170cad\nxor     edx, edx                                                       ; +0x122, 0x140170cb2\nmov     r8d, 4                                                         ; +0x124, 0x140170cb4\nmov     rcx, rax                                                       ; +0x12a, 0x140170cba\ncall    DialogLayer__createDialogLayer                                 ; +0x12d, 0x140170cbd\nmov     rsi, rax                                                       ; +0x132, 0x140170cc2\nmov     rcx, rax                                                       ; +0x135, 0x140170cc5\ncall    DialogLayer__addToMainScene                                    ; +0x138, 0x140170cc8\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x13d, 0x140170ccd\nmov     rcx, rax                                                       ; +0x143, 0x140170cd3\nlea     rdx, [rbp+arg_18]                                              ; +0x146, 0x140170cd6\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x14a, 0x140170cda\nmov     rcx, [rsi+230h]                                                ; +0x150, 0x140170ce0\nmov     rdi, [rcx]                                                     ; +0x157, 0x140170ce7\nmov     rbx, rcx                                                       ; +0x15a, 0x140170cea\nmovss   xmm2, dword ptr [rbp+arg_18+4]                                 ; +0x15d, 0x140170ced\nmulss   xmm2, cs:dword_140834F20                                       ; +0x162, 0x140170cf2\nmovss   xmm1, dword ptr [rbp+arg_18]                                   ; +0x16a, 0x140170cfa\nmulss   xmm1, cs:dword_140834F20                                       ; +0x16f, 0x140170cff\nlea     rcx, [rbp+var_50]                                              ; +0x177, 0x140170d07\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x17b, 0x140170d0b\nmov     rdx, rax                                                       ; +0x181, 0x140170d11\nmov     rcx, rbx                                                       ; +0x184, 0x140170d14\ncall    qword ptr [rdi+0B8h]                                           ; +0x187, 0x140170d17\nmov     edx, 1                                                         ; +0x18d, 0x140170d1d\nmov     rcx, rsi                                                       ; +0x192, 0x140170d22\ncall    DialogLayer__animateIn                                         ; +0x195, 0x140170d25\njmp     loc_140170DC1                                                  ; +0x19a, 0x140170d2a\nmov     rax, cs:qword_14090BFE0                                        ; +0x19f, 0x140170d2f\ntest    rax, rax                                                       ; +0x1a6, 0x140170d36\njnz     short loc_140170D6C                                            ; +0x1a9, 0x140170d39\nmov     ecx, 3E8h; Size                                                ; +0x1ab, 0x140170d3b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b0, 0x140170d40\nmov     [rbp+arg_18], rax                                              ; +0x1b5, 0x140170d45\nmov     rcx, rax                                                       ; +0x1b9, 0x140170d49\ncall    sub_1402D6480                                                  ; +0x1bc, 0x140170d4c\nnop                                                                    ; +0x1c1, 0x140170d51\nmov     cs:qword_14090BFE0, rax                                        ; +0x1c2, 0x140170d52\nmov     rcx, [rax]                                                     ; +0x1c9, 0x140170d59\nmov     rdx, [rcx+48h]                                                 ; +0x1cc, 0x140170d5c\nmov     rcx, rax                                                       ; +0x1d0, 0x140170d60\ncall    rdx                                                            ; +0x1d3, 0x140170d63\nmov     rax, cs:qword_14090BFE0                                        ; +0x1d5, 0x140170d65\nmovsd   xmm1, qword ptr [rax+238h]                                     ; +0x1dc, 0x140170d6c\nxorps   xmm0, xmm0                                                     ; +0x1e4, 0x140170d74\ncomisd  xmm1, xmm0                                                     ; +0x1e7, 0x140170d77\nja      short loc_140170DC1                                            ; +0x1eb, 0x140170d7b\nlea     rdx, DailyLevelPage__tryGetDailyStatus                         ; +0x1ed, 0x140170d7d\nlea     rcx, [r14-2A0h]                                                ; +0x1f4, 0x140170d84\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x1fb, 0x140170d8b\nmov     rbx, rax                                                       ; +0x201, 0x140170d91\nmovss   xmm0, cs:flt_140835470                                         ; +0x204, 0x140170d94\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x20c, 0x140170d9c\nmov     rcx, rax                                                       ; +0x212, 0x140170da2\nxor     r8d, r8d                                                       ; +0x215, 0x140170da5\nmov     rdx, rbx                                                       ; +0x218, 0x140170da8\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x21b, 0x140170dab\nmov     rdx, rax                                                       ; +0x221, 0x140170db1\nlea     rcx, [r14-2A0h]                                                ; +0x224, 0x140170db4\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x22b, 0x140170dbb\ncmp     byte ptr [r14+28h], 0                                          ; +0x231, 0x140170dc1\njz      short loc_140170DE6                                            ; +0x236, 0x140170dc6\nmov     rcx, [r14+18h]                                                 ; +0x238, 0x140170dc8\nmov     rax, [rcx]                                                     ; +0x23c, 0x140170dcc\nxor     edx, edx                                                       ; +0x23f, 0x140170dcf\ncall    qword ptr [rax+150h]                                           ; +0x241, 0x140170dd1\nmov     rcx, [r14+20h]                                                 ; +0x247, 0x140170dd7\nmov     rax, [rcx]                                                     ; +0x24b, 0x140170ddb\nxor     edx, edx                                                       ; +0x24e, 0x140170dde\ncall    qword ptr [rax+150h]                                           ; +0x250, 0x140170de0\nlea     r11, [rsp+80h+var_s0]                                          ; +0x256, 0x140170de6\nmov     rbx, [r11+20h]                                                 ; +0x25e, 0x140170dee\nmov     rsi, [r11+28h]                                                 ; +0x262, 0x140170df2\nmov     rsp, r11                                                       ; +0x266, 0x140170df6\npop     r14                                                            ; +0x269, 0x140170df9\npop     rdi                                                            ; +0x26b, 0x140170dfb\npop     rbp                                                            ; +0x26c, 0x140170dfc\nretn                                                                   ; +0x26d, 0x140170dfd", "xrefs": ["<???> @ 0x140745ae0", "<???> @ 0x140918308"], "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"}