// // cocos2d::CCString::createWithData from 0x180010500 to 0x180010610 (272 bytes) // // 3 xrefs: // > cocos2d::CCString::createWithContentsOfFile @ 0x1800104d0 // > @ 0x18014cf68 // > @ 0x1801b81c4 // // 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:21:22 +0000 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCString *__fastcall cocos2d::CCString::createWithData(const unsigned __int8 *Src, size_t Size) { __int64 v2; // rsi cocos2d::CCObject *v4; // rbx char *v5; // rax char *v6; // rdi __int64 v7; // rax void *v8; // rcx void *Block[3]; // [rsp+38h] [rbp-40h] BYREF unsigned __int64 v11; // [rsp+50h] [rbp-28h] v2 = (unsigned int)Size; v4 = nullptr; if ( Src ) { v5 = (char *)malloc((unsigned int)(Size + 1)); v6 = v5; if ( v5 ) { v5[v2] = 0; if ( (_DWORD)v2 ) memcpy(v5, Src, (unsigned int)v2); sub_180005A10(Block, v6); v7 = sub_1800E4AC0(0x58u); if ( v7 ) v4 = (cocos2d::CCObject *)cocos2d::CCString::CCString(v7, (__int64)Block); else v4 = nullptr; cocos2d::CCObject::autorelease(v4); if ( v11 > 0xF ) { v8 = Block[0]; if ( v11 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v8); } free(v6); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source