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

int rpl_fgetfilecon(int fd,security_context_t *con)

{
  int iVar1;
  
  iVar1 = fgetfilecon(fd,con);
  iVar1 = map_to_failure(iVar1,con);
  return iVar1;
}



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

void FUN_0001c000(undefined4 param_1,undefined4 param_2)

{
  fgetfilecon(param_1,param_2);
  FUN_0001bf10();
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00012a80
ADD EBX,0xcff9
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x1c]
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
CALL 0x000121a0
ADD ESP,0x14
MOV EDX,ESI
POP EBX
POP ESI
JMP 0x0001bf10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001c000(undefined4 param_1,undefined4 param_2)\n\n{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}\n\n" comment (function_definition "void FUN_0001c000(undefined4 param_1,undefined4 param_2)\n\n{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}" primitive_type (function_declarator "FUN_0001c000(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}" { (expression_statement "fgetfilecon(param_1,param_2);" (call_expression "fgetfilecon(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001bf10();" (call_expression "FUN_0001bf10()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint rpl_fgetfilecon(int fd,security_context_t *con)\n\n{\n  int iVar1;\n  \n  iVar1 = fgetfilecon(fd,con);\n  iVar1 = map_to_failure(iVar1,con);\n  return iVar1;\n}\n\n" comment comment (function_definition "int rpl_fgetfilecon(int fd,security_context_t *con)\n\n{\n  int iVar1;\n  \n  iVar1 = fgetfilecon(fd,con);\n  iVar1 = map_to_failure(iVar1,con);\n  return iVar1;\n}" primitive_type (function_declarator "rpl_fgetfilecon(int fd,security_context_t *con)" identifier (parameter_list "(int fd,security_context_t *con)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "security_context_t *con" type_identifier (pointer_declarator "*con" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = fgetfilecon(fd,con);\n  iVar1 = map_to_failure(iVar1,con);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = fgetfilecon(fd,con);" (assignment_expression "iVar1 = fgetfilecon(fd,con)" identifier = (call_expression "fgetfilecon(fd,con)" identifier (argument_list "(fd,con)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = map_to_failure(iVar1,con);" (assignment_expression "iVar1 = map_to_failure(iVar1,con)" identifier = (call_expression "map_to_failure(iVar1,con)" identifier (argument_list "(iVar1,con)" ( identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0001c000(undefined4 param_1,undefined4 param_2)\n\n{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}\n\n" (function_definition "void FUN_0001c000(undefined4 param_1,undefined4 param_2)\n\n{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}" primitive_type (function_declarator "FUN_0001c000(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}" { (expression_statement "fgetfilecon(param_1,param_2);" (call_expression "fgetfilecon(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001bf10();" (call_expression "FUN_0001bf10()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001c000(undefined4 param_1,undefined4 param_2)\n\n{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001c000(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0001c000") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  fgetfilecon(param_1,param_2);\n  FUN_0001bf10();\n  return;\n}" ({ "{") (expression_statement "fgetfilecon(param_1,param_2);" (call_expression "fgetfilecon(param_1,param_2)" (identifier "fgetfilecon") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_0001bf10();" (call_expression "FUN_0001bf10()" (identifier "FUN_0001bf10") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int function_1(int fd,type_1 *con)

{
  int iVar1;
  
  iVar1 = var_1(fd,con);
  iVar1 = var_2(iVar1,con);
  return iVar1;
}


(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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  fgetfilecon(param_1,param_2);
  FUN_0001bf10();
  return;
}

