// // GameManager::stringForCustomObject from 0x14027f090 to 0x14027f1ee (350 bytes) // // 4 xrefs: // > EditorUI::onCreateObject @ 0x1401b2f11 // > EditorUI::createCustomItems @ 0x1401f635f // > @ 0x14091d018 // > @ 0x14091d024 // // 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:28:59 +0000 // // Hidden C++ exception states: #wind=1 _QWORD *__fastcall GameManager::stringForCustomObject(__int64 a1, _QWORD *a2, unsigned int a3) { cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // rbx size_t v8; // r8 cocos2d::CCString *v9; // rsi void *v10; // rcx const char *v11; // rax void *Block[2]; // [rsp+40h] [rbp-48h] BYREF __m128i si128; // [rsp+50h] [rbp-38h] v5 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3); CString = cocos2d::CCString::getCString(v5); *(_OWORD *)Block = 0; si128 = 0; v7 = -1; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003D230(Block, CString, v8); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 464), Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v10 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; if ( v9 ) { v11 = cocos2d::CCString::getCString(v9); *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 0; do ++v7; while ( v11[v7] ); sub_14003D230(a2, v11, v7); } else { *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 15; *(_BYTE *)a2 = 0; } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source