// // PauseLayer::setupLegacyProgressBars from 0x1404da1e0 to 0x1404da5ce (1006 bytes) // // 2 xrefs: // > PauseLayer::customSetup @ 0x1404d6c5b // > @ 0x14092996c // // 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 11:33:04 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall PauseLayer::setupLegacyProgressBars(__int64 a1) { __int64 v2; // rax _DWORD *v3; // rsi __int64 v4; // rax __int64 v5; // rcx struct cocos2d::CCSprite *ProgressBar; // r15 __int64 v7; // rbx __int64 v8; // rax __int64 v9; // rcx struct cocos2d::CCSprite *v10; // r14 __int64 v11; // rax __int64 v12; // rbx __int64 v13; // rax cocos2d::CCString *v14; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v16; // rdi __int64 v17; // rbx __int64 v18; // rax cocos2d::CCString *v19; // rax const char *v20; // rax struct cocos2d::CCLabelBMFont *v21; // rdi __int64 v22; // rbx __int64 v23; // rax struct cocos2d::CCLabelBMFont *v24; // rdi __int64 v25; // rax __int64 v26; // rbx __int64 v27; // rax struct cocos2d::CCLabelBMFont *v28; // rdi __int64 v29; // rax __int64 v30; // rbx __int64 v31; // rax void *v33; // [rsp+70h] [rbp+8h] BYREF float v34; // [rsp+78h] [rbp+10h] BYREF float v35; // [rsp+7Ch] [rbp+14h] char v36; // [rsp+80h] [rbp+18h] BYREF v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v33 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v33); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } v3 = *(_DWORD **)(*(_QWORD *)(v2 + 560) + 2168LL); v4 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v4, &v34); LOWORD(v33) = -256; BYTE2(v33) = 0; ProgressBar = GameToolbox::createProgressBar(v5, v3[233] - v3[232], (__int16 *)&v33); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 632) + 456LL))( *(_QWORD *)(a1 + 632), ProgressBar, 3); v7 = *(_QWORD *)ProgressBar; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, v34 * 0.5, (float)((float)(v35 * 0.5) + 80.0) + 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v7 + 184))(ProgressBar, v8); LOWORD(v33) = -256; BYTE2(v33) = -1; v10 = GameToolbox::createProgressBar(v9, v3[240], (__int16 *)&v33); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 632) + 456LL))( *(_QWORD *)(a1 + 632), v10, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, -50.0); v12 = v11; v13 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)ProgressBar + 200LL))(ProgressBar); cocos2d::CCPoint::operator+(v13, &v33, v12); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v10 + 184LL))(v10, &v33); v14 = cocos2d::CCString::createWithFormat("%i%%", v3[233] - v3[232]); CString = cocos2d::CCString::getCString(v14); v16 = cocos2d::CCLabelBMFont::create(CString, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 632) + 456LL))( *(_QWORD *)(a1 + 632), v16, 4); v17 = *(_QWORD *)v16; v18 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)ProgressBar + 200LL))(ProgressBar); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v17 + 184))(v16, v18); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 160LL))(v16); v19 = cocos2d::CCString::createWithFormat("%i%%", v3[240]); v20 = cocos2d::CCString::getCString(v19); v21 = cocos2d::CCLabelBMFont::create(v20, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 632) + 456LL))( *(_QWORD *)(a1 + 632), v21, 4); v22 = *(_QWORD *)v21; v23 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v10 + 200LL))(v10); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v22 + 184))(v21, v23); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v21 + 160LL))(v21); v24 = cocos2d::CCLabelBMFont::create("Normal Mode", (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 632) + 456LL))( *(_QWORD *)(a1 + 632), v24, 4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, 20.0); v26 = v25; v27 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)ProgressBar + 200LL))(ProgressBar); cocos2d::CCPoint::operator+(v27, &v33, v26); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v24 + 184LL))(v24, &v33); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v24 + 160LL))(v24); v28 = cocos2d::CCLabelBMFont::create("Practice Mode", (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 632) + 456LL))( *(_QWORD *)(a1 + 632), v28, 4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, 20.0); v30 = v29; v31 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v10 + 200LL))(v10); cocos2d::CCPoint::operator+(v31, &v33, v30); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v28 + 184LL))(v28, &v33); return (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v28 + 160LL))(v28); }
GD Web Decomp Icon

GD Web Decomp

Raw Source