// // sub_1000B58CC from 0x1000b58cc to 0x1000b5b20 (596 bytes) // // 2 xrefs: // > GameLevelManager::getOnlineLevels @ 0x1000b61c8 // > sub_1000B7618 @ 0x1000b772c // // This function is hookable on this platform (idp: arm, 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 10:58:41 +0000 // void __usercall sub_1000B58CC(__int64 a1@, std::string *a2@) { std::string *p_p; // x1 std::string::size_type size; // x2 const std::string::value_type *v6; // x1 int v7; // w8 unsigned int v8; // w8 __int64 v9; // x21 std::string *v10; // x1 std::string::size_type v11; // x2 __int64 v12; // x0 __int64 v13; // x20 __int64 i; // x21 __int64 v15; // x0 __int64 v16; // x23 void **v17; // x1 std::string::size_type v18; // x2 std::string *v19; // x1 void *v20[2]; // [xsp+8h] [xbp-68h] BYREF unsigned __int8 v21; // [xsp+1Fh] [xbp-51h] std::string __p; // [xsp+20h] [xbp-50h] BYREF sub_100009900(a2, ""); std::string::append(a2, "&diff="); if ( *(char *)(a1 + 367) < 0 ) sub_1000097D0(&__p, *(void **)(a1 + 344), *(_QWORD *)(a1 + 352)); else __p = *(std::string *)(a1 + 344); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) size = HIBYTE(__p.__r_.__value_.__r.__words[2]); else size = __p.__r_.__value_.__l.__size_; std::string::append(a2, (const std::string::value_type *)p_p, size); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( (*(_BYTE *)(a1 + 396) & 1) != 0 ) { v6 = "&star=1"; LABEL_16: std::string::append(a2, v6); goto LABEL_17; } if ( *(_BYTE *)(a1 + 397) == 1 ) { v6 = "&noStar=1"; goto LABEL_16; } LABEL_17: v7 = *(_DWORD *)(a1 + 416); if ( v7 >= 1 ) { v8 = v7 - 6; v9 = v8 >= 5 ? 0LL : dword_10075DB68[v8]; std::string::append(a2, "&demonFilter="); GameToolbox::intToString(v9, &__p); v10 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ? &__p : (std::string *)__p.__r_.__value_.__r.__words[0]; v11 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ? HIBYTE(__p.__r_.__value_.__r.__words[2]) : __p.__r_.__value_.__l.__size_; std::string::append(a2, (const std::string::value_type *)v10, v11); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); } if ( *(_DWORD *)(a1 + 316) == 12 ) { sub_100009900(&__p, ""); v12 = GameLevelManager::sharedState(); v13 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(v12 + 776)); for ( i = 0; (unsigned int)i < (unsigned int)sub_1002E757C(v13); i = (unsigned int)(i + 1) ) { v15 = cocos2d::CCArray::stringAtIndex(v13, i); v16 = cocos2d::CCString::intValue(v15); if ( (_DWORD)i ) std::string::append(&__p, ","); GameToolbox::intToString(v16, v20); if ( (v21 & 0x80u) == 0 ) v17 = v20; else v17 = (void **)v20[0]; if ( (v21 & 0x80u) == 0 ) v18 = v21; else v18 = (std::string::size_type)v20[1]; std::string::append(&__p, (const std::string::value_type *)v17, v18); if ( (char)v21 < 0 ) operator delete(v20[0]); } std::string::append(a2, "&followed="); v19 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ? &__p : (std::string *)__p.__r_.__value_.__r.__words[0]; std::string::append(a2, (const std::string::value_type *)v19); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source