// // GameManager::stringForCustomObject from 0x100384800 to 0x100384976 (374 bytes) // // 2 xrefs: // > EditorUI::createCustomItems @ 0x100031723 // > EditorUI::onCreateObject @ 0x100035227 // // 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 // _QWORD *__fastcall GameManager::stringForCustomObject(_QWORD *a1, __int64 a2, double a3) { _QWORD *v3; // rbx __int64 v4; // r14 cocos2d::CCString *v5; // rax const char *CString; // r12 size_t v7; // rax size_t v8; // r15 char *v9; // r13 __int64 v10; // rbx size_t v11; // r14 cocos2d::CCString *v12; // r14 const char *v13; // r15 size_t v14; // rax size_t v15; // r14 char *v16; // r12 char *v17; // r12 size_t v18; // r13 char v20; // [rsp+0h] [rbp-50h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v3 = a1; v4 = *(_QWORD *)(a2 + 416); v5 = (cocos2d::CCString *)sub_1007AB580("%i", v20); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_23; v8 = v7; if ( v7 >= 0x17 ) { v10 = v4; v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); __p = v9; __dst[0] = v11 + 1; v4 = v10; v3 = a1; __dst[1] = v8; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_8: memmove(v9, CString, v8); v9[v8] = 0; v12 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(v4, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( v12 ) { v13 = cocos2d::CCString::getCString(v12); v14 = strlen(v13); if ( v14 < 0xFFFFFFFFFFFFFFF8LL ) { v15 = v14; if ( v14 >= 0x17 ) { v18 = 26; if ( (v14 | 7) != 0x17 ) v18 = (v14 | 7) + 1; v16 = (char *)operator new(v18); v3[2] = v16; *v3 = v18 + 1; v3[1] = v15; } else { *(_BYTE *)v3 = 2 * v14; v16 = (char *)v3 + 1; if ( !v14 ) goto LABEL_21; } memmove(v16, v13, v15); LABEL_21: v17 = &v16[v15]; goto LABEL_22; } LABEL_23: sub_100006BF0(a3); } *(_BYTE *)v3 = 0; v17 = (char *)v3 + 1; LABEL_22: *v17 = 0; return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source