IIUC atexit isn't exported by ucrtbase, but still exists (maybe as a builtin) and is resolved to a module-local symbol which can be used to register functions executed on module process detach. It is called implicitly by C++ compilers to register static destructors.
-- v5: include: Define __cpuid(ex) as intrinsics when possible. include: Don't import atexit from CRTs.