// // cocos2d::CCBMFontConfiguration::parseInfoArguments from 0x1005d6080 to 0x1005d6270 (496 bytes) // // 1 xrefs: // > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x1005d5604 // // 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::parseInfoArguments(__int64 a1, const std::string *a2, double a3) { unsigned int v3; // edx std::string::pointer data; // rbx __int64 size; // rdx char *v6; // r15 std::string::pointer v7; // rax char *v8; // rax int v9; // ecx int v10; // ecx bool v11; // zf int v12; // eax std::string::size_type v13; // r12 int v14; // eax unsigned int v15; // r15d std::string::size_type v16; // r15 std::string::pointer v17; // r14 size_t v18; // rax size_t v19; // r15 char *v20; // r13 size_t v21; // rbx char *v22; // rbx char __dst[8]; // [rsp+8h] [rbp-48h] BYREF size_t v24; // [rsp+10h] [rbp-40h] char *v25; // [rsp+18h] [rbp-38h] __int64 v26; // [rsp+20h] [rbp-30h] v3 = (unsigned int)a2->__r_.__value_.__l.0; if ( (v3 & 1) != 0 ) { size = a2->__r_.__value_.__l.__size_; data = a2->__r_.__value_.__l.__data_; v6 = &data[size]; if ( size < 8 ) goto LABEL_9; } else { data = a2->__r_.__value_.__s.__data_; size = v3 >> 1; v6 = (char *)&a2->__r_.__value_.__l.0 + size + 1; if ( size < 8 ) goto LABEL_9; } v7 = data; do { v8 = (char *)memchr(v7, 112, size - 7); if ( !v8 ) break; if ( *(_QWORD *)v8 == 0x3D676E6964646170LL ) { v9 = (int)v8; goto LABEL_10; } v7 = v8 + 1; size = v6 - v7; } while ( v6 - v7 > 7 ); LABEL_9: v9 = (int)v6; v8 = v6; LABEL_10: v10 = v9 - (_DWORD)data; v11 = v8 == v6; v12 = -1; if ( !v11 ) v12 = v10; v13 = v12; v14 = std::string::find(a2, 32, v12); v15 = (unsigned int)a2->__r_.__value_.__l.0; if ( (v15 & 1) == 0 ) { v16 = v15 >> 1; if ( v13 <= v16 ) { v17 = a2->__r_.__value_.__s.__data_; goto LABEL_17; } LABEL_30: sub_1000547C0(); } v16 = a2->__r_.__value_.__l.__size_; if ( v16 < v13 ) goto LABEL_30; v17 = a2->__r_.__value_.__l.__data_; LABEL_17: v18 = v14 - (int)v13; v19 = v16 - v13; if ( v19 >= v18 ) v19 = v18; if ( v19 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(a3); v26 = a1; if ( v19 >= 0x17 ) { v21 = 26; if ( (v19 | 7) != 0x17 ) v21 = (v19 | 7) + 1; v20 = (char *)operator new(v21); v25 = v20; *(_QWORD *)__dst = v21 + 1; v24 = v19; LABEL_27: memmove(v20, &v17[v13], v19); v20[v19] = 0; if ( (__dst[0] & 1) == 0 ) goto LABEL_23; goto LABEL_28; } __dst[0] = 2 * v19; v20 = &__dst[1]; if ( v19 ) goto LABEL_27; __dst[1] = 0; if ( (__dst[0] & 1) == 0 ) { LABEL_23: sscanf(&__dst[1], "padding=%d,%d,%d,%d", v26 + 72, v26 + 76, v26 + 80, v26 + 68); return; } LABEL_28: v22 = v25; sscanf(v25, "padding=%d,%d,%d,%d", v26 + 72, v26 + 76, v26 + 80, v26 + 68); operator delete(v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source