// // cocos2d::CCBMFontConfiguration::parseCommonArguments from 0x1002f9d98 to 0x1002fa140 (936 bytes) // // 1 xrefs: // > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x1002f94bc // // 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 // void __fastcall cocos2d::CCBMFontConfiguration::parseCommonArguments(__int64 a1, const std::string *__s) { __int64 size; // x8 const std::string *v5; // x21 char *v6; // x22 std::string *v7; // x0 char *v8; // x0 int v10; // w8 std::string::size_type v11; // x21 int v12; // w0 std::string *v13; // x0 __int64 v14; // x8 const std::string *v15; // x20 char *v16; // x21 std::string *v17; // x0 char *v18; // x0 int v20; // w21 int v21; // w0 cocos2d::CCConfiguration *v22; // x0 __int64 v23; // x8 const std::string *v24; // x20 char *v25; // x21 std::string *v26; // x0 char *v27; // x0 int v29; // w21 int v30; // w0 cocos2d::CCConfiguration *v31; // x0 __int64 v32; // x8 const std::string *v33; // x20 char *v34; // x21 std::string *v35; // x0 char *v36; // x0 int v38; // w21 int v39; // w0 std::string __a; // [xsp+8h] [xbp-68h] BYREF std::string v41; // [xsp+20h] [xbp-50h] BYREF std::allocator v42; // [xsp+3Fh] [xbp-31h] BYREF size = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( size < 0 ) { v5 = (const std::string *)__s->__r_.__value_.__r.__words[0]; size = __s->__r_.__value_.__l.__size_; } else { v5 = __s; } v6 = (char *)v5 + size; if ( size >= 11 ) { v7 = (std::string *)v5; do { v8 = (char *)memchr(v7, 108, size - 10); if ( !v8 ) break; if ( *(_QWORD *)v8 == 0x67696548656E696CLL && *(_QWORD *)(v8 + 3) == 0x3D74686769654865LL ) goto LABEL_13; v7 = (std::string *)(v8 + 1); size = v6 - (char *)v7; } while ( v6 - (char *)v7 > 10 ); } v8 = v6; LABEL_13: v10 = (_DWORD)v8 - (_DWORD)v5; if ( v8 == v6 ) v10 = -1; v11 = v10; v12 = std::string::find(__s, 32, v10); std::string::basic_string(&v41, __s, v11, v12 - (int)v11, (std::allocator *)&__a); if ( (v41.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v13 = &v41; else v13 = (std::string *)v41.__r_.__value_.__r.__words[0]; sscanf((const char *)v13, "lineHeight=%d", a1 + 64); v14 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v14 < 0 ) { v15 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v14 = __s->__r_.__value_.__l.__size_; } else { v15 = __s; } v16 = (char *)v15 + v14; if ( v14 >= 7 ) { v17 = (std::string *)v15; do { v18 = (char *)memchr(v17, 115, v14 - 6); if ( !v18 ) break; if ( *(_DWORD *)v18 == 1818321779 && *(_DWORD *)(v18 + 3) == 1029137772 ) goto LABEL_30; v17 = (std::string *)(v18 + 1); v14 = v16 - (char *)v17; } while ( v16 - (char *)v17 > 6 ); } v18 = v16; LABEL_30: if ( v18 == v16 ) v20 = 6; else v20 = (_DWORD)v18 - (_DWORD)v15 + 7; v21 = std::string::find(__s, 32, v20); std::string::basic_string(&__a, __s, v20, v21 - v20, &v42); if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v41.__r_.__value_.__l.__data_); v41 = __a; v22 = cocos2d::CCConfiguration::sharedConfiguration(); cocos2d::CCConfiguration::getMaxTextureSize(v22); v23 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v23 < 0 ) { v24 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v23 = __s->__r_.__value_.__l.__size_; } else { v24 = __s; } v25 = (char *)v24 + v23; if ( v23 >= 7 ) { v26 = (std::string *)v24; do { v27 = (char *)memchr(v26, 115, v23 - 6); if ( !v27 ) break; if ( *(_DWORD *)v27 == 1818321779 && *(_DWORD *)(v27 + 3) == 1028154732 ) goto LABEL_47; v26 = (std::string *)(v27 + 1); v23 = v25 - (char *)v26; } while ( v25 - (char *)v26 > 6 ); } v27 = v25; LABEL_47: if ( v27 == v25 ) v29 = 6; else v29 = (_DWORD)v27 - (_DWORD)v24 + 7; v30 = std::string::find(__s, 32, v29); std::string::basic_string(&__a, __s, v29, v30 - v29, &v42); if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v41.__r_.__value_.__l.__data_); v41 = __a; v31 = cocos2d::CCConfiguration::sharedConfiguration(); cocos2d::CCConfiguration::getMaxTextureSize(v31); v32 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v32 < 0 ) { v33 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v32 = __s->__r_.__value_.__l.__size_; } else { v33 = __s; } v34 = (char *)v33 + v32; if ( v32 >= 6 ) { v35 = (std::string *)v33; do { v36 = (char *)memchr(v35, 112, v32 - 5); if ( !v36 ) break; if ( *(_DWORD *)v36 == 1701273968 && *((_WORD *)v36 + 2) == 15731 ) goto LABEL_64; v35 = (std::string *)(v36 + 1); v32 = v34 - (char *)v35; } while ( v34 - (char *)v35 > 5 ); } v36 = v34; LABEL_64: if ( v36 == v34 ) v38 = 5; else v38 = (_DWORD)v36 - (_DWORD)v33 + 6; v39 = std::string::find(__s, 32, v38); std::string::basic_string(&__a, __s, v38, v39 - v38, &v42); if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v41.__r_.__value_.__l.__data_); v41 = __a; if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v41.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source