// // CustomSFXWidget::onShowInfo from 0x140163130 to 0x1401637f0 (1728 bytes) // // 2 xrefs: // > CustomSFXWidget::init @ 0x140160d8f // > @ 0x140917dd4 // // 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:27:26 +0000 // // Hidden C++ exception states: #wind=9 void __fastcall CustomSFXWidget::onShowInfo(__int64 a1) { __int64 v2; // rdx cocos2d::CCDictionary *v3; // rcx unsigned __int64 v4; // rbx __int64 v5; // rdx struct cocos2d::CCObject *v6; // rax cocos2d::CCDictionary *v7; // rcx struct cocos2d::CCObject *v8; // rax void *v9; // rdx __int64 CustomSFXLocationText; // rbx void *v11; // rcx __int64 v12; // rdx __int64 SFXFolderObjectForID; // rbx int i; // edi char *v15; // r8 __int64 v16; // rcx void *v17; // rcx void **v18; // rsi void **v19; // rdi unsigned __int64 v20; // r14 char *v21; // rbx __int64 v22; // rax unsigned __int64 v23; // rdi unsigned __int64 v24; // rcx void **v25; // rsi unsigned __int64 v26; // rbx char *v27; // rbx __int64 v28; // rax unsigned __int64 v29; // rsi void **v30; // rcx __int64 v31; // rdx __int64 v32; // rcx __int64 v33; // r8 __int64 v34; // r9 void **v35; // rax void **v36; // r9 const char *v37; // r8 cocos2d::CCString *v38; // rax const char *CString; // rax size_t v40; // r8 __int64 v41; // rcx void **v42; // rsi __int64 v43; // rbx __int64 v44; // rdi __int64 v45; // rax cocos2d::CCObject *v46; // rbx void *v47; // [rsp+50h] [rbp-B0h] void *v48; // [rsp+50h] [rbp-B0h] void *v49; // [rsp+50h] [rbp-B0h] void *v50; // [rsp+50h] [rbp-B0h] __int128 v51; // [rsp+58h] [rbp-A8h] BYREF __int64 v52; // [rsp+68h] [rbp-98h] __int64 v53; // [rsp+70h] [rbp-90h] char v54[32]; // [rsp+80h] [rbp-80h] BYREF void *Block[2]; // [rsp+A0h] [rbp-60h] BYREF __int128 v56; // [rsp+B0h] [rbp-50h] void *Src[2]; // [rsp+C0h] [rbp-40h] BYREF __int128 v58; // [rsp+D0h] [rbp-30h] void *v59[4]; // [rsp+E0h] [rbp-20h] BYREF v2 = *(_QWORD *)(a1 + 336); if ( !v2 ) return; sub_14003F4F0((__int64)v59, v2 + 80); sub_14003F4F0((__int64)Block, *(_QWORD *)(a1 + 336) + 144LL); v4 = v56; if ( !(_QWORD)v56 ) { if ( *(int *)(*(_QWORD *)(a1 + 336) + 76LL) <= 0 ) goto LABEL_30; if ( qword_14090C070 == (_QWORD)v56 ) { v47 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v47); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v4 = v56; } v5 = *(int *)(*(_QWORD *)(a1 + 336) + 76LL); v3 = *(cocos2d::CCDictionary **)(qword_14090C070 + 920); if ( v3 && (int)v5 > 0 ) { v6 = cocos2d::CCDictionary::objectForKey(v3, v5); v4 = v56; } else { v6 = nullptr; } if ( v6 == *(struct cocos2d::CCObject **)(a1 + 336) ) { if ( !qword_14090C070 ) { v48 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); } v7 = *(cocos2d::CCDictionary **)(qword_14090C070 + 408); if ( v7 ) { v8 = cocos2d::CCDictionary::objectForKey(v7, *(int *)(*(_QWORD *)(a1 + 336) + 56LL)); if ( v8 ) { if ( v59 != (void **)((char *)v8 + 80) ) { v9 = (char *)v8 + 80; if ( *((_QWORD *)v8 + 13) > 0xFu ) v9 = *((void **)v8 + 10); sub_1400405A0(v59, v9, *((_QWORD *)v8 + 12)); } } } if ( !qword_14090C070 ) { v49 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v49); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); } CustomSFXLocationText = MusicDownloadManager::getCustomSFXLocationText( qword_14090C070, Src, *(_QWORD *)(a1 + 336)); if ( Block != (void **)CustomSFXLocationText ) { if ( *((_QWORD *)&v56 + 1) > 0xFu ) { v11 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v56 + 1) + 1LL) >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } *(_QWORD *)&v56 = 0; *((_QWORD *)&v56 + 1) = 15; LOBYTE(Block[0]) = 0; *(_OWORD *)Block = *(_OWORD *)CustomSFXLocationText; v56 = *(_OWORD *)(CustomSFXLocationText + 16); *(_QWORD *)(CustomSFXLocationText + 16) = 0; *(_QWORD *)(CustomSFXLocationText + 24) = 15; *(_BYTE *)CustomSFXLocationText = 0; } sub_14003D310((__int64)Src); v4 = v56; goto LABEL_43; } if ( !v4 ) { LABEL_30: if ( !qword_14090C070 ) { v50 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v50); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); } v12 = *(unsigned int *)(*(_QWORD *)(a1 + 336) + 60LL); *(_OWORD *)Src = 0; *(_QWORD *)&v58 = 0; *((_QWORD *)&v58 + 1) = 15; LOBYTE(Src[0]) = 0; SFXFolderObjectForID = MusicDownloadManager::getSFXFolderObjectForID(v3, v12); for ( i = 0; SFXFolderObjectForID; SFXFolderObjectForID = MusicDownloadManager::getSFXFolderObjectForID( v16, *(unsigned int *)(SFXFolderObjectForID + 60)) ) { if ( i >= 10 ) break; ++i; sub_140059D70(Src, 0, " \\ ", 3u); v15 = (char *)(SFXFolderObjectForID + 80); if ( *(_QWORD *)(SFXFolderObjectForID + 104) > 0xFu ) v15 = *(char **)(SFXFolderObjectForID + 80); sub_140059D70(Src, 0, v15, *(_QWORD *)(SFXFolderObjectForID + 96)); } if ( *((_QWORD *)&v56 + 1) > 0xFu ) { v17 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v56 + 1) + 1LL) >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v17); } *(_OWORD *)Block = *(_OWORD *)Src; v56 = v58; v4 = v58; } } LABEL_43: v18 = Block; v19 = (void **)Block[0]; v20 = *((_QWORD *)&v56 + 1); if ( *((_QWORD *)&v56 + 1) > 0xFu ) v18 = (void **)Block[0]; if ( v4 >= 3 ) { v21 = (char *)v18 + v4; v22 = sub_1406774C0(v18, v21, " / ", 3); if ( (char *)v22 == v21 || (v23 = v22 - (_QWORD)v18, v22 - (_QWORD)v18 == -1) ) { LABEL_54: v20 = *((_QWORD *)&v56 + 1); v26 = v56; v19 = (void **)Block[0]; LABEL_55: if ( v26 >= 3 ) { v29 = v26 - 3; v30 = Block; if ( v20 > 0xF ) v30 = v19; if ( !memcmp((char *)v30 + v29, " \\ ", 3u) ) { if ( v26 < v29 ) sub_14003F4D0(v32, v31, v33, v34); *(_QWORD *)&v56 = v26 - 3; v35 = Block; if ( v20 > 0xF ) v35 = v19; *((_BYTE *)v35 + v29) = 0; v20 = *((_QWORD *)&v56 + 1); v19 = (void **)Block[0]; } } } else { while ( 1 ) { sub_140045CE0(Block, v23, 3u, " \\ ", 3u); v24 = v23 + 3; v25 = Block; v19 = (void **)Block[0]; v20 = *((_QWORD *)&v56 + 1); if ( *((_QWORD *)&v56 + 1) > 0xFu ) v25 = (void **)Block[0]; v26 = v56; if ( (unsigned __int64)v56 < 3 ) break; if ( v24 > (__int64)v56 - 3 ) goto LABEL_55; v27 = (char *)v25 + v56; v28 = sub_1406774C0((char *)v25 + v24, (char *)v25 + v56, " / ", 3); if ( (char *)v28 != v27 ) { v23 = v28 - (_QWORD)v25; if ( v28 - (_QWORD)v25 != -1 ) continue; } goto LABEL_54; } } } v36 = Block; if ( v20 > 0xF ) v36 = v19; v37 = (const char *)v59; if ( v59[3] > (void *)0xF ) v37 = (const char *)v59[0]; v38 = cocos2d::CCString::createWithFormat( "%i: %s\n%s", *(_DWORD *)(*(_QWORD *)(a1 + 336) + 56LL), v37, (const char *)v36); CString = cocos2d::CCString::getCString(v38); *(_OWORD *)Src = 0; v58 = 0u; v40 = -1; do ++v40; while ( CString[v40] ); sub_14003D230(Src, CString, v40); v51 = 0; v52 = 0; v53 = 0; v42 = Src; if ( *((_QWORD *)&v58 + 1) > 0xFu ) v42 = (void **)Src[0]; v43 = 0x7FFFFFFFFFFFFFFFLL; v44 = v58; if ( (unsigned __int64)v58 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v41); if ( (unsigned __int64)v58 > 0xF ) { if ( ((unsigned __int64)v58 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v43 = v58 | 0xF; if ( ((unsigned __int64)v58 | 0xF) < 0x16 ) v43 = 22; } *(_QWORD *)&v51 = sub_14003D460(v43 + 1); v52 = v44; v53 = v43; memcpy((void *)v51, v42, v44 + 1); } else { v52 = v58; v53 = 15; v51 = *(_OWORD *)v42; } v45 = sub_14003F4F0((__int64)v54, (__int64)&v51); v46 = FLAlertLayer::create(0, (int)"Sound Info", v45, (__int64)"OK", 0, 1135214592, 0, 0, 1065353216); sub_14003D310((__int64)&v51); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v46 + 1064LL))(v46); sub_14003D310((__int64)Src); sub_14003D310((__int64)Block); sub_14003D310((__int64)v59); }