https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 62486 --> https://bugs.winehq.org/attachment.cgi?id=62486 patch
It seems the issue is the lack of input data validation. Application tries to load GDI+ image from stream, created on icon group resource. Icon group resource format is close to .ico, but not the same - header matches, but icon entries are 2 bytes shorter, entry size field is followed by icon id WORD instead of offset.
Obviously GDI or WIC won't be able to load something like that, because it does not have access to module resources, even if it did there's no way to tell one format from another.
Attached patch works for me. Icon in question is IDB_OPTIONSICON_GENERAL. displayed next to "General options" text.