// // cocos2d::CCString::createWithData from 0x180010360 to 0x180010459 (249 bytes) // // 4 xrefs: // > cocos2d::CCString::createWithContentsOfFile @ 0x18001033d // > @ 0x1801438a8 // > @ 0x1801ae104 // > @ 0x1801ae110 // // 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 // // 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 _BYTE *v5; // rax _BYTE *v6; // rdi void *v7; // rax void *v8; // rcx void *Block[3]; // [rsp+28h] [rbp-40h] BYREF unsigned __int64 v11; // [rsp+40h] [rbp-28h] v2 = (unsigned int)Size; v4 = nullptr; if ( Src ) { v5 = malloc((unsigned int)(Size + 1)); v6 = v5; if ( v5 ) { v5[v2] = 0; if ( (_DWORD)v2 ) memcpy(v5, Src, (unsigned int)v2); sub_180005910(Block, v6); v7 = operator new(0x58u); if ( v7 ) v4 = (cocos2d::CCObject *)cocos2d::CCString::CCString((__int64)v7, (__int64)Block); 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 ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v8); } free(v6); } } return (struct cocos2d::CCString *)v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source