Added support for reading .ico from asar
Added support for reading .ico from asar

If the file path is to an asar archive, we extract the file to temp, so
LoadImage can load it

ankitaggarwal011/electron,MaxWhere/electron,RobertJGabriel/electron,SufianHassan/electron,sircharleswatson/electron,oiledCode/electron,Evercoder/electron,beni55/electron,adcentury/electron,JesselJohn/electron,minggo/electron,mrwizard82d1/electron,Andrey-Pavlov/electron,arturts/electron,minggo/electron,robinvandernoord/electron,electron/electron,sky7sea/electron,twolfson/electron,oiledCode/electron,nicobot/electron,bobwol/electron,bitemyapp/electron,minggo/electron,matiasinsaurralde/electron,arusakov/electron,kcrt/electron,fffej/electron,John-Lin/electron,meowlab/electron,renaesop/electron,Jonekee/electron,takashi/electron,ianscrivener/electron,jjz/electron,brave/muon,micalan/electron,soulteary/electron,gamedevsam/electron,kokdemo/electron,ianscrivener/electron,nekuz0r/electron,mjaniszew/electron,rhencke/electron,gamedevsam/electron,pombredanne/electron,destan/electron,kazupon/electron,arusakov/electron,lzpfmh/electron,leolujuyi/electron,faizalpribadi/electron,sircharleswatson/electron,tincan24/electron,chriskdon/electron,pirafrank/electron,SufianHassan/electron,kazupon/electron,soulteary/electron,aichingm/electron,tincan24/electron,baiwyc119/electron,posix4e/electron,bpasero/electron,ankitaggarwal011/electron,astoilkov/electron,aaron-goshine/electron,joaomoreno/atom-shell,ankitaggarwal011/electron,Andrey-Pavlov/electron,christian-bromann/electron,brenca/electron,fffej/electron,sshiting/electron,jjz/electron,cos2004/electron,etiktin/electron,bbondy/electron,kcrt/electron,kostia/electron,the-ress/electron,oiledCode/electron,leftstick/electron,voidbridge/electron,tinydew4/electron,dongjoon-hyun/electron,kenmozi/electron,coderhaoxin/electron,twolfson/electron,John-Lin/electron,oiledCode/electron,brave/electron,carsonmcdonald/electron,posix4e/electron,ankitaggarwal011/electron,lzpfmh/electron,sky7sea/electron,mjaniszew/electron,shennushi/electron,jonatasfreitasv/electron,gabriel/electron,Andrey-Pavlov/electron,IonicaBizauKitchen/electron,posix4e/electron,oiledCode/electron,jaanus/electron,sshiting/electron,fritx/electron,trigrass2/electron,kostia/electron,tylergibson/electron,micalan/electron,fritx/electron,wan-qy/electron,eriser/electron,leolujuyi/electron,thingsinjars/electron,kazupon/electron,smczk/electron,eric-seekas/electron,cqqccqc/electron,ervinb/electron,roadev/electron,joaomoreno/atom-shell,tomashanacek/electron,kazupon/electron,digideskio/electron,christian-bromann/electron,seanchas116/electron,nicholasess/electron,evgenyzinoviev/electron,xfstudio/electron,aecca/electron,Jonekee/electron,mirrh/electron,shockone/electron,bpasero/electron,shiftkey/electron,jtburke/electron,cqqccqc/electron,tonyganch/electron,digideskio/electron,jonatasfreitasv/electron,rreimann/electron,GoooIce/electron,JussMee15/electron,xiruibing/electron,mrwizard82d1/electron,trigrass2/electron,rhencke/electron,shiftkey/electron,christian-bromann/electron,jjz/electron,sircharleswatson/electron,fritx/electron,natgolov/electron,cqqccqc/electron,greyhwndz/electron,twolfson/electron,saronwei/electron,faizalpribadi/electron,RobertJGabriel/electron,brave/muon,jlhbaseball15/electron,setzer777/electron,Jacobichou/electron,IonicaBizauKitchen/electron,jjz/electron,kokdemo/electron,xfstudio/electron,felixrieseberg/electron,rajatsingla28/electron,GoooIce/electron,davazp/electron,bbondy/electron,electron/electron,simongregory/electron,JussMee15/electron,dongjoon-hyun/electron,d-salas/electron,gabrielPeart/electron,RIAEvangelist/electron,aaron-goshine/electron,faizalpribadi/electron,JussMee15/electron,farmisen/electron,mrwizard82d1/electron,takashi/electron,voidbridge/electron,destan/electron,destan/electron,GoooIce/electron,evgenyzinoviev/electron,yan-foto/electron,kostia/electron,bwiggs/electron,Jacobichou/electron,pirafrank/electron,jonatasfreitasv/electron,sky7sea/electron,subblue/electron,gabriel/electron,neutrous/electron,preco21/electron,kcrt/electron,saronwei/electron,coderhaoxin/electron,Neron-X5/electron,d-salas/electron,neutrous/electron,micalan/electron,chriskdon/electron,subblue/electron,seanchas116/electron,jcblw/electron,Floato/electron,trigrass2/electron,felixrieseberg/electron,Jacobichou/electron,IonicaBizauKitchen/electron,icattlecoder/electron,BionicClick/electron,chriskdon/electron,iftekeriba/electron,electron/electron,kostia/electron,yan-foto/electron,Jonekee/electron,lzpfmh/electron,stevekinney/electron,anko/electron,mjaniszew/electron,leftstick/electron,beni55/electron,BionicClick/electron,xfstudio/electron,bobwol/electron,Gerhut/electron,rreimann/electron,faizalpribadi/electron,medixdev/electron,xiruibing/electron,BionicClick/electron,Gerhut/electron,biblerule/UMCTelnetHub,pombredanne/electron,icattlecoder/electron,shiftkey/electron,thompsonemerson/electron,RobertJGabriel/electron,coderhaoxin/electron,gabriel/electron,meowlab/electron,fffej/electron,farmisen/electron,neutrous/electron,xfstudio/electron,miniak/electron,cqqccqc/electron,joaomoreno/atom-shell,arturts/electron,bbondy/electron,evgenyzinoviev/electron,miniak/electron,smczk/electron,nicobot/electron,baiwyc119/electron,howmuchcomputer/electron,pombredanne/electron,fritx/electron,John-Lin/electron,thomsonreuters/electron,felixrieseberg/electron,adcentury/electron,subblue/electron,rhencke/electron,shiftkey/electron,aichingm/electron,iftekeriba/electron,rajatsingla28/electron,micalan/electron,deed02392/electron,deed02392/electron,joaomoreno/atom-shell,biblerule/UMCTelnetHub,mrwizard82d1/electron,Rokt33r/electron,jonatasfreitasv/electron,trigrass2/electron,anko/electron,webmechanicx/electron,etiktin/electron,bwiggs/electron,Neron-X5/electron,Gerhut/electron,JesselJohn/electron,jtburke/electron,meowlab/electron,yan-foto/electron,leftstick/electron,bobwol/electron,sky7sea/electron,tomashanacek/electron,jhen0409/electron,beni55/electron,medixdev/electron,eriser/electron,tincan24/electron,arturts/electron,Rokt33r/electron,abhishekgahlot/electron,sshiting/electron,mirrh/electron,jcblw/electron,Floato/electron,bwiggs/electron,evgenyzinoviev/electron,RIAEvangelist/electron,JesselJohn/electron,farmisen/electron,shennushi/electron,icattlecoder/electron,gabrielPeart/electron,biblerule/UMCTelnetHub,ervinb/electron,aliib/electron,kenmozi/electron,gabriel/electron,vHanda/electron,anko/electron,nekuz0r/electron,Gerhut/electron,bpasero/electron,takashi/electron,GoooIce/electron,kcrt/electron,eric-seekas/electron,thingsinjars/electron,ianscrivener/electron,Andrey-Pavlov/electron,MaxWhere/electron,deed02392/electron,arturts/electron,etiktin/electron,roadev/electron,rreimann/electron,gabriel/electron,shennushi/electron,Jonekee/electron,mirrh/electron,zhakui/electron,RobertJGabriel/electron,xfstudio/electron,chriskdon/electron,zhakui/electron,brave/electron,howmuchcomputer/electron,tomashanacek/electron,tylergibson/electron,rajatsingla28/electron,saronwei/electron,RIAEvangelist/electron,howmuchcomputer/electron,GoooIce/electron,zhakui/electron,soulteary/electron,JesselJohn/electron,tylergibson/electron,felixrieseberg/electron,subblue/electron,sircharleswatson/electron,mjaniszew/electron,roadev/electron,the-ress/electron,anko/electron,sircharleswatson/electron,aliib/electron,greyhwndz/electron,JussMee15/electron,davazp/electron,beni55/electron,meowlab/electron,Neron-X5/electron,aecca/electron,greyhwndz/electron,tonyganch/electron,deed02392/electron,jhen0409/electron,arusakov/electron,chriskdon/electron,dongjoon-hyun/electron,the-ress/electron,gabrielPeart/electron,rhencke/electron,jonatasfreitasv/electron,SufianHassan/electron,subblue/electron,eriser/electron,jaanus/electron,farmisen/electron,smczk/electron,rhencke/electron,shennushi/electron,renaesop/electron,roadev/electron,tinydew4/electron,twolfson/electron,astoilkov/electron,tinydew4/electron,shiftkey/electron,John-Lin/electron,thingsinjars/electron,digideskio/electron,Jacobichou/electron,tincan24/electron,vHanda/electron,matiasinsaurralde/electron,tonyganch/electron,webmechanicx/electron,faizalpribadi/electron,bpasero/electron,farmisen/electron,John-Lin/electron,biblerule/UMCTelnetHub,xiruibing/electron,brave/electron,minggo/electron,lzpfmh/electron,shiftkey/electron,d-salas/electron,bwiggs/electron,greyhwndz/electron,micalan/electron,mirrh/electron,SufianHassan/electron,jonatasfreitasv/electron,voidbridge/electron,thompsonemerson/electron,rajatsingla28/electron,jhen0409/electron,webmechanicx/electron,sky7sea/electron,dongjoon-hyun/electron,tylergibson/electron,subblue/electron,jcblw/electron,destan/electron,howmuchcomputer/electron,thomsonreuters/electron,kenmozi/electron,brenca/electron,MaxWhere/electron,bobwol/electron,lzpfmh/electron,Neron-X5/electron,jtburke/electron,cqqccqc/electron,ianscrivener/electron,miniak/electron,shennushi/electron,brave/electron,renaesop/electron,nicholasess/electron,etiktin/electron,Evercoder/electron,posix4e/electron,renaesop/electron,bobwol/electron,RobertJGabriel/electron,dongjoon-hyun/electron,webmechanicx/electron,kazupon/electron,ervinb/electron,noikiy/electron,IonicaBizauKitchen/electron,cqqccqc/electron,gamedevsam/electron,robinvandernoord/electron,sircharleswatson/electron,miniak/electron,greyhwndz/electron,posix4e/electron,jjz/electron,RIAEvangelist/electron,jcblw/electron,roadev/electron,adcentury/electron,carsonmcdonald/electron,bbondy/electron,greyhwndz/electron,thompsonemerson/electron,miniak/electron,kokdemo/electron,eric-seekas/electron,RobertJGabriel/electron,bwiggs/electron,jlhbaseball15/electron,davazp/electron,vHanda/electron,zhakui/electron,thompsonemerson/electron,abhishekgahlot/electron,ervinb/electron,astoilkov/electron,voidbridge/electron,jaanus/electron,thomsonreuters/electron,seanchas116/electron,shockone/electron,leethomas/electron,jcblw/electron,leftstick/electron,arusakov/electron,simongregory/electron,shockone/electron,bpasero/electron,rreimann/electron,leethomas/electron,sshiting/electron,leethomas/electron,jtburke/electron,leethomas/electron,carsonmcdonald/electron,vHanda/electron,thingsinjars/electron,icattlecoder/electron,coderhaoxin/electron,carsonmcdonald/electron,coderhaoxin/electron,aaron-goshine/electron,sshiting/electron,iftekeriba/electron,jcblw/electron,icattlecoder/electron,soulteary/electron,thomsonreuters/electron,Andrey-Pavlov/electron,etiktin/electron,meowlab/electron,Evercoder/electron,ervinb/electron,bbondy/electron,aaron-goshine/electron,leftstick/electron,leethomas/electron,webmechanicx/electron,gerhardberger/electron,Neron-X5/electron,gabrielPeart/electron,tonyganch/electron,noikiy/electron,Andrey-Pavlov/electron,vHanda/electron,kokdemo/electron,bitemyapp/electron,simongregory/electron,vHanda/electron,minggo/electron,renaesop/electron,davazp/electron,Jonekee/electron,nicobot/electron,Floato/electron,JesselJohn/electron,setzer777/electron,aliib/electron,pirafrank/electron,zhakui/electron,aecca/electron,shennushi/electron,nekuz0r/electron,twolfson/electron,neutrous/electron,howmuchcomputer/electron,aichingm/electron,JussMee15/electron,Gerhut/electron,biblerule/UMCTelnetHub,bbondy/electron,the-ress/electron,iftekeriba/electron,evgenyzinoviev/electron,beni55/electron,robinvandernoord/electron,yan-foto/electron,yan-foto/electron,brenca/electron,wan-qy/electron,destan/electron,robinvandernoord/electron,jaanus/electron,gamedevsam/electron,Jacobichou/electron,stevekinney/electron,leolujuyi/electron,aliib/electron,wan-qy/electron,renaesop/electron,d-salas/electron,nicholasess/electron,matiasinsaurralde/electron,natgolov/electron,abhishekgahlot/electron,pirafrank/electron,noikiy/electron,oiledCode/electron,minggo/electron,stevekinney/electron,dongjoon-hyun/electron,brave/muon,mirrh/electron,shockone/electron,christian-bromann/electron,Rokt33r/electron,thompsonemerson/electron,stevekinney/electron,bpasero/electron,tincan24/electron,Floato/electron,setzer777/electron,ervinb/electron,rajatsingla28/electron,leolujuyi/electron,digideskio/electron,cos2004/electron,aichingm/electron,astoilkov/electron,bitemyapp/electron,digideskio/electron,brenca/electron,IonicaBizauKitchen/electron,natgolov/electron,roadev/electron,soulteary/electron,aecca/electron,preco21/electron,xiruibing/electron,fffej/electron,beni55/electron,seanchas116/electron,fritx/electron,shockone/electron,John-Lin/electron,icattlecoder/electron,jjz/electron,jlhbaseball15/electron,pirafrank/electron,d-salas/electron,miniak/electron,BionicClick/electron,nicholasess/electron,matiasinsaurralde/electron,nicholasess/electron,baiwyc119/electron,saronwei/electron,yan-foto/electron,MaxWhere/electron,bitemyapp/electron,wan-qy/electron,arturts/electron,noikiy/electron,brave/muon,anko/electron,Rokt33r/electron,preco21/electron,adcentury/electron,rhencke/electron,saronwei/electron,bitemyapp/electron,brenca/electron,trigrass2/electron,xiruibing/electron,setzer777/electron,SufianHassan/electron,kostia/electron,eric-seekas/electron,preco21/electron,nicobot/electron,seanchas116/electron,Evercoder/electron,RIAEvangelist/electron,BionicClick/electron,jlhbaseball15/electron,kokdemo/electron,gabriel/electron,tonyganch/electron,nicobot/electron,aichingm/electron,tinydew4/electron,aaron-goshine/electron,thomsonreuters/electron,eriser/electron,nekuz0r/electron,saronwei/electron,abhishekgahlot/electron,medixdev/electron,destan/electron,kostia/electron,gerhardberger/electron,davazp/electron,medixdev/electron,simongregory/electron,smczk/electron,gerhardberger/electron,Neron-X5/electron,adcentury/electron,eric-seekas/electron,jaanus/electron,kokdemo/electron,Jacobichou/electron,aliib/electron,carsonmcdonald/electron,joaomoreno/atom-shell,preco21/electron,Floato/electron,felixrieseberg/electron,gabrielPeart/electron,kcrt/electron,digideskio/electron,jlhbaseball15/electron,tinydew4/electron,ankitaggarwal011/electron,smczk/electron,bwiggs/electron,smczk/electron,arturts/electron,jtburke/electron,aichingm/electron,deed02392/electron,thompsonemerson/electron,micalan/electron,mjaniszew/electron,nicobot/electron,adcentury/electron,brave/electron,mjaniszew/electron,the-ress/electron,cos2004/electron,Rokt33r/electron,stevekinney/electron,nekuz0r/electron,aaron-goshine/electron,brenca/electron,deed02392/electron,felixrieseberg/electron,baiwyc119/electron,iftekeriba/electron,stevekinney/electron,wan-qy/electron,brave/muon,voidbridge/electron,MaxWhere/electron,soulteary/electron,jlhbaseball15/electron,iftekeriba/electron,kazupon/electron,gabrielPeart/electron,GoooIce/electron,bobwol/electron,eriser/electron,rreimann/electron,Jonekee/electron,aecca/electron,tonyganch/electron,thomsonreuters/electron,tylergibson/electron,carsonmcdonald/electron,matiasinsaurralde/electron,the-ress/electron,webmechanicx/electron,setzer777/electron,fffej/electron,farmisen/electron,natgolov/electron,seanchas116/electron,ianscrivener/electron,IonicaBizauKitchen/electron,the-ress/electron,natgolov/electron,anko/electron,leftstick/electron,brave/electron,gerhardberger/electron,tomashanacek/electron,electron/electron,kcrt/electron,simongregory/electron,rreimann/electron,gerhardberger/electron,medixdev/electron,kenmozi/electron,astoilkov/electron,sky7sea/electron,sshiting/electron,leolujuyi/electron,astoilkov/electron,gerhardberger/electron,bitemyapp/electron,tinydew4/electron,BionicClick/electron,aliib/electron,cos2004/electron,twolfson/electron,aecca/electron,thingsinjars/electron,posix4e/electron,joaomoreno/atom-shell,tincan24/electron,ankitaggarwal011/electron,cos2004/electron,pombredanne/electron,takashi/electron,tomashanacek/electron,leolujuyi/electron,faizalpribadi/electron,biblerule/UMCTelnetHub,Evercoder/electron,etiktin/electron,baiwyc119/electron,lzpfmh/electron,electron/electron,Rokt33r/electron,robinvandernoord/electron,eriser/electron,noikiy/electron,JussMee15/electron,brave/muon,arusakov/electron,jhen0409/electron,gamedevsam/electron,pombredanne/electron,eric-seekas/electron,fritx/electron,christian-bromann/electron,jhen0409/electron,abhishekgahlot/electron,gamedevsam/electron,electron/electron,davazp/electron,mrwizard82d1/electron,medixdev/electron,electron/electron,MaxWhere/electron,bpasero/electron,ianscrivener/electron,rajatsingla28/electron,wan-qy/electron,simongregory/electron,nekuz0r/electron,arusakov/electron,tylergibson/electron,jhen0409/electron,pirafrank/electron,takashi/electron,robinvandernoord/electron,matiasinsaurralde/electron,takashi/electron,neutrous/electron,christian-bromann/electron,SufianHassan/electron,preco21/electron,fffej/electron,setzer777/electron,kenmozi/electron,RIAEvangelist/electron,howmuchcomputer/electron,d-salas/electron,kenmozi/electron,trigrass2/electron,abhishekgahlot/electron,jtburke/electron,xiruibing/electron,thingsinjars/electron,jaanus/electron,chriskdon/electron,meowlab/electron,xfstudio/electron,Gerhut/electron,nicholasess/electron,baiwyc119/electron,tomashanacek/electron,Evercoder/electron,neutrous/electron,zhakui/electron,evgenyzinoviev/electron,mirrh/electron,pombredanne/electron,JesselJohn/electron,shockone/electron,voidbridge/electron,mrwizard82d1/electron,noikiy/electron,natgolov/electron,gerhardberger/electron,leethomas/electron,cos2004/electron,Floato/electron,coderhaoxin/electron