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

int input_eof(void)

{
  int iVar1;
  
  if (inptr != insize) {
    return 0;
  }
  if ((insize == 0x8000) && (iVar1 = fill_inbuf(1), iVar1 != -1)) {
    inptr = 0;
    return 0;
  }
  return 1;
}



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

undefined4 FUN_00015a00(void)

{
  int iVar1;
  
  if (DAT_0005d324 != DAT_00071f78) {
    return 0;
  }
  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {
    DAT_0005d324 = 0;
    return 0;
  }
  return 1;
}


PUSH EDI
PUSH ESI
XOR ESI,ESI
PUSH EBX
CALL 0x00012e10
ADD EBX,0x135f6
LEA EAX,[EBX + 0x48f78]
LEA EDI,[EBX + 0x34324]
MOV EAX,dword ptr [EAX]
CMP dword ptr [EDI],EAX
JZ 0x00015a30
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
CMP EAX,0x8000
JZ 0x00015a48
MOV ESI,0x1
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH 0x1
CALL 0x0001cb70
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00015a37
MOV dword ptr [EDI],0x0
JMP 0x00015a22
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00015a00(void)\n\n{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00015a00(void)\n\n{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00015a00(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }" if (parenthesized_expression "(DAT_0005d324 != DAT_00071f78)" ( (binary_expression "DAT_0005d324 != DAT_00071f78" identifier != identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }" if (parenthesized_expression "((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1))" ( (binary_expression "(DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)" (parenthesized_expression "(DAT_00071f78 == 0x8000)" ( (binary_expression "DAT_00071f78 == 0x8000" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0001cb70(1), iVar1 != -1)" ( (comma_expression "iVar1 = FUN_0001cb70(1), iVar1 != -1" (assignment_expression "iVar1 = FUN_0001cb70(1)" identifier = (call_expression "FUN_0001cb70(1)" identifier (argument_list "(1)" ( number_literal )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n    DAT_0005d324 = 0;\n    return 0;\n  }" { (expression_statement "DAT_0005d324 = 0;" (assignment_expression "DAT_0005d324 = 0" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" 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\nint input_eof(void)\n\n{\n  int iVar1;\n  \n  if (inptr != insize) {\n    return 0;\n  }\n  if ((insize == 0x8000) && (iVar1 = fill_inbuf(1), iVar1 != -1)) {\n    inptr = 0;\n    return 0;\n  }\n  return 1;\n}\n\n" comment comment (function_definition "int input_eof(void)\n\n{\n  int iVar1;\n  \n  if (inptr != insize) {\n    return 0;\n  }\n  if ((insize == 0x8000) && (iVar1 = fill_inbuf(1), iVar1 != -1)) {\n    inptr = 0;\n    return 0;\n  }\n  return 1;\n}" primitive_type (function_declarator "input_eof(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (inptr != insize) {\n    return 0;\n  }\n  if ((insize == 0x8000) && (iVar1 = fill_inbuf(1), iVar1 != -1)) {\n    inptr = 0;\n    return 0;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (inptr != insize) {\n    return 0;\n  }" if (parenthesized_expression "(inptr != insize)" ( (binary_expression "inptr != insize" identifier != identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((insize == 0x8000) && (iVar1 = fill_inbuf(1), iVar1 != -1)) {\n    inptr = 0;\n    return 0;\n  }" if (parenthesized_expression "((insize == 0x8000) && (iVar1 = fill_inbuf(1), iVar1 != -1))" ( (binary_expression "(insize == 0x8000) && (iVar1 = fill_inbuf(1), iVar1 != -1)" (parenthesized_expression "(insize == 0x8000)" ( (binary_expression "insize == 0x8000" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = fill_inbuf(1), iVar1 != -1)" ( (comma_expression "iVar1 = fill_inbuf(1), iVar1 != -1" (assignment_expression "iVar1 = fill_inbuf(1)" identifier = (call_expression "fill_inbuf(1)" identifier (argument_list "(1)" ( number_literal )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n    inptr = 0;\n    return 0;\n  }" { (expression_statement "inptr = 0;" (assignment_expression "inptr = 0" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00015a00(void)\n\n{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00015a00(void)\n\n{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00015a00(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }" if (parenthesized_expression "(DAT_0005d324 != DAT_00071f78)" ( (binary_expression "DAT_0005d324 != DAT_00071f78" identifier != identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }" if (parenthesized_expression "((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1))" ( (binary_expression "(DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)" (parenthesized_expression "(DAT_00071f78 == 0x8000)" ( (binary_expression "DAT_00071f78 == 0x8000" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0001cb70(1), iVar1 != -1)" ( (comma_expression "iVar1 = FUN_0001cb70(1), iVar1 != -1" (assignment_expression "iVar1 = FUN_0001cb70(1)" identifier = (call_expression "FUN_0001cb70(1)" identifier (argument_list "(1)" ( number_literal )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n    DAT_0005d324 = 0;\n    return 0;\n  }" { (expression_statement "DAT_0005d324 = 0;" (assignment_expression "DAT_0005d324 = 0" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00015a00(void)\n\n{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00015a00(void)" (identifier "FUN_00015a00") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }\n  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (DAT_0005d324 != DAT_00071f78) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_0005d324 != DAT_00071f78)" (( "(") (binary_expression "DAT_0005d324 != DAT_00071f78" (identifier "DAT_0005d324") (!= "!=") (identifier "DAT_00071f78")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {\n    DAT_0005d324 = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1))" (( "(") (binary_expression "(DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)" (parenthesized_expression "(DAT_00071f78 == 0x8000)" (( "(") (binary_expression "DAT_00071f78 == 0x8000" (identifier "DAT_00071f78") (== "==") (number_literal "0x8000")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_0001cb70(1), iVar1 != -1)" (( "(") (comma_expression "iVar1 = FUN_0001cb70(1), iVar1 != -1" (assignment_expression "iVar1 = FUN_0001cb70(1)" (identifier "iVar1") (= "=") (call_expression "FUN_0001cb70(1)" (identifier "FUN_0001cb70") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (, ",") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1"))) () ")"))) () ")")) (compound_statement "{\n    DAT_0005d324 = 0;\n    return 0;\n  }" ({ "{") (expression_statement "DAT_0005d324 = 0;" (assignment_expression "DAT_0005d324 = 0" (identifier "DAT_0005d324") (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

int function_1(void)

{
  int var_4;
  
  if (var_1 != var_2) {
    return 0;
  }
  if ((var_2 == 0x8000) && (var_4 = var_3(1), var_4 != -1)) {
    var_1 = 0;
    return 0;
  }
  return 1;
}


(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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement (number_literal)))) (return_statement (number_literal)))))

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

undefined4 MASKED(void)

{
  int iVar1;
  
  if (DAT_0005d324 != DAT_00071f78) {
    return 0;
  }
  if ((DAT_00071f78 == 0x8000) && (iVar1 = FUN_0001cb70(1), iVar1 != -1)) {
    DAT_0005d324 = 0;
    return 0;
  }
  return 1;
}

