Keep the original ordinals for functions imported by number so Windows can resolve the socket library imports during startup.
Build the socket library and client-local port configuration for redirecting traffic to the offline service. Accept HTTPS and the existing matching and HTTP protocols on the same port. Route requests by the original host.