{"type": "func", "start": 6442558016, "end": 6442558088, "name": "cocos2d::extension::WebSocket::onSubThreadLoop", "pseudocode": "// \n// cocos2d::extension::WebSocket::onSubThreadLoop from 0x18001a240 to 0x18001a288 (72 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18002b6f0\n// > <???> @ 0x180032408\n// > <???> @ 0x18004cc50\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\n__int64 __fastcall cocos2d::extension::WebSocket::onSubThreadLoop(cocos2d::extension::WebSocket *this)\n{\n  int v1; // eax\n  __int64 v2; // rcx\n\n  v1 = *((_DWORD *)this + 2);\n  if ( v1 == 3 || v1 == 2 )\n  {\n    lws_context_destroy(*((_QWORD *)this + 13));\n    return 1;\n  }\n  else\n  {\n    v2 = *((_QWORD *)this + 13);\n    if ( v2 )\n      lws_service(v2, 0);\n    Sleep(0x32u);\n    return 0;\n  }\n}", "assembly": "; \n; cocos2d::extension::WebSocket::onSubThreadLoop from 0x18001a240 to 0x18001a288 (72 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18002b6f0\n; > <???> @ 0x180032408\n; > <???> @ 0x18004cc50\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; \nsub     rsp, 28h                                                       ; +0x0, 0x18001a240\nmov     eax, [rcx+8]                                                   ; +0x4, 0x18001a244\ncmp     eax, 3                                                         ; +0x7, 0x18001a247\njz      short loc_18001A274                                            ; +0xa, 0x18001a24a\ncmp     eax, 2                                                         ; +0xc, 0x18001a24c\njz      short loc_18001A274                                            ; +0xf, 0x18001a24f\nmov     rcx, [rcx+68h]                                                 ; +0x11, 0x18001a251\ntest    rcx, rcx                                                       ; +0x15, 0x18001a255\njz      short loc_18001A262                                            ; +0x18, 0x18001a258\nxor     edx, edx                                                       ; +0x1a, 0x18001a25a\ncall    cs:lws_service                                                 ; +0x1c, 0x18001a25c\nmov     ecx, 32h ; '2'; dwMilliseconds                                 ; +0x22, 0x18001a262\ncall    cs:Sleep                                                       ; +0x27, 0x18001a267\nxor     eax, eax                                                       ; +0x2d, 0x18001a26d\nadd     rsp, 28h                                                       ; +0x2f, 0x18001a26f\nretn                                                                   ; +0x33, 0x18001a273\nmov     rcx, [rcx+68h]                                                 ; +0x34, 0x18001a274\ncall    cs:lws_context_destroy                                         ; +0x38, 0x18001a278\nmov     eax, 1                                                         ; +0x3e, 0x18001a27e\nadd     rsp, 28h                                                       ; +0x43, 0x18001a283\nretn                                                                   ; +0x47, 0x18001a287", "xrefs": ["<???> @ 0x18002b6f0", "<???> @ 0x180032408", "<???> @ 0x18004cc50"], "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"}