// // cocos2d::CCBMFontConfiguration::parseCharacterDefinition from 0x1002fa2b0 to 0x1002fa9fc (1868 bytes) // // 1 xrefs: // > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x1002f9510 // // 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::parseCharacterDefinition(int a1, const std::string *__s, __int64 a3) { __int64 size; // x8 const std::string *v6; // x21 char *v7; // x22 std::string *v8; // x0 char *v9; // x0 int v11; // w8 std::string::size_type v12; // x21 int v13; // w0 std::string *v14; // x0 __int64 v15; // x8 const std::string *v16; // x21 char *v17; // x22 std::string *v18; // x0 char *v19; // x0 int v20; // w8 std::string::size_type v21; // x21 int v22; // w0 std::string *v23; // x0 __int64 v24; // x8 const std::string *v25; // x21 char *v26; // x22 std::string *v27; // x0 char *v28; // x0 int v29; // w8 std::string::size_type v30; // x21 int v31; // w0 std::string *v32; // x0 __int64 v33; // x8 const std::string *v34; // x21 char *v35; // x22 std::string *v36; // x0 char *v37; // x0 int v39; // w8 std::string::size_type v40; // x21 int v41; // w0 std::string *v42; // x0 __int64 v43; // x8 const std::string *v44; // x21 char *v45; // x22 std::string *v46; // x0 char *v47; // x0 int v49; // w8 std::string::size_type v50; // x21 int v51; // w0 std::string *v52; // x0 __int64 v53; // x8 const std::string *v54; // x21 char *v55; // x22 std::string *v56; // x0 char *v57; // x0 int v58; // w8 std::string::size_type v59; // x21 int v60; // w0 std::string *v61; // x0 __int64 v62; // x8 const std::string *v63; // x21 char *v64; // x22 std::string *v65; // x0 char *v66; // x0 int v67; // w8 std::string::size_type v68; // x21 int v69; // w0 std::string *v70; // x0 __int64 v71; // x8 const std::string *v72; // x21 char *v73; // x22 std::string *v74; // x0 char *v75; // x0 int v77; // w8 std::string::size_type v78; // x21 int v79; // w0 std::string *v80; // x0 std::string __a; // [xsp+8h] [xbp-68h] BYREF std::string v82; // [xsp+20h] [xbp-50h] BYREF std::allocator v83; // [xsp+3Fh] [xbp-31h] BYREF size = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( size < 0 ) { v6 = (const std::string *)__s->__r_.__value_.__r.__words[0]; size = __s->__r_.__value_.__l.__size_; } else { v6 = __s; } v7 = (char *)v6 + size; if ( size >= 3 ) { v8 = (std::string *)v6; do { v9 = (char *)memchr(v8, 105, size - 2); if ( !v9 ) break; if ( *(_WORD *)v9 == 25705 && v9[2] == 61 ) goto LABEL_13; v8 = (std::string *)(v9 + 1); size = v7 - (char *)v8; } while ( v7 - (char *)v8 > 2 ); } v9 = v7; LABEL_13: v11 = (_DWORD)v9 - (_DWORD)v6; if ( v9 == v7 ) v11 = -1; v12 = v11; v13 = std::string::find(__s, 32, v11); std::string::basic_string(&v82, __s, v12, v13 - (int)v12, (std::allocator *)&__a); if ( (v82.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &v82; else v14 = (std::string *)v82.__r_.__value_.__r.__words[0]; sscanf((const char *)v14, "id=%u", a3); v15 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v15 < 0 ) { v16 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v15 = __s->__r_.__value_.__l.__size_; } else { v16 = __s; } v17 = (char *)v16 + v15; if ( v15 >= 2 ) { v18 = (std::string *)v16; do { v19 = (char *)memchr(v18, 120, v15 - 1); if ( !v19 ) break; if ( *(_WORD *)v19 == 15736 ) goto LABEL_27; v18 = (std::string *)(v19 + 1); v15 = v17 - (char *)v18; } while ( v17 - (char *)v18 > 1 ); } v19 = v17; LABEL_27: v20 = (_DWORD)v19 - (_DWORD)v16; if ( v19 == v17 ) v20 = -1; v21 = v20; v22 = std::string::find(__s, 32, v20); std::string::basic_string(&__a, __s, v21, v22 - (int)v21, &v83); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); v82 = __a; if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v23 = &v82; else v23 = (std::string *)__a.__r_.__value_.__r.__words[0]; sscanf((const char *)v23, "x=%f", a3 + 4); v24 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v24 < 0 ) { v25 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v24 = __s->__r_.__value_.__l.__size_; } else { v25 = __s; } v26 = (char *)v25 + v24; if ( v24 >= 2 ) { v27 = (std::string *)v25; do { v28 = (char *)memchr(v27, 121, v24 - 1); if ( !v28 ) break; if ( *(_WORD *)v28 == 15737 ) goto LABEL_43; v27 = (std::string *)(v28 + 1); v24 = v26 - (char *)v27; } while ( v26 - (char *)v27 > 1 ); } v28 = v26; LABEL_43: v29 = (_DWORD)v28 - (_DWORD)v25; if ( v28 == v26 ) v29 = -1; v30 = v29; v31 = std::string::find(__s, 32, v29); std::string::basic_string(&__a, __s, v30, v31 - (int)v30, &v83); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); v82 = __a; if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v32 = &v82; else v32 = (std::string *)__a.__r_.__value_.__r.__words[0]; sscanf((const char *)v32, "y=%f", a3 + 8); v33 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v33 < 0 ) { v34 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v33 = __s->__r_.__value_.__l.__size_; } else { v34 = __s; } v35 = (char *)v34 + v33; if ( v33 >= 6 ) { v36 = (std::string *)v34; do { v37 = (char *)memchr(v36, 119, v33 - 5); if ( !v37 ) break; if ( *(_DWORD *)v37 == 1952737655 && *((_WORD *)v37 + 2) == 15720 ) goto LABEL_62; v36 = (std::string *)(v37 + 1); v33 = v35 - (char *)v36; } while ( v35 - (char *)v36 > 5 ); } v37 = v35; LABEL_62: v39 = (_DWORD)v37 - (_DWORD)v34; if ( v37 == v35 ) v39 = -1; v40 = v39; v41 = std::string::find(__s, 32, v39); std::string::basic_string(&__a, __s, v40, v41 - (int)v40, &v83); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); v82 = __a; if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v42 = &v82; else v42 = (std::string *)__a.__r_.__value_.__r.__words[0]; sscanf((const char *)v42, "width=%f", a3 + 12); v43 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v43 < 0 ) { v44 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v43 = __s->__r_.__value_.__l.__size_; } else { v44 = __s; } v45 = (char *)v44 + v43; if ( v43 >= 7 ) { v46 = (std::string *)v44; do { v47 = (char *)memchr(v46, 104, v43 - 6); if ( !v47 ) break; if ( *(_DWORD *)v47 == 1734960488 && *(_DWORD *)(v47 + 3) == 1031039079 ) goto LABEL_81; v46 = (std::string *)(v47 + 1); v43 = v45 - (char *)v46; } while ( v45 - (char *)v46 > 6 ); } v47 = v45; LABEL_81: v49 = (_DWORD)v47 - (_DWORD)v44; if ( v47 == v45 ) v49 = -1; v50 = v49; v51 = std::string::find(__s, 32, v49); std::string::basic_string(&__a, __s, v50, v51 - (int)v50, &v83); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); v82 = __a; if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v52 = &v82; else v52 = (std::string *)__a.__r_.__value_.__r.__words[0]; sscanf((const char *)v52, "height=%f", a3 + 16); v53 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v53 < 0 ) { v54 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v53 = __s->__r_.__value_.__l.__size_; } else { v54 = __s; } v55 = (char *)v54 + v53; if ( v53 >= 8 ) { v56 = (std::string *)v54; do { v57 = (char *)memchr(v56, 120, v53 - 7); if ( !v57 ) break; if ( *(_QWORD *)v57 == 0x3D74657366666F78LL ) goto LABEL_97; v56 = (std::string *)(v57 + 1); v53 = v55 - (char *)v56; } while ( v55 - (char *)v56 > 7 ); } v57 = v55; LABEL_97: v58 = (_DWORD)v57 - (_DWORD)v54; if ( v57 == v55 ) v58 = -1; v59 = v58; v60 = std::string::find(__s, 32, v58); std::string::basic_string(&__a, __s, v59, v60 - (int)v59, &v83); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); v82 = __a; if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v61 = &v82; else v61 = (std::string *)__a.__r_.__value_.__r.__words[0]; sscanf((const char *)v61, "xoffset=%hd", a3 + 20); v62 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v62 < 0 ) { v63 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v62 = __s->__r_.__value_.__l.__size_; } else { v63 = __s; } v64 = (char *)v63 + v62; if ( v62 >= 8 ) { v65 = (std::string *)v63; do { v66 = (char *)memchr(v65, 121, v62 - 7); if ( !v66 ) break; if ( *(_QWORD *)v66 == 0x3D74657366666F79LL ) goto LABEL_113; v65 = (std::string *)(v66 + 1); v62 = v64 - (char *)v65; } while ( v64 - (char *)v65 > 7 ); } v66 = v64; LABEL_113: v67 = (_DWORD)v66 - (_DWORD)v63; if ( v66 == v64 ) v67 = -1; v68 = v67; v69 = std::string::find(__s, 32, v67); std::string::basic_string(&__a, __s, v68, v69 - (int)v68, &v83); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); v82 = __a; if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v70 = &v82; else v70 = (std::string *)__a.__r_.__value_.__r.__words[0]; sscanf((const char *)v70, "yoffset=%hd", a3 + 22); v71 = SHIBYTE(__s->__r_.__value_.__r.__words[2]); if ( v71 < 0 ) { v72 = (const std::string *)__s->__r_.__value_.__r.__words[0]; v71 = __s->__r_.__value_.__l.__size_; } else { v72 = __s; } v73 = (char *)v72 + v71; if ( v71 >= 9 ) { v74 = (std::string *)v72; do { v75 = (char *)memchr(v74, 120, v71 - 8); if ( !v75 ) break; if ( *(_QWORD *)v75 == 0x65636E6176646178LL && v75[8] == 61 ) goto LABEL_132; v74 = (std::string *)(v75 + 1); v71 = v73 - (char *)v74; } while ( v73 - (char *)v74 > 8 ); } v75 = v73; LABEL_132: v77 = (_DWORD)v75 - (_DWORD)v72; if ( v75 == v73 ) v77 = -1; v78 = v77; v79 = std::string::find(__s, 32, v77); std::string::basic_string(&__a, __s, v78, v79 - (int)v78, &v83); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); v82 = __a; if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v80 = &v82; else v80 = (std::string *)__a.__r_.__value_.__r.__words[0]; sscanf((const char *)v80, "xadvance=%hd", a3 + 24); if ( SHIBYTE(v82.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v82.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source