// // sub_100897BA0 from 0x100897ba0 to 0x100897d01 (353 bytes) // // 1 xrefs: // > InfoLayer::setupBulkUI @ 0x100895787 // // 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:07 +0000 // void __fastcall sub_100897BA0(__int64 a1) { int v1; // esi const char *v2; // rdx char *v3; // rax const char *CString; // r15 size_t v5; // rax size_t v6; // r14 char *v7; // r12 size_t v8; // r13 __int64 v9; // rax void *v10[3]; // [rsp+10h] [rbp-70h] BYREF std::string v11; // [rsp+28h] [rbp-58h] BYREF _QWORD __dst[2]; // [rsp+40h] [rbp-40h] BYREF void *v13; // [rsp+50h] [rbp-30h] v1 = *(_DWORD *)(a1 + 944); if ( v1 <= 0 ) return; v2 = "s"; if ( v1 == 1 ) v2 = ""; v3 = sub_10088E820( "Delete %i comment%s? Backups are kept for recovery, but they won't be visible in-game.", v1, v2); CString = (const char *)cocos2d::CCString::getCString((__int64)v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); v13 = v7; __dst[0] = v8 + 1; __dst[1] = v6; } else { LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( !v5 ) goto LABEL_12; } memmove(v7, CString, v6); LABEL_12: v7[v6] = 0; sub_100964380(v10, 3); *(_WORD *)&v11.__r_.__value_.__l.0 = 0; v9 = sub_1009A4AD0((int)a1 + 688, 4, (int)"Bulk Delete", &v11, 1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9); if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v11.__r_.__value_.__l.__data_); if ( v10[0] ) { v10[1] = v10[0]; operator delete(v10[0]); } if ( (__dst[0] & 1) != 0 ) operator delete(v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source