// // sub_180003A20 from 0x180003a20 to 0x180003aad (141 bytes) // // 5 xrefs: // > cocos2d::extension::WebSocket::onSubThreadStarted @ 0x18001a66b // > @ 0x18002d334 // > @ 0x18002d344 // > @ 0x1800492a0 // > @ 0x1800492ac // // 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 sub_180003A20(_QWORD *Src, _BYTE *a2) { unsigned __int64 Size; // rbx unsigned __int64 v4; // r8 __int64 v5; // rcx _QWORD *v6; // rax char *v7; // rdi Size = -1; do ++Size; while ( a2[Size] ); v4 = Src[3]; v5 = Src[2]; if ( Size > Src[3] - v5 ) return sub_180003810(Src, Size, v4, a2, Size); Src[2] = v5 + Size; v6 = Src; if ( v4 > 0xF ) v6 = (_QWORD *)*Src; v7 = (char *)v6 + v5; memmove((char *)v6 + v5, a2, Size); v7[Size] = 0; return Src; }