
/* WARNING: Unknown calling convention */

int sanitize_env_if_suid(void)

{
  int iVar1;
  int iVar2;
  int iVar3;
  char *pcVar4;
  
  iVar1 = (*(code *)PTR_getuid_0012b0bc)();
  iVar2 = (*(code *)PTR_geteuid_0012b090)();
  iVar3 = 0;
  if (iVar1 != iVar2) {
    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;
    do {
      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);
      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);
      pcVar4 = pcVar4 + iVar1 + 1;
    } while (*pcVar4 != '\0');
    (*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4);
    iVar3 = 1;
  }
  return iVar3;
}



undefined4 FUN_000f20e0(void)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  
  iVar1 = (*(code *)PTR_getuid_0012b0bc)();
  iVar2 = (*(code *)PTR_geteuid_0012b090)();
  uVar3 = 0;
  if (iVar1 != iVar2) {
    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;
    do {
      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);
      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);
      pcVar4 = pcVar4 + iVar1 + 1;
    } while (*pcVar4 != '\0');
    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);
    uVar3 = 1;
  }
  return uVar3;
}


lui gp,0x4
addiu gp,gp,0x70
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7094(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_sw s0,0x18(sp)
lw gp,0x10(sp)
lw t9,-0x70c0(gp)
jalr t9
_or s0,v0,zero
or v1,zero,zero
beq s0,v0,0x000f216c
_lw gp,0x10(sp)
lw s0,-0x7570(gp)
addiu s0,s0,-0x7d87
lw t9,-0x6f44(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7214(gp)
jalr t9
_or a0,s0,zero
addiu v0,v0,0x1
addu s0,s0,v0
lbu v0,0x0(s0)
bne v0,zero,0x000f2128
_lw gp,0x10(sp)
lw t9,-0x7374(gp)
lw a0,-0x789c(gp)
jalr t9
_nop
li v1,0x1
lw ra,0x1c(sp)
or v0,v1,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_000f20e0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_000f20e0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000f20e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_getuid_0012b0bc)();" (assignment_expression "iVar1 = (*(code *)PTR_getuid_0012b0bc)()" identifier = (call_expression "(*(code *)PTR_getuid_0012b0bc)()" (parenthesized_expression "(*(code *)PTR_getuid_0012b0bc)" ( (pointer_expression "*(code *)PTR_getuid_0012b0bc" * (cast_expression "(code *)PTR_getuid_0012b0bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (*(code *)PTR_geteuid_0012b090)();" (assignment_expression "iVar2 = (*(code *)PTR_geteuid_0012b090)()" identifier = (call_expression "(*(code *)PTR_geteuid_0012b090)()" (parenthesized_expression "(*(code *)PTR_geteuid_0012b090)" ( (pointer_expression "*(code *)PTR_geteuid_0012b090" * (cast_expression "(code *)PTR_geteuid_0012b090" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }" if (parenthesized_expression "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) )) (compound_statement "{\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }" { (expression_statement "pcVar4 = PTR_DAT_0012abe0 + -0x7d87;" (assignment_expression "pcVar4 = PTR_DAT_0012abe0 + -0x7d87" identifier = (binary_expression "PTR_DAT_0012abe0 + -0x7d87" identifier + number_literal)) ;) (do_statement "do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');" do (compound_statement "{\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    }" { (expression_statement "(*(code *)PTR_unsetenv_0012b20c)(pcVar4);" (call_expression "(*(code *)PTR_unsetenv_0012b20c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_unsetenv_0012b20c)" ( (pointer_expression "*(code *)PTR_unsetenv_0012b20c" * (cast_expression "(code *)PTR_unsetenv_0012b20c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "pcVar4 = pcVar4 + iVar1 + 1;" (assignment_expression "pcVar4 = pcVar4 + iVar1 + 1" identifier = (binary_expression "pcVar4 + iVar1 + 1" (binary_expression "pcVar4 + iVar1" identifier + identifier) + number_literal)) ;) }) while (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);" (call_expression "(*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4)" (parenthesized_expression "(*(code *)PTR_putenv_0012addc)" ( (pointer_expression "*(code *)PTR_putenv_0012addc" * (cast_expression "(code *)PTR_putenv_0012addc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint sanitize_env_if_suid(void)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  iVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4);\n    iVar3 = 1;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int sanitize_env_if_suid(void)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  iVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4);\n    iVar3 = 1;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "sanitize_env_if_suid(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  iVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4);\n    iVar3 = 1;\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_getuid_0012b0bc)();" (assignment_expression "iVar1 = (*(code *)PTR_getuid_0012b0bc)()" identifier = (call_expression "(*(code *)PTR_getuid_0012b0bc)()" (parenthesized_expression "(*(code *)PTR_getuid_0012b0bc)" ( (pointer_expression "*(code *)PTR_getuid_0012b0bc" * (cast_expression "(code *)PTR_getuid_0012b0bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (*(code *)PTR_geteuid_0012b090)();" (assignment_expression "iVar2 = (*(code *)PTR_geteuid_0012b090)()" identifier = (call_expression "(*(code *)PTR_geteuid_0012b090)()" (parenthesized_expression "(*(code *)PTR_geteuid_0012b090)" ( (pointer_expression "*(code *)PTR_geteuid_0012b090" * (cast_expression "(code *)PTR_geteuid_0012b090" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4);\n    iVar3 = 1;\n  }" if (parenthesized_expression "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) )) (compound_statement "{\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4);\n    iVar3 = 1;\n  }" { (expression_statement "pcVar4 = PTR_DAT_0012abe0 + -0x7d87;" (assignment_expression "pcVar4 = PTR_DAT_0012abe0 + -0x7d87" identifier = (binary_expression "PTR_DAT_0012abe0 + -0x7d87" identifier + number_literal)) ;) (do_statement "do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');" do (compound_statement "{\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    }" { (expression_statement "(*(code *)PTR_unsetenv_0012b20c)(pcVar4);" (call_expression "(*(code *)PTR_unsetenv_0012b20c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_unsetenv_0012b20c)" ( (pointer_expression "*(code *)PTR_unsetenv_0012b20c" * (cast_expression "(code *)PTR_unsetenv_0012b20c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "pcVar4 = pcVar4 + iVar1 + 1;" (assignment_expression "pcVar4 = pcVar4 + iVar1 + 1" identifier = (binary_expression "pcVar4 + iVar1 + 1" (binary_expression "pcVar4 + iVar1" identifier + identifier) + number_literal)) ;) }) while (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4);" (call_expression "(*(code *)PTR_putenv_0012addc)(PTR_bb_PATH_root_path_0012a8b4)" (parenthesized_expression "(*(code *)PTR_putenv_0012addc)" ( (pointer_expression "*(code *)PTR_putenv_0012addc" * (cast_expression "(code *)PTR_putenv_0012addc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_bb_PATH_root_path_0012a8b4)" ( identifier ))) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "undefined4 FUN_000f20e0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_000f20e0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000f20e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_getuid_0012b0bc)();" (assignment_expression "iVar1 = (*(code *)PTR_getuid_0012b0bc)()" identifier = (call_expression "(*(code *)PTR_getuid_0012b0bc)()" (parenthesized_expression "(*(code *)PTR_getuid_0012b0bc)" ( (pointer_expression "*(code *)PTR_getuid_0012b0bc" * (cast_expression "(code *)PTR_getuid_0012b0bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (*(code *)PTR_geteuid_0012b090)();" (assignment_expression "iVar2 = (*(code *)PTR_geteuid_0012b090)()" identifier = (call_expression "(*(code *)PTR_geteuid_0012b090)()" (parenthesized_expression "(*(code *)PTR_geteuid_0012b090)" ( (pointer_expression "*(code *)PTR_geteuid_0012b090" * (cast_expression "(code *)PTR_geteuid_0012b090" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }" if (parenthesized_expression "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) )) (compound_statement "{\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }" { (expression_statement "pcVar4 = PTR_DAT_0012abe0 + -0x7d87;" (assignment_expression "pcVar4 = PTR_DAT_0012abe0 + -0x7d87" identifier = (binary_expression "PTR_DAT_0012abe0 + -0x7d87" identifier + number_literal)) ;) (do_statement "do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');" do (compound_statement "{\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    }" { (expression_statement "(*(code *)PTR_unsetenv_0012b20c)(pcVar4);" (call_expression "(*(code *)PTR_unsetenv_0012b20c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_unsetenv_0012b20c)" ( (pointer_expression "*(code *)PTR_unsetenv_0012b20c" * (cast_expression "(code *)PTR_unsetenv_0012b20c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "pcVar4 = pcVar4 + iVar1 + 1;" (assignment_expression "pcVar4 = pcVar4 + iVar1 + 1" identifier = (binary_expression "pcVar4 + iVar1 + 1" (binary_expression "pcVar4 + iVar1" identifier + identifier) + number_literal)) ;) }) while (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);" (call_expression "(*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4)" (parenthesized_expression "(*(code *)PTR_putenv_0012addc)" ( (pointer_expression "*(code *)PTR_putenv_0012addc" * (cast_expression "(code *)PTR_putenv_0012addc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000f20e0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_000f20e0(void)" (identifier "FUN_000f20e0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  \n  iVar1 = (*(code *)PTR_getuid_0012b0bc)();\n  iVar2 = (*(code *)PTR_geteuid_0012b090)();\n  uVar3 = 0;\n  if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_getuid_0012b0bc)();" (assignment_expression "iVar1 = (*(code *)PTR_getuid_0012b0bc)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_getuid_0012b0bc)()" (parenthesized_expression "(*(code *)PTR_getuid_0012b0bc)" (( "(") (pointer_expression "*(code *)PTR_getuid_0012b0bc" (* "*") (cast_expression "(code *)PTR_getuid_0012b0bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getuid_0012b0bc"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_geteuid_0012b090)();" (assignment_expression "iVar2 = (*(code *)PTR_geteuid_0012b090)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_geteuid_0012b090)()" (parenthesized_expression "(*(code *)PTR_geteuid_0012b090)" (( "(") (pointer_expression "*(code *)PTR_geteuid_0012b090" (* "*") (cast_expression "(code *)PTR_geteuid_0012b090" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_geteuid_0012b090"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 != iVar2) {\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != iVar2)" (( "(") (binary_expression "iVar1 != iVar2" (identifier "iVar1") (!= "!=") (identifier "iVar2")) () ")")) (compound_statement "{\n    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;\n    do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');\n    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);\n    uVar3 = 1;\n  }" ({ "{") (expression_statement "pcVar4 = PTR_DAT_0012abe0 + -0x7d87;" (assignment_expression "pcVar4 = PTR_DAT_0012abe0 + -0x7d87" (identifier "pcVar4") (= "=") (binary_expression "PTR_DAT_0012abe0 + -0x7d87" (identifier "PTR_DAT_0012abe0") (+ "+") (number_literal "-0x7d87"))) (; ";")) (do_statement "do {\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    } while (*pcVar4 != '\0');" (do "do") (compound_statement "{\n      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);\n      pcVar4 = pcVar4 + iVar1 + 1;\n    }" ({ "{") (expression_statement "(*(code *)PTR_unsetenv_0012b20c)(pcVar4);" (call_expression "(*(code *)PTR_unsetenv_0012b20c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_unsetenv_0012b20c)" (( "(") (pointer_expression "*(code *)PTR_unsetenv_0012b20c" (* "*") (cast_expression "(code *)PTR_unsetenv_0012b20c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_unsetenv_0012b20c"))) () ")")) (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0012af3c" (* "*") (cast_expression "(code *)PTR_strlen_0012af3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0012af3c"))) () ")")) (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "pcVar4 = pcVar4 + iVar1 + 1;" (assignment_expression "pcVar4 = pcVar4 + iVar1 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + iVar1 + 1" (binary_expression "pcVar4 + iVar1" (identifier "pcVar4") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pcVar4 != '\0')" (( "(") (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "(*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);" (call_expression "(*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4)" (parenthesized_expression "(*(code *)PTR_putenv_0012addc)" (( "(") (pointer_expression "*(code *)PTR_putenv_0012addc" (* "*") (cast_expression "(code *)PTR_putenv_0012addc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_putenv_0012addc"))) () ")")) (argument_list "(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4)" (( "(") (identifier "PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4") () ")"))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))
(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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

undefined4 MASKED(void)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  
  iVar1 = (*(code *)PTR_getuid_0012b0bc)();
  iVar2 = (*(code *)PTR_geteuid_0012b090)();
  uVar3 = 0;
  if (iVar1 != iVar2) {
    pcVar4 = PTR_DAT_0012abe0 + -0x7d87;
    do {
      (*(code *)PTR_unsetenv_0012b20c)(pcVar4);
      iVar1 = (*(code *)PTR_strlen_0012af3c)(pcVar4);
      pcVar4 = pcVar4 + iVar1 + 1;
    } while (*pcVar4 != '\0');
    (*(code *)PTR_putenv_0012addc)(PTR_s_PATH__sbin__usr_sbin__bin__usr_b_0012a8b4);
    uVar3 = 1;
  }
  return uVar3;
}

