// // sub_1008F65F0 from 0x1008f65f0 to 0x1008f6861 (625 bytes) // // 1 xrefs: // > sub_1008F3770 @ 0x1008f4928 // // 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 // void __fastcall sub_1008F65F0(__int64 a1) { size_t v1; // r14 char *v2; // rax const char *CString; // r15 size_t v4; // rax size_t v5; // r14 char *v6; // r12 char *v7; // r14 char *v8; // rax char *v9; // rdi size_t v10; // r13 size_t v11; // rax size_t v12; // r15 char *v13; // r12 size_t v14; // r13 char *v15; // rbx __int128 v16; // [rsp+8h] [rbp-88h] BYREF void *v17; // [rsp+18h] [rbp-78h] _BYTE v18[24]; // [rsp+20h] [rbp-70h] BYREF _QWORD __dst[2]; // [rsp+38h] [rbp-58h] BYREF void *v20; // [rsp+48h] [rbp-48h] void *__p; // [rsp+50h] [rbp-40h] BYREF size_t v22; // [rsp+58h] [rbp-38h] char *__s; // [rsp+60h] [rbp-30h] sub_1008F8190(&__p, a1); v1 = (v22 - (unsigned __int64)__p) >> 2; if ( __p ) operator delete(__p); if ( (_DWORD)v1 ) { v2 = sub_10088E820("Download %i SFX from this pack?", v1); CString = (const char *)cocos2d::CCString::getCString((__int64)v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v10 = 26; if ( (v4 | 7) != 0x17 ) v10 = (v4 | 7) + 1; v6 = (char *)operator new(v10); __s = v6; __p = (void *)(v10 + 1); v22 = v5; } else { LOBYTE(__p) = 2 * v4; v6 = (char *)&__p + 1; if ( !v4 ) { BYTE1(__p) = 0; if ( ((unsigned __int8)__p & 1) != 0 ) { LABEL_8: v7 = __s; goto LABEL_18; } LABEL_17: v7 = (char *)&__p + 1; LABEL_18: v11 = strlen(v7); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v12 = v11; if ( v11 >= 0x17 ) { v14 = 26; if ( (v11 | 7) != 0x17 ) v14 = (v11 | 7) + 1; v13 = (char *)operator new(v14); v20 = v13; __dst[0] = v14 | 1; __dst[1] = v12; } else { LOBYTE(__dst[0]) = 2 * v11; v13 = (char *)__dst + 1; if ( !v11 ) { LABEL_26: v13[v12] = 0; v15 = FLAlertLayer::create_1( (int)a1 + 1032, (int)"Download SFX", (__int64)__dst, (int)"Cancel", (int)"Download", 300.0); if ( (__dst[0] & 1) != 0 ) operator delete(v20); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v15 + 72LL))(v15, 7007); (*(void (__fastcall **)(char *))(*(_QWORD *)v15 + 1312LL))(v15); if ( ((unsigned __int8)__p & 1) != 0 ) { v9 = __s; goto LABEL_30; } return; } } memmove(v13, v7, v12); goto LABEL_26; } } memmove(v6, CString, v5); v6[v5] = 0; if ( ((unsigned __int8)__p & 1) != 0 ) goto LABEL_8; goto LABEL_17; } strcpy(v18, "$All SFX downloaded"); LOWORD(v16) = 0; v8 = TextAlertPopup::create((__int128 *)v18, 0x96u, &v16, 0.5, 0.60000002); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8, 100); if ( (v16 & 1) != 0 ) operator delete(v17); if ( (v18[0] & 1) != 0 ) { v9 = *(char **)&v18[16]; LABEL_30: operator delete(v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source