{"type": "func", "start": 6442558800, "end": 6442558866, "name": "cocos2d::extension::WebSocket::onSubThreadLoop", "pseudocode": "// \n// cocos2d::extension::WebSocket::onSubThreadLoop from 0x18001a550 to 0x18001a592 (66 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180029038\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004acec\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\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  v2 = *((_QWORD *)this + 13);\n  if ( (unsigned int)(v1 - 2) <= 1 )\n  {\n    lws_context_destroy(v2);\n    return 1;\n  }\n  else\n  {\n    if ( v2 )\n      lws_service(v2, 0);\n    Sleep(0x32u);\n    return 0;\n  }\n}", "assembly": "; \n; cocos2d::extension::WebSocket::onSubThreadLoop from 0x18001a550 to 0x18001a592 (66 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180029038\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004acec\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\nsub     rsp, 28h                                                       ; +0x0, 0x18001a550\nmov     eax, [rcx+8]                                                   ; +0x4, 0x18001a554\nmov     rcx, [rcx+68h]                                                 ; +0x7, 0x18001a557\nsub     eax, 2                                                         ; +0xb, 0x18001a55b\ncmp     eax, 1                                                         ; +0xe, 0x18001a55e\njbe     short loc_18001A582                                            ; +0x11, 0x18001a561\ntest    rcx, rcx                                                       ; +0x13, 0x18001a563\njz      short loc_18001A570                                            ; +0x16, 0x18001a566\nxor     edx, edx                                                       ; +0x18, 0x18001a568\ncall    cs:lws_service                                                 ; +0x1a, 0x18001a56a\nmov     ecx, 32h ; '2'; dwMilliseconds                                 ; +0x20, 0x18001a570\ncall    cs:Sleep                                                       ; +0x25, 0x18001a575\nxor     eax, eax                                                       ; +0x2b, 0x18001a57b\nadd     rsp, 28h                                                       ; +0x2d, 0x18001a57d\nretn                                                                   ; +0x31, 0x18001a581\ncall    cs:lws_context_destroy                                         ; +0x32, 0x18001a582\nmov     eax, 1                                                         ; +0x38, 0x18001a588\nadd     rsp, 28h                                                       ; +0x3d, 0x18001a58d\nretn                                                                   ; +0x41, 0x18001a591", "xrefs": ["<???> @ 0x180029038", "<???> @ 0x18002fdf8", "<???> @ 0x18004acec"], "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"}