{"type": "func", "start": 4297153504, "end": 4297153997, "name": "DailyLevelPage::createDailyNode", "pseudocode": "// \n// DailyLevelPage::createDailyNode from 0x100215be0 to 0x100215dcd (493 bytes)\n// \n// 5 xrefs:\n// > DailyLevelPage::init @ 0x1002152de\n// > DailyLevelPage::levelDownloadFinished @ 0x100216516\n// > DailyLevelPage::createNodeIfLoaded @ 0x1002165f6\n// > DailyLevelPage::claimLevelReward @ 0x100216b4b\n// > DailyLevelPage::refreshDailyPage @ 0x100216cc7\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:26:59 +0000\n// \n\n_QWORD *__fastcall DailyLevelPage::createDailyNode(__int64 a1, __int64 a2, char a3, unsigned __int8 a4, float a5)\n{\n  _QWORD *v5; // r14\n  __int64 v9; // rax\n  double v10; // xmm0_8\n  __int64 v11; // rax\n  __int64 v12; // rdi\n  __int64 v13; // rax\n  __int64 v14; // rsi\n  __int64 v15; // rax\n  float v16; // xmm0_4\n  int v17; // r12d\n  int v18; // r13d\n  __int64 v19; // rax\n  int v20; // eax\n  int v21; // r8d\n  int v22; // r9d\n  __int64 v23; // rax\n  _BYTE v25[8]; // [rsp+Ch] [rbp-44h] BYREF\n  float v26[2]; // [rsp+14h] [rbp-3Ch] BYREF\n  _BYTE v27[4]; // [rsp+1Ch] [rbp-34h] BYREF\n  float v28; // [rsp+20h] [rbp-30h]\n  float v29; // [rsp+24h] [rbp-2Ch]\n\n  if ( *(_QWORD *)(a1 + 720) )\n    return nullptr;\n  v29 = a5;\n  v9 = cocos2d::CCDirector::sharedDirector(a1, a2);\n  cocos2d::CCDirector::getWinSize(v26, v9);\n  v5 = (_QWORD *)DailyLevelNode::create(a2, a1, a4);\n  (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v5);\n  *(_QWORD *)&v10 = LODWORD(v26[0]);\n  *(float *)&v10 = v26[0] * 0.5;\n  sub_100278250(v27, v26[0] * 0.5, (float)(0.5 * v26[1]) + -8.0);\n  (*(void (__fastcall **)(_QWORD *, _BYTE *))(*v5 + 184LL))(v5, v27);\n  if ( a2 )\n  {\n    v11 = GameLevelManager::sharedState(v10);\n    if ( (int)GameLevelManager::getDailyID(v11, *(unsigned int *)(a1 + 732)) > *(_DWORD *)(a2 + 920)\n                                                                             - *(_DWORD *)(a2 + 924) )\n    {\n      v12 = v5[45];\n      if ( v12 )\n      {\n        v13 = v5[41];\n        if ( !v13 || *(_DWORD *)(v13 + 864) - *(_DWORD *)(v13 + 868) <= 99 )\n        {\n          (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 344LL))(v12, 1);\n          (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v5[45] + 1272LL))(v5[45], 1);\n        }\n      }\n    }\n  }\n  if ( !a3 )\n  {\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*v5 + 344LL))(v5, 0);\n    v14 = (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 192LL))(v5);\n    sub_1002782D0(v27, v14);\n    v15 = cocos2d::CCDirector::sharedDirector(v27, v14);\n    v16 = sub_100479770(v15);\n    sub_100278250(v25, v16 + 180.0, v28);\n    (*(void (__fastcall **)(_QWORD *, _BYTE *))(*v5 + 184LL))(v5, v25);\n    v17 = cocos2d::CCDelayTime::create(v29);\n    v18 = cocos2d::CCShow::create();\n    v19 = cocos2d::CCMoveTo::create(v27, 0.5);\n    v20 = cocos2d::CCEaseElasticOut::create(v19, 0.60000002);\n    v23 = sub_10039EB60(v17, v18, v20, 0, v21, v22);\n    cocos2d::CCNode::runAction(v5, v23);\n  }\n  *(_QWORD *)(a1 + 720) = v5;\n  return v5;\n}", "assembly": "; \n; DailyLevelPage::createDailyNode from 0x100215be0 to 0x100215dcd (493 bytes)\n; \n; 5 xrefs:\n; > DailyLevelPage::init @ 0x1002152de\n; > DailyLevelPage::levelDownloadFinished @ 0x100216516\n; > DailyLevelPage::createNodeIfLoaded @ 0x1002165f6\n; > DailyLevelPage::claimLevelReward @ 0x100216b4b\n; > DailyLevelPage::refreshDailyPage @ 0x100216cc7\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:26:59 +0000\n; \npush    rbp                                                            ; +0x0, 0x100215be0\nmov     rbp, rsp                                                       ; +0x1, 0x100215be1\npush    r15                                                            ; +0x4, 0x100215be4\npush    r14                                                            ; +0x6, 0x100215be6\npush    r13                                                            ; +0x8, 0x100215be8\npush    r12                                                            ; +0xa, 0x100215bea\npush    rbx                                                            ; +0xc, 0x100215bec\nsub     rsp, 28h                                                       ; +0xd, 0x100215bed\ncmp     qword ptr [rdi+2D0h], 0                                        ; +0x11, 0x100215bf1\njz      short loc_100215C03                                            ; +0x19, 0x100215bf9\nxor     r14d, r14d                                                     ; +0x1b, 0x100215bfb\njmp     loc_100215DBB                                                  ; +0x1e, 0x100215bfe\nmov     r14d, ecx                                                      ; +0x23, 0x100215c03\nmov     r15d, edx                                                      ; +0x26, 0x100215c06\nmov     r12, rsi                                                       ; +0x29, 0x100215c09\nmov     rbx, rdi                                                       ; +0x2c, 0x100215c0c\nmovss   [rbp+var_2C], xmm0                                             ; +0x2f, 0x100215c0f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x34, 0x100215c14\nlea     rdi, [rbp+var_3C]                                              ; +0x39, 0x100215c19\nmov     rsi, rax                                                       ; +0x3d, 0x100215c1d\ncall    cocos2d__CCDirector__getWinSize                                ; +0x40, 0x100215c20\nmovzx   edx, r14b                                                      ; +0x45, 0x100215c25\nmov     rdi, r12                                                       ; +0x49, 0x100215c29\nmov     rsi, rbx                                                       ; +0x4c, 0x100215c2c\ncall    DailyLevelNode__create                                         ; +0x4f, 0x100215c2f\nmov     r14, rax                                                       ; +0x54, 0x100215c34\nmov     rdi, [rbx+248h]                                                ; +0x57, 0x100215c37\nmov     rax, [rdi]                                                     ; +0x5e, 0x100215c3e\nmov     rsi, r14                                                       ; +0x61, 0x100215c41\ncall    qword ptr [rax+1C8h]                                           ; +0x64, 0x100215c44\nmovss   xmm1, cs:dword_100A03578                                       ; +0x6a, 0x100215c4a\nmovss   xmm0, [rbp+var_3C]                                             ; +0x72, 0x100215c52\nmulss   xmm0, xmm1                                                     ; +0x77, 0x100215c57\nmulss   xmm1, [rbp+var_38]                                             ; +0x7b, 0x100215c5b\naddss   xmm1, cs:dword_100A03810                                       ; +0x80, 0x100215c60\nlea     r13, [rbp+var_34]                                              ; +0x88, 0x100215c68\nmov     rdi, r13                                                       ; +0x8c, 0x100215c6c\ncall    sub_100278250                                                  ; +0x8f, 0x100215c6f\nmov     rax, [r14]                                                     ; +0x94, 0x100215c74\nmov     rdi, r14                                                       ; +0x97, 0x100215c77\nmov     rsi, r13                                                       ; +0x9a, 0x100215c7a\ncall    qword ptr [rax+0B8h]                                           ; +0x9d, 0x100215c7d\ntest    r12, r12                                                       ; +0xa3, 0x100215c83\njz      short loc_100215CFB                                            ; +0xa6, 0x100215c86\ncall    GameLevelManager__sharedState                                  ; +0xa8, 0x100215c88\nmov     esi, [rbx+2DCh]                                                ; +0xad, 0x100215c8d\nmov     rdi, rax                                                       ; +0xb3, 0x100215c93\ncall    GameLevelManager__getDailyID                                   ; +0xb6, 0x100215c96\nmov     ecx, [r12+398h]                                                ; +0xbb, 0x100215c9b\nsub     ecx, [r12+39Ch]                                                ; +0xc3, 0x100215ca3\ncmp     eax, ecx                                                       ; +0xcb, 0x100215cab\njle     short loc_100215CFB                                            ; +0xcd, 0x100215cad\nmov     rdi, [r14+168h]                                                ; +0xcf, 0x100215caf\ntest    rdi, rdi                                                       ; +0xd6, 0x100215cb6\njz      short loc_100215CFB                                            ; +0xd9, 0x100215cb9\nmov     rax, [r14+148h]                                                ; +0xdb, 0x100215cbb\ntest    rax, rax                                                       ; +0xe2, 0x100215cc2\njz      short loc_100215CD8                                            ; +0xe5, 0x100215cc5\nmov     ecx, [rax+360h]                                                ; +0xe7, 0x100215cc7\nsub     ecx, [rax+364h]                                                ; +0xed, 0x100215ccd\ncmp     ecx, 63h ; 'c'                                                 ; +0xf3, 0x100215cd3\njg      short loc_100215CFB                                            ; +0xf6, 0x100215cd6\nmov     rax, [rdi]                                                     ; +0xf8, 0x100215cd8\nmov     esi, 1                                                         ; +0xfb, 0x100215cdb\ncall    qword ptr [rax+158h]                                           ; +0x100, 0x100215ce0\nmov     rdi, [r14+168h]                                                ; +0x106, 0x100215ce6\nmov     rax, [rdi]                                                     ; +0x10d, 0x100215ced\nmov     esi, 1                                                         ; +0x110, 0x100215cf0\ncall    qword ptr [rax+4F8h]                                           ; +0x115, 0x100215cf5\ntest    r15b, r15b                                                     ; +0x11b, 0x100215cfb\njnz     loc_100215DB4                                                  ; +0x11e, 0x100215cfe\nmov     rax, [r14]                                                     ; +0x124, 0x100215d04\nmov     rdi, r14                                                       ; +0x127, 0x100215d07\nxor     esi, esi                                                       ; +0x12a, 0x100215d0a\ncall    qword ptr [rax+158h]                                           ; +0x12c, 0x100215d0c\nmov     rax, [r14]                                                     ; +0x132, 0x100215d12\nmov     rdi, r14                                                       ; +0x135, 0x100215d15\ncall    qword ptr [rax+0C0h]                                           ; +0x138, 0x100215d18\nlea     r15, [rbp+var_34]                                              ; +0x13e, 0x100215d1e\nmov     rdi, r15                                                       ; +0x142, 0x100215d22\nmov     rsi, rax                                                       ; +0x145, 0x100215d25\ncall    sub_1002782D0                                                  ; +0x148, 0x100215d28\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x14d, 0x100215d2d\nmov     rdi, rax                                                       ; +0x152, 0x100215d32\ncall    sub_100479770                                                  ; +0x155, 0x100215d35\naddss   xmm0, cs:dword_100A03A84                                       ; +0x15a, 0x100215d3a\nmovss   xmm1, [rbp+var_30]                                             ; +0x162, 0x100215d42\nlea     r12, [rbp+var_44]                                              ; +0x167, 0x100215d47\nmov     rdi, r12                                                       ; +0x16b, 0x100215d4b\ncall    sub_100278250                                                  ; +0x16e, 0x100215d4e\nmov     rax, [r14]                                                     ; +0x173, 0x100215d53\nmov     rdi, r14                                                       ; +0x176, 0x100215d56\nmov     rsi, r12                                                       ; +0x179, 0x100215d59\ncall    qword ptr [rax+0B8h]                                           ; +0x17c, 0x100215d5c\nmovss   xmm0, [rbp+var_2C]                                             ; +0x182, 0x100215d62\ncall    cocos2d__CCDelayTime__create                                   ; +0x187, 0x100215d67\nmov     r12, rax                                                       ; +0x18c, 0x100215d6c\ncall    cocos2d__CCShow__create                                        ; +0x18f, 0x100215d6f\nmov     r13, rax                                                       ; +0x194, 0x100215d74\nmovss   xmm0, cs:dword_100A03578                                       ; +0x197, 0x100215d77\nmov     rdi, r15                                                       ; +0x19f, 0x100215d7f\ncall    cocos2d__CCMoveTo__create                                      ; +0x1a2, 0x100215d82\nmovss   xmm0, cs:dword_100A037D4                                       ; +0x1a7, 0x100215d87\nmov     rdi, rax                                                       ; +0x1af, 0x100215d8f\ncall    cocos2d__CCEaseElasticOut__create                              ; +0x1b2, 0x100215d92\nmov     rdi, r12                                                       ; +0x1b7, 0x100215d97\nmov     rsi, r13                                                       ; +0x1ba, 0x100215d9a\nmov     rdx, rax                                                       ; +0x1bd, 0x100215d9d\nxor     ecx, ecx                                                       ; +0x1c0, 0x100215da0\nxor     eax, eax                                                       ; +0x1c2, 0x100215da2\ncall    sub_10039EB60                                                  ; +0x1c4, 0x100215da4\nmov     rdi, r14                                                       ; +0x1c9, 0x100215da9\nmov     rsi, rax                                                       ; +0x1cc, 0x100215dac\ncall    cocos2d__CCNode__runAction                                     ; +0x1cf, 0x100215daf\nmov     [rbx+2D0h], r14                                                ; +0x1d4, 0x100215db4\nmov     rax, r14                                                       ; +0x1db, 0x100215dbb\nadd     rsp, 28h                                                       ; +0x1de, 0x100215dbe\npop     rbx                                                            ; +0x1e2, 0x100215dc2\npop     r12                                                            ; +0x1e3, 0x100215dc3\npop     r13                                                            ; +0x1e5, 0x100215dc5\npop     r14                                                            ; +0x1e7, 0x100215dc7\npop     r15                                                            ; +0x1e9, 0x100215dc9\npop     rbp                                                            ; +0x1eb, 0x100215dcb\nretn                                                                   ; +0x1ec, 0x100215dcc", "xrefs": ["DailyLevelPage::init @ 0x1002152de", "DailyLevelPage::levelDownloadFinished @ 0x100216516", "DailyLevelPage::createNodeIfLoaded @ 0x1002165f6", "DailyLevelPage::claimLevelReward @ 0x100216b4b", "DailyLevelPage::refreshDailyPage @ 0x100216cc7"], "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"}