// // lws_return_http_status from 0xbbfc08 to 0xbbfd40 (312 bytes) // // 2 xrefs: // > lws_serve_http_file @ 0xbc3e14 // > @ 0xb20c8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall lws_return_http_status(__int64 a1, int a2, const char *a3) { __int64 context; // x0 char *v7; // x23 unsigned __int64 v8; // x19 int v10; // w0 int v11; // w19 _BYTE *v12; // [xsp+48h] [xbp+48h] BYREF context = lws_get_context(a1); v7 = (char *)(context + 464); v12 = (_BYTE *)(context + 464); v8 = context + 4536; if ( !a3 ) a3 = &byte_F288A0; if ( (unsigned int)lws_add_http_header_status(a1, a2, (void **)&v12, v8) ) return 1; if ( (unsigned int)lws_add_http_header_by_token(a1, 0x41u, "libwebsockets", 13, (void **)&v12, v8) ) return 1; if ( (unsigned int)lws_add_http_header_by_token(a1, 0x1Cu, "text/html", 9, (void **)&v12, v8) ) return 1; if ( (unsigned int)lws_finalize_http_header(a1, &v12, v8) ) return 1; v10 = lws_write(a1, v7, v12 - v7, 8); if ( v10 != (_DWORD)v12 - (_DWORD)v7 ) return 1; v11 = sprintf(v7, "

%u

%s", a2, a3); return (unsigned int)lws_write(a1, v7, v11, 3) != v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source