// // sub_100017104 from 0x100017104 to 0x1000173a0 (668 bytes) // // 1 xrefs: // > LevelSettingsObject::objectFromDict @ 0x10040fa90 // // 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:57:19 +0000 // __int64 __fastcall sub_100017104(_QWORD *a1, char *a2) { _QWORD *v3; // x0 __int64 v4; // x20 std::string *p_str; // x8 std::string::size_type size; // x22 std::string *v7; // x9 std::string::size_type v8; // x11 std::string *v9; // x10 __int64 v10; // x8 __int64 v11; // x23 std::string::size_type v12; // x21 std::string *v13; // x1 __int64 v14; // x0 __int64 v15; // x25 bool v16; // zf std::string::size_type v17; // x11 std::string *v18; // x8 _BYTE *v19; // x9 _BYTE *v20; // x10 std::string::size_type v21; // x11 __int64 v22; // x8 __int64 result; // x0 __int64 v24; // x21 __int64 v25; // x0 char *CString; // x0 double v27; // d1 _WORD *v28; // x22 int v29; // w2 std::string __p; // [xsp+0h] [xbp-A0h] BYREF std::string __str; // [xsp+18h] [xbp-88h] BYREF std::allocator __a[8]; // [xsp+30h] [xbp-70h] BYREF char v33; // [xsp+47h] [xbp-59h] std::string v34; // [xsp+48h] [xbp-58h] BYREF if ( a2[23] < 0 ) a2 = *(char **)a2; v3 = sub_100009900(&__str, a2); v4 = sub_1002E736C(v3); 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 ) { v7 = (std::string *)((char *)p_str + size); v8 = size; v9 = p_str; while ( v9->__r_.__value_.__s.__data_[0] != 124 ) { v9 = (std::string *)((char *)v9 + 1); if ( !--v8 ) { v9 = (std::string *)((char *)p_str + size); break; } } v10 = (char *)v9 - (char *)p_str; if ( v9 == v7 ) v11 = -1; else v11 = v10; } else { v11 = -1; } v12 = 0; do { std::string::basic_string(&v34, &__str, v12, v11 - v12, __a); if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 ) { if ( v12 == size && !v34.__r_.__value_.__l.__size_ ) goto LABEL_28; v13 = (std::string *)v34.__r_.__value_.__r.__words[0]; } else { if ( v12 == size && !*((_BYTE *)&v34.__r_.__value_.__s + 23) ) goto LABEL_28; v13 = &v34; } sub_100009900(__a, (char *)v13); v14 = sub_1003064AC(__a); sub_1002E74E0(v4, v14); if ( v33 < 0 ) operator delete(*(void **)&__a[0].std::__non_trivial_if); LABEL_28: if ( v11 == -1 ) goto LABEL_29; v12 = v11 + 1; v17 = __str.__r_.__value_.__l.__size_; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v18 = &__str; else v18 = (std::string *)__str.__r_.__value_.__r.__words[0]; if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v17 = HIBYTE(__str.__r_.__value_.__r.__words[2]); if ( v17 <= v12 ) { LABEL_29: v15 = -1; } else { v19 = (char *)v18 + v17; v20 = (char *)v18 + v12; v21 = ~v11 + v17; while ( *v20 != 124 ) { ++v20; if ( !--v21 ) { v20 = v19; break; } } v22 = v20 - (_BYTE *)v18; if ( v20 == v19 ) v15 = -1; else v15 = v22; } if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v34.__r_.__value_.__l.__data_); v16 = v11 == -1; v11 = v15; } while ( !v16 ); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); result = sub_1002E757C(v4); if ( (_DWORD)result ) { v24 = 0; do { v25 = cocos2d::CCArray::stringAtIndex(v4, v24); CString = (char *)cocos2d::CCString::getCString(v25); sub_100009900(&v34, CString); v28 = sub_10000D918(0xFFFFFF, 0xFFFFFF, 0, -1, 0.0, v27, 1.0, 1.0); if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, v34.__r_.__value_.__l.__data_, v34.__r_.__value_.__l.__size_); else __p = v34; sub_10000E33C((__int64)v28, (int)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v29 = *((_DWORD *)v28 + 23); if ( v29 <= 1101 ) sub_10000FFA4(a1, (__int64)v28, v29); if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v34.__r_.__value_.__l.__data_); v24 = (unsigned int)(v24 + 1); result = sub_1002E757C(v4); } while ( (unsigned int)v24 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source