
MagickBooleanType IsDCM(uchar *magick,size_t length)

{
  int iVar1;
  
  if (0x83 < length) {
    iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4);
    return (MagickBooleanType)(iVar1 == 0);
  }
  return MagickFalse;
}



bool FUN_0033c617(long param_1,ulong param_2)

{
  int iVar1;
  
  if (0x83 < param_2) {
    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);
    return iVar1 == 0;
  }
  return false;
}


MOV EAX,0x0
CMP RSI,0x83
JBE 0x0033c64b
SUB RSP,0x8
SUB RDI,-0x80
MOV EDX,0x4
LEA RSI,[0x422a76]
CALL 0x0014aab0
TEST EAX,EAX
SETZ AL
MOVZX EAX,AL
ADD RSP,0x8
RET
RET
(translation_unit "bool FUN_0033c617(long param_1,ulong param_2)\n\n{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_0033c617(long param_1,ulong param_2)\n\n{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_0033c617(long param_1,ulong param_2)" identifier (parameter_list "(long param_1,ulong param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }" if (parenthesized_expression "(0x83 < param_2)" ( (binary_expression "0x83 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }" { (expression_statement "iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);" (assignment_expression "iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4)" identifier = (call_expression "LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4)" identifier (argument_list "(param_1 + 0x80,&DAT_00422a76,4)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) , (pointer_expression "&DAT_00422a76" & identifier) , number_literal )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit "MagickBooleanType IsDCM(uchar *magick,size_t length)\n\n{\n  int iVar1;\n  \n  if (0x83 < length) {\n    iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4);\n    return (MagickBooleanType)(iVar1 == 0);\n  }\n  return MagickFalse;\n}\n\n" (function_definition "MagickBooleanType IsDCM(uchar *magick,size_t length)\n\n{\n  int iVar1;\n  \n  if (0x83 < length) {\n    iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4);\n    return (MagickBooleanType)(iVar1 == 0);\n  }\n  return MagickFalse;\n}" type_identifier (function_declarator "IsDCM(uchar *magick,size_t length)" identifier (parameter_list "(uchar *magick,size_t length)" ( (parameter_declaration "uchar *magick" type_identifier (pointer_declarator "*magick" * identifier)) , (parameter_declaration "size_t length" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (0x83 < length) {\n    iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4);\n    return (MagickBooleanType)(iVar1 == 0);\n  }\n  return MagickFalse;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (0x83 < length) {\n    iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4);\n    return (MagickBooleanType)(iVar1 == 0);\n  }" if (parenthesized_expression "(0x83 < length)" ( (binary_expression "0x83 < length" number_literal < identifier) )) (compound_statement "{\n    iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4);\n    return (MagickBooleanType)(iVar1 == 0);\n  }" { (expression_statement "iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4);" (assignment_expression "iVar1 = LocaleNCompare((char *)(magick + 0x80),"DICM",4)" identifier = (call_expression "LocaleNCompare((char *)(magick + 0x80),"DICM",4)" identifier (argument_list "((char *)(magick + 0x80),"DICM",4)" ( (cast_expression "(char *)(magick + 0x80)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(magick + 0x80)" ( (binary_expression "magick + 0x80" identifier + number_literal) ))) , (string_literal ""DICM"" " string_content ") , number_literal )))) ;) (return_statement "return (MagickBooleanType)(iVar1 == 0);" return (call_expression "(MagickBooleanType)(iVar1 == 0)" (parenthesized_expression "(MagickBooleanType)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })) (return_statement "return MagickFalse;" return identifier ;) })))
(translation_unit "bool FUN_0033c617(long param_1,ulong param_2)\n\n{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_0033c617(long param_1,ulong param_2)\n\n{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_0033c617(long param_1,ulong param_2)" identifier (parameter_list "(long param_1,ulong param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }" if (parenthesized_expression "(0x83 < param_2)" ( (binary_expression "0x83 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }" { (expression_statement "iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);" (assignment_expression "iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4)" identifier = (call_expression "LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4)" identifier (argument_list "(param_1 + 0x80,&DAT_00422a76,4)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) , (pointer_expression "&DAT_00422a76" & identifier) , number_literal )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression & IDENT) , LIT )))) ;) (return_statement return (binary_expression IDENT == LIT) ;) })) (return_statement return BOOL ;) })))
(function_definition "bool FUN_0033c617(long param_1,ulong param_2)\n\n{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}" (primitive_type "bool") (function_declarator "FUN_0033c617(long param_1,ulong param_2)" (identifier "FUN_0033c617") (parameter_list "(long param_1,ulong param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }\n  return false;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (0x83 < param_2) {\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }" (if "if") (parenthesized_expression "(0x83 < param_2)" (( "(") (binary_expression "0x83 < param_2" (number_literal "0x83") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);\n    return iVar1 == 0;\n  }" ({ "{") (expression_statement "iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);" (assignment_expression "iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4)" (identifier "iVar1") (= "=") (call_expression "LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4)" (identifier "LocaleNCompare") (argument_list "(param_1 + 0x80,&DAT_00422a76,4)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) (, ",") (pointer_expression "&DAT_00422a76" (& "&") (identifier "DAT_00422a76")) (, ",") (number_literal "4") () ")")))) (; ";")) (return_statement "return iVar1 == 0;" (return "return") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

type_1 function_1(type_2 *var_3,size_t var_1)

{
  int var_4;
  
  if (0x83 < var_1) {
    var_4 = var_2((char *)(var_3 + 0x80),"DICM",4);
    return (type_1)(var_4 == 0);
  }
  return MagickFalse;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)) (number_literal))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (return_statement (false)))))

bool MASKED(long param_1,ulong param_2)

{
  int iVar1;
  
  if (0x83 < param_2) {
    iVar1 = LocaleNCompare(param_1 + 0x80,&DAT_00422a76,4);
    return iVar1 == 0;
  }
  return false;
}

