// // sub_1008F68C0 from 0x1008f68c0 to 0x1008f6a49 (393 bytes) // // 1 xrefs: // > sub_1008F3770 @ 0x1008f497e // // 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:37:58 +0000 // __int64 __fastcall sub_1008F68C0(__int64 a1) { __int64 result; // rax const char *v2; // r14 size_t v3; // rax __int64 v4; // rax size_t v5; // r15 char *v6; // r12 size_t v7; // r13 char *v8; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] result = *(_QWORD *)(a1 + 1088); if ( !result ) return result; if ( *(_DWORD *)(a1 + 1096) == 2 && *(int *)(result + 320) > 0 ) { v2 = "Delete this sound pack from your device?"; v3 = strlen("Delete this sound pack from your device?"); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_22; } else if ( EditorSFXManager::sharedState() ) { v4 = EditorSFXManager::sharedState(); v2 = "Remove this sound pack from your Favorites?"; if ( !sub_1008ED070(v4, *(_DWORD *)(*(_QWORD *)(a1 + 1088) + 316LL)) ) v2 = "Discard the downloaded data and close?"; v3 = strlen(v2); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_22: sub_100003630(); } else { v2 = "Discard the downloaded data and close?"; v3 = strlen("Discard the downloaded data and close?"); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_22; } v5 = v3; if ( v3 >= 0x17 ) { v7 = 26; if ( (v3 | 7) != 0x17 ) v7 = (v3 | 7) + 1; v6 = (char *)operator new(v7); __p = v6; __dst[0] = v7 + 1; __dst[1] = v5; } else { LOBYTE(__dst[0]) = 2 * v3; v6 = (char *)__dst + 1; if ( !v3 ) goto LABEL_17; } memcpy(v6, v2, v5); LABEL_17: v6[v5] = 0; v8 = FLAlertLayer::create_1( (int)a1 + 1032, (int)"Delete Sound Pack", (__int64)__dst, (int)"Cancel", (int)"Delete", 380.0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v8 + 72LL))(v8, 7004); return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v8 + 1312LL))(v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source