// // lws_return_http_status from 0x859990 to 0x859a46 (182 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:02:38 +0000 // bool __fastcall lws_return_http_status(int a1, int a2, const char *a3) { int context; // r0 int v7; // r5 unsigned int v8; // r4 char *v10; // r0 int v11; // r4 void *v12[2]; // [sp+Ch] [bp-8h] BYREF context = lws_get_context(a1); v7 = context + 84; v8 = context + 4164; v12[0] = (void *)(context + 84); if ( !a3 ) a3 = &byte_BF4ECA; if ( lws_add_http_header_status(a1, a2, v12, v8) ) return 1; if ( lws_add_http_header_by_token(a1, 0x41u, "libwebsockets", 0xDu, v12, v8) ) return 1; if ( lws_add_http_header_by_token(a1, 0x1Cu, "text/html", 9u, v12, v8) ) return 1; if ( lws_finalize_http_header(a1, (_BYTE **)v12, v8) ) return 1; v10 = (char *)lws_write(a1, v7, (int)v12[0] - v7, 8u); if ( (char *)v12[0] - v7 != v10 ) return 1; v11 = sub_993BD0(v7, "

%u

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

GD Web Decomp

Raw Source