// // LevelTools::createStarPackDict from 0x1001a9434 to 0x1001a9660 (556 bytes) // // 1 xrefs: // > GameManager::recountUserStats @ 0x10031a0b0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCDictionary *__fastcall LevelTools::createStarPackDict() { cocos2d::CCDictionary *v0; // x19 _QWORD *v1; // x0 cocos2d::CCArray *v2; // x20 std::string *p_str; // x8 std::string::size_type size; // x22 std::string *v5; // x9 std::string::size_type v6; // x11 std::string *v7; // x10 __int64 v8; // x8 __int64 v9; // x23 std::string::size_type v10; // x21 std::string *v11; // x1 __int64 v12; // x0 __int64 v13; // x25 bool v14; // zf std::string::size_type v15; // x11 std::string *v16; // x8 _BYTE *v17; // x9 _BYTE *v18; // x10 std::string::size_type v19; // x11 __int64 v20; // x8 unsigned int v21; // w21 cocos2d::CCString *v22; // x0 int v23; // w22 cocos2d::CCString *v24; // x0 unsigned int v25; // w0 unsigned int v26; // w8 std::string __str; // [xsp+8h] [xbp-88h] BYREF std::allocator __a[8]; // [xsp+20h] [xbp-70h] BYREF char v30; // [xsp+37h] [xbp-59h] std::string v31; // [xsp+38h] [xbp-58h] BYREF v0 = cocos2d::CCDictionary::create(); v1 = sub_100009900( &__str, "1,3,2,4,3,4,5,5,6,6,7,6,8,7,9,8,10,8,11,9,19,10,20,10,21,10,22,10,26,10,27,10,28,10,29,10,30,10,31,10,32,4,33,5" ",34,6,35,8,36,8,37,5,38,5,39,6,40,7,41,8,42,8,43,8,44,9,45,6,46,10,47,10,48,10,49,10,50,10,52,4,53,3,54,4,55,4," "56,5,57,6,58,7,59,8,60,8,61,8,62,9,63,9,64,10,65,10,66,10"); v2 = (cocos2d::CCArray *)sub_10024A15C(v1); if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_str = &__str; else p_str = (std::string *)__str.__r_.__value_.__r.__words[0]; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) size = HIBYTE(__str.__r_.__value_.__r.__words[2]); else size = __str.__r_.__value_.__l.__size_; if ( size ) { v5 = (std::string *)((char *)p_str + size); v6 = size; v7 = p_str; while ( v7->__r_.__value_.__s.__data_[0] != 44 ) { v7 = (std::string *)((char *)v7 + 1); if ( !--v6 ) { v7 = (std::string *)((char *)p_str + size); break; } } v8 = (char *)v7 - (char *)p_str; if ( v7 == v5 ) v9 = -1; else v9 = v8; } else { v9 = -1; } v10 = 0; do { std::string::basic_string(&v31, &__str, v10, v9 - v10, __a); if ( SHIBYTE(v31.__r_.__value_.__r.__words[2]) < 0 ) { if ( v10 == size && !v31.__r_.__value_.__l.__size_ ) goto LABEL_26; v11 = (std::string *)v31.__r_.__value_.__r.__words[0]; } else { if ( v10 == size && !*((_BYTE *)&v31.__r_.__value_.__s + 23) ) goto LABEL_26; v11 = &v31; } sub_100009900(__a, (char *)v11); v12 = sub_100268E48(__a); sub_10024A2D0(v2, v12); if ( v30 < 0 ) operator delete(*(void **)&__a[0].std::__non_trivial_if); LABEL_26: if ( v9 == -1 ) goto LABEL_27; v10 = v9 + 1; v15 = __str.__r_.__value_.__l.__size_; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v16 = &__str; else v16 = (std::string *)__str.__r_.__value_.__r.__words[0]; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v15 = HIBYTE(__str.__r_.__value_.__r.__words[2]); if ( v15 <= v10 ) { LABEL_27: v13 = -1; } else { v17 = (char *)v16 + v15; v18 = (char *)v16 + v10; v19 = ~v9 + v15; while ( *v18 != 44 ) { ++v18; if ( !--v19 ) { v18 = v17; break; } } v20 = v18 - (_BYTE *)v16; if ( v18 == v17 ) v13 = -1; else v13 = v20; } if ( SHIBYTE(v31.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v31.__r_.__value_.__l.__data_); v14 = v9 == -1; v9 = v13; } while ( !v14 ); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (unsigned int)sub_10024A36C(v2) >= 2 ) { v21 = 0; do { v22 = cocos2d::CCArray::stringAtIndex(v2, v21); v23 = cocos2d::CCString::intValue(v22); v24 = cocos2d::CCArray::stringAtIndex(v2, v21 + 1); cocos2d::CCDictionary::setObject(v0, v24, v23); v25 = sub_10024A36C(v2); v26 = v21 + 3; v21 += 2; } while ( v26 < v25 ); } return v0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source