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

NODE * __regparm3 find_array(char *name)

{
  NODE *pNVar1;
  undefined4 uVar2;
  
  pNVar1 = find_symbol(name,(char **)0x0);
  if ((pNVar1 != (NODE *)0x0) && (pNVar1->type != Node_var_array)) {
    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);
    __fprintf_chk(out_fp,1,uVar2,name);
    pNVar1 = (NODE *)0x0;
  }
  return pNVar1;
}



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

int __regparm3 FUN_0003d160(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_0003d000();
  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {
    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);
    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);
    iVar1 = 0;
  }
  return iVar1;
}


PUSH ESI
PUSH EBX
XOR EDX,EDX
CALL 0x00016f50
ADD EBX,0x81b7b
SUB ESP,0x4
MOV ESI,EAX
CALL 0x0003d000
TEST EAX,EAX
JZ 0x0003d183
CMP dword ptr [EAX + 0x28],0x5
JNZ 0x0003d190
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xfffcfc50]
SUB ESP,0x4
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013f40
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0x5c9c]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x00014570
ADD ESP,0x20
XOR EAX,EAX
JMP 0x0003d183
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0003d160(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 FUN_0003d160(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d160(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_0003d000();" (assignment_expression "iVar1 = FUN_0003d000()" identifier = (call_expression "FUN_0003d000()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }" if (parenthesized_expression "((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5))" ( (binary_expression "(iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x28) != 5)" ( (binary_expression "*(int *)(iVar1 + 0x28) != 5" (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) )))) != number_literal) ))) )) (compound_statement "{\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }" { (expression_statement "uVar2 = dcgettext(0,"`%s\' is not an array\n",5);" (assignment_expression "uVar2 = dcgettext(0,"`%s\' is not an array\n",5)" identifier = (call_expression "dcgettext(0,"`%s\' is not an array\n",5)" identifier (argument_list "(0,"`%s\' is not an array\n",5)" ( number_literal , (string_literal ""`%s\' is not an array\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "__fprintf_chk(DAT_000c4980,1,uVar2,param_1);" (call_expression "__fprintf_chk(DAT_000c4980,1,uVar2,param_1)" identifier (argument_list "(DAT_000c4980,1,uVar2,param_1)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nNODE * __regparm3 find_array(char *name)\n\n{\n  NODE *pNVar1;\n  undefined4 uVar2;\n  \n  pNVar1 = find_symbol(name,(char **)0x0);\n  if ((pNVar1 != (NODE *)0x0) && (pNVar1->type != Node_var_array)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(out_fp,1,uVar2,name);\n    pNVar1 = (NODE *)0x0;\n  }\n  return pNVar1;\n}\n\n" comment (ERROR "NODE * __regparm3 find_array(char *name)" (binary_expression "NODE * __regparm3 find_array(char *name)" identifier * (ERROR "__regparm3" identifier) (call_expression "find_array(char *name)" identifier (argument_list "(char *name)" ( (binary_expression "char *name" identifier * identifier) ))))) (compound_statement "{\n  NODE *pNVar1;\n  undefined4 uVar2;\n  \n  pNVar1 = find_symbol(name,(char **)0x0);\n  if ((pNVar1 != (NODE *)0x0) && (pNVar1->type != Node_var_array)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(out_fp,1,uVar2,name);\n    pNVar1 = (NODE *)0x0;\n  }\n  return pNVar1;\n}" { (declaration "NODE *pNVar1;" type_identifier (pointer_declarator "*pNVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "pNVar1 = find_symbol(name,(char **)0x0);" (assignment_expression "pNVar1 = find_symbol(name,(char **)0x0)" identifier = (call_expression "find_symbol(name,(char **)0x0)" identifier (argument_list "(name,(char **)0x0)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if ((pNVar1 != (NODE *)0x0) && (pNVar1->type != Node_var_array)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(out_fp,1,uVar2,name);\n    pNVar1 = (NODE *)0x0;\n  }" if (parenthesized_expression "((pNVar1 != (NODE *)0x0) && (pNVar1->type != Node_var_array))" ( (binary_expression "(pNVar1 != (NODE *)0x0) && (pNVar1->type != Node_var_array)" (parenthesized_expression "(pNVar1 != (NODE *)0x0)" ( (binary_expression "pNVar1 != (NODE *)0x0" identifier != (cast_expression "(NODE *)0x0" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pNVar1->type != Node_var_array)" ( (binary_expression "pNVar1->type != Node_var_array" (field_expression "pNVar1->type" identifier -> field_identifier) != identifier) ))) )) (compound_statement "{\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(out_fp,1,uVar2,name);\n    pNVar1 = (NODE *)0x0;\n  }" { (expression_statement "uVar2 = dcgettext(0,"`%s\' is not an array\n",5);" (assignment_expression "uVar2 = dcgettext(0,"`%s\' is not an array\n",5)" identifier = (call_expression "dcgettext(0,"`%s\' is not an array\n",5)" identifier (argument_list "(0,"`%s\' is not an array\n",5)" ( number_literal , (string_literal ""`%s\' is not an array\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "__fprintf_chk(out_fp,1,uVar2,name);" (call_expression "__fprintf_chk(out_fp,1,uVar2,name)" identifier (argument_list "(out_fp,1,uVar2,name)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "pNVar1 = (NODE *)0x0;" (assignment_expression "pNVar1 = (NODE *)0x0" identifier = (cast_expression "(NODE *)0x0" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pNVar1;" return identifier ;) }))
(translation_unit "int __regparm3 FUN_0003d160(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_0003d160(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d160(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_0003d000();" (assignment_expression "iVar1 = FUN_0003d000()" identifier = (call_expression "FUN_0003d000()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }" if (parenthesized_expression "((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5))" ( (binary_expression "(iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x28) != 5)" ( (binary_expression "*(int *)(iVar1 + 0x28) != 5" (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) )))) != number_literal) ))) )) (compound_statement "{\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }" { (expression_statement "uVar2 = dcgettext(0,"`%s\' is not an array\n",5);" (assignment_expression "uVar2 = dcgettext(0,"`%s\' is not an array\n",5)" identifier = (call_expression "dcgettext(0,"`%s\' is not an array\n",5)" identifier (argument_list "(0,"`%s\' is not an array\n",5)" ( number_literal , (string_literal ""`%s\' is not an array\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "__fprintf_chk(DAT_000c4980,1,uVar2,param_1);" (call_expression "__fprintf_chk(DAT_000c4980,1,uVar2,param_1)" identifier (argument_list "(DAT_000c4980,1,uVar2,param_1)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0003d160(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003d160(undefined4 param_1)" (identifier "FUN_0003d160") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_0003d000();\n  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = FUN_0003d000();" (assignment_expression "iVar1 = FUN_0003d000()" (identifier "iVar1") (= "=") (call_expression "FUN_0003d000()" (identifier "FUN_0003d000") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5))" (( "(") (binary_expression "(iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0x28) != 5)" (( "(") (binary_expression "*(int *)(iVar1 + 0x28) != 5" (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")) () ")")))) (!= "!=") (number_literal "5")) () ")"))) () ")")) (compound_statement "{\n    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);\n    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);\n    iVar1 = 0;\n  }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"`%s\' is not an array\n",5);" (assignment_expression "uVar2 = dcgettext(0,"`%s\' is not an array\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"`%s\' is not an array\n",5)" (identifier "dcgettext") (argument_list "(0,"`%s\' is not an array\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""`%s\' is not an array\n"" (" """) (string_content "`%s") (escape_sequence "\'") (string_content " is not an array") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "__fprintf_chk(DAT_000c4980,1,uVar2,param_1);" (call_expression "__fprintf_chk(DAT_000c4980,1,uVar2,param_1)" (identifier "__fprintf_chk") (argument_list "(DAT_000c4980,1,uVar2,param_1)" (( "(") (identifier "DAT_000c4980") (, ",") (number_literal "1") (, ",") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_1 * __regparm3 find_array(char *name)

{
  type_1 *var_2;
  type_2 uVar2;
  
  var_2 = var_1(name,(char **)0x0);
  if ((var_2 != (type_1 *)0x0) && (var_2->type != var_3)) {
    uVar2 = var_4(0,"`%s\' is not an array\n",5);
    var_5(out_fp,1,uVar2,name);
    var_2 = (type_1 *)0x0;
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

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

int __regparm3 MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_0003d000();
  if ((iVar1 != 0) && (*(int *)(iVar1 + 0x28) != 5)) {
    uVar2 = dcgettext(0,"`%s\' is not an array\n",5);
    __fprintf_chk(DAT_000c4980,1,uVar2,param_1);
    iVar1 = 0;
  }
  return iVar1;
}

