// // SFXBrowser::FLAlert_Clicked from 0x100433fd0 to 0x100434238 (616 bytes) // // 2 xrefs: // > sub_1004342A0 @ 0x1004342ac // > @ 0x100b424f8 // // 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 12:30:23 +0000 // void __fastcall SFXBrowser::FLAlert_Clicked(__int64 a1, __int64 a2, unsigned __int8 a3) { __int64 v4; // rcx unsigned int v5; // eax __int64 v6; // r14 __int64 v7; // rsi __int64 v8; // rax const char *CString; // r15 size_t v10; // rax size_t v11; // r14 char *v12; // r12 size_t v13; // r13 char v14; // r14 char *v15; // rax char v16; // [rsp+0h] [rbp-80h] __int128 v17; // [rsp+8h] [rbp-78h] BYREF void *v18; // [rsp+18h] [rbp-68h] __int128 v19; // [rsp+20h] [rbp-60h] BYREF void *v20; // [rsp+30h] [rbp-50h] int v21; // [rsp+38h] [rbp-48h] BYREF int v22; // [rsp+3Ch] [rbp-44h] BYREF __int128 __dst; // [rsp+40h] [rbp-40h] BYREF void *__p; // [rsp+50h] [rbp-30h] if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 10 ) { if ( a3 ) sub_100433280(a1); return; } if ( !(((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 11) | a3 ^ 1) && *(_QWORD *)(GameManager::sharedState() + 552) && *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL) ) { v4 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL); v5 = *(unsigned __int8 *)(v4 + 608); if ( (v5 & 1) != 0 ) { if ( !*(_QWORD *)(v4 + 616) ) return; } else if ( !(v5 >> 1) ) { return; } v22 = 0; v21 = 0; v6 = MusicDownloadManager::sharedState(a2); v7 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL) + 608LL; LOWORD(__dst) = 0; MusicDownloadManager::importCustomSFXSetup(v6, v7, &__dst, 1, &v22, &v21); if ( (__dst & 1) != 0 ) operator delete(__p); v8 = sub_10088E820("Imported %i", v16); CString = (const char *)cocos2d::CCString::getCString(v8); v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v11 = v10; if ( v10 >= 0x17 ) { v13 = 26; if ( (v10 | 7) != 0x17 ) v13 = (v10 | 7) + 1; v12 = (char *)operator new(v13); __p = v12; *(_QWORD *)&__dst = v13 + 1; *((_QWORD *)&__dst + 1) = v11; } else { LOBYTE(__dst) = 2 * v10; v12 = (char *)&__dst + 1; if ( !v10 ) goto LABEL_21; } memmove(v12, CString, v11); LABEL_21: v12[v11] = 0; v14 = __dst; if ( (__dst & 1) != 0 ) { sub_10001AD30(&v19, __p, *((unsigned __int64 *)&__dst + 1)); } else { v20 = __p; v19 = __dst; } LOWORD(v17) = 0; v15 = TextAlertPopup::create(&v19, 0x96u, &v17, 0.89999998, 0.5); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v15, 100); if ( (v17 & 1) != 0 ) operator delete(v18); if ( (v19 & 1) != 0 ) operator delete(v20); sub_100495650(a1); if ( (v14 & 1) != 0 ) operator delete(__p); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source