// // RetryLevelLayer::customSetup from 0x1405609b0 to 0x140561141 (1937 bytes) // // 2 xrefs: // > @ 0x1407daee8 // > @ 0x14092c42c // // 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:34:15 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall RetryLevelLayer::customSetup(__int64 a1) { __int64 v2; // rax __int64 v3; // rax const char *v4; // rcx struct cocos2d::CCLabelBMFont *v5; // rdi __int64 v6; // rbx __int64 v7; // rax __int64 v8; // r8 __int64 v9; // r8 __int64 v10; // rax __int64 v11; // rdx cocos2d::CCString *v12; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v14; // rsi __int64 v15; // rax int v16; // r8d int v17; // r9d int v18; // r10d cocos2d::CCString *v19; // rax const char *v20; // rax cocos2d::CCString *v21; // rax const char *v22; // rax struct cocos2d::CCLabelBMFont *v23; // rdi __int64 v24; // rax __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rcx __int64 v28; // rax __int64 v29; // rbx __int64 v30; // rdi __int64 v31; // rax __int64 v32; // rax int v33; // eax cocos2d::CCObject *v34; // r12 __int64 v35; // rax int v36; // eax cocos2d::CCObject *v37; // r13 __int64 v38; // rax __int64 v39; // rcx struct cocos2d::CCSprite *v40; // r14 __int64 (__fastcall *v41)(cocos2d::CCObject *); // rdi __int64 v42; // rsi __int64 v43; // rbx __int64 v44; // rax __int64 v45; // rax __int64 v46; // rax struct cocos2d::CCSprite *v47; // r14 __int64 (__fastcall *v48)(cocos2d::CCObject *); // rdi __int64 v49; // rsi __int64 v50; // rbx __int64 v51; // rax __int64 v52; // rax __int64 v53; // rax __int64 v54; // rax void *v55; // [rsp+28h] [rbp-39h] BYREF _BYTE v56[8]; // [rsp+30h] [rbp-31h] BYREF float v57; // [rsp+38h] [rbp-29h] BYREF float v58; // [rsp+3Ch] [rbp-25h] _BYTE v59[8]; // [rsp+40h] [rbp-21h] BYREF _BYTE v60[8]; // [rsp+48h] [rbp-19h] BYREF _BYTE v61[8]; // [rsp+50h] [rbp-11h] BYREF _QWORD v62[3]; // [rsp+58h] [rbp-9h] BYREF unsigned __int64 v63; // [rsp+70h] [rbp+Fh] v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v57); v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v55 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v55); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } sub_14003F4F0((__int64)v62, *(_QWORD *)(*(_QWORD *)(v3 + 560) + 2168LL) + 344LL); v4 = (const char *)v62; if ( v63 > 0xF ) v4 = (const char *)v62[0]; v5 = cocos2d::CCLabelBMFont::create(v4, (const char *)&qword_140704F78); sub_14003D310((__int64)v62); v6 = *(_QWORD *)v5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, v57 * 0.5, (float)((float)(v58 * 0.5) + 80.0) - 15.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v6 + 184))(v5, v7); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 464LL))( *(_QWORD *)(a1 + 576), v5); cocos2d::CCLabelBMFont::limitLabelWidth(v5, 320.0, 0.0, 0.0); RetryLevelLayer::setupLastProgress(a1); LOBYTE(v8) = 1; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 576) + 552LL))(*(_QWORD *)(a1 + 576), 0, v8); LOBYTE(v9) = 1; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 552LL))(*(_QWORD *)(a1 + 576), 1, v9); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 560) + 336LL))(*(_QWORD *)(a1 + 560), 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, 0.0, 5.0); cocos2d::CCPoint::operator+(a1 + 544, v56, v10); cocos2d::CCPoint::operator=(a1 + 544, v56); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, v57 * 0.5, (float)((float)(v58 * 0.5) - 10.0) - 15.0); v11 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v55 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v55); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v11 = qword_14090BFD0; } v12 = cocos2d::CCString::createWithFormat("Jumps: %i", *(_DWORD *)(*(_QWORD *)(v11 + 560) + 15304LL)); CString = cocos2d::CCString::getCString(v12); v14 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))( *(_QWORD *)(a1 + 576), v14, 3); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v61); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v14 + 160LL))(v14); v15 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v55 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v55); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v15 = qword_14090BFD0; } v16 = (int)*(double *)(*(_QWORD *)(v15 + 560) + 968LL); v17 = v16 % 60; v18 = v16 / 60 % 60; if ( v16 / 3600 ) v19 = cocos2d::CCString::createWithFormat("%02d:%02d:%02d", v16 / 3600, v18, v17); else v19 = cocos2d::CCString::createWithFormat("%02d:%02d", v18, v17); v20 = cocos2d::CCString::getCString(v19); v21 = cocos2d::CCString::createWithFormat("Time: %s", v20); v22 = cocos2d::CCString::getCString(v21); v23 = cocos2d::CCLabelBMFont::create(v22, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))( *(_QWORD *)(a1 + 576), v23, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, 0.0, -24.0); v25 = v24; v26 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v14 + 200LL))(v14); cocos2d::CCPoint::operator+(v26, v56, v25); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v23 + 184LL))(v23, v56); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 160LL))(v23); v28 = cocos2d::CCMenu::create(v27); *(_QWORD *)(a1 + 616) = v28; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(*(_QWORD *)(a1 + 576), v28, 1); v29 = *(_QWORD *)(a1 + 576); v30 = *(_QWORD *)(a1 + 616); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, v57 * 0.5, (float)((float)(v58 * 0.5) - 115.0) - 10.0); cocos2d::CCNode::convertToWorldSpace(v29, v56, v31); cocos2d::CCNode::convertToNodeSpace(v30, v60, v32); v33 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_replayBtn_001.png"); v34 = CCMenuItemSpriteExtra::create(v33, 0, a1, (__int64)RetryLevelLayer::onReplay); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 616) + 464LL))(*(_QWORD *)(a1 + 616), v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, -100.0, 0.0); cocos2d::CCPoint::operator+(v60, v56, v35); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v34 + 184LL))(v34, v56); v36 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); v37 = CCMenuItemSpriteExtra::create(v36, 0, a1, (__int64)RetryLevelLayer::onMenu); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 616) + 464LL))(*(_QWORD *)(a1 + 616), v37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, 100.0, 0.0); cocos2d::CCPoint::operator+(v60, v56, v38); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v37 + 184LL))(v37, v56); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 576) + 184LL))(*(_QWORD *)(a1 + 576), a1 + 544); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v39) + 209) ) { v40 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))( *(_QWORD *)(a1 + 576), v40, 10); v41 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v34 + 504LL); v42 = *(_QWORD *)(a1 + 576); v43 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v34 + 200LL))(v34); v44 = v41(v34); cocos2d::CCNode::convertToWorldSpace(v44, &v55, v43); cocos2d::CCNode::convertToNodeSpace(v42, v56, v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, 0.0, -25.0); cocos2d::CCPoint::operator+(v56, &v55, v46); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v40 + 184LL))(v40, &v55); v47 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_B_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))( *(_QWORD *)(a1 + 576), v47, 10); v48 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v37 + 504LL); v49 = *(_QWORD *)(a1 + 576); v50 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v37 + 200LL))(v37); v51 = v48(v37); cocos2d::CCNode::convertToWorldSpace(v51, v59, v50); cocos2d::CCNode::convertToNodeSpace(v49, &v55, v52); cocos2d::CCPoint::operator=(v56, v53); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, 0.0, -25.0); cocos2d::CCPoint::operator+(v56, &v55, v54); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v47 + 184LL))(v47, &v55); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v47 + 160LL))(v47); } HIWORD(v62[1]) = 0; v62[2] = 13; v63 = 15; strcpy((char *)v62, "Geometry Dash"); sub_14003D310((__int64)v62); }
GD Web Decomp Icon

GD Web Decomp

Raw Source