// // SongInfoLayer::showCustomMusicUnlockInfo from 0x140635c60 to 0x140636230 (1488 bytes) // // 3 xrefs: // > SongInfoLayer::onMenuMusic @ 0x14063628a // > SongInfoLayer::onPracticeMusic @ 0x14063635a // > @ 0x140930c14 // // 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:35:30 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall SongInfoLayer::showCustomMusicUnlockInfo(__int64 a1) { unsigned __int64 v2; // rbx unsigned __int64 v3; // r15 int v4; // esi char *v5; // r14 char *v6; // r12 __int64 v7; // rdi void **v8; // rax cocos2d::CCLayerColor *DialogLayer; // rsi __int64 v10; // rcx __int64 v11; // rax __int64 *v12; // rdi __int64 v13; // rbx __int64 v14; // rax char *v15; // rax __int16 v16; // [rsp+30h] [rbp-59h] BYREF char v17; // [rsp+32h] [rbp-57h] __int128 *v18; // [rsp+40h] [rbp-49h] BYREF __int128 v19; // [rsp+48h] [rbp-41h] BYREF unsigned __int64 v20; // [rsp+58h] [rbp-31h] __int64 v21; // [rsp+60h] [rbp-29h] char v22[14]; // [rsp+68h] [rbp-21h] BYREF __int16 v23; // [rsp+76h] [rbp-13h] __int64 v24; // [rsp+78h] [rbp-11h] __int64 v25; // [rsp+80h] [rbp-9h] _BYTE v26[8]; // [rsp+88h] [rbp-1h] BYREF __int128 v27; // [rsp+90h] [rbp+7h] BYREF __int64 v28; // [rsp+A0h] [rbp+17h] __int64 v29; // [rsp+A8h] [rbp+1Fh] v27 = 0; v2 = 0; v28 = 0; v3 = 15; v29 = 15; LOBYTE(v27) = 0; v4 = 37; switch ( *(_DWORD *)(a1 + 732) ) { case 0: v5 = (char *)sub_14003D460(0x50u); v2 = 70; v28 = 70; v3 = 79; v29 = 79; strcpy(v5, "You need a Music Customizer to change menu and practice music."); *(_QWORD *)&v27 = v5; break; case 1: v5 = (char *)sub_14003D460(0x60u); v2 = 81; v28 = 81; v3 = 95; v29 = 95; strcpy(v5, "Lucky for you I have one in my shop.\nBut they are very expensive."); *(_QWORD *)&v27 = v5; v4 = 38; break; case 2: v5 = (char *)sub_14003D460(0x60u); v3 = 95; v2 = 95; v28 = 95; v29 = 95; strcpy(v5, "Find me when you can afford it.\nI need the Mana Orbs..."); *(_QWORD *)&v27 = v5; break; case 3: v5 = (char *)sub_14003D460(0x50u); v2 = 78; v28 = 78; v3 = 79; v29 = 79; strcpy(v5, "All this clicking makes me want to give you the item for free!"); *(_QWORD *)&v27 = v5; v4 = 39; break; case 4: v5 = (char *)sub_14003D460(0x40u); v2 = 53; v28 = 53; v3 = 63; v29 = 63; strcpy(v5, "... is something I would never say."); *(_QWORD *)&v27 = v5; break; case 5: v5 = (char *)sub_14003D460(0x40u); v2 = 56; v28 = 56; v3 = 63; v29 = 63; strcpy(v5, "You really are persistent, I will give you that."); *(_QWORD *)&v27 = v5; v4 = 38; break; case 6: v5 = (char *)sub_14003D460(0x50u); v2 = 74; v28 = 74; v3 = 79; v29 = 79; strcpy(v5, "I am The Mechanic, not Santa Claus. I don't work for free."); *(_QWORD *)&v27 = v5; v4 = 39; break; default: v5 = (char *)v27; break; } v18 = &v19; v16 = -1; v17 = -1; v19 = 0; v20 = 0; v21 = 0; v6 = (char *)&v27; if ( v3 > 0xF ) v6 = v5; v7 = 0x7FFFFFFFFFFFFFFFLL; if ( v2 > 0xF ) { if ( (v2 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v7 = v2 | 0xF; if ( (v2 | 0xF) < 0x16 ) v7 = 22; } *(_QWORD *)&v19 = sub_14003D460(v7 + 1); v20 = v2; v21 = v7; memcpy((void *)v19, v6, v2 + 1); } else { v20 = v2; v21 = 15; v19 = *(_OWORD *)v6; } v24 = 12; v25 = 15; strcpy(v22, "The Mechanic"); v22[13] = 0; v23 = 0; v8 = DialogObject::create((__int64)v22, (__int64)&v19, v4, 1.0, 0, (__int64)&v16); DialogLayer = DialogLayer::createDialogLayer((__int64)v8, 0, 4u); DialogLayer::addToMainScene((__int64)DialogLayer); v11 = cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11, &v18); v12 = *((__int64 **)DialogLayer + 70); v13 = *v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *(float *)&v18 * 0.5, *((float *)&v18 + 1) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v13 + 184))(v12, v14); DialogLayer::animateIn(DialogLayer, 1); if ( (int)++*(_DWORD *)(a1 + 732) > 6 ) *(_DWORD *)(a1 + 732) = 0; if ( v3 > 0xF ) { v15 = v5; if ( v3 + 1 >= 0x1000 ) { v5 = *((char **)v5 - 1); if ( (unsigned __int64)(v15 - v5 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source