// // lws_client_connect from 0xe37224 to 0xe373f8 (468 bytes) // // 3 xrefs: // > cocos2d::extension::WebSocket::onSubThreadStarted @ 0xd2019c // > lws_client_connect_extended @ 0xe37414 // > @ 0x8c578 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:09:58 +0000 // __int64 __fastcall lws_client_connect( __int64 a1, _BYTE *a2, unsigned int a3, int a4, _BYTE *a5, _BYTE *a6, _BYTE *a7, _BYTE *a8, int a9) { _BYTE *v16; // x0 __int64 v17; // x19 char v18; // w1 v16 = sub_E35A68(0xD8u); v17 = (__int64)v16; if ( !v16 ) goto LABEL_16; v18 = a9; if ( a9 == -1 ) v18 = 13; *(_QWORD *)v16 = a1; v16[66] = v18; *((_DWORD *)v16 + 22) = -1; *((_QWORD *)v16 + 18) = 0; v16[73] = 6; *((_QWORD *)v16 + 1) = 0; v16[77] = 0; if ( a4 ) { lws_log(1, "libwebsockets not configured for ssl\n"); goto LABEL_16; } if ( (unsigned int)sub_E33F70((__int64)v16) ) { LABEL_16: sub_E35A4C((void *)v17, 0); return 0; } *(_WORD *)(*(_QWORD *)(v17 + 152) + 2124LL) = a3; if ( (unsigned int)sub_E34214(v17, 78, a2) || (unsigned int)sub_E34214(v17, 79, a5) || (unsigned int)sub_E34214(v17, 80, a6) || a7 && (unsigned int)sub_E34214(v17, 81, a7) || a8 && (unsigned int)sub_E34214(v17, 77, a8) ) { sub_E35A4C(*(void **)(v17 + 152), 0); goto LABEL_16; } *(_QWORD *)(v17 + 8) = *(_QWORD *)(a1 + 4584); if ( (int)sub_E3A6F8(a1, v17, 17, a2, a3) <= 0 ) return sub_E36E2C(v17); lws_set_timeout(v17, 7, 5); *(_BYTE *)(v17 + 72) = 13; return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source