// // SongInfoLayer::showCustomMusicUnlockInfo from 0x140493c50 to 0x1404942b0 (1632 bytes) // // 3 xrefs: // > SongInfoLayer::onMenuMusic @ 0x140494305 // > SongInfoLayer::onPracticeMusic @ 0x1404943d5 // > @ 0x1406dc134 // // 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=2 void SongInfoLayer::showCustomMusicUnlockInfo(SongInfoLayer *a1) { unsigned __int64 v2; // rbx unsigned __int64 v3; // rsi int v4; // r15d char *v5; // rdi char *v6; // r12 __int64 v7; // r14 char *v8; // rax DialogLayer *DialogLayer; // r14 __int64 v10; // rcx cocos2d::CCDirector *v11; // rax cocos2d::CCLayer_vtbl *v12; // rbx const cocos2d::CCPoint *v13; // rax _BOOL8 v14; // rdx float v15; // xmm2_4 struct cocos2d::CCScaleTo *v16; // rax struct cocos2d::CCEaseElasticOut *v17; // rax cocos2d::ccColor3B *v18; // r8 float v19; // xmm6_4 struct cocos2d::CCFadeTo *v20; // rax cocos2d::ccColor3B *v21; // r8 char *v22; // rax float v23; // [rsp+28h] [rbp-79h] float v24; // [rsp+28h] [rbp-79h] __int16 v25; // [rsp+38h] [rbp-69h] BYREF char v26; // [rsp+3Ah] [rbp-67h] __int128 *v27; // [rsp+48h] [rbp-59h] __int128 v28; // [rsp+50h] [rbp-51h] BYREF unsigned __int64 v29; // [rsp+60h] [rbp-41h] __int64 v30; // [rsp+68h] [rbp-39h] char v31[14]; // [rsp+70h] [rbp-31h] BYREF __int16 v32; // [rsp+7Eh] [rbp-23h] __int64 v33; // [rsp+80h] [rbp-21h] __int64 v34; // [rsp+88h] [rbp-19h] __int128 v35; // [rsp+98h] [rbp-9h] BYREF __int64 v36; // [rsp+A8h] [rbp+7h] __int64 v37; // [rsp+B0h] [rbp+Fh] v35 = 0; v2 = 0; v36 = 0; v3 = 15; v37 = 15; LOBYTE(v35) = 0; v4 = 37; switch ( a1->m_musicCustomizerMessageIndex ) { case 0: v5 = (char *)sub_14003AA10(0x50u); v2 = 70; v36 = 70; v3 = 79; v37 = 79; strcpy(v5, "You need a Music Customizer to change menu and practice music."); *(_QWORD *)&v35 = v5; break; case 1: v5 = (char *)sub_14003AA10(0x60u); v2 = 81; v36 = 81; v3 = 95; v37 = 95; strcpy(v5, "Lucky for you I have one in my shop.\nBut they are very expensive."); *(_QWORD *)&v35 = v5; v4 = 38; break; case 2: v5 = (char *)sub_14003AA10(0x60u); v3 = 95; v2 = 95; v36 = 95; v37 = 95; strcpy(v5, "Find me when you can afford it.\nI need the Mana Orbs..."); *(_QWORD *)&v35 = v5; break; case 3: v5 = (char *)sub_14003AA10(0x50u); v2 = 78; v36 = 78; v3 = 79; v37 = 79; strcpy(v5, "All this clicking makes me want to give you the item for free!"); *(_QWORD *)&v35 = v5; v4 = 39; break; case 4: v5 = (char *)sub_14003AA10(0x40u); v2 = 53; v36 = 53; v3 = 63; v37 = 63; strcpy(v5, "... is something I would never say."); *(_QWORD *)&v35 = v5; break; case 5: v5 = (char *)sub_14003AA10(0x40u); v2 = 56; v36 = 56; v3 = 63; v37 = 63; strcpy(v5, "You really are persistent, I will give you that."); *(_QWORD *)&v35 = v5; v4 = 38; break; case 6: v5 = (char *)sub_14003AA10(0x50u); v2 = 74; v36 = 74; v3 = 79; v37 = 79; strcpy(v5, "I am The Mechanic, not Santa Claus. I don't work for free."); *(_QWORD *)&v35 = v5; v4 = 39; break; default: v5 = (char *)v35; break; } v27 = &v28; v25 = -1; v26 = -1; v28 = 0; v29 = 0; v30 = 0; v6 = (char *)&v35; if ( v3 > 0xF ) v6 = v5; v7 = 0x7FFFFFFFFFFFFFFFLL; v30 = 15; if ( v2 > 0xF ) { if ( (v2 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v7 = v2 | 0xF; if ( (v2 | 0xF) < 0x16 ) v7 = 22; } *(_QWORD *)&v28 = sub_14003AA10(v7 + 1); v29 = v2; v30 = v7; memcpy((void *)v28, v6, v2 + 1); } else { v29 = v2; v28 = *(_OWORD *)v6; } v33 = 12; v34 = 15; strcpy(v31, "The Mechanic"); v31[13] = 0; v32 = 0; v8 = DialogObject::create((__int64)v31, (__int64)&v28, v4, 1.0, 0, (__int64)&v25); DialogLayer = DialogLayer::createDialogLayer((DialogObject *)v8, nullptr, 4); DialogLayer::addToMainScene(DialogLayer); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); v12 = DialogLayer->m_mainLayer->__vftable; cocos2d::CCPoint::CCPoint(1.9431574e-19, *(float *)&v27 * 0.5); v12->setPosition_0(DialogLayer->m_mainLayer, v13); LOBYTE(v14) = 1; DialogLayer->setVisible(DialogLayer, v14); v15 = sub_14003CF30(); DialogLayer->m_animateTime = v15; ((void (__fastcall *)(cocos2d::CCLayer *))DialogLayer->m_mainLayer->setScale_0)(DialogLayer->m_mainLayer); v16 = cocos2d::CCScaleTo::create(0.5, 1.0); v17 = cocos2d::CCEaseElasticOut::create(v16, 0.60000002); cocos2d::CCNode::runAction((CCLightFlash *)DialogLayer->m_mainLayer, (cocos2d::CCPoint)v17, v18, 1.0, v23); v19 = (float)DialogLayer->getOpacity(&DialogLayer->cocos2d::CCRGBAProtocol); if ( v19 > 0.0 ) { DialogLayer->setOpacity(&DialogLayer->cocos2d::CCRGBAProtocol, 0); v20 = cocos2d::CCFadeTo::create(0.14, (int)v19); cocos2d::CCNode::runAction((CCLightFlash *)DialogLayer, (cocos2d::CCPoint)v20, v21, 1.0, v24); } if ( ++a1->m_musicCustomizerMessageIndex > 6 ) a1->m_musicCustomizerMessageIndex = 0; if ( v3 > 0xF ) { v22 = v5; if ( v3 + 1 >= 0x1000 ) { v5 = *((char **)v5 - 1); if ( (unsigned __int64)(v22 - v5 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source