// // RetryLevelLayer::customSetup from 0x1403cb060 to 0x1403cb7b6 (1878 bytes) // // 2 xrefs: // > @ 0x1405cd280 // > @ 0x1406d7b2c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=5 void RetryLevelLayer::customSetup(RetryLevelLayer *a1) { float v1; // xmm0_4 cocos2d::CCDirector *v3; // rax __int64 v4; // rax const char *v5; // rcx struct cocos2d::CCLabelBMFont *v6; // rdi cocos2d::CCLabelBMFont_vtbl *v7; // rbx const cocos2d::CCPoint *v8; // rax _BOOL8 v9; // r8 _BOOL8 v10; // r8 float v11; // xmm0_4 double v12; // xmm0_8 __int64 v13; // rdx cocos2d::CCString *v14; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v16; // r14 __int64 v17; // rax int v18; // r8d int v19; // r9d int v20; // r10d cocos2d::CCString *v21; // rax const char *v22; // rax cocos2d::CCString *v23; // rax const char *v24; // rax struct cocos2d::CCLabelBMFont *v25; // rdi float v26; // xmm0_4 __int64 v27; // rax __int64 v28; // rcx cocos2d::CCMenu *v29; // rax float v30; // xmm0_4 struct cocos2d::CCSprite *v31; // rax CCMenuItemSpriteExtra *v32; // r14 float v33; // xmm0_4 struct cocos2d::CCSprite *v34; // rax CCMenuItemSpriteExtra *v35; // r15 float v36; // xmm0_4 double v37; // xmm0_8 __int64 v38; // rcx struct cocos2d::CCSprite *v39; // rdi cocos2d::CCNode *v40; // rax struct cocos2d::CCSprite *v41; // rdi cocos2d::CCNode *v42; // rax struct cocos2d::CCPoint v43; // rax double v44; // xmm0_8 struct cocos2d::CCPoint v45; // [rsp+28h] [rbp-39h] BYREF struct cocos2d::CCPoint v46; // [rsp+30h] [rbp-31h] BYREF float v47; // [rsp+38h] [rbp-29h] struct cocos2d::CCPoint v48; // [rsp+40h] [rbp-21h] BYREF struct cocos2d::CCPoint v49; // [rsp+48h] [rbp-19h] BYREF cocos2d::CCPoint v50; // [rsp+50h] [rbp-11h] BYREF _QWORD v51[3]; // [rsp+58h] [rbp-9h] BYREF unsigned __int64 v52; // [rsp+70h] [rbp+Fh] v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v3); v4 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v45 = (struct cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v45); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v4 = qword_1406C2ED8; } sub_14003BDB0((__int64)v51, *(_QWORD *)(*(_QWORD *)(v4 + 520) + 2168LL) + 344LL); v5 = (const char *)v51; if ( v52 > 0xF ) v5 = (const char *)v51[0]; v6 = cocos2d::CCLabelBMFont::create(v5, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v51); v7 = v6->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v1, v47 * 0.5); v7->setPosition_0(v6, v8); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v6); cocos2d::CCLabelBMFont::limitLabelWidth(v6, 320.0, 0.0, 0.0); RetryLevelLayer::setupLastProgress(a1); LOBYTE(v9) = 1; a1->m_mainLayer->removeChildByTag(a1->m_mainLayer, 0, v9); LOBYTE(v10) = 1; a1->m_mainLayer->removeChildByTag(a1->m_mainLayer, 1, v10); v11 = ((float (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setVisible)(a1->m_buttonMenu, 0); cocos2d::CCPoint::CCPoint(v11, 0.0); cocos2d::CCPoint::operator+(&a1->m_endPosition, &v46); v12 = cocos2d::CCPoint::operator=(&a1->m_endPosition, &v46); cocos2d::CCPoint::CCPoint(*(float *)&v12, v47 * 0.5); v13 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v45 = (struct cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v45); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v13 = qword_1406C2ED8; } v14 = cocos2d::CCString::createWithFormat("Jumps: %i", *(_DWORD *)(*(_QWORD *)(v13 + 520) + 14704LL)); CString = cocos2d::CCString::getCString(v14); v16 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v16, 3); v16->setPosition_0(v16, &v50); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v16->setScale_0)(v16); v17 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v45 = (struct cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v45); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v17 = qword_1406C2ED8; } v18 = (int)*(double *)(*(_QWORD *)(v17 + 520) + 968LL); v19 = v18 % 60; v20 = v18 / 60 % 60; if ( v18 / 3600 ) v21 = cocos2d::CCString::createWithFormat("%02d:%02d:%02d", v18 / 3600, v20, v19); else v21 = cocos2d::CCString::createWithFormat("%02d:%02d", v20, v19); v22 = cocos2d::CCString::getCString(v21); v23 = cocos2d::CCString::createWithFormat("Time: %s", v22); v24 = cocos2d::CCString::getCString(v23); v25 = cocos2d::CCLabelBMFont::create(v24, "goldFont.fnt"); v26 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v25, 3); cocos2d::CCPoint::CCPoint(v26, 0.0); v27 = (__int64)v16->getPosition_0(v16); cocos2d::CCPoint::operator+(v27, &v46); v25->setPosition_0(v25, &v46); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v25->setScale_0)(v25); v29 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v28); a1->m_mainMenu = v29; v30 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v29, 1); cocos2d::CCPoint::CCPoint(v30, v47 * 0.5); cocos2d::CCNode::convertToWorldSpace(a1->m_mainLayer, &v46); cocos2d::CCNode::convertToNodeSpace(a1->m_mainMenu, &v49); v31 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_replayBtn_001.png"); v32 = CCMenuItemSpriteExtra::create(v31, nullptr, a1, (cocos2d::SEL_MenuHandler *)RetryLevelLayer::onReplay); v33 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_mainMenu->addChild_1)( a1->m_mainMenu, v32); cocos2d::CCPoint::CCPoint(v33, -100.0); cocos2d::CCPoint::operator+(&v49, &v46); v32->setPosition_0(v32, &v46); v34 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); v35 = CCMenuItemSpriteExtra::create(v34, nullptr, a1, (cocos2d::SEL_MenuHandler *)RetryLevelLayer::onMenu); v36 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_mainMenu->addChild_1)( a1->m_mainMenu, v35); cocos2d::CCPoint::CCPoint(v36, 100.0); v37 = cocos2d::CCPoint::operator+(&v49, &v46); v35->setPosition_0(v35, &v46); a1->m_mainLayer->setPosition_0(a1->m_mainLayer, &a1->m_endPosition); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v38) + 197) ) { v39 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v39, 10); v32->getPosition_0(v32); v40 = v32->getParent(v32); cocos2d::CCNode::convertToWorldSpace(v40, &v45); cocos2d::CCNode::convertToNodeSpace(a1->m_mainLayer, &v46); cocos2d::CCPoint::CCPoint(*(float *)&v37, 0.0); cocos2d::CCPoint::operator+(&v46, &v45); v39->setPosition_0(v39, &v45); v41 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_B_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v41, 10); v35->getPosition_0(v35); v42 = v35->getParent(v35); cocos2d::CCNode::convertToWorldSpace(v42, &v48); v43 = cocos2d::CCNode::convertToNodeSpace(a1->m_mainLayer, &v45); v44 = ((double (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v46, v43); cocos2d::CCPoint::CCPoint(*(float *)&v44, 0.0); cocos2d::CCPoint::operator+(&v46, &v45); v41->setPosition_0(v41, &v45); ((void (__fastcall *)(struct cocos2d::CCSprite *))v41->setScale_0)(v41); } HIWORD(v51[1]) = 0; v51[2] = 13; v52 = 15; strcpy((char *)v51, "Geometry Dash"); sub_14003A830((__int64)v51); }
GD Web Decomp Icon

GD Web Decomp

Raw Source