https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- For me it exports ~40000 lines ending with:
[HKEY_USERS\S-1-5-21-0-0-0-1000\Volatile Environment] "APPDATA"="C:\users\wine\Application Data" "CLIENTNAME"="Console" "HOMEDRIVE"="C:" "HOMEPATH"="\users\wine" "HOMESHARE"="" "LOCALAPPDATA"="C:\users\wine\Local Settings\Application Data" "LOGONSERVER"="\\Note" "SESSIONNAME"="Console" "USERDOMAIN"="Note" "USERNAME"="wine" "USERPROFILE"="C:\users\wine"
Have you tried in a clean prefix?