// // LevelInfoLayer::setupProgressBars from 0x14041f820 to 0x14041fbfa (986 bytes) // // 2 xrefs: // > LevelInfoLayer::init @ 0x14041cef8 // > @ 0x1409267bc // // 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:32:08 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall LevelInfoLayer::setupProgressBars(_QWORD *a1) { __int64 v2; // rax cocos2d::CCString *v3; // rax const char *CString; // rax size_t v5; // rbx size_t v6; // r8 __int64 v7; // rcx _DWORD *v8; // rcx int v9; // edx cocos2d::CCString *v10; // rax char *v11; // rax void **v12; // rdi int v13; // ebx cocos2d::CCDirector *v14; // rax float v15; // xmm0_4 int v16; // eax __int64 v17; // r14 struct cocos2d::CCSprite *v18; // rax int v19; // ebx cocos2d::CCObject *v20; // rax struct cocos2d::CCMenu *v21; // rdi float v22; // xmm6_4 double v23; // xmm0_8 __int64 v24; // rax __int64 v25; // rbx __int64 v26; // rax cocos2d::CCString *v27; // rax const char *v28; // rdi __int64 v29; // rax __int64 v30; // rbx __int64 v31; // rax void *v32; // rcx __int16 v33; // [rsp+38h] [rbp-29h] BYREF char v34; // [rsp+3Ah] [rbp-27h] void *v35; // [rsp+48h] [rbp-19h] BYREF float v36; // [rsp+50h] [rbp-11h] BYREF _BYTE v37[8]; // [rsp+58h] [rbp-9h] BYREF _BYTE v38[8]; // [rsp+60h] [rbp-1h] BYREF void *Block[2]; // [rsp+68h] [rbp+7h] BYREF __int64 v40; // [rsp+78h] [rbp+17h] unsigned __int64 v41; // [rsp+80h] [rbp+1Fh] v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v36); v3 = cocos2d::CCString::createWithFormat("%i%%", *(_DWORD *)(a1[63] + 932LL) - *(_DWORD *)(a1[63] + 928LL)); CString = cocos2d::CCString::getCString(v3); *(_OWORD *)Block = 0; v40 = 0; v41 = 0; v5 = -1; v6 = -1; do ++v6; while ( CString[v6] ); sub_14003D230(Block, CString, v6); v7 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v35 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v35); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v7 = qword_14090BFD0; } if ( GameManager::getGameVariable(v7, "0099") ) { v8 = (_DWORD *)a1[63]; v9 = v8[237] - v8[238]; if ( v8[233] - v8[232] != v9 ) { v10 = cocos2d::CCString::createWithFormat(" (%i%%)", v9); v11 = (char *)cocos2d::CCString::getCString(v10); do ++v5; while ( v11[v5] ); sub_140044D80(Block, v11, v5); } } v33 = -256; v34 = 0; v12 = Block; if ( v41 > 0xF ) v12 = (void **)Block[0]; v13 = *(_DWORD *)(a1[63] + 932LL) - *(_DWORD *)(a1[63] + 928LL); v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); v15 = cocos2d::CCDirector::getScreenBottom(v14) + 136.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v36 * 0.5, v15); v17 = LevelInfoLayer::addProgressBar((_DWORD)a1, v16, v13, (unsigned int)&v33, (__int64)"Normal Mode", (__int64)v12); if ( *(_DWORD *)(a1[63] + 972LL) != 5 ) { v18 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_death_001.png"); v19 = (int)v18; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v18 + 160LL))(v18); v20 = CCMenuItemSpriteExtra::create(v19, 0, (int)a1, (__int64)LevelInfoLayer::onDeathTracker); v21 = cocos2d::CCMenu::createWithItem(v20); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCMenu *, __int64))(*a1 + 456LL))(a1, v21, 3); v22 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 320LL))(v17); v23 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v17 + 168LL))(v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, (float)((float)(*(float *)&v23 * v22) * 0.5) + 22.0, 0.0); v25 = v24; v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 200LL))(v17); cocos2d::CCPoint::operator+(v26, &v35, v25); (*(void (__fastcall **)(struct cocos2d::CCMenu *, void **))(*(_QWORD *)v21 + 184LL))(v21, &v35); } v27 = cocos2d::CCString::createWithFormat("%i%%", *(_DWORD *)(a1[63] + 960LL)); v28 = cocos2d::CCString::getCString(v27); v33 = -256; v34 = -1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, -32.0); v30 = v29; v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 200LL))(v17); cocos2d::CCPoint::operator+(v31, &v35, v30); LevelInfoLayer::addProgressBar( (_DWORD)a1, (unsigned int)&v35, *(_DWORD *)(a1[63] + 960LL), (unsigned int)&v33, (__int64)"Practice Mode", (__int64)v28); if ( v41 > 0xF ) { v32 = Block[0]; if ( v41 + 1 >= 0x1000 ) { v32 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v32 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v32); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source