Program: 32936
Project: 32936
Buggy source:
public void func_152790_a(final GameProfile p_152790_1_,final SkinManager.SkinAvailableCallback p_152790_2_,final boolean p_152790_3_){
  THREAD_POOL.submit(new Runnable(){
    private static final String __OBFID="String_Node_Str";
    public void run(){
      final HashMap var1=Maps.newHashMap();
      try {
        var1.putAll(SkinManager.this.sessionService.getTextures(p_152790_1_,p_152790_3_));
      }
 catch (      InsecureTextureException var3) {
        ;
      }
      if (var1.isEmpty() && p_152790_1_.getId().equals(Minecraft.getMinecraft().getSession().getProfile().getId())) {
        var1.putAll(SkinManager.this.sessionService.getTextures(SkinManager.this.sessionService.fillProfileProperties(p_152790_1_,false),false));
      }
      HashMap var2=Maps.newHashMap();
      if (var1.containsKey(Type.SKIN)) {
        MinecraftProfileTexture var3=((MinecraftProfileTexture)var1.get(Type.SKIN));
        String var4=var3.getMetadata("String_Node_Str");
        HashMap var5=null;
        if (var4 != null) {
          var5=Maps.newHashMap();
          var5.put("String_Node_Str",var4);
        }
        var2.put(Type.SKIN,new MinecraftProfileTexture(var3.getUrl() + "String_Node_Str" + p_152790_1_.getName(),var5));
      }
 else {
        HashMap var5=Maps.newHashMap();
        var5.put("String_Node_Str","String_Node_Str");
        var2.put(Type.SKIN,new MinecraftProfileTexture("String_Node_Str" + p_152790_1_.getName() + "String_Node_Str",var5));
      }
      if (var1.containsKey(Type.CAPE)) {
        var2.put(Type.CAPE,new MinecraftProfileTexture(((MinecraftProfileTexture)var1.get(Type.CAPE)).getUrl() + "String_Node_Str" + p_152790_1_.getName(),null));
      }
 else {
        var2.put(Type.CAPE,new MinecraftProfileTexture("String_Node_Str" + p_152790_1_.getName() + "String_Node_Str",null));
      }
      var1.clear();
      var1.putAll(var2);
      Minecraft.getMinecraft().addScheduledTask(new Runnable(){
        private static final String __OBFID="String_Node_Str";
        public void run(){
          if (var1.containsKey(Type.SKIN)) {
            SkinManager.this.loadSkin((MinecraftProfileTexture)var1.get(Type.SKIN),Type.SKIN,p_152790_2_);
          }
          if (var1.containsKey(Type.CAPE)) {
            SkinManager.this.loadSkin((MinecraftProfileTexture)var1.get(Type.CAPE),Type.CAPE,p_152790_2_);
          }
        }
      }
);
    }
  }
);
}

Fixed version (ground truth):
public void func_152790_a(final GameProfile p_152790_1_,final SkinManager.SkinAvailableCallback p_152790_2_,final boolean p_152790_3_){
  THREAD_POOL.submit(new Runnable(){
    private static final String __OBFID="String_Node_Str";
    public void run(){
      final HashMap var1=Maps.newHashMap();
      try {
        var1.putAll(SkinManager.this.sessionService.getTextures(p_152790_1_,p_152790_3_));
      }
 catch (      InsecureTextureException var3) {
        ;
      }
      if (var1.isEmpty() && p_152790_1_.getId().equals(Minecraft.getMinecraft().getSession().getProfile().getId())) {
        var1.putAll(SkinManager.this.sessionService.getTextures(SkinManager.this.sessionService.fillProfileProperties(p_152790_1_,false),false));
      }
      HashMap var2=Maps.newHashMap();
      if (var1.containsKey(Type.SKIN)) {
        MinecraftProfileTexture var3=((MinecraftProfileTexture)var1.get(Type.SKIN));
        String var4=var3.getMetadata("String_Node_Str");
        HashMap var5=null;
        if (var4 != null) {
          var5=Maps.newHashMap();
          var5.put("String_Node_Str",var4);
        }
        var2.put(Type.SKIN,new MinecraftProfileTexture(var3.getUrl() + "String_Node_Str" + p_152790_1_.getName(),var5));
      }
 else {
        HashMap var5=Maps.newHashMap();
        var2.put(Type.SKIN,new MinecraftProfileTexture("String_Node_Str" + p_152790_1_.getName() + "String_Node_Str",var5));
      }
      if (var1.containsKey(Type.CAPE)) {
        var2.put(Type.CAPE,new MinecraftProfileTexture(((MinecraftProfileTexture)var1.get(Type.CAPE)).getUrl() + "String_Node_Str" + p_152790_1_.getName(),null));
      }
 else {
        var2.put(Type.CAPE,new MinecraftProfileTexture("String_Node_Str" + p_152790_1_.getName() + "String_Node_Str",null));
      }
      var1.clear();
      var1.putAll(var2);
      Minecraft.getMinecraft().addScheduledTask(new Runnable(){
        private static final String __OBFID="String_Node_Str";
        public void run(){
          if (var1.containsKey(Type.SKIN)) {
            SkinManager.this.loadSkin((MinecraftProfileTexture)var1.get(Type.SKIN),Type.SKIN,p_152790_2_);
          }
          if (var1.containsKey(Type.CAPE)) {
            SkinManager.this.loadSkin((MinecraftProfileTexture)var1.get(Type.CAPE),Type.CAPE,p_152790_2_);
          }
        }
      }
);
    }
  }
);
}