// // CustomSFXWidget::onShowInfo from 0x6a7edc to 0x6a8272 (918 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:56:32 +0000 // int __fastcall CustomSFXWidget::onShowInfo(int this, cocos2d::CCObject *a2) { int v2; // r6 int v3; // r1 int *CustomSFXObject; // r0 unsigned int v5; // r3 MusicDownloadManager *v6; // r0 unsigned __int8 *v7; // r4 unsigned int v8; // r3 MusicDownloadManager *v9; // r0 int *v10; // r4 int v11; // r0 unsigned int v12; // r1 unsigned __int8 *v13; // r2 int v14; // r3 MusicDownloadManager *v15; // r0 int *SFXObject; // r0 SFXInfoObject *v17; // r0 int v18; // r0 unsigned int v19; // r1 unsigned __int8 *v20; // r2 size_t v21; // r4 unsigned __int8 *v22; // r9 unsigned int v23; // r1 unsigned __int8 *v24; // r12 unsigned int v25; // r4 unsigned __int8 *v26; // r4 int v27; // r8 int v28; // r9 int v29; // r0 unsigned int v30; // r0 unsigned int v31; // r4 size_t v32; // r4 unsigned __int8 *v33; // r3 int v34; // r3 unsigned int v35; // r3 unsigned __int8 *v36; // r2 char *v37; // r2 char *v38; // r3 cocos2d::CCString *v39; // r0 const char *CString; // r6 size_t v41; // r0 int *v42; // r8 int v43; // r2 const void *v44; // r1 size_t v45; // r2 unsigned __int8 *v46; // [sp+14h] [bp-60h] unsigned __int8 *v47[2]; // [sp+1Ch] [bp-58h] BYREF int v48[3]; // [sp+24h] [bp-50h] BYREF int v49; // [sp+30h] [bp-44h] BYREF unsigned int v50; // [sp+34h] [bp-40h] unsigned __int8 *v51; // [sp+38h] [bp-3Ch] int v52; // [sp+3Ch] [bp-38h] BYREF unsigned int v53; // [sp+40h] [bp-34h] unsigned __int8 *v54; // [sp+44h] [bp-30h] int v55; // [sp+48h] [bp-2Ch] BYREF unsigned int v56; // [sp+4Ch] [bp-28h] unsigned __int8 *v57; // [sp+50h] [bp-24h] int v58[3]; // [sp+54h] [bp-20h] BYREF int v59[3]; // [sp+60h] [bp-14h] BYREF v2 = this; v3 = *(_DWORD *)(this + 272); if ( !v3 ) return this; std::string::basic_string(v48, v3 + 76); CustomSFXObject = std::string::basic_string(&v49, *(_DWORD *)(v2 + 272) + 100); v5 = (unsigned __int8)v49; if ( (v49 & 1) != 0 ) { if ( v50 ) goto LABEL_9; } else if ( (unsigned __int8)v49 >> 1 ) { LABEL_15: if ( v5 >> 1 ) { v14 = (unsigned __int8)v49; goto LABEL_23; } goto LABEL_11; } if ( *(int *)(*(_DWORD *)(v2 + 272) + 72) > 0 ) { v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)CustomSFXObject); CustomSFXObject = (int *)MusicDownloadManager::getCustomSFXObject(v6, *(_DWORD *)(*(_DWORD *)(v2 + 272) + 72)); if ( *(int **)(v2 + 272) == CustomSFXObject ) { v15 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)CustomSFXObject); SFXObject = (int *)MusicDownloadManager::getSFXObject(v15, *(_DWORD *)(*(_DWORD *)(v2 + 272) + 52)); if ( SFXObject && v48 != SFXObject + 19 ) { v43 = *((unsigned __int8 *)SFXObject + 76); if ( (v43 & 1) != 0 ) { v44 = (const void *)SFXObject[21]; v45 = SFXObject[20]; } else { v44 = (char *)SFXObject + 77; v45 = v43 >> 1; } SFXObject = std::string::assign(v48, v44, v45); } v17 = (SFXInfoObject *)MusicDownloadManager::sharedState((MusicDownloadManager *)SFXObject); v10 = &v52; MusicDownloadManager::getCustomSFXLocationText((MusicDownloadManager *)&v52, v17, *(_DWORD *)(v2 + 272)); if ( (v49 & 1) != 0 ) { *v51 = 0; v50 = 0; } else { LOWORD(v49) = 0; } std::string::reserve(&v49, 0); v18 = v52; v19 = v53; v20 = v54; v52 = 0; v53 = 0; v54 = nullptr; v49 = v18; v50 = v19; v51 = v20; LABEL_22: std::string::~string((int)v10); v14 = (unsigned __int8)v49; if ( (v49 & 1) != 0 ) goto LABEL_10; LABEL_23: v8 = v14 >> 1; v7 = (unsigned __int8 *)&v49 + 1; goto LABEL_24; } } v5 = (unsigned __int8)v49; if ( (v49 & 1) == 0 ) goto LABEL_15; LABEL_9: if ( !v50 ) { LABEL_11: v9 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)CustomSFXObject); v10 = &v55; MusicDownloadManager::getSFXFolderPathForID( (MusicDownloadManager *)&v55, v9, *(_DWORD *)(*(_DWORD *)(v2 + 272) + 56), 0); if ( (v49 & 1) != 0 ) { *v51 = 0; v50 = 0; } else { LOWORD(v49) = 0; } std::string::reserve(&v49, 0); v11 = v55; v12 = v56; v13 = v57; v55 = 0; v56 = 0; v57 = nullptr; v49 = v11; v50 = v12; v51 = v13; goto LABEL_22; } LABEL_10: v7 = v51; v8 = v50; LABEL_24: if ( v8 <= 2 || (v22 = &v7[v8], std::__search( v47, v7, &v7[v8], " / ", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq), v47[0] == v22) ) { v21 = -1; } else { v21 = v47[0] - v7; } while ( v21 != -1 ) { std::string::replace(&v49, v21, 3u, " \\ ", 3u); v23 = v21 + 3; if ( (v49 & 1) != 0 ) { v24 = v51; v25 = v50; } else { v25 = (int)(unsigned __int8)v49 >> 1; v24 = (unsigned __int8 *)&v49 + 1; } if ( v23 > v25 ) break; if ( v25 - v23 <= 2 ) break; v26 = &v24[v25]; v46 = v24; std::__search( v47, &v24[v23], v26, " / ", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq); if ( v47[0] == v26 ) break; v21 = v47[0] - v46; } v27 = (unsigned __int8)v49; v28 = v49 & 1; if ( v28 ) { v29 = v50; if ( v50 <= 2 ) goto LABEL_61; } else { v29 = (int)(unsigned __int8)v49 >> 1; if ( v29 <= 2 ) goto LABEL_61; } v30 = v29 - 3; if ( v28 ) v31 = v50; else v31 = (int)(unsigned __int8)v49 >> 1; if ( v30 > v31 ) sub_389B08(); v32 = v31 - v30; if ( v32 <= 2 ) { if ( !v28 ) { v33 = (unsigned __int8 *)&v49 + 1; LABEL_52: if ( !v32 ) goto LABEL_61; goto LABEL_53; } LABEL_50: v33 = v51; goto LABEL_52; } if ( v28 ) { v32 = 3; goto LABEL_50; } v33 = (unsigned __int8 *)&v49 + 1; v32 = 3; LABEL_53: if ( !memcmp(&v33[v30], " \\ ", v32) && v32 == 3 ) { if ( v28 ) v34 = v50; else v34 = v27 >> 1; v35 = v34 - 3; if ( v28 ) { if ( v35 <= v50 ) { v36 = v51; v50 = v35; LABEL_60: v36[v35] = 0; goto LABEL_61; } } else if ( v35 <= (unsigned int)v27 >> 1 ) { LOBYTE(v49) = 2 * v35; v36 = (unsigned __int8 *)&v49 + 1; goto LABEL_60; } sub_389B08(); } LABEL_61: if ( (v48[0] & 1) != 0 ) v37 = (char *)v48[2]; else v37 = (char *)v48 + 1; if ( (v49 & 1) != 0 ) v38 = (char *)v51; else v38 = (char *)&v49 + 1; v39 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i: %s\n%s", *(const char **)(*(_DWORD *)(v2 + 272) + 52), v37, v38); CString = (const char *)cocos2d::CCString::getCString(v39); memset(v58, 0, sizeof(v58)); v41 = strlen(CString); std::string::__init(v58, CString, v41); std::string::basic_string(v59, (int)v58); v42 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Sound Info", (int)v59, (ButtonSprite *)"OK", nullptr, 340.0); std::string::~string((int)v59); (*(void (__fastcall **)(int *))(*v42 + 656))(v42); std::string::~string((int)v58); std::string::~string((int)&v49); return std::string::~string((int)v48); }