{"type": "func", "start": 6442557712, "end": 6442557883, "name": "cocos2d::extension::WebSocket::send", "pseudocode": "// \n// cocos2d::extension::WebSocket::send from 0x18001a110 to 0x18001a1bb (171 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180031bb0\n// > <???> @ 0x180031bc0\n// > <???> @ 0x180032408\n// > <???> @ 0x18004cc20\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:43 +0000\n// \n\nvoid __fastcall cocos2d::extension::WebSocket::send(\n        cocos2d::extension::WebSocket *this,\n        const unsigned __int8 *a2,\n        unsigned int a3)\n{\n  __int64 v6; // rsi\n  __int64 v7; // rdi\n  void *v8; // rax\n\n  if ( *((_DWORD *)this + 2) == 1 )\n  {\n    v6 = sub_18001F040(0x10u);\n    *(_QWORD *)(v6 + 8) = 0;\n    *(_DWORD *)v6 = 1;\n    v7 = sub_18001F040(0x10u);\n    *(_QWORD *)v7 = 0;\n    *(_DWORD *)(v7 + 8) = 0;\n    *(_BYTE *)(v7 + 12) = 0;\n    v8 = (void *)sub_18001F33C(a3);\n    *(_QWORD *)v7 = v8;\n    memcpy(v8, a2, a3);\n    *(_DWORD *)(v7 + 8) = a3;\n    *(_QWORD *)(v6 + 8) = v7;\n    sub_180019620(*((_QWORD *)this + 11), v6);\n  }\n}", "assembly": "; \n; cocos2d::extension::WebSocket::send from 0x18001a110 to 0x18001a1bb (171 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180031bb0\n; > <???> @ 0x180031bc0\n; > <???> @ 0x180032408\n; > <???> @ 0x18004cc20\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x18001a110\npush    r14                                                            ; +0x2, 0x18001a112\npush    r15                                                            ; +0x4, 0x18001a114\nsub     rsp, 20h                                                       ; +0x6, 0x18001a116\ncmp     dword ptr [rcx+8], 1                                           ; +0xa, 0x18001a11a\nmov     r15, rdx                                                       ; +0xe, 0x18001a11e\nmov     r14d, r8d                                                      ; +0x11, 0x18001a121\nmov     rbp, rcx                                                       ; +0x14, 0x18001a124\njnz     loc_18001A1B1                                                  ; +0x17, 0x18001a127\nmov     [rsp+38h+arg_8], rbx                                           ; +0x1d, 0x18001a12d\nmov     ecx, 10h; Size                                                 ; +0x22, 0x18001a132\nmov     [rsp+38h+arg_10], rsi                                          ; +0x27, 0x18001a137\nmov     [rsp+38h+arg_18], rdi                                          ; +0x2c, 0x18001a13c\ncall    sub_18001F040                                                  ; +0x31, 0x18001a141\nxor     ebx, ebx                                                       ; +0x36, 0x18001a146\nmov     [rsp+38h+arg_0], rax                                           ; +0x38, 0x18001a148\nmov     ecx, 10h; Size                                                 ; +0x3d, 0x18001a14d\nmov     rsi, rax                                                       ; +0x42, 0x18001a152\nmov     [rax+8], rbx                                                   ; +0x45, 0x18001a155\nmov     dword ptr [rax], 1                                             ; +0x49, 0x18001a159\ncall    sub_18001F040                                                  ; +0x4f, 0x18001a15f\nmov     ecx, r14d; Size                                                ; +0x54, 0x18001a164\nmov     [rsp+38h+arg_0], rax                                           ; +0x57, 0x18001a167\nmov     rdi, rax                                                       ; +0x5c, 0x18001a16c\nmov     [rax], rbx                                                     ; +0x5f, 0x18001a16f\nmov     [rax+8], ebx                                                   ; +0x62, 0x18001a172\nmov     [rax+0Ch], bl                                                  ; +0x65, 0x18001a175\ncall    sub_18001F33C                                                  ; +0x68, 0x18001a178\nmov     r8d, r14d; Size                                                ; +0x6d, 0x18001a17d\nmov     [rdi], rax                                                     ; +0x70, 0x18001a180\nmov     rdx, r15; Src                                                  ; +0x73, 0x18001a183\nmov     rcx, rax; void *                                               ; +0x76, 0x18001a186\ncall    memcpy                                                         ; +0x79, 0x18001a189\nmov     [rdi+8], r14d                                                  ; +0x7e, 0x18001a18e\nmov     rdx, rsi                                                       ; +0x82, 0x18001a192\nmov     [rsi+8], rdi                                                   ; +0x85, 0x18001a195\nmov     rcx, [rbp+58h]                                                 ; +0x89, 0x18001a199\ncall    sub_180019620                                                  ; +0x8d, 0x18001a19d\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x92, 0x18001a1a2\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x97, 0x18001a1a7\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x9c, 0x18001a1ac\nadd     rsp, 20h                                                       ; +0xa1, 0x18001a1b1\npop     r15                                                            ; +0xa5, 0x18001a1b5\npop     r14                                                            ; +0xa7, 0x18001a1b7\npop     rbp                                                            ; +0xa9, 0x18001a1b9\nretn                                                                   ; +0xaa, 0x18001a1ba", "xrefs": ["<???> @ 0x180031bb0", "<???> @ 0x180031bc0", "<???> @ 0x180032408", "<???> @ 0x18004cc20"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}