// // RateStarsLayer::init from 0x100276dc0 to 0x1002777a6 (2534 bytes) // // 1 xrefs: // > RateStarsLayer::create @ 0x100276d77 // // 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:27:39 +0000 // __int64 __fastcall RateStarsLayer::init(__int64 a1, int a2, char a3, char a4) { unsigned int inited; // r12d __int64 v8; // rax __int64 v9; // r14 const std::string::value_type *v10; // rsi std::string::pointer data; // rdi __int64 v12; // rbx __int64 v13; // rdi __int64 v14; // rax __int64 v15; // rdi __int64 v16; // rax __int64 v17; // rbx __int64 v18; // rax __int64 CString; // rax char *v20; // rax _DWORD *v21; // r14 __int64 v22; // rbx __int64 v23; // rax __int64 v24; // rax char *v25; // rax _DWORD *v26; // r14 __int64 v27; // rbx __int64 v28; // rax __int64 v29; // rax char *v30; // rax _DWORD *v31; // r14 __int64 v32; // rbx __int64 v33; // rax __int64 v34; // rax char *v35; // rax _DWORD *v36; // r14 __int64 v37; // rbx __int64 v38; // rax __int64 v39; // rax char *v40; // rax _DWORD *v41; // r14 __int64 v42; // r14 unsigned int i; // r13d __int64 v44; // rbx __int64 v45; // rax __int64 v46; // rax char *v47; // rax _DWORD *v48; // r15 __int64 v49; // rbx __int64 v50; // rbx __int64 v51; // rax void *v52; // rbx __int64 v53; // rax void *v54; // rbx __int64 v55; // rax void *v56; // rax __int64 v57; // rbx char v59; // [rsp+0h] [rbp-80h] char v60; // [rsp+0h] [rbp-80h] char v61; // [rsp+0h] [rbp-80h] char v62; // [rsp+0h] [rbp-80h] char v63; // [rsp+0h] [rbp-80h] char v64; // [rsp+0h] [rbp-80h] __int64 v65; // [rsp+8h] [rbp-78h] unsigned int v66; // [rsp+10h] [rbp-70h] BYREF std::string v67; // [rsp+18h] [rbp-68h] BYREF double v68; // [rsp+30h] [rbp-50h] BYREF double v69; // [rsp+38h] [rbp-48h] BYREF __int64 v70; // [rsp+40h] [rbp-40h] float v71; // [rsp+4Ch] [rbp-34h] BYREF float v72; // [rsp+50h] [rbp-30h] unsigned __int8 v73; // [rsp+57h] [rbp-29h] inited = FLAlertLayer::init_1(a1, 75); if ( (_BYTE)inited ) { *(_BYTE *)(a1 + 681) = a4; *(_DWORD *)(a1 + 704) = a2; *(_DWORD *)(a1 + 708) = -1; v8 = cocos2d::CCDirector::sharedDirector(a1, 75); cocos2d::CCDirector::getWinSize(&v71, v8); sub_100278270(&v67, 0.0, 0.0, COERCE_DOUBLE(1117782016), COERCE_DOUBLE(1117782016)); v9 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", &v67); sub_100278260(&v67, COERCE_DOUBLE(1136525312), COERCE_DOUBLE(1127481344)); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v9 + 320LL))(v9, &v67); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v9, 0xFFFFFFFFLL); sub_100278250(&v67, v71 * 0.5, v72 * 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v9 + 184LL))(v9, &v67); strcpy((char *)&v67, "\nRate "); if ( *(_BYTE *)(a1 + 681) == 1 ) std::string::assign(&v67, "Advisor: Suggest "); v10 = "Stars"; if ( a3 ) v10 = "Moons"; std::string::append(&v67, v10); if ( (*(_BYTE *)&v67.__r_.__value_.__s.0 & 1) != 0 ) data = v67.__r_.__value_.__l.__data_; else data = v67.__r_.__value_.__s.__data_; v12 = cocos2d::CCLabelBMFont::create_3(data, "bigFont.fnt"); sub_100278250(&v68, v71 * 0.5, (float)((float)(0.5 * v72) + 90.0) + -20.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v12 + 184LL))(v12, &v68); v13 = *(_QWORD *)(a1 + 584); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 456LL))(v13, v12); v14 = sub_1007FE900(v13); *(_QWORD *)(a1 + 696) = v14; v15 = v14; cocos2d::CCObject::retain(v14); v70 = sub_1007FE900(v15); v65 = sub_1007FE900(v15); v16 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v16; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v16, 10); v73 = inited; v17 = *(_QWORD *)(a1 + 552); v18 = sub_10088E820("%i", v59); CString = cocos2d::CCString::getCString(v18); v20 = ButtonSprite::create_1(CString, 0x14u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v21 = CCMenuItemSpriteExtra::create((__int64)v20, 0, a1, (__int64)sub_1002778C0, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v21 + 160LL))(v21, 1.0); v21[101] = 1065353216; if ( v17 ) (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v17 + 456LL))(v17, v21); sub_1007FEBF0(*(_QWORD *)(a1 + 696), v21); (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v21 + 72LL))(v21, 1); sub_1007FEBF0(v70, v21); v22 = *(_QWORD *)(a1 + 552); v23 = sub_10088E820("%i", v60); v24 = cocos2d::CCString::getCString(v23); v25 = ButtonSprite::create_1(v24, 0x14u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v26 = CCMenuItemSpriteExtra::create((__int64)v25, 0, a1, (__int64)sub_1002778C0, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v26 + 160LL))(v26, 1.0); v26[101] = 1065353216; if ( v22 ) (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v22 + 456LL))(v22, v26); sub_1007FEBF0(*(_QWORD *)(a1 + 696), v26); (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v26 + 72LL))(v26, 2); sub_1007FEBF0(v70, v26); v27 = *(_QWORD *)(a1 + 552); v28 = sub_10088E820("%i", v61); v29 = cocos2d::CCString::getCString(v28); v30 = ButtonSprite::create_1(v29, 0x14u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v31 = CCMenuItemSpriteExtra::create((__int64)v30, 0, a1, (__int64)sub_1002778C0, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v31 + 160LL))(v31, 1.0); v31[101] = 1065353216; if ( v27 ) (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v27 + 456LL))(v27, v31); sub_1007FEBF0(*(_QWORD *)(a1 + 696), v31); (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v31 + 72LL))(v31, 3); sub_1007FEBF0(v70, v31); v32 = *(_QWORD *)(a1 + 552); v33 = sub_10088E820("%i", v62); v34 = cocos2d::CCString::getCString(v33); v35 = ButtonSprite::create_1(v34, 0x14u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v36 = CCMenuItemSpriteExtra::create((__int64)v35, 0, a1, (__int64)sub_1002778C0, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v36 + 160LL))(v36, 1.0); v36[101] = 1065353216; if ( v32 ) (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v32 + 456LL))(v32, v36); sub_1007FEBF0(*(_QWORD *)(a1 + 696), v36); (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v36 + 72LL))(v36, 4); sub_1007FEBF0(v70, v36); v37 = *(_QWORD *)(a1 + 552); v38 = sub_10088E820("%i", v63); v39 = cocos2d::CCString::getCString(v38); v40 = ButtonSprite::create_1(v39, 0x14u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v41 = CCMenuItemSpriteExtra::create((__int64)v40, 0, a1, (__int64)sub_1002778C0, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v41 + 160LL))(v41, 1.0); v41[101] = 1065353216; if ( v37 ) (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v37 + 456LL))(v37, v41); sub_1007FEBF0(*(_QWORD *)(a1 + 696), v41); (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v41 + 72LL))(v41, 5); sub_1007FEBF0(v70, v41); v42 = a1; for ( i = 6; i != 11; ++i ) { v44 = *(_QWORD *)(v42 + 552); v45 = sub_10088E820("%i", v64); v46 = cocos2d::CCString::getCString(v45); v47 = ButtonSprite::create_1(v46, 0x14u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v48 = CCMenuItemSpriteExtra::create((__int64)v47, 0, v42, (__int64)sub_1002778C0, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v48 + 160LL))(v48, 1.0); v48[101] = 1065353216; if ( v44 ) (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v44 + 456LL))(v44, v48); sub_1007FEBF0(*(_QWORD *)(v42 + 696), v48); (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v48 + 72LL))(v48, i); sub_1007FEBF0(v65, v48); } v49 = *(_QWORD *)(v42 + 552); sub_100278250(&v69, (float)(v71 * 0.5) + -30.0, (float)((float)(v72 * 0.5) + 23.0) + 3.0); cocos2d::CCNode::convertToNodeSpace(&v68, v49, (unsigned int *)&v69); GameToolbox::alignItemsHorisontally(v70, &v68, 0, 18.0); v50 = *(_QWORD *)(v42 + 552); sub_100278250(&v69, (float)(v71 * 0.5) + -30.0, (float)((float)(v72 * 0.5) + -23.0) + 3.0); inited = v73; cocos2d::CCNode::convertToNodeSpace(&v68, v50, (unsigned int *)&v69); GameToolbox::alignItemsHorisontally(v65, &v68, 0, 18.0); sub_100278250(&v69, (float)(v71 * 0.5) + -30.0, v72 * 0.5); sub_100278250(&v66, 172.0, 2.0); sub_100278350(&v68, &v69, &v66); v51 = GJDifficultySprite::create(0, 1); *(_QWORD *)(v42 + 736) = v51; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v51 + 160LL))(v51, 1.2); if ( *(_BYTE *)(v42 + 681) == 1 ) { v52 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v42 + 736), 0, v42, (__int64)RateStarsLayer::onFeature, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v42 + 552) + 456LL))(*(_QWORD *)(v42 + 552), v52); cocos2d::CCNode::convertToNodeSpace(&v69, *(_QWORD *)(v42 + 552), (unsigned int *)&v68); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v52 + 184LL))(v52, &v69); } else { (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(v42 + 584) + 464LL))( *(_QWORD *)(v42 + 584), *(_QWORD *)(v42 + 736), 11); (*(void (__fastcall **)(_QWORD, double *))(**(_QWORD **)(v42 + 736) + 184LL))(*(_QWORD *)(v42 + 736), &v68); } sub_1007FF190(v70); v53 = sub_100059E00((__int64)"Cancel"); v54 = CCMenuItemSpriteExtra::create(v53, 0, v42, (__int64)RateStarsLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v42 + 552) + 456LL))(*(_QWORD *)(v42 + 552), v54); sub_1007FEBF0(v70, v54); v55 = sub_100059E00((__int64)"Submit"); v56 = CCMenuItemSpriteExtra::create(v55, 0, v42, (__int64)RateStarsLayer::onRate, 0); *(_QWORD *)(v42 + 688) = v56; (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v42 + 552) + 456LL))(*(_QWORD *)(v42 + 552), v56); sub_1007FEBF0(v70, *(_QWORD *)(v42 + 688)); v57 = *(_QWORD *)(v42 + 552); sub_100278250(&v66, v71 * 0.5, (float)((float)(0.5 * v72) + -90.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(&v69, v57, &v66); GameToolbox::alignItemsHorisontally(v70, &v69, 0, 15.0); sub_1002778C0(v42, 0); if ( (*(_BYTE *)&v67.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v67.__r_.__value_.__l.__data_); } return inited; }
GD Web Decomp Icon

GD Web Decomp

Raw Source