// // sub_1001F4350 from 0x1001f4350 to 0x1001f4520 (464 bytes) // // 1 xrefs: // > SFXBrowser::init @ 0x1001f2d84 // // This function is hookable on this platform (idp: arm, 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:00:39 +0000 // void __fastcall sub_1001F4350(__int64 a1) { __int64 v2; // x0 int v3; // w0 __int64 v4; // x0 void *v5; // x0 const char *v6; // x10 __int64 v7; // x0 char *CString; // x0 __int64 v9; // x0 void *v10[2]; // [xsp+18h] [xbp-A8h] BYREF char v11; // [xsp+2Fh] [xbp-91h] void *__dst[2]; // [xsp+30h] [xbp-90h] BYREF __int64 v13; // [xsp+40h] [xbp-80h] void *v14[2]; // [xsp+48h] [xbp-78h] BYREF __int64 v15; // [xsp+58h] [xbp-68h] void *__p[2]; // [xsp+60h] [xbp-60h] BYREF char v17; // [xsp+77h] [xbp-49h] _QWORD v18[2]; // [xsp+78h] [xbp-48h] BYREF char v19; // [xsp+8Fh] [xbp-31h] __int64 v20; // [xsp+90h] [xbp-30h] BYREF void *v21[2]; // [xsp+98h] [xbp-28h] BYREF __int64 v22; // [xsp+A8h] [xbp-18h] v21[0] = nullptr; v21[1] = nullptr; v22 = 0; v20 = 0; v2 = MusicDownloadManager::sharedState(); v3 = MusicDownloadManager::importCustomSFXFromFile(v2, (__int64)v21, (int *)&v20 + 1, (int *)&v20); if ( v3 == 1 ) { v6 = (const char *)v21; if ( v22 < 0 ) v6 = (const char *)v21[0]; if ( (int)v20 < 1 ) v7 = sub_1003065B0("Imported %i to '%s'", HIDWORD(v20), v6); else v7 = sub_1003065B0("Imported %i to '%s' (%i existing)", HIDWORD(v20), v6, v20); CString = (char *)cocos2d::CCString::getCString(v7); sub_100009900(v14, CString); if ( SHIBYTE(v15) < 0 ) { sub_1000097D0(__dst, v14[0], (unsigned __int64)v14[1]); } else { *(_OWORD *)__dst = *(_OWORD *)v14; v13 = v15; } sub_100009900(v10, ""); v9 = TextAlertPopup::create(__dst, 150, v10, 0.9, 0.5); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v9, 100); if ( v11 < 0 ) operator delete(v10[0]); if ( SHIBYTE(v13) < 0 ) operator delete(__dst[0]); sub_1001F6910(a1); if ( SHIBYTE(v15) < 0 ) { v5 = v14[0]; goto LABEL_21; } } else if ( !v3 ) { sub_100009900(v18, "Import failed"); sub_100009900(__p, ""); v4 = TextAlertPopup::create(v18, 150, __p, 0.9, 0.5); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 100); if ( v17 < 0 ) operator delete(__p[0]); if ( v19 < 0 ) { v5 = (void *)v18[0]; LABEL_21: operator delete(v5); } } if ( SHIBYTE(v22) < 0 ) operator delete(v21[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source