{"type": "func", "start": 6442558496, "end": 6442558665, "name": "cocos2d::extension::WebSocket::send", "pseudocode": "// \n// cocos2d::extension::WebSocket::send from 0x18001a420 to 0x18001a4c9 (169 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18002f5b0\n// > <???> @ 0x18002f5c0\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004acbc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::extension::WebSocket::send(\n        cocos2d::extension::WebSocket *this,\n        const unsigned __int8 *a2,\n        unsigned int a3)\n{\n  _QWORD *v6; // rsi\n  _DWORD *v7; // rdi\n  void *v8; // rax\n\n  if ( *((_DWORD *)this + 2) == 1 )\n  {\n    v6 = operator new(0x10u);\n    v6[1] = 0;\n    *(_DWORD *)v6 = 1;\n    v7 = operator new(0x10u);\n    *(_QWORD *)v7 = 0;\n    v7[2] = 0;\n    *((_BYTE *)v7 + 12) = 0;\n    v8 = operator new(a3);\n    *(_QWORD *)v7 = v8;\n    memcpy(v8, a2, a3);\n    v7[2] = a3;\n    v6[1] = v7;\n    sub_180019780(*((_QWORD *)this + 11), (__int64)v6);\n  }\n}", "assembly": "; \n; cocos2d::extension::WebSocket::send from 0x18001a420 to 0x18001a4c9 (169 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18002f5b0\n; > <???> @ 0x18002f5c0\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004acbc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x18001a420\npush    r14                                                            ; +0x2, 0x18001a422\npush    r15                                                            ; +0x4, 0x18001a424\nsub     rsp, 20h                                                       ; +0x6, 0x18001a426\ncmp     dword ptr [rcx+8], 1                                           ; +0xa, 0x18001a42a\nmov     r15, rdx                                                       ; +0xe, 0x18001a42e\nmov     r14d, r8d                                                      ; +0x11, 0x18001a431\nmov     rbp, rcx                                                       ; +0x14, 0x18001a434\njnz     loc_18001A4BF                                                  ; +0x17, 0x18001a437\nmov     [rsp+38h+arg_8], rbx                                           ; +0x1d, 0x18001a43d\nmov     ecx, 10h; Size                                                 ; +0x22, 0x18001a442\nmov     [rsp+38h+arg_10], rsi                                          ; +0x27, 0x18001a447\nmov     [rsp+38h+arg_18], rdi                                          ; +0x2c, 0x18001a44c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x18001a451\nxor     ebx, ebx                                                       ; +0x36, 0x18001a456\nmov     [rsp+38h+arg_0], rax                                           ; +0x38, 0x18001a458\nmov     rsi, rax                                                       ; +0x3d, 0x18001a45d\nmov     [rax+8], rbx                                                   ; +0x40, 0x18001a460\nlea     ecx, [rbx+10h]; Size                                           ; +0x44, 0x18001a464\nmov     dword ptr [rax], 1                                             ; +0x47, 0x18001a467\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4d, 0x18001a46d\nmov     ecx, r14d; Size                                                ; +0x52, 0x18001a472\nmov     [rsp+38h+arg_0], rax                                           ; +0x55, 0x18001a475\nmov     rdi, rax                                                       ; +0x5a, 0x18001a47a\nmov     [rax], rbx                                                     ; +0x5d, 0x18001a47d\nmov     [rax+8], ebx                                                   ; +0x60, 0x18001a480\nmov     [rax+0Ch], bl                                                  ; +0x63, 0x18001a483\ncall    j_??2@YAPEAX_K@Z; operator new(unsigned __int64)               ; +0x66, 0x18001a486\nmov     r8d, r14d; Size                                                ; +0x6b, 0x18001a48b\nmov     [rdi], rax                                                     ; +0x6e, 0x18001a48e\nmov     rdx, r15; Src                                                  ; +0x71, 0x18001a491\nmov     rcx, rax; void *                                               ; +0x74, 0x18001a494\ncall    memcpy                                                         ; +0x77, 0x18001a497\nmov     [rdi+8], r14d                                                  ; +0x7c, 0x18001a49c\nmov     rdx, rsi                                                       ; +0x80, 0x18001a4a0\nmov     [rsi+8], rdi                                                   ; +0x83, 0x18001a4a3\nmov     rcx, [rbp+58h]                                                 ; +0x87, 0x18001a4a7\ncall    sub_180019780                                                  ; +0x8b, 0x18001a4ab\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x90, 0x18001a4b0\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x95, 0x18001a4b5\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x9a, 0x18001a4ba\nadd     rsp, 20h                                                       ; +0x9f, 0x18001a4bf\npop     r15                                                            ; +0xa3, 0x18001a4c3\npop     r14                                                            ; +0xa5, 0x18001a4c5\npop     rbp                                                            ; +0xa7, 0x18001a4c7\nretn                                                                   ; +0xa8, 0x18001a4c8", "xrefs": ["<???> @ 0x18002f5b0", "<???> @ 0x18002f5c0", "<???> @ 0x18002fdf8", "<???> @ 0x18004acbc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}