
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": 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 */

size_t RegisterDCMImage(void)

{
  MagickInfo *magick_info;
  char *pcVar1;
  
  magick_info = AcquireMagickInfo("DCM","DCM","Digital Imaging and Communications in Medicine image"
                                 );
  magick_info->decoder = ReadDCMImage;
  magick_info->magick = IsDCM;
  magick_info->flags = magick_info->flags ^ 1 | 0x200;
  pcVar1 = ConstantString(
                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."
                         );
  magick_info->note = pcVar1;
  RegisterMagickInfo(magick_info);
  return 0x810;
}



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

undefined4 RegisterDCMImage(void)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,
                            "Digital Imaging and Communications in Medicine image");
  *(code **)(iVar1 + 0x18) = FUN_001e4670;
  *(code **)(iVar1 + 0x24) = FUN_001e3c70;
  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;
  uVar2 = ConstantString(
                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."
                        );
  *(undefined4 *)(iVar1 + 0x10) = uVar2;
  RegisterMagickInfo(iVar1);
  return 0x810;
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x1eff49
SUB ESP,0x8
LEA EAX,[EBX + 0xffefc138]
PUSH EAX
LEA EAX,[EBX + 0xffeef0ae]
PUSH EAX
PUSH EAX
CALL 0x00031480
MOV ESI,EAX
LEA EAX,[EBX + 0xffe0b670]
MOV dword ptr [ESI + 0x18],EAX
LEA EAX,[EBX + 0xffe0ac70]
MOV dword ptr [ESI + 0x24],EAX
MOV EAX,dword ptr [ESI + 0x2c]
XOR EAX,0x1
OR AH,0x2
MOV dword ptr [ESI + 0x2c],EAX
LEA EAX,[EBX + 0xffefc170]
MOV dword ptr [ESP],EAX
CALL 0x00033ab8
MOV dword ptr [ESI + 0x10],EAX
MOV dword ptr [ESP],ESI
CALL 0x00032ff0
ADD ESP,0x14
MOV EAX,0x810
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 RegisterDCMImage(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}\n\n" comment (function_definition "undefined4 RegisterDCMImage(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}" type_identifier (function_declarator "RegisterDCMImage(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");" (assignment_expression "iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" identifier = (call_expression "AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" identifier (argument_list "(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" ( (pointer_expression "&DAT_002c80ae" & identifier) , (pointer_expression "&DAT_002c80ae" & identifier) , (string_literal ""Digital Imaging and Communications in Medicine image"" " string_content ") )))) ;) (expression_statement "*(code **)(iVar1 + 0x18) = FUN_001e4670;" (assignment_expression "*(code **)(iVar1 + 0x18) = FUN_001e4670" (pointer_expression "*(code **)(iVar1 + 0x18)" * (cast_expression "(code **)(iVar1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(code **)(iVar1 + 0x24) = FUN_001e3c70;" (assignment_expression "*(code **)(iVar1 + 0x24) = FUN_001e3c70" (pointer_expression "*(code **)(iVar1 + 0x24)" * (cast_expression "(code **)(iVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;" (assignment_expression "*(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200" (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 0x2c) ^ 1 | 0x200" (binary_expression "*(uint *)(iVar1 + 0x2c) ^ 1" (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) ^ number_literal) | number_literal)) ;) (expression_statement "uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                        );" (assignment_expression "uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                        )" identifier = (call_expression "ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                        )" identifier (argument_list "(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                        )" ( (string_literal ""DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content ") )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "RegisterMagickInfo(iVar1);" (call_expression "RegisterMagickInfo(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0x810;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\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 "ChannelType": 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\nsize_t RegisterDCMImage(void)\n\n{\n  MagickInfo *magick_info;\n  char *pcVar1;\n  \n  magick_info = AcquireMagickInfo("DCM","DCM","Digital Imaging and Communications in Medicine image"\n                                 );\n  magick_info->decoder = ReadDCMImage;\n  magick_info->magick = IsDCM;\n  magick_info->flags = magick_info->flags ^ 1 | 0x200;\n  pcVar1 = ConstantString(\n                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                         );\n  magick_info->note = pcVar1;\n  RegisterMagickInfo(magick_info);\n  return 0x810;\n}\n\n" comment comment comment comment comment comment comment (function_definition "size_t RegisterDCMImage(void)\n\n{\n  MagickInfo *magick_info;\n  char *pcVar1;\n  \n  magick_info = AcquireMagickInfo("DCM","DCM","Digital Imaging and Communications in Medicine image"\n                                 );\n  magick_info->decoder = ReadDCMImage;\n  magick_info->magick = IsDCM;\n  magick_info->flags = magick_info->flags ^ 1 | 0x200;\n  pcVar1 = ConstantString(\n                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                         );\n  magick_info->note = pcVar1;\n  RegisterMagickInfo(magick_info);\n  return 0x810;\n}" primitive_type (function_declarator "RegisterDCMImage(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  MagickInfo *magick_info;\n  char *pcVar1;\n  \n  magick_info = AcquireMagickInfo("DCM","DCM","Digital Imaging and Communications in Medicine image"\n                                 );\n  magick_info->decoder = ReadDCMImage;\n  magick_info->magick = IsDCM;\n  magick_info->flags = magick_info->flags ^ 1 | 0x200;\n  pcVar1 = ConstantString(\n                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                         );\n  magick_info->note = pcVar1;\n  RegisterMagickInfo(magick_info);\n  return 0x810;\n}" { (declaration "MagickInfo *magick_info;" type_identifier (pointer_declarator "*magick_info" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "magick_info = AcquireMagickInfo("DCM","DCM","Digital Imaging and Communications in Medicine image"\n                                 );" (assignment_expression "magick_info = AcquireMagickInfo("DCM","DCM","Digital Imaging and Communications in Medicine image"\n                                 )" identifier = (call_expression "AcquireMagickInfo("DCM","DCM","Digital Imaging and Communications in Medicine image"\n                                 )" identifier (argument_list "("DCM","DCM","Digital Imaging and Communications in Medicine image"\n                                 )" ( (string_literal ""DCM"" " string_content ") , (string_literal ""DCM"" " string_content ") , (string_literal ""Digital Imaging and Communications in Medicine image"" " string_content ") )))) ;) (expression_statement "magick_info->decoder = ReadDCMImage;" (assignment_expression "magick_info->decoder = ReadDCMImage" (field_expression "magick_info->decoder" identifier -> field_identifier) = identifier) ;) (expression_statement "magick_info->magick = IsDCM;" (assignment_expression "magick_info->magick = IsDCM" (field_expression "magick_info->magick" identifier -> field_identifier) = identifier) ;) (expression_statement "magick_info->flags = magick_info->flags ^ 1 | 0x200;" (assignment_expression "magick_info->flags = magick_info->flags ^ 1 | 0x200" (field_expression "magick_info->flags" identifier -> field_identifier) = (binary_expression "magick_info->flags ^ 1 | 0x200" (binary_expression "magick_info->flags ^ 1" (field_expression "magick_info->flags" identifier -> field_identifier) ^ number_literal) | number_literal)) ;) (expression_statement "pcVar1 = ConstantString(\n                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                         );" (assignment_expression "pcVar1 = ConstantString(\n                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                         )" identifier = (call_expression "ConstantString(\n                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                         )" identifier (argument_list "(\n                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."\n                         )" ( (string_literal ""DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content ") )))) ;) (expression_statement "magick_info->note = pcVar1;" (assignment_expression "magick_info->note = pcVar1" (field_expression "magick_info->note" identifier -> field_identifier) = identifier) ;) (expression_statement "RegisterMagickInfo(magick_info);" (call_expression "RegisterMagickInfo(magick_info)" identifier (argument_list "(magick_info)" ( identifier ))) ;) (return_statement "return 0x810;" return number_literal ;) })))
(translation_unit "undefined4 RegisterDCMImage(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}\n\n" (function_definition "undefined4 RegisterDCMImage(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}" type_identifier (function_declarator "RegisterDCMImage(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");" (assignment_expression "iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" identifier = (call_expression "AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" identifier (argument_list "(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" ( (pointer_expression "&DAT_002c80ae" & identifier) , (pointer_expression "&DAT_002c80ae" & identifier) , (string_literal ""Digital Imaging and Communications in Medicine image"" " string_content ") )))) ;) (expression_statement "*(code **)(iVar1 + 0x18) = FUN_001e4670;" (assignment_expression "*(code **)(iVar1 + 0x18) = FUN_001e4670" (pointer_expression "*(code **)(iVar1 + 0x18)" * (cast_expression "(code **)(iVar1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(code **)(iVar1 + 0x24) = FUN_001e3c70;" (assignment_expression "*(code **)(iVar1 + 0x24) = FUN_001e3c70" (pointer_expression "*(code **)(iVar1 + 0x24)" * (cast_expression "(code **)(iVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;" (assignment_expression "*(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200" (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 0x2c) ^ 1 | 0x200" (binary_expression "*(uint *)(iVar1 + 0x2c) ^ 1" (pointer_expression "*(uint *)(iVar1 + 0x2c)" * (cast_expression "(uint *)(iVar1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) ^ number_literal) | number_literal)) ;) (expression_statement "uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        );" (assignment_expression "uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        )" identifier = (call_expression "ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        )" identifier (argument_list "(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        )" ( (string_literal ""DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:" " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content ") )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "RegisterMagickInfo(iVar1);" (call_expression "RegisterMagickInfo(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0x810;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ^ LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content ") )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 RegisterDCMImage(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}" (type_identifier "undefined4") (function_declarator "RegisterDCMImage(void)" (identifier "RegisterDCMImage") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");\n  *(code **)(iVar1 + 0x18) = FUN_001e4670;\n  *(code **)(iVar1 + 0x24) = FUN_001e3c70;\n  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;\n  uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        );\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  RegisterMagickInfo(iVar1);\n  return 0x810;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image");" (assignment_expression "iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" (identifier "iVar1") (= "=") (call_expression "AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" (identifier "AcquireMagickInfo") (argument_list "(&DAT_002c80ae,&DAT_002c80ae,\n                            "Digital Imaging and Communications in Medicine image")" (( "(") (pointer_expression "&DAT_002c80ae" (& "&") (identifier "DAT_002c80ae")) (, ",") (pointer_expression "&DAT_002c80ae" (& "&") (identifier "DAT_002c80ae")) (, ",") (string_literal ""Digital Imaging and Communications in Medicine image"" (" """) (string_content "Digital Imaging and Communications in Medicine image") (" """)) () ")")))) (; ";")) (expression_statement "*(code **)(iVar1 + 0x18) = FUN_001e4670;" (assignment_expression "*(code **)(iVar1 + 0x18) = FUN_001e4670" (pointer_expression "*(code **)(iVar1 + 0x18)" (* "*") (cast_expression "(code **)(iVar1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "FUN_001e4670")) (; ";")) (expression_statement "*(code **)(iVar1 + 0x24) = FUN_001e3c70;" (assignment_expression "*(code **)(iVar1 + 0x24) = FUN_001e3c70" (pointer_expression "*(code **)(iVar1 + 0x24)" (* "*") (cast_expression "(code **)(iVar1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "FUN_001e3c70")) (; ";")) (expression_statement "*(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;" (assignment_expression "*(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200" (pointer_expression "*(uint *)(iVar1 + 0x2c)" (* "*") (cast_expression "(uint *)(iVar1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar1 + 0x2c) ^ 1 | 0x200" (binary_expression "*(uint *)(iVar1 + 0x2c) ^ 1" (pointer_expression "*(uint *)(iVar1 + 0x2c)" (* "*") (cast_expression "(uint *)(iVar1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (^ "^") (number_literal "1")) (| "|") (number_literal "0x200"))) (; ";")) (expression_statement "uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        );" (assignment_expression "uVar2 = ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        )" (identifier "uVar2") (= "=") (call_expression "ConstantString(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        )" (identifier "ConstantString") (argument_list "(\n                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:\n                        )" (( "(") (string_literal ""DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http:" (" """) (string_content "DICOM is used by the medical community for images like X-rays.  The") (escape_sequence "\n") (string_content "specification, ") (escape_sequence "\"") (string_content "Digital Imaging and Communications in Medicine") (escape_sequence "\n") (string_content "(DICOM)") (escape_sequence "\"") (string_content ", is available at http:") (" "")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "RegisterMagickInfo(iVar1);" (call_expression "RegisterMagickInfo(iVar1)" (identifier "RegisterMagickInfo") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return 0x810;" (return "return") (number_literal "0x810") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": 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 */

size_t function_1(void)

{
  type_1 *magick_info;
  char *pcVar1;
  
  magick_info = var_1("DCM","DCM","Digital Imaging and Communications in Medicine image"
                                 );
  magick_info->decoder = ReadDCMImage;
  magick_info->magick = IsDCM;
  magick_info->flags = magick_info->flags ^ 1 | 0x200;
  pcVar1 = var_2(
                         "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."
                         );
  magick_info->note = pcVar1;
  var_3(magick_info);
  return 0x810;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (binary_expression left: (binary_expression left: (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))))) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content) (MISSING """)))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))))

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

undefined4 MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = AcquireMagickInfo(&DAT_002c80ae,&DAT_002c80ae,
                            "Digital Imaging and Communications in Medicine image");
  *(code **)(iVar1 + 0x18) = FUN_001e4670;
  *(code **)(iVar1 + 0x24) = FUN_001e3c70;
  *(uint *)(iVar1 + 0x2c) = *(uint *)(iVar1 + 0x2c) ^ 1 | 0x200;
  uVar2 = ConstantString(
                        "DICOM is used by the medical community for images like X-rays.  The\nspecification, \"Digital Imaging and Communications in Medicine\n(DICOM)\", is available at http://medical.nema.org/.  In particular,\nsee part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),\nand supplement 61 which adds JPEG-2000 encoding."
                        );
  *(undefined4 *)(iVar1 + 0x10) = uVar2;
  RegisterMagickInfo(iVar1);
  return 0x810;
}

