// // EditLevelLayer::setupLevelInfo from 0x1001dec70 to 0x1001df3d7 (1895 bytes) // // 1 xrefs: // > EditLevelLayer::init @ 0x1001dda80 // // 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:26:27 +0000 // void __fastcall EditLevelLayer::setupLevelInfo(_QWORD *a1, __int64 a2) { __int64 v3; // rax __int64 v4; // r14 _QWORD *v5; // r15 _QWORD *v6; // r12 _QWORD *v7; // r13 __int64 v8; // rsi __int64 v9; // rax __int64 v10; // rsi __int64 v11; // rax __int64 v12; // rsi __int64 v13; // rax std::string::pointer data; // rdi __int64 v15; // r12 std::string::pointer v16; // rdi __int64 v17; // r13 __int64 v18; // rax const std::string::value_type *v19; // rsi std::string::pointer v20; // rdi __int64 v21; // r15 _QWORD *v22; // rsi __int64 v23; // rax double v24; // xmm0_8 __int64 v25; // rax __int64 CString; // rax __int64 v27; // r14 _DWORD *v28; // rcx const char *v29; // rax __int64 v30; // rax __int64 v31; // rax __int64 v32; // r15 __int64 v33; // rax double v34; // xmm0_8 float *v35; // rax _DWORD *v36; // rax char v37; // cl int v38; // edx char v39; // [rsp+0h] [rbp-A0h] char v40; // [rsp+0h] [rbp-A0h] __int64 v41; // [rsp+8h] [rbp-98h] __int64 v42; // [rsp+10h] [rbp-90h] int v43; // [rsp+18h] [rbp-88h] BYREF _QWORD *v44; // [rsp+20h] [rbp-80h] _QWORD *v45; // [rsp+28h] [rbp-78h] _QWORD *v46; // [rsp+30h] [rbp-70h] char v47[8]; // [rsp+38h] [rbp-68h] BYREF __int64 v48; // [rsp+40h] [rbp-60h] char v49[8]; // [rsp+48h] [rbp-58h] BYREF __int64 v50; // [rsp+50h] [rbp-50h] std::string v51; // [rsp+58h] [rbp-48h] BYREF _BYTE v52[48]; // [rsp+70h] [rbp-30h] BYREF v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(&v43, v3); v4 = sub_1007FE900(&v43); v5 = (_QWORD *)cocos2d::CCNode::create(&v43); (*(void (__fastcall **)(_QWORD *, _QWORD *))(*a1 + 456LL))(a1, v5); v6 = (_QWORD *)cocos2d::CCNode::create(a1); (*(void (__fastcall **)(_QWORD *, _QWORD *))(*a1 + 456LL))(a1, v6); v7 = (_QWORD *)cocos2d::CCNode::create(a1); (*(void (__fastcall **)(_QWORD *, _QWORD *))(*a1 + 456LL))(a1, v7); v8 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"); v9 = *v5; v44 = v5; v41 = v8; (*(void (__fastcall **)(_QWORD *))(v9 + 456))(v5); v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_noteIcon_001.png"); v11 = *v6; v45 = v6; v42 = v10; (*(void (__fastcall **)(_QWORD *))(v11 + 456))(v6); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v13 = *v7; v46 = v7; v48 = v12; (*(void (__fastcall **)(_QWORD *))(v13 + 456))(v7); GJGameLevel::lengthKeyToString(&v51, *(unsigned int *)(a1[59] + 900LL)); if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 ) data = v51.__r_.__value_.__l.__data_; else data = v51.__r_.__value_.__s.__data_; v15 = cocos2d::CCLabelBMFont::create_3(data, "bigFont.fnt"); if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v51.__r_.__value_.__l.__data_); (*(void (__fastcall **)(_QWORD *, __int64))(*v44 + 456LL))(v44, v15); if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 328LL))(v15)) <= 0.5 ) (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 328LL))(v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 160LL))(v15); GJGameLevel::getSongName(&v51); if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 ) v16 = v51.__r_.__value_.__l.__data_; else v16 = v51.__r_.__value_.__s.__data_; v17 = cocos2d::CCLabelBMFont::create_3(v16, "bigFont.fnt"); if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v51.__r_.__value_.__l.__data_); (*(void (__fastcall **)(_QWORD *, __int64))(*v45 + 456LL))(v45, v17); if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17)) <= 0.5 ) (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 160LL))(v17); *(_WORD *)&v51.__r_.__value_.__l.0 = 0; v18 = a1[59]; if ( *(_BYTE *)(v18 + 785) ) { v19 = "Uploaded"; LABEL_19: std::string::assign(&v51, v19); goto LABEL_20; } if ( *(_DWORD *)(v18 + 776) - *(_DWORD *)(v18 + 780) == 1 ) { v19 = "Verified"; goto LABEL_19; } std::string::assign(&v51, "Unverified"); if ( *(int *)(a1[59] + 964LL) > 0 ) { std::string::assign(&v51, "Unverified\nReq. Coins: "); v36 = (_DWORD *)a1[59]; v37 = 1; if ( v36[252] - v36[253] != 1 ) { std::string::append(&v51, "1"); v36 = (_DWORD *)a1[59]; v37 = 0; } v38 = v36[241]; if ( v38 >= 2 ) { if ( v36[255] - v36[256] != 1 ) { if ( !v37 ) std::string::append(&v51, ", "); std::string::append(&v51, "2"); v36 = (_DWORD *)a1[59]; v38 = v36[241]; v37 = 0; } if ( v38 >= 3 && v36[258] - v36[259] != 1 ) { if ( !v37 ) std::string::append(&v51, ", "); std::string::append(&v51, "3"); } } } LABEL_20: if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 ) v20 = v51.__r_.__value_.__l.__data_; else v20 = v51.__r_.__value_.__s.__data_; v50 = cocos2d::CCLabelBMFont::create_3(v20, "bigFont.fnt"); (*(void (__fastcall **)(_QWORD *, __int64))(*v46 + 456LL))(v46, v50); cocos2d::CCLabelBMFont::limitLabelWidth(v50, 100.0, 0.5, 0.0); v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v48 + 192LL))(v48); sub_100278250(v49, 0.0, 2.0); sub_100278350(v52, v21, v49); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v48 + 184LL))(v48, v52); sub_1007FF190(v4); sub_1007FEBF0(v4, v41); sub_1007FEBF0(v4, v15); sub_1002782D0(v52, &unk_100BE1438); GameToolbox::alignItemsHorisontally(v4, v52, 0, 4.0); sub_1007FF190(v4); sub_1007FEBF0(v4, v42); sub_1007FEBF0(v4, v17); sub_1002782D0(v52, &unk_100BE1438); GameToolbox::alignItemsHorisontally(v4, v52, 0, 4.0); sub_1007FF190(v4); sub_1007FEBF0(v4, v48); sub_1007FEBF0(v4, v50); sub_1002782D0(v52, &unk_100BE1438); GameToolbox::alignItemsHorisontally(v4, v52, 0, 4.0); sub_1007FF190(v4); sub_1007FEBF0(v4, v44); sub_1007FEBF0(v4, v45); v22 = v46; sub_1007FEBF0(v4, v46); LODWORD(v50) = v43; v23 = cocos2d::CCDirector::sharedDirector(v4, v22); v24 = sub_100479750(v23); sub_100278250(v52, *(float *)&v50 * 0.5, *(float *)&v24 + 55.0); GameToolbox::alignItemsHorisontally(v4, v52, 0, 140.0); v25 = sub_10088E820("Version: %i", v39); CString = cocos2d::CCString::getCString(v25); v27 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, v27); v28 = (_DWORD *)a1[59]; if ( v28[82] != v28[83] ) { v30 = sub_10088E820("ID: %i", v40); v29 = (const char *)cocos2d::CCString::getCString(v30); if ( *(_DWORD *)(a1[59] + 988LL) == *(_DWORD *)(a1[59] + 992LL) ) goto LABEL_28; goto LABEL_27; } v29 = "ID: na"; if ( v28[247] != v28[248] ) { LABEL_27: v31 = sub_10088E820("%s (%i)", v40); v29 = (const char *)cocos2d::CCString::getCString(v31); } LABEL_28: v32 = cocos2d::CCLabelBMFont::create_3(v29, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, v32); LODWORD(v50) = v43; v33 = cocos2d::CCDirector::sharedDirector(a1, v32); v34 = sub_100479750(v33); sub_100278250(v52, *(float *)&v50 * 0.5, *(float *)&v34 + 14.0); sub_100278250(v47, -75.0, 0.0); sub_100278350(v49, v52, v47); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v27 + 184LL))(v27, v49); sub_100278250(v47, 75.0, 0.0); sub_100278350(v49, v52, v47); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v32 + 184LL))(v32, v49); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, 0.60000002); if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 328LL))(v32) > 150.0 ) { v35 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 328LL))(v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 150.0 / *v35); } if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v32 + 168LL))(v32) < 0.60000002 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 168LL))(v32, 0.60000002); (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v32 + 160LL))(v32, COERCE_DOUBLE(1058642330)); if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v51.__r_.__value_.__l.__data_); }