// // sub_1009A24F0 from 0x1009a24f0 to 0x1009a2718 (552 bytes) // // 2 xrefs: // > sub_100997F40 @ 0x100997f45 // > AccountReviewPopup::reviewChoicePicked @ 0x1009a2a42 // // 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:39:17 +0000 // void __fastcall sub_1009A24F0(__int64 a1) { int v1; // eax const char *v2; // rdx const char *v3; // rcx const char *v4; // r8 char *v5; // rax const char *CString; // r15 size_t v7; // rax size_t v8; // r14 char *v9; // r12 char *v10; // r14 size_t v11; // r13 size_t v12; // rax size_t v13; // r15 char *v14; // r12 size_t v15; // r13 __int64 *v16; // rbx __int128 v17; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] _QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF char *__s; // [rsp+30h] [rbp-30h] v1 = sub_1009A23A0(a1); if ( v1 <= 0 ) return; v2 = "item"; if ( *(_DWORD *)(a1 + 1236) == 1 ) v2 = "comment"; v3 = "s"; if ( v1 == 1 ) v3 = ""; if ( (*(_BYTE *)(a1 + 848) & 1) != 0 ) v4 = *(const char **)(a1 + 864); else v4 = (const char *)(a1 + 849); v5 = sub_10088E820( "Delete %i selected %s%s by %s?\nThe text is removed from the server. Cannot be undone.", v1, v2, v3, v4); CString = (const char *)cocos2d::CCString::getCString((__int64)v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v8 = v7; if ( v7 >= 0x17 ) { v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); __s = v9; __dst[0] = v11 + 1; __dst[1] = v8; LABEL_17: memmove(v9, CString, v8); v9[v8] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_13; goto LABEL_18; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) goto LABEL_17; BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_13: v10 = __s; goto LABEL_19; } LABEL_18: v10 = (char *)__dst + 1; LABEL_19: v12 = strlen(v10); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v13 = v12; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); __p = v14; *(_QWORD *)&v17 = v15 | 1; *((_QWORD *)&v17 + 1) = v13; } else { LOBYTE(v17) = 2 * v12; v14 = (char *)&v17 + 1; if ( !v12 ) goto LABEL_27; } memmove(v14, v10, v13); LABEL_27: v14[v13] = 0; v16 = (__int64 *)FLAlertLayer::create( (int)a1 + 800, (int)"Delete Content", &v17, (int)"Cancel", (int)"Delete", 0, 380.0, 0.0, 1.0); if ( (v17 & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64 *, __int64))(*v16 + 72))(v16, 4); ButtonSprite::updateBGImage(v16[77], (__int64)"GJ_button_06.png"); (*(void (__fastcall **)(__int64 *))(*v16 + 1312))(v16); if ( (__dst[0] & 1) != 0 ) operator delete(__s); }
GD Web Decomp Icon

GD Web Decomp

Raw Source