// // PauseLayer::setupLegacyProgressBars from 0x1003c2510 to 0x1003c2865 (853 bytes) // // 1 xrefs: // > PauseLayer::setupProgressBars @ 0x1003c0fcf // // 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:29:33 +0000 // __int64 __fastcall PauseLayer::setupLegacyProgressBars(__int64 a1, __int64 a2) { __int64 v3; // rbx __int64 v4; // rax unsigned int NormalPercent; // eax __int64 ProgressBar; // r15 __int64 v7; // rdi __int64 v8; // r12 __int64 v9; // r14 unsigned __int64 *v10; // r13 __int64 v11; // rax __int64 CString; // rax __int64 v13; // rbx __int64 v14; // r12 __int64 v15; // rax __int64 v16; // rax __int64 v17; // rax __int64 v18; // rbx __int64 v19; // r13 __int64 v20; // rax __int64 v21; // r12 unsigned __int64 *v22; // rbx __int64 v23; // r15 unsigned __int64 *v24; // rbx char v26; // [rsp+0h] [rbp-50h] float v27[2]; // [rsp+8h] [rbp-48h] BYREF unsigned __int64 v28; // [rsp+10h] [rbp-40h] BYREF __int64 v29; // [rsp+18h] [rbp-38h] double v30[6]; // [rsp+20h] [rbp-30h] BYREF v3 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL); v4 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(v27, v4); NormalPercent = GJGameLevel::getNormalPercent(v3); ProgressBar = GameToolbox::createProgressBar(NormalPercent, 65280, 1.0); v7 = *(_QWORD *)(a1 + 632); v8 = a1; v29 = a1; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v7 + 464LL))(v7, ProgressBar, 3); sub_100278250((float *)v30, v27[0] * 0.5, (float)(v27[1] * 0.5) + 80.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)ProgressBar + 184LL))(ProgressBar, v30); v9 = GameToolbox::createProgressBar(*(unsigned int *)(v3 + 888), 16776960, 1.0); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v8 + 632) + 464LL))(*(_QWORD *)(v8 + 632), v9, 3); v10 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); sub_100278250((float *)&v28, 0.0, -50.0); sub_100278350(v30, v10, &v28); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v9 + 184LL))(v9, v30); GJGameLevel::getNormalPercent(v3); v11 = sub_10088E820("%i%%", v3); CString = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCLabelBMFont::create_3(CString, "bigFont.fnt"); v14 = v29; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v29 + 632) + 464LL))(*(_QWORD *)(v29 + 632), v13, 4); v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, v15); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.5); v16 = sub_10088E820("%i%%", v26); v17 = cocos2d::CCString::getCString(v16); v18 = cocos2d::CCLabelBMFont::create_3(v17, "bigFont.fnt"); v19 = v14; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v14 + 632) + 464LL))(*(_QWORD *)(v14 + 632), v18, 4); v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 184LL))(v18, v20); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.5); v21 = cocos2d::CCLabelBMFont::create_3("Normal Mode", "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v19 + 632) + 464LL))(*(_QWORD *)(v19 + 632), v21, 4); v22 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)ProgressBar + 192LL))(ProgressBar); sub_100278250((float *)&v28, 0.0, 20.0); sub_100278350(v30, v22, &v28); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v21 + 184LL))(v21, v30); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.5); v23 = cocos2d::CCLabelBMFont::create_3("Practice Mode", "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v29 + 632) + 464LL))(*(_QWORD *)(v29 + 632), v23, 4); v24 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9); sub_100278250((float *)&v28, 0.0, 20.0); sub_100278350(v30, v24, &v28); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v23 + 184LL))(v23, v30); return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 160LL))(v23, 0.5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source