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

int gmon_io_write_8(FILE *ofp,uint val)

{
  size_t sVar1;
  char buf [1];
  
  buf[0] = (char)val;
  sVar1 = fwrite(buf,1,1,(FILE *)ofp);
  return (uint)(sVar1 != 1);
}



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

bool FUN_00019ea0(FILE *param_1,undefined1 param_2)

{
  size_t sVar1;
  undefined1 local_d [5];
  undefined4 uStack_8;
  
  uStack_8 = 0x19ea6;
  local_d[0] = param_2;
  sVar1 = fwrite(local_d,1,1,param_1);
  return sVar1 != 1;
}


PUSH EBX
CALL 0x00013030
ADD EBX,0x1315a
SUB ESP,0x18
MOV EAX,dword ptr [ESP + 0x24]
MOV byte ptr [ESP + 0xf],AL
PUSH dword ptr [ESP + 0x20]
PUSH 0x1
PUSH 0x1
LEA EAX,[ESP + 0x1b]
PUSH EAX
CALL 0x000121c0
CMP EAX,0x1
SETNZ AL
ADD ESP,0x28
MOVZX EAX,AL
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00019ea0(FILE *param_1,undefined1 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}\n\n" comment (function_definition "bool FUN_00019ea0(FILE *param_1,undefined1 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}" primitive_type (function_declarator "FUN_00019ea0(FILE *param_1,undefined1 param_2)" identifier (parameter_list "(FILE *param_1,undefined1 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 local_d [5];" type_identifier (array_declarator "local_d [5]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x19ea6;" (assignment_expression "uStack_8 = 0x19ea6" identifier = number_literal) ;) (expression_statement "local_d[0] = param_2;" (assignment_expression "local_d[0] = param_2" (subscript_expression "local_d[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sVar1 = fwrite(local_d,1,1,param_1);" (assignment_expression "sVar1 = fwrite(local_d,1,1,param_1)" identifier = (call_expression "fwrite(local_d,1,1,param_1)" identifier (argument_list "(local_d,1,1,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (return_statement "return sVar1 != 1;" return (binary_expression "sVar1 != 1" identifier != 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 gmon_io_write_8(FILE *ofp,uint val)\n\n{\n  size_t sVar1;\n  char buf [1];\n  \n  buf[0] = (char)val;\n  sVar1 = fwrite(buf,1,1,(FILE *)ofp);\n  return (uint)(sVar1 != 1);\n}\n\n" comment comment (function_definition "int gmon_io_write_8(FILE *ofp,uint val)\n\n{\n  size_t sVar1;\n  char buf [1];\n  \n  buf[0] = (char)val;\n  sVar1 = fwrite(buf,1,1,(FILE *)ofp);\n  return (uint)(sVar1 != 1);\n}" primitive_type (function_declarator "gmon_io_write_8(FILE *ofp,uint val)" identifier (parameter_list "(FILE *ofp,uint val)" ( (parameter_declaration "FILE *ofp" type_identifier (pointer_declarator "*ofp" * identifier)) , (parameter_declaration "uint val" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char buf [1];\n  \n  buf[0] = (char)val;\n  sVar1 = fwrite(buf,1,1,(FILE *)ofp);\n  return (uint)(sVar1 != 1);\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char buf [1];" primitive_type (array_declarator "buf [1]" identifier [ number_literal ]) ;) (expression_statement "buf[0] = (char)val;" (assignment_expression "buf[0] = (char)val" (subscript_expression "buf[0]" identifier [ number_literal ]) = (cast_expression "(char)val" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "sVar1 = fwrite(buf,1,1,(FILE *)ofp);" (assignment_expression "sVar1 = fwrite(buf,1,1,(FILE *)ofp)" identifier = (call_expression "fwrite(buf,1,1,(FILE *)ofp)" identifier (argument_list "(buf,1,1,(FILE *)ofp)" ( identifier , number_literal , number_literal , (cast_expression "(FILE *)ofp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (return_statement "return (uint)(sVar1 != 1);" return (call_expression "(uint)(sVar1 != 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(sVar1 != 1)" ( (binary_expression "sVar1 != 1" identifier != number_literal) ))) ;) })))
(translation_unit "bool FUN_00019ea0(FILE *param_1,undefined1 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}\n\n" (function_definition "bool FUN_00019ea0(FILE *param_1,undefined1 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}" primitive_type (function_declarator "FUN_00019ea0(FILE *param_1,undefined1 param_2)" identifier (parameter_list "(FILE *param_1,undefined1 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 local_d [5];" type_identifier (array_declarator "local_d [5]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x19ea6;" (assignment_expression "uStack_8 = 0x19ea6" identifier = number_literal) ;) (expression_statement "local_d[0] = param_2;" (assignment_expression "local_d[0] = param_2" (subscript_expression "local_d[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sVar1 = fwrite(local_d,1,1,param_1);" (assignment_expression "sVar1 = fwrite(local_d,1,1,param_1)" identifier = (call_expression "fwrite(local_d,1,1,param_1)" identifier (argument_list "(local_d,1,1,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (return_statement "return sVar1 != 1;" return (binary_expression "sVar1 != 1" identifier != number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })))
(function_definition "bool FUN_00019ea0(FILE *param_1,undefined1 param_2)\n\n{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}" (primitive_type "bool") (function_declarator "FUN_00019ea0(FILE *param_1,undefined1 param_2)" (identifier "FUN_00019ea0") (parameter_list "(FILE *param_1,undefined1 param_2)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  undefined1 local_d [5];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x19ea6;\n  local_d[0] = param_2;\n  sVar1 = fwrite(local_d,1,1,param_1);\n  return sVar1 != 1;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined1 local_d [5];" (type_identifier "undefined1") (array_declarator "local_d [5]" (identifier "local_d") ([ "[") (number_literal "5") (] "]")) (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x19ea6;" (assignment_expression "uStack_8 = 0x19ea6" (identifier "uStack_8") (= "=") (number_literal "0x19ea6")) (; ";")) (expression_statement "local_d[0] = param_2;" (assignment_expression "local_d[0] = param_2" (subscript_expression "local_d[0]" (identifier "local_d") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "sVar1 = fwrite(local_d,1,1,param_1);" (assignment_expression "sVar1 = fwrite(local_d,1,1,param_1)" (identifier "sVar1") (= "=") (call_expression "fwrite(local_d,1,1,param_1)" (identifier "fwrite") (argument_list "(local_d,1,1,param_1)" (( "(") (identifier "local_d") (, ",") (number_literal "1") (, ",") (number_literal "1") (, ",") (identifier "param_1") () ")")))) (; ";")) (return_statement "return sVar1 != 1;" (return "return") (binary_expression "sVar1 != 1" (identifier "sVar1") (!= "!=") (number_literal "1")) (; ";")) (} "}")))

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

int function_1(type_1 *ofp,type_2 val)

{
  size_t var_2;
  char buf [1];
  
  buf[0] = (char)val;
  var_2 = var_1(buf,1,1,(type_1 *)ofp);
  return (type_2)(var_2 != 1);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

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

bool MASKED(FILE *param_1,undefined1 param_2)

{
  size_t sVar1;
  undefined1 local_d [5];
  undefined4 uStack_8;
  
  uStack_8 = 0x19ea6;
  local_d[0] = param_2;
  sVar1 = fwrite(local_d,1,1,param_1);
  return sVar1 != 1;
}

