// // MoreSearchLayer::updateAudioLabel from 0x140316550 to 0x140316807 (695 bytes) // // 3 xrefs: // > MoreSearchLayer::selectSong @ 0x140316b6e // > MoreSearchLayer::onSongMode @ 0x14031701e // > @ 0x1406d494c // // 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 MoreSearchLayer::updateAudioLabel(MoreSearchLayer *a1) { __int64 v2; // rcx cocos2d::CCString *v3; // rax int v4; // edi void *v5; // rcx int v6; // edi __int64 v7; // rcx cocos2d::CCString *v8; // rax void *v9; // rcx const char *v10; // r8 cocos2d::CCString *v11; // rax const char *CString; // rax void *v13; // [rsp+20h] [rbp-19h] void *v14; // [rsp+20h] [rbp-19h] void *Block[2]; // [rsp+28h] [rbp-11h] BYREF __int64 v16; // [rsp+38h] [rbp-1h] unsigned __int64 v17; // [rsp+40h] [rbp+7h] void *v18[2]; // [rsp+48h] [rbp+Fh] BYREF __int64 v19; // [rsp+58h] [rbp+1Fh] unsigned __int64 v20; // [rsp+60h] [rbp+27h] _QWORD v21[4]; // [rsp+68h] [rbp+2Fh] BYREF v2 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v13 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v2 = qword_1406C2EC0; } v16 = 11; v17 = 15; Block[0] = (void *)0x6C69665F676E6F73LL; Block[1] = (void *)7497076; v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 344), Block); v4 = cocos2d::CCString::intValue(v3); if ( v17 > 0xF ) { v5 = Block[0]; if ( v17 + 1 >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v5); } v16 = 0; v17 = 15; LOBYTE(Block[0]) = 0; if ( v4 >= 1 ) { v7 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v14 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v7 = qword_1406C2EC0; } v19 = 11; v20 = 15; v18[0] = (void *)0x6C69665F676E6F73LL; v18[1] = (void *)7497076; v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v7 + 344), v18); v6 = cocos2d::CCString::intValue(v8); if ( v20 > 0xF ) { v9 = v18[0]; if ( v20 + 1 >= 0x1000 ) { v9 = *((void **)v18[0] - 1); if ( (unsigned __int64)((char *)v18[0] - (char *)v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } } else { v6 = 1; } LevelTools::getAudioTitle(v21, (unsigned int)(v6 - 1)); v10 = (const char *)v21; if ( v21[3] > 0xFu ) v10 = (const char *)v21[0]; v11 = cocos2d::CCString::createWithFormat("%02d: %s", v6, v10); CString = cocos2d::CCString::getCString(v11); a1->m_audioTrackName->setString(&a1->m_audioTrackName->cocos2d::CCLabelProtocol, CString); if ( (float)(200.0 / a1->m_audioTrackName->getContentSize(a1->m_audioTrackName)->width) <= 0.80000001 ) a1->m_audioTrackName->getContentSize(a1->m_audioTrackName); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_audioTrackName->setScale_0)(a1->m_audioTrackName); sub_14003A830((__int64)v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source