// // GameToolbox::stringSetupToDict from 0x14006fd10 to 0x14006ff21 (529 bytes) // // 6 xrefs: // > GJGameLevel::copyLevelInfo @ 0x1402674dc // > LevelEditorLayer::createObjectsFromSetup @ 0x1403efbdc // > LevelStatsInfoPopup::buildInfoText @ 0x140427537 // > PlayLayer::prepareCreateObjectsFromSetup @ 0x14050b8c3 // > StartPosObject::loadSettingsFromString @ 0x14065347c // > @ 0x1409117bc // // This function is hookable on this platform (idp: pc, 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 11:25:49 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall GameToolbox::stringSetupToDict(_QWORD *a1) { __int64 v2; // r14 size_t v3; // r8 cocos2d::CCArray *v4; // rsi void *v5; // rcx unsigned int v6; // edi cocos2d::CCString *v7; // rax const char *CString; // rax const char *v9; // rbx struct cocos2d::CCObject *v10; // rbp size_t v11; // r8 void *v12; // rcx void *Block[2]; // [rsp+30h] [rbp-68h] BYREF __m128i si128; // [rsp+40h] [rbp-58h] __int128 v16; // [rsp+50h] [rbp-48h] BYREF __int128 v17; // [rsp+60h] [rbp-38h] v2 = cocos2d::CCDictionary::create(); if ( a1[3] > 0xFu ) a1 = (_QWORD *)*a1; *(_OWORD *)Block = 0; si128 = 0; v3 = -1; do ++v3; while ( *((_BYTE *)a1 + v3) ); sub_14003D230(Block, a1, v3); v4 = sub_14006C240((__int64 *)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v5 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v5); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; v6 = 0; if ( !cocos2d::CCArray::count(v4) ) return v2; while ( cocos2d::CCArray::count(v4) >= v6 + 2 ) { v7 = cocos2d::CCArray::objectAtIndex(v4, v6); CString = cocos2d::CCString::getCString(v7); v9 = CString; if ( CString ) { if ( *CString ) { v10 = cocos2d::CCArray::objectAtIndex(v4, v6 + 1); v16 = 0; v17 = 0; v11 = -1; do ++v11; while ( v9[v11] ); sub_14003D230(&v16, v9, v11); cocos2d::CCDictionary::setObject(v2, v10, &v16); if ( *((_QWORD *)&v17 + 1) > 0xFu ) { v12 = (void *)v16; if ( (unsigned __int64)(*((_QWORD *)&v17 + 1) + 1LL) >= 0x1000 ) { v12 = *(void **)(v16 - 8); if ( (unsigned __int64)(v16 - (_QWORD)v12 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v12); } } } v6 += 2; if ( v6 >= cocos2d::CCArray::count(v4) ) return v2; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source