
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

MagickBooleanType IsGIF(uchar *magick,size_t length)

{
  MagickBooleanType MVar1;
  int iVar2;
  
  MVar1 = MagickFalse;
  if (3 < length) {
    iVar2 = LocaleNCompare((char *)magick,"GIF8",4);
    MVar1 = (MagickBooleanType)(iVar2 == 0);
  }
  return MVar1;
}



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

bool FUN_001fbf00(undefined4 param_1,uint param_2)

{
  int iVar1;
  bool bVar2;
  
  bVar2 = false;
  if (3 < param_2) {
    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);
    bVar2 = iVar1 == 0;
  }
  return bVar2;
}


PUSH EBX
XOR EAX,EAX
CALL 0x00038830
ADD EBX,0x1dd0f8
SUB ESP,0x8
CMP dword ptr [ESP + 0x14],0x3
JBE 0x001fbf38
LEA EAX,[EBX + 0xffee0597]
SUB ESP,0x4
PUSH 0x4
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00031370
ADD ESP,0x10
TEST EAX,EAX
SETZ AL
MOVZX EAX,AL
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_001fbf00(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}\n\n" comment (function_definition "bool FUN_001fbf00(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" primitive_type (function_declarator "FUN_001fbf00(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }" if (parenthesized_expression "(3 < param_2)" ( (binary_expression "3 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }" { (expression_statement "iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);" (assignment_expression "iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4)" identifier = (call_expression "LocaleNCompare(param_1,&DAT_002b9597,4)" identifier (argument_list "(param_1,&DAT_002b9597,4)" ( identifier , (pointer_expression "&DAT_002b9597" & identifier) , number_literal )))) ;) (expression_statement "bVar2 = iVar1 == 0;" (assignment_expression "bVar2 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nMagickBooleanType IsGIF(uchar *magick,size_t length)\n\n{\n  MagickBooleanType MVar1;\n  int iVar2;\n  \n  MVar1 = MagickFalse;\n  if (3 < length) {\n    iVar2 = LocaleNCompare((char *)magick,"GIF8",4);\n    MVar1 = (MagickBooleanType)(iVar2 == 0);\n  }\n  return MVar1;\n}\n\n" comment comment (function_definition "MagickBooleanType IsGIF(uchar *magick,size_t length)\n\n{\n  MagickBooleanType MVar1;\n  int iVar2;\n  \n  MVar1 = MagickFalse;\n  if (3 < length) {\n    iVar2 = LocaleNCompare((char *)magick,"GIF8",4);\n    MVar1 = (MagickBooleanType)(iVar2 == 0);\n  }\n  return MVar1;\n}" type_identifier (function_declarator "IsGIF(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  MagickBooleanType MVar1;\n  int iVar2;\n  \n  MVar1 = MagickFalse;\n  if (3 < length) {\n    iVar2 = LocaleNCompare((char *)magick,"GIF8",4);\n    MVar1 = (MagickBooleanType)(iVar2 == 0);\n  }\n  return MVar1;\n}" { (declaration "MagickBooleanType MVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "MVar1 = MagickFalse;" (assignment_expression "MVar1 = MagickFalse" identifier = identifier) ;) (if_statement "if (3 < length) {\n    iVar2 = LocaleNCompare((char *)magick,"GIF8",4);\n    MVar1 = (MagickBooleanType)(iVar2 == 0);\n  }" if (parenthesized_expression "(3 < length)" ( (binary_expression "3 < length" number_literal < identifier) )) (compound_statement "{\n    iVar2 = LocaleNCompare((char *)magick,"GIF8",4);\n    MVar1 = (MagickBooleanType)(iVar2 == 0);\n  }" { (expression_statement "iVar2 = LocaleNCompare((char *)magick,"GIF8",4);" (assignment_expression "iVar2 = LocaleNCompare((char *)magick,"GIF8",4)" identifier = (call_expression "LocaleNCompare((char *)magick,"GIF8",4)" identifier (argument_list "((char *)magick,"GIF8",4)" ( (cast_expression "(char *)magick" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""GIF8"" " string_content ") , number_literal )))) ;) (expression_statement "MVar1 = (MagickBooleanType)(iVar2 == 0);" (assignment_expression "MVar1 = (MagickBooleanType)(iVar2 == 0)" identifier = (call_expression "(MagickBooleanType)(iVar2 == 0)" (parenthesized_expression "(MagickBooleanType)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )))) ;) })) (return_statement "return MVar1;" return identifier ;) })))
(translation_unit "bool FUN_001fbf00(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}\n\n" (function_definition "bool FUN_001fbf00(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" primitive_type (function_declarator "FUN_001fbf00(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }" if (parenthesized_expression "(3 < param_2)" ( (binary_expression "3 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }" { (expression_statement "iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);" (assignment_expression "iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4)" identifier = (call_expression "LocaleNCompare(param_1,&DAT_002b9597,4)" identifier (argument_list "(param_1,&DAT_002b9597,4)" ( identifier , (pointer_expression "&DAT_002b9597" & identifier) , number_literal )))) ;) (expression_statement "bVar2 = iVar1 == 0;" (assignment_expression "bVar2 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_001fbf00(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" (primitive_type "bool") (function_declarator "FUN_001fbf00(undefined4 param_1,uint param_2)" (identifier "FUN_001fbf00") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  bVar2 = false;\n  if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }\n  return bVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if (3 < param_2) {\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }" (if "if") (parenthesized_expression "(3 < param_2)" (( "(") (binary_expression "3 < param_2" (number_literal "3") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);\n    bVar2 = iVar1 == 0;\n  }" ({ "{") (expression_statement "iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);" (assignment_expression "iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4)" (identifier "iVar1") (= "=") (call_expression "LocaleNCompare(param_1,&DAT_002b9597,4)" (identifier "LocaleNCompare") (argument_list "(param_1,&DAT_002b9597,4)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&DAT_002b9597" (& "&") (identifier "DAT_002b9597")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "bVar2 = iVar1 == 0;" (assignment_expression "bVar2 = iVar1 == 0" (identifier "bVar2") (= "=") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) (; ";")) (} "}"))) (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *magick,size_t var_1)

{
  type_1 MVar1;
  int var_3;
  
  MVar1 = MagickFalse;
  if (3 < var_1) {
    var_3 = var_2((char *)magick,"GIF8",4);
    MVar1 = (type_1)(var_3 == 0);
  }
  return MVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (false))) (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 (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

bool MASKED(undefined4 param_1,uint param_2)

{
  int iVar1;
  bool bVar2;
  
  bVar2 = false;
  if (3 < param_2) {
    iVar1 = LocaleNCompare(param_1,&DAT_002b9597,4);
    bVar2 = iVar1 == 0;
  }
  return bVar2;
}

