// // sub_1008758B0 from 0x1008758b0 to 0x100875ab9 (521 bytes) // // 4 xrefs: // > sub_100875AD0 @ 0x100875ad5 // > sub_100875AE0 @ 0x100875aec // > sub_100875B00 @ 0x100875b09 // > sub_100875B20 @ 0x100875b33 // // 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:36:52 +0000 // __int64 __fastcall sub_1008758B0(_QWORD *a1) { unsigned int i; // r15d __int64 v2; // rax const char *CString; // r12 size_t v4; // rax size_t v5; // r13 char *v6; // r14 __int64 v7; // rax size_t v8; // rbx char *v9; // rdi __int64 v10; // rax const std::string::value_type *v11; // rax _QWORD *v12; // rax std::string::pointer data; // rsi _DWORD *v14; // rdi std::string v16; // [rsp+0h] [rbp-60h] BYREF _QWORD __dst[2]; // [rsp+18h] [rbp-48h] BYREF void *__p; // [rsp+28h] [rbp-38h] _QWORD *v19; // [rsp+30h] [rbp-30h] *a1 = off_100BA0C20; a1[40] = off_100BA1198; a1[41] = &off_100BA1208; a1[42] = off_100BA1220; a1[43] = off_100BA1240; a1[44] = off_100BA1268; a1[51] = off_100BA1298; v19 = a1; a1[54] = off_100BA1318; for ( i = 0; i < (unsigned int)sub_1007FEF90(v19[76]); ++i ) { v2 = sub_1007FEFE0(v19[76], i); CString = (const char *)cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v7 = v4 | 7; v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = v7 + 1; v6 = (char *)operator new(v8); __p = v6; __dst[0] = v8 | 1; __dst[1] = v5; LABEL_11: memmove(v6, CString, v5); goto LABEL_12; } LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( v4 ) goto LABEL_11; LABEL_12: v6[v5] = 0; memset(&v16, 0, sizeof(v16)); v9 = "promo_%s-hd.png"; if ( !(unsigned __int8)PlatformToolbox::isHD((__m128)0LL) ) v9 = "promo_%s.png"; v10 = sub_10088E820(v9, *(_BYTE *)&v16.__r_.__value_.__l.0); v11 = (const std::string::value_type *)cocos2d::CCString::getCString(v10); std::string::assign(&v16, v11); v12 = cocos2d::CCTextureCache::sharedTextureCache(); data = v16.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) data = v16.__r_.__value_.__l.__data_; cocos2d::CCTextureCache::removeTextureForKey((__int64)v12, (__int64)data); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v16.__r_.__value_.__l.__data_); if ( (__dst[0] & 1) != 0 ) operator delete(__p); } v14 = (_DWORD *)v19[76]; if ( v14 ) cocos2d::CCObject::release(v14); return sub_1006BB0D0(v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source