
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

Image * PingImages(ImageInfo *image_info,char *filename,ExceptionInfo *exception)

{
  char *destination;
  int iVar1;
  int iVar2;
  ImageInfo *image_info_00;
  ExceptionInfo *exception_00;
  size_t sVar3;
  Image *pIVar4;
  size_t value;
  int in_GS_OFFSET;
  Image *images;
  char ping_filename [4096];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (image_info == (ImageInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");
  }
  if (image_info->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,
                  "PingImages");
  }
  if (image_info->debug != MagickFalse) {
    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename
                  );
  }
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"
                 );
  }
  destination = image_info->filename;
  SetImageOption(image_info,"filename",filename);
  CopyMagickString(destination,filename,0x1000);
  InterpretImageFilename
            (image_info,(Image *)0x0,destination,image_info->scene,ping_filename,exception);
  iVar2 = LocaleCompare(ping_filename,destination);
  if (iVar2 == 0) {
    pIVar4 = PingImage(image_info,exception);
  }
  else {
    image_info_00 = CloneImageInfo(image_info);
    exception_00 = AcquireExceptionInfo();
    SetImageInfo(image_info_00,0,exception_00);
    DestroyExceptionInfo(exception_00);
    if (image_info_00->number_scenes == 0) {
      DestroyImageInfo(image_info_00);
      pIVar4 = PingImage(image_info,exception);
    }
    else {
      CopyMagickString(ping_filename,image_info_00->filename,0x1000);
      images = NewImageList();
      value = image_info_00->scene;
      sVar3 = image_info_00->number_scenes + value;
      if ((int)value < (int)sVar3) {
        do {
          InterpretImageFilename
                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);
          pIVar4 = PingImage(image_info_00,exception);
          if (pIVar4 != (Image *)0x0) {
            AppendImageToList(&images,pIVar4);
          }
          value = value + 1;
        } while (sVar3 != value);
      }
      DestroyImageInfo(image_info_00);
      pIVar4 = images;
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pIVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 PingImages(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  undefined4 local_1024;
  undefined1 local_1020 [4096];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x771c9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");
  }
  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,
                  "PingImages");
  }
  if (*(int *)(param_1 + 0x31f0) != 0) {
    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,
                   param_1 + 0x21f0);
  }
  if (param_3 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"
                 );
  }
  iVar1 = param_1 + 0x21f0;
  SetImageOption(param_1,"filename",param_2);
  CopyMagickString(iVar1,param_2,0x1000);
  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);
  iVar1 = LocaleCompare(local_1020,iVar1);
  if (iVar1 == 0) {
    uVar2 = PingImage(param_1,param_3);
  }
  else {
    iVar1 = CloneImageInfo(param_1);
    uVar2 = AcquireExceptionInfo();
    SetImageInfo(iVar1,0,uVar2);
    DestroyExceptionInfo(uVar2);
    if (*(int *)(iVar1 + 0x2c) == 0) {
      DestroyImageInfo(iVar1);
      uVar2 = PingImage(param_1,param_3);
    }
    else {
      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);
      local_1024 = NewImageList();
      iVar5 = *(int *)(iVar1 + 0x28);
      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;
      if (iVar5 < iVar3) {
        do {
          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);
          iVar4 = PingImage(iVar1,param_3);
          if (iVar4 != 0) {
            AppendImageToList(&local_1024,iVar4);
          }
          iVar5 = iVar5 + 1;
        } while (iVar3 != iVar5);
      }
      DestroyImageInfo(iVar1);
      uVar2 = local_1024;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0029eab0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x361e37
SUB ESP,0x103c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x102c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x1050]
MOV EDX,dword ptr [ESP + 0x1054]
MOV EDI,dword ptr [ESP + 0x1058]
TEST ESI,ESI
JZ 0x0007743a
CMP dword ptr [ESI + 0x31f4],0xabacadab
JNZ 0x0007741b
MOV ECX,dword ptr [ESI + 0x31f0]
TEST ECX,ECX
JNZ 0x000773a0
TEST EDI,EDI
JZ 0x000773fc
LEA EAX,[EBX + 0xffef3ac8]
SUB ESP,0x4
PUSH EDX
LEA EBP,[ESI + 0x21f0]
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
PUSH ESI
CALL 0x000338f0
ADD ESP,0xc
PUSH 0x1000
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EBP
CALL 0x00030b70
POP EAX
POP EDX
PUSH EDI
LEA EAX,[ESP + 0x38]
MOV dword ptr [ESP + 0x18],EAX
PUSH EAX
PUSH dword ptr [ESI + 0x28]
PUSH EBP
PUSH 0x0
PUSH ESI
CALL 0x00030650
ADD ESP,0x18
PUSH EBP
PUSH dword ptr [ESP + 0x18]
CALL 0x000326f0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00077370
SUB ESP,0xc
PUSH ESI
CALL 0x000324c0
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
CALL 0x00032f50
SUB ESP,0x4
PUSH EAX
MOV EBP,EAX
PUSH 0x0
PUSH dword ptr [ESP + 0x1c]
CALL 0x00031490
MOV dword ptr [ESP],EBP
CALL 0x000335b0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EAX + 0x2c]
TEST ECX,ECX
JZ 0x000773e0
MOV EBP,dword ptr [ESP + 0x10]
SUB ESP,0x4
LEA EAX,[EBP + 0x21f0]
MOV dword ptr [ESP + 0x18],EAX
PUSH 0x1000
PUSH EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x00030b70
ADD ESP,0x10
CALL 0x000330d0
MOV EDX,dword ptr [EBP + 0x28]
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,dword ptr [EBP + 0x2c]
MOV EBP,EDX
ADD EAX,EDX
CMP EAX,EDX
MOV dword ptr [ESP + 0x18],EAX
JLE 0x00077352
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x1c],EAX
NOP
LEA ESI,[ESI]
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESP + 0x20]
PUSH EBP
PUSH dword ptr [ESP + 0x20]
PUSH 0x0
PUSH ESI
CALL 0x00030650
ADD ESP,0x18
PUSH EDI
PUSH dword ptr [ESP + 0x1c]
CALL 0x000306c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00077349
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x28]
CALL 0x00030a60
ADD ESP,0x10
ADD EBP,0x1
CMP dword ptr [ESP + 0x18],EBP
JNZ 0x00077310
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
CALL 0x00031450
MOV EAX,dword ptr [ESP + 0x38]
ADD ESP,0x10
JMP 0x0007737d
SUB ESP,0x8
PUSH EDI
PUSH ESI
CALL 0x000306c0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x102c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000773f7
ADD ESP,0x103c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
LEA EAX,[ESI + 0x21f0]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffed32b8]
PUSH 0x154
PUSH EAX
LEA EAX,[EBX + 0xffed2f8c]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0007721f
SUB ESP,0xc
PUSH EAX
CALL 0x00031450
POP EAX
POP EDX
PUSH EDI
PUSH ESI
CALL 0x000306c0
ADD ESP,0x10
JMP 0x0007737d
CALL 0x0029eab0
LEA EAX,[EBX + 0xffed32c4]
PUSH EAX
LEA EAX,[EBX + 0xffed2f8c]
PUSH 0x156
PUSH EAX
LEA EAX,[EBX + 0xffec6a3c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffed32c4]
PUSH EAX
LEA EAX,[EBX + 0xffed2f8c]
PUSH 0x152
PUSH EAX
LEA EAX,[EBX + 0xffec5b28]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffed32c4]
PUSH EAX
LEA EAX,[EBX + 0xffed2f8c]
PUSH 0x151
PUSH EAX
LEA EAX,[EBX + 0xffec6a18]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 PingImages(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}\n\n" comment (function_definition "undefined4 PingImages(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}" type_identifier (function_declarator "PingImages(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_1024;" type_identifier identifier ;) (declaration "undefined1 local_1020 [4096];" type_identifier (array_declarator "local_1020 [4096]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x771c9;" (assignment_expression "uStack_14 = 0x771c9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" { comment (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" identifier (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" ( (string_literal ""image_info != (ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" { comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" ( (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" * (cast_expression "(int *)(param_1 + 0x31f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f0)" ( (binary_expression "param_1 + 0x31f0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0)" identifier (argument_list "(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0)" ( number_literal , (string_literal ""MagickCore/constitute.c"" " string_content ") , (string_literal ""PingImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) ))) ;) })) (if_statement "if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (expression_statement "iVar1 = param_1 + 0x21f0;" (assignment_expression "iVar1 = param_1 + 0x21f0" identifier = (binary_expression "param_1 + 0x21f0" identifier + number_literal)) ;) (expression_statement "SetImageOption(param_1,"filename",param_2);" (call_expression "SetImageOption(param_1,"filename",param_2)" identifier (argument_list "(param_1,"filename",param_2)" ( identifier , (string_literal ""filename"" " string_content ") , identifier ))) ;) (expression_statement "CopyMagickString(iVar1,param_2,0x1000);" (call_expression "CopyMagickString(iVar1,param_2,0x1000)" identifier (argument_list "(iVar1,param_2,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);" (call_expression "InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3)" identifier (argument_list "(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "iVar1 = LocaleCompare(local_1020,iVar1);" (assignment_expression "iVar1 = LocaleCompare(local_1020,iVar1)" identifier = (call_expression "LocaleCompare(local_1020,iVar1)" identifier (argument_list "(local_1020,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = PingImage(param_1,param_3);\n  }" { (expression_statement "uVar2 = PingImage(param_1,param_3);" (assignment_expression "uVar2 = PingImage(param_1,param_3)" identifier = (call_expression "PingImage(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) }) (else_clause "else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" else (compound_statement "{\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" { (expression_statement "iVar1 = CloneImageInfo(param_1);" (assignment_expression "iVar1 = CloneImageInfo(param_1)" identifier = (call_expression "CloneImageInfo(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = AcquireExceptionInfo();" (assignment_expression "uVar2 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "SetImageInfo(iVar1,0,uVar2);" (call_expression "SetImageInfo(iVar1,0,uVar2)" identifier (argument_list "(iVar1,0,uVar2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar2);" (call_expression "DestroyExceptionInfo(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x2c) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x2c) == 0" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }" { (expression_statement "DestroyImageInfo(iVar1);" (call_expression "DestroyImageInfo(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = PingImage(param_1,param_3);" (assignment_expression "uVar2 = PingImage(param_1,param_3)" identifier = (call_expression "PingImage(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" else (compound_statement "{\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" { (expression_statement "CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);" (call_expression "CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000)" identifier (argument_list "(local_1020,iVar1 + 0x21f0,0x1000)" ( identifier , (binary_expression "iVar1 + 0x21f0" identifier + number_literal) , number_literal ))) ;) (expression_statement "local_1024 = NewImageList();" (assignment_expression "local_1024 = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + 0x28);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x28)" identifier = (pointer_expression "*(int *)(iVar1 + 0x28)" * (cast_expression "(int *)(iVar1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x2c) + iVar5" identifier = (binary_expression "*(int *)(iVar1 + 0x2c) + iVar5" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) + identifier)) ;) (if_statement "if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }" if (parenthesized_expression "(iVar5 < iVar3)" ( (binary_expression "iVar5 < iVar3" identifier < identifier) )) (compound_statement "{\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }" { (do_statement "do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);" do (compound_statement "{\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        }" { (expression_statement "InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);" (call_expression "InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3)" identifier (argument_list "(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3)" ( identifier , number_literal , identifier , identifier , (binary_expression "iVar1 + 0x21f0" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar4 = PingImage(iVar1,param_3);" (assignment_expression "iVar4 = PingImage(iVar1,param_3)" identifier = (call_expression "PingImage(iVar1,param_3)" identifier (argument_list "(iVar1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            AppendImageToList(&local_1024,iVar4);\n          }" { (expression_statement "AppendImageToList(&local_1024,iVar4);" (call_expression "AppendImageToList(&local_1024,iVar4)" identifier (argument_list "(&local_1024,iVar4)" ( (pointer_expression "&local_1024" & identifier) , identifier ))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar5)" ( (binary_expression "iVar3 != iVar5" identifier != identifier) )) ;) })) (expression_statement "DestroyImageInfo(iVar1);" (call_expression "DestroyImageInfo(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = local_1024;" (assignment_expression "uVar2 = local_1024" identifier = identifier) ;) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nImage * PingImages(ImageInfo *image_info,char *filename,ExceptionInfo *exception)\n\n{\n  char *destination;\n  int iVar1;\n  int iVar2;\n  ImageInfo *image_info_00;\n  ExceptionInfo *exception_00;\n  size_t sVar3;\n  Image *pIVar4;\n  size_t value;\n  int in_GS_OFFSET;\n  Image *images;\n  char ping_filename [4096];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  );\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  destination = image_info->filename;\n  SetImageOption(image_info,"filename",filename);\n  CopyMagickString(destination,filename,0x1000);\n  InterpretImageFilename\n            (image_info,(Image *)0x0,destination,image_info->scene,ping_filename,exception);\n  iVar2 = LocaleCompare(ping_filename,destination);\n  if (iVar2 == 0) {\n    pIVar4 = PingImage(image_info,exception);\n  }\n  else {\n    image_info_00 = CloneImageInfo(image_info);\n    exception_00 = AcquireExceptionInfo();\n    SetImageInfo(image_info_00,0,exception_00);\n    DestroyExceptionInfo(exception_00);\n    if (image_info_00->number_scenes == 0) {\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }\n    else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pIVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment comment comment comment comment comment (function_definition "Image * PingImages(ImageInfo *image_info,char *filename,ExceptionInfo *exception)\n\n{\n  char *destination;\n  int iVar1;\n  int iVar2;\n  ImageInfo *image_info_00;\n  ExceptionInfo *exception_00;\n  size_t sVar3;\n  Image *pIVar4;\n  size_t value;\n  int in_GS_OFFSET;\n  Image *images;\n  char ping_filename [4096];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  );\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  destination = image_info->filename;\n  SetImageOption(image_info,"filename",filename);\n  CopyMagickString(destination,filename,0x1000);\n  InterpretImageFilename\n            (image_info,(Image *)0x0,destination,image_info->scene,ping_filename,exception);\n  iVar2 = LocaleCompare(ping_filename,destination);\n  if (iVar2 == 0) {\n    pIVar4 = PingImage(image_info,exception);\n  }\n  else {\n    image_info_00 = CloneImageInfo(image_info);\n    exception_00 = AcquireExceptionInfo();\n    SetImageInfo(image_info_00,0,exception_00);\n    DestroyExceptionInfo(exception_00);\n    if (image_info_00->number_scenes == 0) {\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }\n    else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pIVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* PingImages(ImageInfo *image_info,char *filename,ExceptionInfo *exception)" * (function_declarator "PingImages(ImageInfo *image_info,char *filename,ExceptionInfo *exception)" identifier (parameter_list "(ImageInfo *image_info,char *filename,ExceptionInfo *exception)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  char *destination;\n  int iVar1;\n  int iVar2;\n  ImageInfo *image_info_00;\n  ExceptionInfo *exception_00;\n  size_t sVar3;\n  Image *pIVar4;\n  size_t value;\n  int in_GS_OFFSET;\n  Image *images;\n  char ping_filename [4096];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  );\n  }\n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  destination = image_info->filename;\n  SetImageOption(image_info,"filename",filename);\n  CopyMagickString(destination,filename,0x1000);\n  InterpretImageFilename\n            (image_info,(Image *)0x0,destination,image_info->scene,ping_filename,exception);\n  iVar2 = LocaleCompare(ping_filename,destination);\n  if (iVar2 == 0) {\n    pIVar4 = PingImage(image_info,exception);\n  }\n  else {\n    image_info_00 = CloneImageInfo(image_info);\n    exception_00 = AcquireExceptionInfo();\n    SetImageInfo(image_info_00,0,exception_00);\n    DestroyExceptionInfo(exception_00);\n    if (image_info_00->number_scenes == 0) {\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }\n    else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pIVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char *destination;" primitive_type (pointer_declarator "*destination" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ImageInfo *image_info_00;" type_identifier (pointer_declarator "*image_info_00" * identifier) ;) (declaration "ExceptionInfo *exception_00;" type_identifier (pointer_declarator "*exception_00" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "Image *pIVar4;" type_identifier (pointer_declarator "*pIVar4" * identifier) ;) (declaration "size_t value;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "Image *images;" type_identifier (pointer_declarator "*images" * identifier) ;) (declaration "char ping_filename [4096];" primitive_type (array_declarator "ping_filename [4096]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" if (parenthesized_expression "(image_info == (ImageInfo *)0x0)" ( (binary_expression "image_info == (ImageInfo *)0x0" identifier == (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" { comment (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" identifier (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" ( (string_literal ""image_info != (ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (if_statement "if (image_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" if (parenthesized_expression "(image_info->signature != 0xabacadab)" ( (binary_expression "image_info->signature != 0xabacadab" (field_expression "image_info->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" { comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (if_statement "if (image_info->debug != MagickFalse) {\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  );\n  }" if (parenthesized_expression "(image_info->debug != MagickFalse)" ( (binary_expression "image_info->debug != MagickFalse" (field_expression "image_info->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  );\n  }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  );" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  )" identifier (argument_list "(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",image_info->filename\n                  )" ( identifier , (string_literal ""MagickCore/constitute.c"" " string_content ") , (string_literal ""PingImages"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image_info->filename" identifier -> field_identifier) ))) ;) })) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" if (parenthesized_expression "(exception == (ExceptionInfo *)0x0)" ( (binary_expression "exception == (ExceptionInfo *)0x0" identifier == (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (expression_statement "destination = image_info->filename;" (assignment_expression "destination = image_info->filename" identifier = (field_expression "image_info->filename" identifier -> field_identifier)) ;) (expression_statement "SetImageOption(image_info,"filename",filename);" (call_expression "SetImageOption(image_info,"filename",filename)" identifier (argument_list "(image_info,"filename",filename)" ( identifier , (string_literal ""filename"" " string_content ") , identifier ))) ;) (expression_statement "CopyMagickString(destination,filename,0x1000);" (call_expression "CopyMagickString(destination,filename,0x1000)" identifier (argument_list "(destination,filename,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "InterpretImageFilename\n            (image_info,(Image *)0x0,destination,image_info->scene,ping_filename,exception);" (call_expression "InterpretImageFilename\n            (image_info,(Image *)0x0,destination,image_info->scene,ping_filename,exception)" identifier (argument_list "(image_info,(Image *)0x0,destination,image_info->scene,ping_filename,exception)" ( identifier , (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (field_expression "image_info->scene" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "iVar2 = LocaleCompare(ping_filename,destination);" (assignment_expression "iVar2 = LocaleCompare(ping_filename,destination)" identifier = (call_expression "LocaleCompare(ping_filename,destination)" identifier (argument_list "(ping_filename,destination)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    pIVar4 = PingImage(image_info,exception);\n  }\n  else {\n    image_info_00 = CloneImageInfo(image_info);\n    exception_00 = AcquireExceptionInfo();\n    SetImageInfo(image_info_00,0,exception_00);\n    DestroyExceptionInfo(exception_00);\n    if (image_info_00->number_scenes == 0) {\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }\n    else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pIVar4 = PingImage(image_info,exception);\n  }" { (expression_statement "pIVar4 = PingImage(image_info,exception);" (assignment_expression "pIVar4 = PingImage(image_info,exception)" identifier = (call_expression "PingImage(image_info,exception)" identifier (argument_list "(image_info,exception)" ( identifier , identifier )))) ;) }) (else_clause "else {\n    image_info_00 = CloneImageInfo(image_info);\n    exception_00 = AcquireExceptionInfo();\n    SetImageInfo(image_info_00,0,exception_00);\n    DestroyExceptionInfo(exception_00);\n    if (image_info_00->number_scenes == 0) {\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }\n    else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }\n  }" else (compound_statement "{\n    image_info_00 = CloneImageInfo(image_info);\n    exception_00 = AcquireExceptionInfo();\n    SetImageInfo(image_info_00,0,exception_00);\n    DestroyExceptionInfo(exception_00);\n    if (image_info_00->number_scenes == 0) {\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }\n    else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }\n  }" { (expression_statement "image_info_00 = CloneImageInfo(image_info);" (assignment_expression "image_info_00 = CloneImageInfo(image_info)" identifier = (call_expression "CloneImageInfo(image_info)" identifier (argument_list "(image_info)" ( identifier )))) ;) (expression_statement "exception_00 = AcquireExceptionInfo();" (assignment_expression "exception_00 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "SetImageInfo(image_info_00,0,exception_00);" (call_expression "SetImageInfo(image_info_00,0,exception_00)" identifier (argument_list "(image_info_00,0,exception_00)" ( identifier , number_literal , identifier ))) ;) (expression_statement "DestroyExceptionInfo(exception_00);" (call_expression "DestroyExceptionInfo(exception_00)" identifier (argument_list "(exception_00)" ( identifier ))) ;) (if_statement "if (image_info_00->number_scenes == 0) {\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }\n    else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }" if (parenthesized_expression "(image_info_00->number_scenes == 0)" ( (binary_expression "image_info_00->number_scenes == 0" (field_expression "image_info_00->number_scenes" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      DestroyImageInfo(image_info_00);\n      pIVar4 = PingImage(image_info,exception);\n    }" { (expression_statement "DestroyImageInfo(image_info_00);" (call_expression "DestroyImageInfo(image_info_00)" identifier (argument_list "(image_info_00)" ( identifier ))) ;) (expression_statement "pIVar4 = PingImage(image_info,exception);" (assignment_expression "pIVar4 = PingImage(image_info,exception)" identifier = (call_expression "PingImage(image_info,exception)" identifier (argument_list "(image_info,exception)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }" else (compound_statement "{\n      CopyMagickString(ping_filename,image_info_00->filename,0x1000);\n      images = NewImageList();\n      value = image_info_00->scene;\n      sVar3 = image_info_00->number_scenes + value;\n      if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }\n      DestroyImageInfo(image_info_00);\n      pIVar4 = images;\n    }" { (expression_statement "CopyMagickString(ping_filename,image_info_00->filename,0x1000);" (call_expression "CopyMagickString(ping_filename,image_info_00->filename,0x1000)" identifier (argument_list "(ping_filename,image_info_00->filename,0x1000)" ( identifier , (field_expression "image_info_00->filename" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "images = NewImageList();" (assignment_expression "images = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "value = image_info_00->scene;" (assignment_expression "value = image_info_00->scene" identifier = (field_expression "image_info_00->scene" identifier -> field_identifier)) ;) (expression_statement "sVar3 = image_info_00->number_scenes + value;" (assignment_expression "sVar3 = image_info_00->number_scenes + value" identifier = (binary_expression "image_info_00->number_scenes + value" (field_expression "image_info_00->number_scenes" identifier -> field_identifier) + identifier)) ;) (if_statement "if ((int)value < (int)sVar3) {\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }" if (parenthesized_expression "((int)value < (int)sVar3)" ( (binary_expression "(int)value < (int)sVar3" (cast_expression "(int)value" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);\n      }" { (do_statement "do {\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        } while (sVar3 != value);" do (compound_statement "{\n          InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);\n          pIVar4 = PingImage(image_info_00,exception);\n          if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }\n          value = value + 1;\n        }" { (expression_statement "InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception);" (call_expression "InterpretImageFilename\n                    (image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception)" identifier (argument_list "(image_info,(Image *)0x0,ping_filename,value,image_info_00->filename,exception)" ( identifier , (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , (field_expression "image_info_00->filename" identifier -> field_identifier) , identifier ))) ;) (expression_statement "pIVar4 = PingImage(image_info_00,exception);" (assignment_expression "pIVar4 = PingImage(image_info_00,exception)" identifier = (call_expression "PingImage(image_info_00,exception)" identifier (argument_list "(image_info_00,exception)" ( identifier , identifier )))) ;) (if_statement "if (pIVar4 != (Image *)0x0) {\n            AppendImageToList(&images,pIVar4);\n          }" if (parenthesized_expression "(pIVar4 != (Image *)0x0)" ( (binary_expression "pIVar4 != (Image *)0x0" identifier != (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            AppendImageToList(&images,pIVar4);\n          }" { (expression_statement "AppendImageToList(&images,pIVar4);" (call_expression "AppendImageToList(&images,pIVar4)" identifier (argument_list "(&images,pIVar4)" ( (pointer_expression "&images" & identifier) , identifier ))) ;) })) (expression_statement "value = value + 1;" (assignment_expression "value = value + 1" identifier = (binary_expression "value + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar3 != value)" ( (binary_expression "sVar3 != value" identifier != identifier) )) ;) })) (expression_statement "DestroyImageInfo(image_info_00);" (call_expression "DestroyImageInfo(image_info_00)" identifier (argument_list "(image_info_00)" ( identifier ))) ;) (expression_statement "pIVar4 = images;" (assignment_expression "pIVar4 = images" identifier = identifier) ;) }))) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pIVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pIVar4;\n  }" { (return_statement "return pIVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 PingImages(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}\n\n" (function_definition "undefined4 PingImages(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" type_identifier (function_declarator "PingImages(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_1024;" type_identifier identifier ;) (declaration "undefined1 local_1020 [4096];" type_identifier (array_declarator "local_1020 [4096]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x771c9;" (assignment_expression "uStack_14 = 0x771c9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" { (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" identifier (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" ( (string_literal ""image_info != (ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" { (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" ( (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" * (cast_expression "(int *)(param_1 + 0x31f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f0)" ( (binary_expression "param_1 + 0x31f0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0)" identifier (argument_list "(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0)" ( number_literal , (string_literal ""MagickCore/constitute.c"" " string_content ") , (string_literal ""PingImages"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) ))) ;) })) (if_statement "if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/constitute.c"" " string_content ") , number_literal , (string_literal ""PingImages"" " string_content ") ))) ;) })) (expression_statement "iVar1 = param_1 + 0x21f0;" (assignment_expression "iVar1 = param_1 + 0x21f0" identifier = (binary_expression "param_1 + 0x21f0" identifier + number_literal)) ;) (expression_statement "SetImageOption(param_1,"filename",param_2);" (call_expression "SetImageOption(param_1,"filename",param_2)" identifier (argument_list "(param_1,"filename",param_2)" ( identifier , (string_literal ""filename"" " string_content ") , identifier ))) ;) (expression_statement "CopyMagickString(iVar1,param_2,0x1000);" (call_expression "CopyMagickString(iVar1,param_2,0x1000)" identifier (argument_list "(iVar1,param_2,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);" (call_expression "InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3)" identifier (argument_list "(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "iVar1 = LocaleCompare(local_1020,iVar1);" (assignment_expression "iVar1 = LocaleCompare(local_1020,iVar1)" identifier = (call_expression "LocaleCompare(local_1020,iVar1)" identifier (argument_list "(local_1020,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = PingImage(param_1,param_3);\n  }" { (expression_statement "uVar2 = PingImage(param_1,param_3);" (assignment_expression "uVar2 = PingImage(param_1,param_3)" identifier = (call_expression "PingImage(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) }) (else_clause "else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" else (compound_statement "{\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" { (expression_statement "iVar1 = CloneImageInfo(param_1);" (assignment_expression "iVar1 = CloneImageInfo(param_1)" identifier = (call_expression "CloneImageInfo(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = AcquireExceptionInfo();" (assignment_expression "uVar2 = AcquireExceptionInfo()" identifier = (call_expression "AcquireExceptionInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "SetImageInfo(iVar1,0,uVar2);" (call_expression "SetImageInfo(iVar1,0,uVar2)" identifier (argument_list "(iVar1,0,uVar2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "DestroyExceptionInfo(uVar2);" (call_expression "DestroyExceptionInfo(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x2c) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x2c) == 0" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }" { (expression_statement "DestroyImageInfo(iVar1);" (call_expression "DestroyImageInfo(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = PingImage(param_1,param_3);" (assignment_expression "uVar2 = PingImage(param_1,param_3)" identifier = (call_expression "PingImage(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" else (compound_statement "{\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" { (expression_statement "CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);" (call_expression "CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000)" identifier (argument_list "(local_1020,iVar1 + 0x21f0,0x1000)" ( identifier , (binary_expression "iVar1 + 0x21f0" identifier + number_literal) , number_literal ))) ;) (expression_statement "local_1024 = NewImageList();" (assignment_expression "local_1024 = NewImageList()" identifier = (call_expression "NewImageList()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + 0x28);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x28)" identifier = (pointer_expression "*(int *)(iVar1 + 0x28)" * (cast_expression "(int *)(iVar1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x2c) + iVar5" identifier = (binary_expression "*(int *)(iVar1 + 0x2c) + iVar5" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) + identifier)) ;) (if_statement "if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }" if (parenthesized_expression "(iVar5 < iVar3)" ( (binary_expression "iVar5 < iVar3" identifier < identifier) )) (compound_statement "{\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }" { (do_statement "do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);" do (compound_statement "{\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        }" { (expression_statement "InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);" (call_expression "InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3)" identifier (argument_list "(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3)" ( identifier , number_literal , identifier , identifier , (binary_expression "iVar1 + 0x21f0" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar4 = PingImage(iVar1,param_3);" (assignment_expression "iVar4 = PingImage(iVar1,param_3)" identifier = (call_expression "PingImage(iVar1,param_3)" identifier (argument_list "(iVar1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            AppendImageToList(&local_1024,iVar4);\n          }" { (expression_statement "AppendImageToList(&local_1024,iVar4);" (call_expression "AppendImageToList(&local_1024,iVar4)" identifier (argument_list "(&local_1024,iVar4)" ( (pointer_expression "&local_1024" & identifier) , identifier ))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar5)" ( (binary_expression "iVar3 != iVar5" identifier != identifier) )) ;) })) (expression_statement "DestroyImageInfo(iVar1);" (call_expression "DestroyImageInfo(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = local_1024;" (assignment_expression "uVar2 = local_1024" identifier = identifier) ;) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 PingImages(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" (type_identifier "undefined4") (function_declarator "PingImages(int param_1,undefined4 param_2,int param_3)" (identifier "PingImages") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_1024;\n  undefined1 local_1020 [4096];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x771c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }\n  if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }\n  if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }\n  iVar1 = param_1 + 0x21f0;\n  SetImageOption(param_1,"filename",param_2);\n  CopyMagickString(iVar1,param_2,0x1000);\n  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);\n  iVar1 = LocaleCompare(local_1020,iVar1);\n  if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_1024;" (type_identifier "undefined4") (identifier "local_1024") (; ";")) (declaration "undefined1 local_1020 [4096];" (type_identifier "undefined1") (array_declarator "local_1020 [4096]" (identifier "local_1020") ([ "[") (number_literal "4096") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x771c9;" (assignment_expression "uStack_14 = 0x771c9" (identifier "uStack_14") (= "=") (number_literal "0x771c9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");\n  }" ({ "{") (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" (identifier "__assert_fail") (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages")" (( "(") (string_literal ""image_info != (ImageInfo *) NULL"" (" """) (string_content "image_info != (ImageInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x151") (, ",") (string_literal ""PingImages"" (" """) (string_content "PingImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x31f4) != -0x54535255) {\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x31f4) != -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x31f4) != -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" (* "*") (cast_expression "(int *)(param_1 + 0x31f4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f4)" (( "(") (binary_expression "param_1 + 0x31f4" (identifier "param_1") (+ "+") (number_literal "0x31f4")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");\n  }" ({ "{") (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" (identifier "__assert_fail") (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,\n                  "PingImages")" (( "(") (string_literal ""image_info->signature == MagickCoreSignature"" (" """) (string_content "image_info->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x152") (, ",") (string_literal ""PingImages"" (" """) (string_content "PingImages") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" (* "*") (cast_expression "(int *)(param_1 + 0x31f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f0)" (( "(") (binary_expression "param_1 + 0x31f0" (identifier "param_1") (+ "+") (number_literal "0x31f0")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);\n  }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/constitute.c","PingImages",0x154,&DAT_002b6e4e,\n                   param_1 + 0x21f0)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (string_literal ""PingImages"" (" """) (string_content "PingImages") (" """)) (, ",") (number_literal "0x154") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x21f0" (identifier "param_1") (+ "+") (number_literal "0x21f0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 );" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"\n                 )" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/constitute.c"" (" """) (string_content "MagickCore/constitute.c") (" """)) (, ",") (number_literal "0x156") (, ",") (string_literal ""PingImages"" (" """) (string_content "PingImages") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = param_1 + 0x21f0;" (assignment_expression "iVar1 = param_1 + 0x21f0" (identifier "iVar1") (= "=") (binary_expression "param_1 + 0x21f0" (identifier "param_1") (+ "+") (number_literal "0x21f0"))) (; ";")) (expression_statement "SetImageOption(param_1,"filename",param_2);" (call_expression "SetImageOption(param_1,"filename",param_2)" (identifier "SetImageOption") (argument_list "(param_1,"filename",param_2)" (( "(") (identifier "param_1") (, ",") (string_literal ""filename"" (" """) (string_content "filename") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "CopyMagickString(iVar1,param_2,0x1000);" (call_expression "CopyMagickString(iVar1,param_2,0x1000)" (identifier "CopyMagickString") (argument_list "(iVar1,param_2,0x1000)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);" (call_expression "InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3)" (identifier "InterpretImageFilename") (argument_list "(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "local_1020") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = LocaleCompare(local_1020,iVar1);" (assignment_expression "iVar1 = LocaleCompare(local_1020,iVar1)" (identifier "iVar1") (= "=") (call_expression "LocaleCompare(local_1020,iVar1)" (identifier "LocaleCompare") (argument_list "(local_1020,iVar1)" (( "(") (identifier "local_1020") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = PingImage(param_1,param_3);\n  }\n  else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = PingImage(param_1,param_3);\n  }" ({ "{") (expression_statement "uVar2 = PingImage(param_1,param_3);" (assignment_expression "uVar2 = PingImage(param_1,param_3)" (identifier "uVar2") (= "=") (call_expression "PingImage(param_1,param_3)" (identifier "PingImage") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = CloneImageInfo(param_1);\n    uVar2 = AcquireExceptionInfo();\n    SetImageInfo(iVar1,0,uVar2);\n    DestroyExceptionInfo(uVar2);\n    if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }\n  }" ({ "{") (expression_statement "iVar1 = CloneImageInfo(param_1);" (assignment_expression "iVar1 = CloneImageInfo(param_1)" (identifier "iVar1") (= "=") (call_expression "CloneImageInfo(param_1)" (identifier "CloneImageInfo") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar2 = AcquireExceptionInfo();" (assignment_expression "uVar2 = AcquireExceptionInfo()" (identifier "uVar2") (= "=") (call_expression "AcquireExceptionInfo()" (identifier "AcquireExceptionInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "SetImageInfo(iVar1,0,uVar2);" (call_expression "SetImageInfo(iVar1,0,uVar2)" (identifier "SetImageInfo") (argument_list "(iVar1,0,uVar2)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "DestroyExceptionInfo(uVar2);" (call_expression "DestroyExceptionInfo(uVar2)" (identifier "DestroyExceptionInfo") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x2c) == 0) {\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }\n    else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x2c) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x2c) == 0" (pointer_expression "*(int *)(iVar1 + 0x2c)" (* "*") (cast_expression "(int *)(iVar1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DestroyImageInfo(iVar1);\n      uVar2 = PingImage(param_1,param_3);\n    }" ({ "{") (expression_statement "DestroyImageInfo(iVar1);" (call_expression "DestroyImageInfo(iVar1)" (identifier "DestroyImageInfo") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "uVar2 = PingImage(param_1,param_3);" (assignment_expression "uVar2 = PingImage(param_1,param_3)" (identifier "uVar2") (= "=") (call_expression "PingImage(param_1,param_3)" (identifier "PingImage") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" (else "else") (compound_statement "{\n      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);\n      local_1024 = NewImageList();\n      iVar5 = *(int *)(iVar1 + 0x28);\n      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;\n      if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }\n      DestroyImageInfo(iVar1);\n      uVar2 = local_1024;\n    }" ({ "{") (expression_statement "CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);" (call_expression "CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000)" (identifier "CopyMagickString") (argument_list "(local_1020,iVar1 + 0x21f0,0x1000)" (( "(") (identifier "local_1020") (, ",") (binary_expression "iVar1 + 0x21f0" (identifier "iVar1") (+ "+") (number_literal "0x21f0")) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "local_1024 = NewImageList();" (assignment_expression "local_1024 = NewImageList()" (identifier "local_1024") (= "=") (call_expression "NewImageList()" (identifier "NewImageList") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = *(int *)(iVar1 + 0x28);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x28)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar1 + 0x28)" (* "*") (cast_expression "(int *)(iVar1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x2c) + iVar5" (identifier "iVar3") (= "=") (binary_expression "*(int *)(iVar1 + 0x2c) + iVar5" (pointer_expression "*(int *)(iVar1 + 0x2c)" (* "*") (cast_expression "(int *)(iVar1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (identifier "iVar5"))) (; ";")) (if_statement "if (iVar5 < iVar3) {\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }" (if "if") (parenthesized_expression "(iVar5 < iVar3)" (( "(") (binary_expression "iVar5 < iVar3" (identifier "iVar5") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n        do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);\n      }" ({ "{") (do_statement "do {\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        } while (iVar3 != iVar5);" (do "do") (compound_statement "{\n          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);\n          iVar4 = PingImage(iVar1,param_3);\n          if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }\n          iVar5 = iVar5 + 1;\n        }" ({ "{") (expression_statement "InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);" (call_expression "InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3)" (identifier "InterpretImageFilename") (argument_list "(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "local_1020") (, ",") (identifier "iVar5") (, ",") (binary_expression "iVar1 + 0x21f0" (identifier "iVar1") (+ "+") (number_literal "0x21f0")) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar4 = PingImage(iVar1,param_3);" (assignment_expression "iVar4 = PingImage(iVar1,param_3)" (identifier "iVar4") (= "=") (call_expression "PingImage(iVar1,param_3)" (identifier "PingImage") (argument_list "(iVar1,param_3)" (( "(") (identifier "iVar1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n            AppendImageToList(&local_1024,iVar4);\n          }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            AppendImageToList(&local_1024,iVar4);\n          }" ({ "{") (expression_statement "AppendImageToList(&local_1024,iVar4);" (call_expression "AppendImageToList(&local_1024,iVar4)" (identifier "AppendImageToList") (argument_list "(&local_1024,iVar4)" (( "(") (pointer_expression "&local_1024" (& "&") (identifier "local_1024")) (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != iVar5)" (( "(") (binary_expression "iVar3 != iVar5" (identifier "iVar3") (!= "!=") (identifier "iVar5")) () ")")) (; ";")) (} "}"))) (expression_statement "DestroyImageInfo(iVar1);" (call_expression "DestroyImageInfo(iVar1)" (identifier "DestroyImageInfo") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "uVar2 = local_1024;" (assignment_expression "uVar2 = local_1024" (identifier "uVar2") (= "=") (identifier "local_1024")) (; ";")) (} "}")))) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" (identifier "FUN_0029eab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

type_1 * function_1(type_2 *var_2,char *filename,type_3 *var_6)

{
  char *destination;
  int var_23;
  int var_11;
  type_2 *image_info_00;
  type_3 *exception_00;
  size_t var_22;
  type_1 *var_20;
  size_t var_19;
  int var_1;
  type_1 *images;
  char ping_filename [4096];
  
  var_23 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"PingImages");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,
                  "PingImages");
  }
  if (var_2->debug != var_4) {
    var_5(TraceEvent,"MagickCore/constitute.c","PingImages",0x154,"%s",var_2->filename
                  );
  }
  if (var_6 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"PingImages"
                 );
  }
  destination = var_2->filename;
  var_7(var_2,"filename",filename);
  var_8(destination,filename,0x1000);
  var_9
            (var_2,(type_1 *)0x0,destination,var_2->scene,ping_filename,var_6);
  var_11 = var_10(ping_filename,destination);
  if (var_11 == 0) {
    var_20 = var_12(var_2,var_6);
  }
  else {
    image_info_00 = var_13(var_2);
    exception_00 = var_14();
    var_15(image_info_00,0,exception_00);
    var_16(exception_00);
    if (image_info_00->number_scenes == 0) {
      var_17(image_info_00);
      var_20 = var_12(var_2,var_6);
    }
    else {
      var_8(ping_filename,image_info_00->filename,0x1000);
      images = var_18();
      var_19 = image_info_00->scene;
      var_22 = image_info_00->number_scenes + var_19;
      if ((int)var_19 < (int)var_22) {
        do {
          var_9
                    (var_2,(type_1 *)0x0,ping_filename,var_19,image_info_00->filename,var_6);
          var_20 = var_12(image_info_00,var_6);
          if (var_20 != (type_1 *)0x0) {
            var_21(&images,var_20);
          }
          var_19 = var_19 + 1;
        } while (var_22 != var_19);
      }
      var_17(image_info_00);
      var_20 = images;
    }
  }
  if (var_23 == *(int *)(var_1 + 0x14)) {
    return var_20;
  }
                    /* WARNING: Subroutine does not return */
  var_24();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  undefined4 local_1024;
  undefined1 local_1020 [4096];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x771c9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/constitute.c",0x151,"MASKED");
  }
  if (*(int *)(param_1 + 0x31f4) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/constitute.c",0x152,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x31f0) != 0) {
    LogMagickEvent(0x8000,"MagickCore/constitute.c","MASKED",0x154,&DAT_002b6e4e,
                   param_1 + 0x21f0);
  }
  if (param_3 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/constitute.c",0x156,"MASKED"
                 );
  }
  iVar1 = param_1 + 0x21f0;
  SetImageOption(param_1,"filename",param_2);
  CopyMagickString(iVar1,param_2,0x1000);
  InterpretImageFilename(param_1,0,iVar1,*(undefined4 *)(param_1 + 0x28),local_1020,param_3);
  iVar1 = LocaleCompare(local_1020,iVar1);
  if (iVar1 == 0) {
    uVar2 = PingImage(param_1,param_3);
  }
  else {
    iVar1 = CloneImageInfo(param_1);
    uVar2 = AcquireExceptionInfo();
    SetImageInfo(iVar1,0,uVar2);
    DestroyExceptionInfo(uVar2);
    if (*(int *)(iVar1 + 0x2c) == 0) {
      DestroyImageInfo(iVar1);
      uVar2 = PingImage(param_1,param_3);
    }
    else {
      CopyMagickString(local_1020,iVar1 + 0x21f0,0x1000);
      local_1024 = NewImageList();
      iVar5 = *(int *)(iVar1 + 0x28);
      iVar3 = *(int *)(iVar1 + 0x2c) + iVar5;
      if (iVar5 < iVar3) {
        do {
          InterpretImageFilename(param_1,0,local_1020,iVar5,iVar1 + 0x21f0,param_3);
          iVar4 = PingImage(iVar1,param_3);
          if (iVar4 != 0) {
            AppendImageToList(&local_1024,iVar4);
          }
          iVar5 = iVar5 + 1;
        } while (iVar3 != iVar5);
      }
      DestroyImageInfo(iVar1);
      uVar2 = local_1024;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0029eab0();
}

