// // DailyRecallUnlockPopup::init from 0x10098a360 to 0x10098ad82 (2594 bytes) // // 1 xrefs: // > DailyRecallUnlockPopup::create @ 0x10098a2fa // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:39:06 +0000 // __int64 __fastcall DailyRecallUnlockPopup::init(__int64 a1, __int64 a2, __int64 a3) { __int64 result; // rax int v6; // r12d int v7; // eax const char *v8; // rdx const std::string::value_type *v9; // rsi const char *v10; // rdi const char *v11; // rbx const std::string::value_type *v12; // r15 const char *v13; // rax __int64 v14; // rax void *v15; // r15 double v16; // xmm0_8 char *v17; // rbx void *v18; // r15 __m128 v19; // xmm0 __int64 v20; // rax int Stat; // eax char *v22; // rax __int64 CString; // rax void *v24; // rbx char *v25; // r15 unsigned __int64 *v26; // rbx const char *v27; // rcx const char *v28; // r8 char *v29; // rax const char *v30; // r15 size_t v31; // rax size_t v32; // rbx char *v33; // r13 size_t v34; // r12 char v35; // r12 void *v36; // r15 unsigned __int64 v37; // r13 char *v38; // rbx char *v39; // rbx int v40; // esi char *v41; // rax __int64 v42; // rax void *v43; // rbx __int64 v44; // rdi int v45; // edx int v46; // ecx int v47; // r8d int v48; // r9d __int64 v49; // rax char *v50; // rax void *v51; // rbx __int64 v52; // rax void *v53; // rbx __int64 v54; // rbx char *v55; // rbx __int64 v56; // r14 unsigned int v57; // [rsp+0h] [rbp-D0h] BYREF const char *v58; // [rsp+8h] [rbp-C8h] __int128 v59; // [rsp+10h] [rbp-C0h] BYREF void *v60; // [rsp+20h] [rbp-B0h] __int64 v61; // [rsp+28h] [rbp-A8h] BYREF __int128 v62; // [rsp+30h] [rbp-A0h] BYREF void *v63; // [rsp+40h] [rbp-90h] __int64 v64; // [rsp+48h] [rbp-88h] int v65; // [rsp+54h] [rbp-7Ch] float v66; // [rsp+58h] [rbp-78h] float v67; // [rsp+5Ch] [rbp-74h] __int128 v68; // [rsp+60h] [rbp-70h] BYREF void *__p; // [rsp+70h] [rbp-60h] __int128 __dst; // [rsp+78h] [rbp-58h] BYREF void *v71; // [rsp+88h] [rbp-48h] float v72; // [rsp+90h] [rbp-40h] float v73; // [rsp+94h] [rbp-3Ch] unsigned __int8 v74; // [rsp+9Bh] [rbp-35h] unsigned __int64 v75; // [rsp+9Ch] [rbp-34h] BYREF float v76; // [rsp+A4h] [rbp-2Ch] result = FLAlertLayer::init_1((_BYTE *)a1, 150); if ( !(_BYTE)result ) return result; v74 = result; *(_QWORD *)(a1 + 560) = a2; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1); v6 = *(_DWORD *)(a3 + 920) - *(_DWORD *)(a3 + 924); v7 = GameStatsManager::dailyRecallPrice(v6); v8 = "gj_dailyCrown_001.png"; if ( v6 >= 100001 ) v8 = "gj_weeklyCrown_001.png"; v9 = "GJ_square02.png"; if ( v6 >= 100001 ) v9 = "GJ_square05.png"; v10 = "Daily"; if ( v6 >= 100001 ) v10 = "Weekly"; v11 = "gj_eventCrown_001.png"; if ( v6 < 200001 ) v11 = v8; v12 = "GJ_square04.png"; if ( v6 < 200001 ) v12 = v9; v65 = v7; v13 = "Event"; if ( v6 < 200001 ) v13 = v10; v58 = v13; v14 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v61, v14); v76 = *(float *)&v61 * 0.5; v73 = 0.5 * *((float *)&v61 + 1); *(_QWORD *)(a1 + 648) = 0x430C000043BE0000LL; sub_100278270((__int64)&__dst, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v15 = cocos2d::extension::CCScale9Sprite::create_2((__int64)v12, (unsigned __int64 *)&__dst); v64 = (unsigned int)v6; if ( (unsigned int)(v6 - 100001) <= 0x1869F ) { BYTE2(__dst) = -81; LOWORD(__dst) = -20561; (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v15 + 960LL))(v15, &__dst); } sub_100278260((float *)&__dst, 380.0, 140.0); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v15 + 320LL))(v15, &__dst); sub_100278250((float *)&__dst, v76, v73); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v15 + 184LL))(v15, &__dst); v16 = (*(double (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v15, 1); v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v11, v16); v72 = v73 + 70.0; sub_100278250((float *)&__dst, v76, (float)(v73 + 70.0) + 12.0); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v17 + 184LL))(v17, &__dst); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v17, 2); v18 = cocos2d::CCLabelBMFont::create_3((__int64)"Unlock", (__int64)"goldFont.fnt"); sub_100278250((float *)&__dst, 0.5, 1.0); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v18 + 296LL))(v18, &__dst); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v18 + 160LL))(v18, 0.89999998); v19 = (__m128)LODWORD(v76); v67 = v72 + -15.0; sub_100278250((float *)&__dst, v76, v72 + -15.0); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v18 + 184LL))(v18, &__dst); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v18, 3); v20 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v20, "21", v19); v22 = sub_10088E820("%i", Stat); CString = cocos2d::CCString::getCString((__int64)v22); v24 = cocos2d::CCLabelBMFont::create_3(CString, (__int64)"goldFont.fnt"); sub_100278250((float *)&__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v24 + 296LL))(v24, &__dst); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v24 + 160LL))(v24, 0.64999998); v66 = v76 + 190.0; sub_100278250((float *)&__dst, (float)(v76 + 190.0) + -40.0, v72 + -16.0); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v24 + 184LL))(v24, &__dst); *(double *)v19.i64 = (*(double (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v24, 3); v25 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_bigKey_001.png", *(double *)v19.i64); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v25 + 160LL))(v25, 0.69999999); v26 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v24 + 192LL))(v24); sub_100278250((float *)&v75, 17.0, -1.5); sub_100278350((double *)&__dst, v26, &v75); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v25 + 184LL))(v25, &__dst); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v25, 3); v27 = "Demon Keys"; if ( v65 == 1 ) v27 = "Demon Key"; v28 = "You get stars only. No diamonds, no bonus."; if ( (int)v64 >= 100001 ) v28 = "You get stars and the chest, nothing else."; v29 = sub_10088E820("Unlock this %s level for %i %s?\n%s", v58, v65, v27, v28); v30 = (const char *)cocos2d::CCString::getCString((__int64)v29); v31 = strlen(v30); if ( v31 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v32 = v31; if ( v31 >= 0x17 ) { v34 = 26; if ( (v31 | 7) != 0x17 ) v34 = (v31 | 7) + 1; v33 = (char *)operator new(v34); v71 = v33; *(_QWORD *)&__dst = v34 + 1; *((_QWORD *)&__dst + 1) = v32; } else { LOBYTE(__dst) = 2 * v31; v33 = (char *)&__dst + 1; if ( !v31 ) goto LABEL_28; } memmove(v33, v30, v32); LABEL_28: v33[v32] = 0; v35 = __dst; v36 = v71; v37 = *((_QWORD *)&__dst + 1); if ( (__dst & 1) != 0 ) { sub_10001AD30(&v68, v71, *((unsigned __int64 *)&__dst + 1)); } else { __p = v71; v68 = __dst; } sub_100278250((float *)&v75, 0.5, 0.5); v38 = TextArea::create(&v68, (__int64)"chatFont.fnt", &v75, 0, 0, 1.0, 352.0, 20.0); v72 = v73 + 4.0; if ( (v68 & 1) != 0 ) operator delete(__p); sub_100278250((float *)&v75, v76 + 0.0, v72); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v38 + 184LL))(v38, &v75); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v38, 3); if ( (v35 & 1) != 0 ) { sub_10001AD30(&v68, v36, v37); } else { __p = v71; v68 = __dst; } sub_100278250((float *)&v75, 0.5, 0.5); v39 = TextArea::create(&v68, (__int64)"chatFont.fnt", &v75, 0, 0, 1.0, 352.0, 20.0); if ( (v68 & 1) != 0 ) operator delete(__p); sub_100278250((float *)&v75, v76 + 1.5, v72 + -1.5); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v39 + 184LL))(v39, &v75); TextArea::colorAllLabels((__int64)v39, 0); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v39 + 912LL))(v39, 100); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v39, 2); v40 = v64 - 100000; if ( (int)v64 < 100001 ) v40 = v64; if ( (int)v64 >= 200001 ) v40 = v64 - 200000; v41 = sub_10088E820("#%i", v40); v42 = cocos2d::CCString::getCString((__int64)v41); v43 = cocos2d::CCLabelBMFont::create_3(v42, (__int64)"chatFont.fnt"); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v43 + 1072LL))(v43, &unk_100A14A70); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v43 + 1024LL))(v43, 150); sub_100278250((float *)&v75, 1.0, 0.0); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v43 + 296LL))(v43, &v75); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v43 + 160LL))(v43, 0.60000002); v73 = v73 + -70.0; sub_100278250((float *)&v75, v66 + -7.0, v73 + 7.0); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v43 + 184LL))(v43, &v75); v44 = *(_QWORD *)(a1 + 584); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v44 + 464LL))(v44, v43, 3); v49 = cocos2d::CCMenu::create(v44, (__int64)v43, v45, v46, v47, v48); *(_QWORD *)(a1 + 552) = v49; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v49, 10); v50 = sub_100059FD0((__int64)"Cancel", 0x5Au, 0, 0, (__int64)"goldFont.fnt", (__int64)"GJ_button_04.png", 1.0); *(_QWORD *)(a1 + 608) = v50; v51 = CCMenuItemSpriteExtra::create((__int64)v50, 0, a1, (__int64)FLAlertLayer::onButton, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v51 + 72LL))(v51, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v51); v52 = sub_100059E30((__int64)"Unlock", 90, 0, 0, 1.0); *(_QWORD *)(a1 + 616) = v52; v53 = CCMenuItemSpriteExtra::create(v52, 0, a1, (__int64)FLAlertLayer::onButton, 0); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v53 + 72LL))(v53, 1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v53); cocos2d::CCMenu::alignItemsHorizontallyWithPadding(*(_QWORD *)(a1 + 552), (__m128)0x41700000u); v54 = *(_QWORD *)(a1 + 552); sub_100278250((float *)&v75, v76, v73 + 25.0); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v54 + 184LL))(v54, &v75); LOBYTE(v62) = 12; strcpy((char *)&v62 + 1, "Recall"); v60 = operator new(0xB8u); *(_QWORD *)&v59 = 185; *((_QWORD *)&v59 + 1) = 176; strcpy( (char *)v60, "Recalled levels give stars and count as completed dailies.\n" "No diamonds, no orbs, no daily bonus.\n" "Weekly and Event levels still give their chest."); v55 = InfoAlertButton::create(&v62, &v59, 0.56); if ( (v59 & 1) != 0 ) operator delete(v60); if ( (v62 & 1) != 0 ) operator delete(v63); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v55); v56 = *(_QWORD *)(a1 + 552); sub_100278250((float *)&v57, (float)(v76 + -190.0) + 18.0, v67); cocos2d::CCNode::convertToNodeSpace((double *)&v75, v56, &v57); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v55 + 184LL))(v55, &v75); if ( (v35 & 1) != 0 ) operator delete(v36); return v74; }