
FILE * shellcmd(char *cmd)

{
  char *pcVar1;
  FILE *pFVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  void *pvVar6;
  
  pcVar1 = lgetenv(PTR_LAB_0004ec08 + 0x7cf8);
  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) &&
     (pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0)) {
    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);
    iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3);
    iVar4 = iVar4 + iVar5 + 5;
    pvVar6 = ecalloc(iVar4,1);
    (*(code *)PTR___snprintf_chk_0004f3a8)
              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,
               pcVar3);
    (*(code *)PTR_free_0004f37c)(pcVar3);
    pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080);
    (*(code *)PTR_free_0004f37c)(pvVar6);
    return pFVar2;
  }
                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080);
  return pFVar2;
}



undefined4 FUN_00023390(undefined4 param_1)

{
  char *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  
  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);
  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))
  {
    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);
    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);
    iVar4 = iVar4 + iVar5 + 5;
    uVar2 = ecalloc(iVar4,1);
    (*(code *)PTR___snprintf_chk_0004f3a8)
              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,
               iVar3);
    (*(code *)PTR_free_0004f37c)(iVar3);
    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);
    (*(code *)PTR_free_0004f37c)(uVar2);
    return uVar6;
  }
                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);
  return uVar2;
}


lui gp,0x3
addiu gp,gp,0x3840
addu gp,gp,t9
addiu sp,sp,-0x48
lw t9,-0x7f90(gp)
sw s1,0x38(sp)
or s1,a0,zero
sw gp,0x20(sp)
sw ra,0x44(sp)
sw s3,0x40(sp)
sw s2,0x3c(sp)
sw s0,0x34(sp)
lw a0,-0x7fc8(gp)
bal 0x00021284
_addiu a0,a0,0x7cf8
or a0,s1,zero
beq v0,zero,0x000233e8
_lw gp,0x20(sp)
or s0,v0,zero
lb v0,0x0(v0)
bne v0,zero,0x00023410
_lw t9,-0x7f3c(gp)
lw a1,-0x7eec(gp)
lw ra,0x44(sp)
lw s3,0x40(sp)
lw s2,0x3c(sp)
addiu a1,a1,-0x5080
lw s1,0x38(sp)
lw s0,0x34(sp)
lw t9,-0x7910(gp)
jr t9
_addiu sp,sp,0x48
bal 0x00023090
_nop
lw gp,0x20(sp)
beq v0,zero,0x000234fc
_or s2,v0,zero
lw t9,-0x78c4(gp)
jalr t9
_or a0,s0,zero
or a0,s2,zero
lw gp,0x20(sp)
lw t9,-0x78c4(gp)
jalr t9
_or s1,v0,zero
li a1,0x1
lw gp,0x20(sp)
addu s1,s1,v0
addiu s1,s1,0x5
lw t9,-0x7f94(gp)
bal 0x00015a8c
_or a0,s1,zero
li a3,-0x1
lw gp,0x20(sp)
or s3,v0,zero
or a0,v0,zero
sw s2,0x1c(sp)
li a2,0x1
sw s0,0x14(sp)
or a1,s1,zero
lw v0,-0x7fc8(gp)
lw t9,-0x7828(gp)
addiu v0,v0,0x7d00
sw v0,0x18(sp)
lw v0,-0x7fc8(gp)
addiu v0,v0,0x7d04
jalr t9
_sw v0,0x10(sp)
lw gp,0x20(sp)
lw t9,-0x7854(gp)
jalr t9
_or a0,s2,zero
or a0,s3,zero
lw gp,0x20(sp)
lw a1,-0x7eec(gp)
lw t9,-0x7910(gp)
jalr t9
_addiu a1,a1,-0x5080
or a0,s3,zero
lw gp,0x20(sp)
lw t9,-0x7854(gp)
jalr t9
_sw v0,0x2c(sp)
lw ra,0x44(sp)
lw v0,0x2c(sp)
lw s3,0x40(sp)
lw s2,0x3c(sp)
lw s1,0x38(sp)
lw s0,0x34(sp)
jr ra
_addiu sp,sp,0x48
b 0x000233e8
_or a0,s1,zero
(translation_unit "undefined4 FUN_00023390(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_00023390(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00023390(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);" (assignment_expression "pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" identifier = (cast_expression "(char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" identifier (argument_list "(PTR_LAB_0004ec08 + 0x7cf8)" ( (binary_expression "PTR_LAB_0004ec08 + 0x7cf8" identifier + number_literal) ))))) ;) (if_statement "if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }" if (parenthesized_expression "(((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))" ( (binary_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0)" (parenthesized_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0'))" ( (binary_expression "(pcVar1 != (char *)0x0) && (*pcVar1 != '\0')" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(iVar3 = shell_quote(param_1), iVar3 != 0)" ( (comma_expression "iVar3 = shell_quote(param_1), iVar3 != 0" (assignment_expression "iVar3 = shell_quote(param_1)" identifier = (call_expression "shell_quote(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar5 + 5;" (assignment_expression "iVar4 = iVar4 + iVar5 + 5" identifier = (binary_expression "iVar4 + iVar5 + 5" (binary_expression "iVar4 + iVar5" identifier + identifier) + number_literal)) ;) (expression_statement "uVar2 = ecalloc(iVar4,1);" (assignment_expression "uVar2 = ecalloc(iVar4,1)" identifier = (call_expression "ecalloc(iVar4,1)" identifier (argument_list "(iVar4,1)" ( identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7d04" identifier + number_literal) , identifier , (binary_expression "PTR_LAB_0004ec08 + 32000" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(iVar3);" (call_expression "(*(code *)PTR_free_0004f37c)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080)" identifier = (call_expression "(*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" ( (pointer_expression "*(code *)PTR_popen_0004f2c0" * (cast_expression "(code *)PTR_popen_0004f2c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,PTR_DAT_0004ece4 + -0x5080)" ( identifier , (binary_expression "PTR_DAT_0004ece4 + -0x5080" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar2);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar6;" return identifier ;) })) comment comment (expression_statement "uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080)" identifier = (call_expression "(*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" ( (pointer_expression "*(code *)PTR_popen_0004f2c0" * (cast_expression "(code *)PTR_popen_0004f2c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_DAT_0004ece4 + -0x5080)" ( identifier , (binary_expression "PTR_DAT_0004ece4 + -0x5080" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "FILE * shellcmd(char *cmd)\n\n{\n  char *pcVar1;\n  FILE *pFVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  \n  pcVar1 = lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) &&\n     (pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0)) {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    pvVar6 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3);\n    (*(code *)PTR_free_0004f37c)(pcVar3);\n    pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(pvVar6);\n    return pFVar2;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080);\n  return pFVar2;\n}\n\n" (function_definition "FILE * shellcmd(char *cmd)\n\n{\n  char *pcVar1;\n  FILE *pFVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  \n  pcVar1 = lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) &&\n     (pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0)) {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    pvVar6 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3);\n    (*(code *)PTR_free_0004f37c)(pcVar3);\n    pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(pvVar6);\n    return pFVar2;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080);\n  return pFVar2;\n}" type_identifier (pointer_declarator "* shellcmd(char *cmd)" * (function_declarator "shellcmd(char *cmd)" identifier (parameter_list "(char *cmd)" ( (parameter_declaration "char *cmd" primitive_type (pointer_declarator "*cmd" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  FILE *pFVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  \n  pcVar1 = lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) &&\n     (pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0)) {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    pvVar6 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3);\n    (*(code *)PTR_free_0004f37c)(pcVar3);\n    pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(pvVar6);\n    return pFVar2;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080);\n  return pFVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (expression_statement "pcVar1 = lgetenv(PTR_LAB_0004ec08 + 0x7cf8);" (assignment_expression "pcVar1 = lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" identifier = (call_expression "lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" identifier (argument_list "(PTR_LAB_0004ec08 + 0x7cf8)" ( (binary_expression "PTR_LAB_0004ec08 + 0x7cf8" identifier + number_literal) )))) ;) (if_statement "if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) &&\n     (pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0)) {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    pvVar6 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3);\n    (*(code *)PTR_free_0004f37c)(pcVar3);\n    pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(pvVar6);\n    return pFVar2;\n  }" if (parenthesized_expression "(((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) &&\n     (pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0))" ( (binary_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) &&\n     (pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0)" (parenthesized_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0'))" ( (binary_expression "(pcVar1 != (char *)0x0) && (*pcVar1 != '\0')" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = shell_quote(cmd), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = shell_quote(cmd)" identifier = (call_expression "shell_quote(cmd)" identifier (argument_list "(cmd)" ( identifier )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    pvVar6 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3);\n    (*(code *)PTR_free_0004f37c)(pcVar3);\n    pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(pvVar6);\n    return pFVar2;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0004f30c)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar5 + 5;" (assignment_expression "iVar4 = iVar4 + iVar5 + 5" identifier = (binary_expression "iVar4 + iVar5 + 5" (binary_expression "iVar4 + iVar5" identifier + identifier) + number_literal)) ;) (expression_statement "pvVar6 = ecalloc(iVar4,1);" (assignment_expression "pvVar6 = ecalloc(iVar4,1)" identifier = (call_expression "ecalloc(iVar4,1)" identifier (argument_list "(iVar4,1)" ( identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar6,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               pcVar3)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7d04" identifier + number_literal) , identifier , (binary_expression "PTR_LAB_0004ec08 + 32000" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(pcVar3);" (call_expression "(*(code *)PTR_free_0004f37c)(pcVar3)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080)" identifier = (cast_expression "(FILE *)(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_popen_0004f2c0)(pvVar6,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" ( (pointer_expression "*(code *)PTR_popen_0004f2c0" * (cast_expression "(code *)PTR_popen_0004f2c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar6,PTR_DAT_0004ece4 + -0x5080)" ( identifier , (binary_expression "PTR_DAT_0004ece4 + -0x5080" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(pvVar6);" (call_expression "(*(code *)PTR_free_0004f37c)(pvVar6)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar6)" ( identifier ))) ;) (return_statement "return pFVar2;" return identifier ;) })) comment comment (expression_statement "pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "pFVar2 = (FILE *)(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080)" identifier = (cast_expression "(FILE *)(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_popen_0004f2c0)(cmd,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" ( (pointer_expression "*(code *)PTR_popen_0004f2c0" * (cast_expression "(code *)PTR_popen_0004f2c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cmd,PTR_DAT_0004ece4 + -0x5080)" ( identifier , (binary_expression "PTR_DAT_0004ece4 + -0x5080" identifier + number_literal) ))))) ;) (return_statement "return pFVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00023390(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    \n                    \n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_00023390(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    \n                    \n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00023390(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    \n                    \n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);" (assignment_expression "pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" identifier = (cast_expression "(char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" identifier (argument_list "(PTR_LAB_0004ec08 + 0x7cf8)" ( (binary_expression "PTR_LAB_0004ec08 + 0x7cf8" identifier + number_literal) ))))) ;) (if_statement "if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }" if (parenthesized_expression "(((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))" ( (binary_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0)" (parenthesized_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0'))" ( (binary_expression "(pcVar1 != (char *)0x0) && (*pcVar1 != '\0')" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(iVar3 = shell_quote(param_1), iVar3 != 0)" ( (comma_expression "iVar3 = shell_quote(param_1), iVar3 != 0" (assignment_expression "iVar3 = shell_quote(param_1)" identifier = (call_expression "shell_quote(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar4 = iVar4 + iVar5 + 5;" (assignment_expression "iVar4 = iVar4 + iVar5 + 5" identifier = (binary_expression "iVar4 + iVar5 + 5" (binary_expression "iVar4 + iVar5" identifier + identifier) + number_literal)) ;) (expression_statement "uVar2 = ecalloc(iVar4,1);" (assignment_expression "uVar2 = ecalloc(iVar4,1)" identifier = (call_expression "ecalloc(iVar4,1)" identifier (argument_list "(iVar4,1)" ( identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3)" ( identifier , identifier , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7d04" identifier + number_literal) , identifier , (binary_expression "PTR_LAB_0004ec08 + 32000" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(iVar3);" (call_expression "(*(code *)PTR_free_0004f37c)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080)" identifier = (call_expression "(*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" ( (pointer_expression "*(code *)PTR_popen_0004f2c0" * (cast_expression "(code *)PTR_popen_0004f2c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,PTR_DAT_0004ece4 + -0x5080)" ( identifier , (binary_expression "PTR_DAT_0004ece4 + -0x5080" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar2);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar6;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080)" identifier = (call_expression "(*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" ( (pointer_expression "*(code *)PTR_popen_0004f2c0" * (cast_expression "(code *)PTR_popen_0004f2c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_DAT_0004ece4 + -0x5080)" ( identifier , (binary_expression "PTR_DAT_0004ece4 + -0x5080" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (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 = (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)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT , LIT , (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (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 , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00023390(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    \n                    \n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_00023390(undefined4 param_1)" (identifier "FUN_00023390") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);\n  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }\n                    \n                    \n  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);\n  return uVar2;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);" (assignment_expression "pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" (identifier "pcVar1") (= "=") (cast_expression "(char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "lgetenv(PTR_LAB_0004ec08 + 0x7cf8)" (identifier "lgetenv") (argument_list "(PTR_LAB_0004ec08 + 0x7cf8)" (( "(") (binary_expression "PTR_LAB_0004ec08 + 0x7cf8" (identifier "PTR_LAB_0004ec08") (+ "+") (number_literal "0x7cf8")) () ")"))))) (; ";")) (if_statement "if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))\n  {\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }" (if "if") (parenthesized_expression "(((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))" (( "(") (binary_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0)" (parenthesized_expression "((pcVar1 != (char *)0x0) && (*pcVar1 != '\0'))" (( "(") (binary_expression "(pcVar1 != (char *)0x0) && (*pcVar1 != '\0')" (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*pcVar1 != '\0')" (( "(") (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = shell_quote(param_1), iVar3 != 0)" (( "(") (comma_expression "iVar3 = shell_quote(param_1), iVar3 != 0" (assignment_expression "iVar3 = shell_quote(param_1)" (identifier "iVar3") (= "=") (call_expression "shell_quote(param_1)" (identifier "shell_quote") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);\n    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);\n    iVar4 = iVar4 + iVar5 + 5;\n    uVar2 = ecalloc(iVar4,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);\n    (*(code *)PTR_free_0004f37c)(iVar3);\n    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar6;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_0004f30c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004f30c" (* "*") (cast_expression "(code *)PTR_strlen_0004f30c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004f30c"))) () ")")) (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_0004f30c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004f30c" (* "*") (cast_expression "(code *)PTR_strlen_0004f30c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004f30c"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + iVar5 + 5;" (assignment_expression "iVar4 = iVar4 + iVar5 + 5" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar5 + 5" (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5")) (+ "+") (number_literal "5"))) (; ";")) (expression_statement "uVar2 = ecalloc(iVar4,1);" (assignment_expression "uVar2 = ecalloc(iVar4,1)" (identifier "uVar2") (= "=") (call_expression "ecalloc(iVar4,1)" (identifier "ecalloc") (argument_list "(iVar4,1)" (( "(") (identifier "iVar4") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" (* "*") (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_0004f3a8"))) () ")")) (argument_list "(uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,\n               iVar3)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_LAB_0004ec08 + 0x7d04" (identifier "PTR_LAB_0004ec08") (+ "+") (number_literal "0x7d04")) (, ",") (identifier "pcVar1") (, ",") (binary_expression "PTR_LAB_0004ec08 + 32000" (identifier "PTR_LAB_0004ec08") (+ "+") (number_literal "32000")) (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0004f37c)(iVar3);" (call_expression "(*(code *)PTR_free_0004f37c)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" (( "(") (pointer_expression "*(code *)PTR_free_0004f37c" (* "*") (cast_expression "(code *)PTR_free_0004f37c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004f37c"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" (( "(") (pointer_expression "*(code *)PTR_popen_0004f2c0" (* "*") (cast_expression "(code *)PTR_popen_0004f2c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_popen_0004f2c0"))) () ")")) (argument_list "(uVar2,PTR_DAT_0004ece4 + -0x5080)" (( "(") (identifier "uVar2") (, ",") (binary_expression "PTR_DAT_0004ece4 + -0x5080" (identifier "PTR_DAT_0004ece4") (+ "+") (number_literal "-0x5080")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar2);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" (( "(") (pointer_expression "*(code *)PTR_free_0004f37c" (* "*") (cast_expression "(code *)PTR_free_0004f37c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004f37c"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);" (assignment_expression "uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080)" (parenthesized_expression "(*(code *)PTR_popen_0004f2c0)" (( "(") (pointer_expression "*(code *)PTR_popen_0004f2c0" (* "*") (cast_expression "(code *)PTR_popen_0004f2c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_popen_0004f2c0"))) () ")")) (argument_list "(param_1,PTR_DAT_0004ece4 + -0x5080)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_0004ece4 + -0x5080" (identifier "PTR_DAT_0004ece4") (+ "+") (number_literal "-0x5080")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

type_1 * function_1(char *cmd)

{
  char *var_3;
  type_1 *pFVar2;
  char *var_5;
  int var_6;
  int var_7;
  void *pvVar6;
  
  var_3 = var_1(var_2 + 0x7cf8);
  if (((var_3 != (char *)0x0) && (*var_3 != '\0')) &&
     (var_5 = var_4(cmd), var_5 != (char *)0x0)) {
    var_6 = (*(type_2 *)PTR_strlen_0004f30c)(var_3);
    var_7 = (*(type_2 *)PTR_strlen_0004f30c)(var_5);
    var_6 = var_6 + var_7 + 5;
    pvVar6 = var_8(var_6,1);
    (*(type_2 *)PTR___snprintf_chk_0004f3a8)
              (pvVar6,var_6,1,0xffffffff,var_2 + 0x7d04,var_3,var_2 + 32000,
               var_5);
    (*(type_2 *)PTR_free_0004f37c)(var_5);
    pFVar2 = (type_1 *)(*(type_2 *)PTR_popen_0004f2c0)(pvVar6,var_9 + -0x5080);
    (*(type_2 *)PTR_free_0004f37c)(pvVar6);
    return pFVar2;
  }
                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  pFVar2 = (type_1 *)(*(type_2 *)PTR_popen_0004f2c0)(cmd,var_9 + -0x5080);
  return pFVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (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: (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)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (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) (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (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) (binary_expression left: (identifier) right: (number_literal)))))) (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)))) (return_statement (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) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1)

{
  char *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  
  pcVar1 = (char *)lgetenv(PTR_LAB_0004ec08 + 0x7cf8);
  if (((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) && (iVar3 = shell_quote(param_1), iVar3 != 0))
  {
    iVar4 = (*(code *)PTR_strlen_0004f30c)(pcVar1);
    iVar5 = (*(code *)PTR_strlen_0004f30c)(iVar3);
    iVar4 = iVar4 + iVar5 + 5;
    uVar2 = ecalloc(iVar4,1);
    (*(code *)PTR___snprintf_chk_0004f3a8)
              (uVar2,iVar4,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d04,pcVar1,PTR_LAB_0004ec08 + 32000,
               iVar3);
    (*(code *)PTR_free_0004f37c)(iVar3);
    uVar6 = (*(code *)PTR_popen_0004f2c0)(uVar2,PTR_DAT_0004ece4 + -0x5080);
    (*(code *)PTR_free_0004f37c)(uVar2);
    return uVar6;
  }
                    /* WARNING: Could not recover jumptable at 0x00023408. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar2 = (*(code *)PTR_popen_0004f2c0)(param_1,PTR_DAT_0004ece4 + -0x5080);
  return uVar2;
}

