{"type": "func", "start": 6442559584, "end": 6442559750, "name": "cocos2d::extension::WebSocket::onUIThreadReceiveMessage", "pseudocode": "// \n// cocos2d::extension::WebSocket::onUIThreadReceiveMessage from 0x18001a860 to 0x18001a906 (166 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18002b700\n// > <???> @ 0x180032408\n// > <???> @ 0x18004cc8c\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::onUIThreadReceiveMessage(\n        cocos2d::extension::WebSocket *this,\n        struct cocos2d::extension::WsMessage *a2)\n{\n  __int64 v4; // rcx\n  void **v5; // rbx\n  int v6; // [rsp+38h] [rbp+10h] BYREF\n\n  switch ( *(_DWORD *)a2 )\n  {\n    case 2:\n      (*(void (__fastcall **)(_QWORD, cocos2d::extension::WebSocket *, _QWORD))(**((_QWORD **)this + 14) + 8LL))(\n        *((_QWORD *)this + 14),\n        this,\n        (unsigned int)(*(_DWORD *)a2 - 2));\n      break;\n    case 3:\n      v5 = *((void ***)a2 + 1);\n      (*(void (__fastcall **)(_QWORD, cocos2d::extension::WebSocket *, void **))(**((_QWORD **)this + 14) + 16LL))(\n        *((_QWORD *)this + 14),\n        this,\n        v5);\n      if ( *v5 )\n      {\n        j_j_free(*v5);\n        *v5 = nullptr;\n      }\n      if ( v5 )\n        j_j_free(v5);\n      break;\n    case 4:\n      v4 = *((_QWORD *)this + 14);\n      v6 = 1;\n      (*(void (__fastcall **)(__int64, cocos2d::extension::WebSocket *, int *))(*(_QWORD *)v4 + 32LL))(v4, this, &v6);\n      break;\n    case 5:\n      (*(void (__fastcall **)(_QWORD, cocos2d::extension::WebSocket *))(**((_QWORD **)this + 14) + 24LL))(\n        *((_QWORD *)this + 14),\n        this);\n      break;\n  }\n}", "assembly": "; \n; cocos2d::extension::WebSocket::onUIThreadReceiveMessage from 0x18001a860 to 0x18001a906 (166 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18002b700\n; > <???> @ 0x180032408\n; > <???> @ 0x18004cc8c\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    rbx                                                            ; +0x0, 0x18001a860\nsub     rsp, 20h                                                       ; +0x2, 0x18001a862\nmov     rbx, rdx                                                       ; +0x6, 0x18001a866\nmov     rdx, rcx                                                       ; +0x9, 0x18001a869\nmov     r8d, [rbx]                                                     ; +0xc, 0x18001a86c\nsub     r8d, 2                                                         ; +0xf, 0x18001a86f\njz      short loc_18001A8F0                                            ; +0x13, 0x18001a873\nsub     r8d, 1                                                         ; +0x15, 0x18001a875\njz      short loc_18001A8B4                                            ; +0x19, 0x18001a879\nsub     r8d, 1                                                         ; +0x1b, 0x18001a87b\njz      short loc_18001A897                                            ; +0x1f, 0x18001a87f\ncmp     r8d, 1                                                         ; +0x21, 0x18001a881\njnz     short loc_18001A900                                            ; +0x25, 0x18001a885\nmov     rcx, [rcx+70h]                                                 ; +0x27, 0x18001a887\nmov     rax, [rcx]                                                     ; +0x2b, 0x18001a88b\nadd     rsp, 20h                                                       ; +0x2e, 0x18001a88e\npop     rbx                                                            ; +0x32, 0x18001a892\njmp     qword ptr [rax+18h]                                            ; +0x33, 0x18001a893\nmov     rcx, [rcx+70h]                                                 ; +0x37, 0x18001a897\nlea     r8, [rsp+28h+arg_8]                                            ; +0x3b, 0x18001a89b\nmov     [rsp+28h+arg_8], 1                                             ; +0x40, 0x18001a8a0\nmov     rax, [rcx]                                                     ; +0x48, 0x18001a8a8\ncall    qword ptr [rax+20h]                                            ; +0x4b, 0x18001a8ab\nadd     rsp, 20h                                                       ; +0x4e, 0x18001a8ae\npop     rbx                                                            ; +0x52, 0x18001a8b2\nretn                                                                   ; +0x53, 0x18001a8b3\nmov     rcx, [rcx+70h]                                                 ; +0x54, 0x18001a8b4\nmov     rbx, [rbx+8]                                                   ; +0x58, 0x18001a8b8\nmov     r8, rbx                                                        ; +0x5c, 0x18001a8bc\nmov     rax, [rcx]                                                     ; +0x5f, 0x18001a8bf\ncall    qword ptr [rax+10h]                                            ; +0x62, 0x18001a8c2\nmov     rcx, [rbx]; Block                                              ; +0x65, 0x18001a8c5\ntest    rcx, rcx                                                       ; +0x68, 0x18001a8c8\njz      short loc_18001A8D9                                            ; +0x6b, 0x18001a8cb\ncall    j_j_free                                                       ; +0x6d, 0x18001a8cd\nmov     qword ptr [rbx], 0                                             ; +0x72, 0x18001a8d2\ntest    rbx, rbx                                                       ; +0x79, 0x18001a8d9\njz      short loc_18001A900                                            ; +0x7c, 0x18001a8dc\nmov     edx, 10h                                                       ; +0x7e, 0x18001a8de\nmov     rcx, rbx; Block                                                ; +0x83, 0x18001a8e3\nadd     rsp, 20h                                                       ; +0x86, 0x18001a8e6\npop     rbx                                                            ; +0x8a, 0x18001a8ea\njmp     j_j_free                                                       ; +0x8b, 0x18001a8eb\nmov     rcx, [rcx+70h]                                                 ; +0x90, 0x18001a8f0\nmov     rax, [rcx]                                                     ; +0x94, 0x18001a8f4\nadd     rsp, 20h                                                       ; +0x97, 0x18001a8f7\npop     rbx                                                            ; +0x9b, 0x18001a8fb\njmp     qword ptr [rax+8]                                              ; +0x9c, 0x18001a8fc\nadd     rsp, 20h                                                       ; +0xa0, 0x18001a900\npop     rbx                                                            ; +0xa4, 0x18001a904\nretn                                                                   ; +0xa5, 0x18001a905", "xrefs": ["<???> @ 0x18002b700", "<???> @ 0x180032408", "<???> @ 0x18004cc8c"], "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"}