
void add_hometable(char *envname,char *def_filename,int sysvar)

{
  char *pcVar1;
  int iVar2;
  undefined *puVar3;
  PARG parg;
  int local_14;
  
  puVar3 = PTR___stack_chk_guard_0004f374;
  local_14 = *(int *)PTR___stack_chk_guard_0004f374;
  if ((envname == (char *)0x0) || (pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0)) {
    if (sysvar == 0) {
      pcVar1 = homefile(def_filename);
    }
    else {
      pcVar1 = save(def_filename);
    }
  }
  else {
    pcVar1 = save(pcVar1);
  }
  if (pcVar1 != (char *)0x0) {
    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)) {
      parg.p_string = pcVar1;
      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);
    }
    (*(code *)PTR_free_0004f37c)(pcVar1);
  }
  if (local_14 != *(int *)puVar3) {
    puVar3 = PTR___stack_chk_fail_0004f354;
    (*(code *)PTR___stack_chk_fail_0004f354)();
    add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0);
    add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9);
    add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1);
    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),
                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1);
    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),
                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0);
    return;
  }
  return;
}



void add_hometable(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  int local_20 [3];
  int local_14;
  
  puVar3 = PTR___stack_chk_guard_0004f374;
  local_14 = *(int *)PTR___stack_chk_guard_0004f374;
  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {
    if (param_3 == 0) {
      iVar1 = homefile(param_2);
    }
    else {
      iVar1 = save(param_2);
    }
  }
  else {
    iVar1 = save(iVar1);
  }
  if (iVar1 != 0) {
    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {
      local_20[0] = iVar1;
      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);
    }
    (*(code *)PTR_free_0004f37c)(iVar1);
  }
  if (local_14 != *(int *)puVar3) {
    puVar3 = PTR___stack_chk_fail_0004f354;
    (*(code *)PTR___stack_chk_fail_0004f354)();
    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);
    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);
    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);
    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);
    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);
    return;
  }
  return;
}


lui gp,0x3
addiu gp,gp,0x5824
addu gp,gp,t9
addiu sp,sp,-0x38
sw s1,0x2c(sp)
lw s1,-0x785c(gp)
sw gp,0x10(sp)
sw s2,0x30(sp)
or s2,a2,zero
sw s0,0x28(sp)
or s0,a1,zero
sw ra,0x34(sp)
lw v0,0x0(s1)
sw v0,0x24(sp)
beq a0,zero,0x00021414
_lw t9,-0x7f90(gp)
bal 0x00021284
_nop
beq v0,zero,0x00021414
_lw gp,0x10(sp)
lw t9,-0x7f60(gp)
bal 0x00015ae8
_or a0,v0,zero
lw gp,0x10(sp)
b 0x00021430
_or s0,v0,zero
bne s2,zero,0x00021494
_lw t9,-0x7f60(gp)
lw t9,-0x7bec(gp)
bal 0x00023504
_or a0,s0,zero
lw gp,0x10(sp)
or s0,v0,zero
beq s0,zero,0x00021470
_lw v0,-0x7f88(gp)
lw v0,0x0(v0)
bne v0,zero,0x00021464
_lw t9,-0x7854(gp)
lw t9,-0x7ddc(gp)
or a1,s2,zero
addiu t9,t9,0xebc
bal 0x00020ebc
_or a0,s0,zero
bltz v0,0x000214a8
_lw gp,0x10(sp)
lw t9,-0x7854(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw v1,0x24(sp)
lw v0,0x0(s1)
bne v1,v0,0x000214c8
_lw ra,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
bal 0x00015ae8
_or a0,s0,zero
lw gp,0x10(sp)
b 0x00021430
_or s0,v0,zero
lw a0,-0x7fc8(gp)
addiu a1,sp,0x18
lw t9,-0x7f9c(gp)
sw s0,0x18(sp)
bal 0x0002ea34
_addiu a0,a0,0x7a7c
b 0x00021460
_lw gp,0x10(sp)
lw t9,-0x787c(gp)
jalr t9
_nop
(translation_unit "void add_hometable(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void add_hometable(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "add_hometable(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0004f374;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0004f374" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0004f374;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0004f374" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0004f374" * (cast_expression "(int *)PTR___stack_chk_guard_0004f374" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }" if (parenthesized_expression "((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0))" ( (binary_expression "(param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = lgetenv(), iVar1 == 0)" ( (comma_expression "iVar1 = lgetenv(), iVar1 == 0" (assignment_expression "iVar1 = lgetenv()" identifier = (call_expression "lgetenv()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = homefile(param_2);\n    }" { (expression_statement "iVar1 = homefile(param_2);" (assignment_expression "iVar1 = homefile(param_2)" identifier = (call_expression "homefile(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = save(param_2);\n    }" else (compound_statement "{\n      iVar1 = save(param_2);\n    }" { (expression_statement "iVar1 = save(param_2);" (assignment_expression "iVar1 = save(param_2)" identifier = (call_expression "save(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }))) }) (else_clause "else {\n    iVar1 = save(iVar1);\n  }" else (compound_statement "{\n    iVar1 = save(iVar1);\n  }" { (expression_statement "iVar1 = save(iVar1);" (assignment_expression "iVar1 = save(iVar1)" identifier = (call_expression "save(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }" { (if_statement "if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }" if (parenthesized_expression "((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0))" ( (binary_expression "(*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)" (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" ( (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" * (cast_expression "(int *)PTR_secure_0004ec48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)" ( (comma_expression "iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0" (assignment_expression "iVar2 = FUN_00020ebc(iVar1,param_3)" identifier = (call_expression "FUN_00020ebc(iVar1,param_3)" identifier (argument_list "(iVar1,param_3)" ( identifier , identifier )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }" { (expression_statement "local_20[0] = iVar1;" (assignment_expression "local_20[0] = iVar1" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "error(PTR_LAB_0004ec08 + 0x7a7c,local_20);" (call_expression "error(PTR_LAB_0004ec08 + 0x7a7c,local_20)" identifier (argument_list "(PTR_LAB_0004ec08 + 0x7a7c,local_20)" ( (binary_expression "PTR_LAB_0004ec08 + 0x7a7c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0004f37c)(iVar1);" (call_expression "(*(code *)PTR_free_0004f37c)(iVar1)" (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 "(iVar1)" ( identifier ))) ;) })) (if_statement "if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar3)" ( (binary_expression "local_14 != *(int *)puVar3" identifier != (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }" { (expression_statement "puVar3 = PTR___stack_chk_fail_0004f354;" (assignment_expression "puVar3 = PTR___stack_chk_fail_0004f354" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0004f354)();" (call_expression "(*(code *)PTR___stack_chk_fail_0004f354)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0004f354)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0004f354" * (cast_expression "(code *)PTR___stack_chk_fail_0004f354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);" (call_expression "add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0)" identifier (argument_list "(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0)" ( (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1ec4" (pointer_expression "*(int *)(puVar3 + 0x2d724)" * (cast_expression "(int *)(puVar3 + 0x2d724)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d724)" ( (binary_expression "puVar3 + 0x2d724" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);" (call_expression "add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9)" identifier (argument_list "(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9)" ( (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1f90" (pointer_expression "*(int *)(puVar3 + 0x2d724)" * (cast_expression "(int *)(puVar3 + 0x2d724)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d724)" ( (binary_expression "puVar3 + 0x2d724" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);" (call_expression "add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1)" identifier (argument_list "(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1)" ( number_literal , (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7a9c" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);" (call_expression "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1)" identifier (argument_list "(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ac0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ab0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);" (call_expression "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0)" identifier (argument_list "(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad8" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void add_hometable(char *envname,char *def_filename,int sysvar)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined *puVar3;\n  PARG parg;\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((envname == (char *)0x0) || (pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0)) {\n    if (sysvar == 0) {\n      pcVar1 = homefile(def_filename);\n    }\n    else {\n      pcVar1 = save(def_filename);\n    }\n  }\n  else {\n    pcVar1 = save(pcVar1);\n  }\n  if (pcVar1 != (char *)0x0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)) {\n      parg.p_string = pcVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0);\n    add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9);\n    add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void add_hometable(char *envname,char *def_filename,int sysvar)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined *puVar3;\n  PARG parg;\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((envname == (char *)0x0) || (pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0)) {\n    if (sysvar == 0) {\n      pcVar1 = homefile(def_filename);\n    }\n    else {\n      pcVar1 = save(def_filename);\n    }\n  }\n  else {\n    pcVar1 = save(pcVar1);\n  }\n  if (pcVar1 != (char *)0x0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)) {\n      parg.p_string = pcVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0);\n    add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9);\n    add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "add_hometable(char *envname,char *def_filename,int sysvar)" identifier (parameter_list "(char *envname,char *def_filename,int sysvar)" ( (parameter_declaration "char *envname" primitive_type (pointer_declarator "*envname" * identifier)) , (parameter_declaration "char *def_filename" primitive_type (pointer_declarator "*def_filename" * identifier)) , (parameter_declaration "int sysvar" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined *puVar3;\n  PARG parg;\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((envname == (char *)0x0) || (pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0)) {\n    if (sysvar == 0) {\n      pcVar1 = homefile(def_filename);\n    }\n    else {\n      pcVar1 = save(def_filename);\n    }\n  }\n  else {\n    pcVar1 = save(pcVar1);\n  }\n  if (pcVar1 != (char *)0x0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)) {\n      parg.p_string = pcVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0);\n    add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9);\n    add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0);\n    return;\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "PARG parg;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0004f374;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0004f374" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0004f374;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0004f374" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0004f374" * (cast_expression "(int *)PTR___stack_chk_guard_0004f374" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((envname == (char *)0x0) || (pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0)) {\n    if (sysvar == 0) {\n      pcVar1 = homefile(def_filename);\n    }\n    else {\n      pcVar1 = save(def_filename);\n    }\n  }\n  else {\n    pcVar1 = save(pcVar1);\n  }" if (parenthesized_expression "((envname == (char *)0x0) || (pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0))" ( (binary_expression "(envname == (char *)0x0) || (pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0)" (parenthesized_expression "(envname == (char *)0x0)" ( (binary_expression "envname == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0)" ( (comma_expression "pcVar1 = lgetenv(envname), pcVar1 == (char *)0x0" (assignment_expression "pcVar1 = lgetenv(envname)" identifier = (call_expression "lgetenv(envname)" identifier (argument_list "(envname)" ( identifier )))) , (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if (sysvar == 0) {\n      pcVar1 = homefile(def_filename);\n    }\n    else {\n      pcVar1 = save(def_filename);\n    }\n  }" { (if_statement "if (sysvar == 0) {\n      pcVar1 = homefile(def_filename);\n    }\n    else {\n      pcVar1 = save(def_filename);\n    }" if (parenthesized_expression "(sysvar == 0)" ( (binary_expression "sysvar == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar1 = homefile(def_filename);\n    }" { (expression_statement "pcVar1 = homefile(def_filename);" (assignment_expression "pcVar1 = homefile(def_filename)" identifier = (call_expression "homefile(def_filename)" identifier (argument_list "(def_filename)" ( identifier )))) ;) }) (else_clause "else {\n      pcVar1 = save(def_filename);\n    }" else (compound_statement "{\n      pcVar1 = save(def_filename);\n    }" { (expression_statement "pcVar1 = save(def_filename);" (assignment_expression "pcVar1 = save(def_filename)" identifier = (call_expression "save(def_filename)" identifier (argument_list "(def_filename)" ( identifier )))) ;) }))) }) (else_clause "else {\n    pcVar1 = save(pcVar1);\n  }" else (compound_statement "{\n    pcVar1 = save(pcVar1);\n  }" { (expression_statement "pcVar1 = save(pcVar1);" (assignment_expression "pcVar1 = save(pcVar1)" identifier = (call_expression "save(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) }))) (if_statement "if (pcVar1 != (char *)0x0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)) {\n      parg.p_string = pcVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar1);\n  }" if (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)) )) (compound_statement "{\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)) {\n      parg.p_string = pcVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar1);\n  }" { (if_statement "if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)) {\n      parg.p_string = pcVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);\n    }" if (parenthesized_expression "((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0))" ( (binary_expression "(*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)" (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" ( (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" * (cast_expression "(int *)PTR_secure_0004ec48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) && (parenthesized_expression "(iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0)" ( (comma_expression "iVar2 = lesskey(pcVar1,sysvar), iVar2 < 0" (assignment_expression "iVar2 = lesskey(pcVar1,sysvar)" identifier = (call_expression "lesskey(pcVar1,sysvar)" identifier (argument_list "(pcVar1,sysvar)" ( identifier , identifier )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      parg.p_string = pcVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,&parg);\n    }" { (expression_statement "parg.p_string = pcVar1;" (assignment_expression "parg.p_string = pcVar1" (field_expression "parg.p_string" identifier . field_identifier) = identifier) ;) (expression_statement "error(PTR_LAB_0004ec08 + 0x7a7c,&parg);" (call_expression "error(PTR_LAB_0004ec08 + 0x7a7c,&parg)" identifier (argument_list "(PTR_LAB_0004ec08 + 0x7a7c,&parg)" ( (binary_expression "PTR_LAB_0004ec08 + 0x7a7c" identifier + number_literal) , (pointer_expression "&parg" & identifier) ))) ;) })) (expression_statement "(*(code *)PTR_free_0004f37c)(pcVar1);" (call_expression "(*(code *)PTR_free_0004f37c)(pcVar1)" (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 "(pcVar1)" ( identifier ))) ;) })) (if_statement "if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0);\n    add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9);\n    add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0);\n    return;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar3)" ( (binary_expression "local_14 != *(int *)puVar3" identifier != (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0);\n    add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9);\n    add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1);\n    add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0);\n    return;\n  }" { (expression_statement "puVar3 = PTR___stack_chk_fail_0004f354;" (assignment_expression "puVar3 = PTR___stack_chk_fail_0004f354" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0004f354)();" (call_expression "(*(code *)PTR___stack_chk_fail_0004f354)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0004f354)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0004f354" * (cast_expression "(code *)PTR___stack_chk_fail_0004f354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0);" (call_expression "add_fcmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0)" identifier (argument_list "((char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4),0x1e0)" ( (cast_expression "(char *)(*(int *)(puVar3 + 0x2d724) + -0x1ec4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x2d724) + -0x1ec4)" ( (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1ec4" (pointer_expression "*(int *)(puVar3 + 0x2d724)" * (cast_expression "(int *)(puVar3 + 0x2d724)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d724)" ( (binary_expression "puVar3 + 0x2d724" identifier + number_literal) )))) + number_literal) ))) , number_literal ))) ;) (expression_statement "add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9);" (call_expression "add_ecmd_table((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9)" identifier (argument_list "((char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90),0xc9)" ( (cast_expression "(char *)(*(int *)(puVar3 + 0x2d724) + -0x1f90)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x2d724) + -0x1f90)" ( (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1f90" (pointer_expression "*(int *)(puVar3 + 0x2d724)" * (cast_expression "(int *)(puVar3 + 0x2d724)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d724)" ( (binary_expression "puVar3 + 0x2d724" identifier + number_literal) )))) + number_literal) ))) , number_literal ))) ;) (expression_statement "add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1);" (call_expression "add_hometable((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1)" identifier (argument_list "((char *)0x0,(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c),1)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(char *)(*(int *)(puVar3 + 0x2d734) + 0x7a9c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x2d734) + 0x7a9c)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7a9c" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) ))) , number_literal ))) ;) (expression_statement "add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1);" (call_expression "add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1)" identifier (argument_list "((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0),1)" ( (cast_expression "(char *)(*(int *)(puVar3 + 0x2d734) + 0x7ac0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x2d734) + 0x7ac0)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ac0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) ))) , (cast_expression "(char *)(*(int *)(puVar3 + 0x2d734) + 0x7ab0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x2d734) + 0x7ab0)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ab0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) ))) , number_literal ))) ;) (expression_statement "add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0);" (call_expression "add_hometable((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0)" identifier (argument_list "((char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8),\n                  (char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0),0)" ( (cast_expression "(char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x2d734) + 0x7ad8)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad8" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) ))) , (cast_expression "(char *)(*(int *)(puVar3 + 0x2d734) + 0x7ad0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x2d734) + 0x7ad0)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) ))) , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void add_hometable(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void add_hometable(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "add_hometable(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0004f374;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0004f374" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0004f374;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0004f374" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0004f374" * (cast_expression "(int *)PTR___stack_chk_guard_0004f374" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }" if (parenthesized_expression "((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0))" ( (binary_expression "(param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = lgetenv(), iVar1 == 0)" ( (comma_expression "iVar1 = lgetenv(), iVar1 == 0" (assignment_expression "iVar1 = lgetenv()" identifier = (call_expression "lgetenv()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = homefile(param_2);\n    }" { (expression_statement "iVar1 = homefile(param_2);" (assignment_expression "iVar1 = homefile(param_2)" identifier = (call_expression "homefile(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = save(param_2);\n    }" else (compound_statement "{\n      iVar1 = save(param_2);\n    }" { (expression_statement "iVar1 = save(param_2);" (assignment_expression "iVar1 = save(param_2)" identifier = (call_expression "save(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }))) }) (else_clause "else {\n    iVar1 = save(iVar1);\n  }" else (compound_statement "{\n    iVar1 = save(iVar1);\n  }" { (expression_statement "iVar1 = save(iVar1);" (assignment_expression "iVar1 = save(iVar1)" identifier = (call_expression "save(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }" { (if_statement "if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }" if (parenthesized_expression "((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0))" ( (binary_expression "(*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)" (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" ( (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" * (cast_expression "(int *)PTR_secure_0004ec48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)" ( (comma_expression "iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0" (assignment_expression "iVar2 = FUN_00020ebc(iVar1,param_3)" identifier = (call_expression "FUN_00020ebc(iVar1,param_3)" identifier (argument_list "(iVar1,param_3)" ( identifier , identifier )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }" { (expression_statement "local_20[0] = iVar1;" (assignment_expression "local_20[0] = iVar1" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "error(PTR_LAB_0004ec08 + 0x7a7c,local_20);" (call_expression "error(PTR_LAB_0004ec08 + 0x7a7c,local_20)" identifier (argument_list "(PTR_LAB_0004ec08 + 0x7a7c,local_20)" ( (binary_expression "PTR_LAB_0004ec08 + 0x7a7c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0004f37c)(iVar1);" (call_expression "(*(code *)PTR_free_0004f37c)(iVar1)" (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 "(iVar1)" ( identifier ))) ;) })) (if_statement "if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar3)" ( (binary_expression "local_14 != *(int *)puVar3" identifier != (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }" { (expression_statement "puVar3 = PTR___stack_chk_fail_0004f354;" (assignment_expression "puVar3 = PTR___stack_chk_fail_0004f354" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0004f354)();" (call_expression "(*(code *)PTR___stack_chk_fail_0004f354)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0004f354)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0004f354" * (cast_expression "(code *)PTR___stack_chk_fail_0004f354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);" (call_expression "add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0)" identifier (argument_list "(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0)" ( (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1ec4" (pointer_expression "*(int *)(puVar3 + 0x2d724)" * (cast_expression "(int *)(puVar3 + 0x2d724)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d724)" ( (binary_expression "puVar3 + 0x2d724" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);" (call_expression "add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9)" identifier (argument_list "(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9)" ( (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1f90" (pointer_expression "*(int *)(puVar3 + 0x2d724)" * (cast_expression "(int *)(puVar3 + 0x2d724)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d724)" ( (binary_expression "puVar3 + 0x2d724" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);" (call_expression "add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1)" identifier (argument_list "(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1)" ( number_literal , (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7a9c" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);" (call_expression "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1)" identifier (argument_list "(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ac0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ab0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (expression_statement "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);" (call_expression "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0)" identifier (argument_list "(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0)" ( (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad8" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" * (cast_expression "(int *)(puVar3 + 0x2d734)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2d734)" ( (binary_expression "puVar3 + 0x2d734" identifier + number_literal) )))) + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (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 ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void add_hometable(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "add_hometable(int param_1,undefined4 param_2,int param_3)" (identifier "add_hometable") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  int local_20 [3];\n  int local_14;\n  \n  puVar3 = PTR___stack_chk_guard_0004f374;\n  local_14 = *(int *)PTR___stack_chk_guard_0004f374;\n  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }\n  if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }\n  if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_0004f374;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0004f374" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_0004f374")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0004f374;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0004f374" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0004f374" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0004f374" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0004f374")))) (; ";")) (if_statement "if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }\n  else {\n    iVar1 = save(iVar1);\n  }" (if "if") (parenthesized_expression "((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0))" (( "(") (binary_expression "(param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = lgetenv(), iVar1 == 0)" (( "(") (comma_expression "iVar1 = lgetenv(), iVar1 == 0" (assignment_expression "iVar1 = lgetenv()" (identifier "iVar1") (= "=") (call_expression "lgetenv()" (identifier "lgetenv") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }\n  }" ({ "{") (if_statement "if (param_3 == 0) {\n      iVar1 = homefile(param_2);\n    }\n    else {\n      iVar1 = save(param_2);\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = homefile(param_2);\n    }" ({ "{") (expression_statement "iVar1 = homefile(param_2);" (assignment_expression "iVar1 = homefile(param_2)" (identifier "iVar1") (= "=") (call_expression "homefile(param_2)" (identifier "homefile") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = save(param_2);\n    }" (else "else") (compound_statement "{\n      iVar1 = save(param_2);\n    }" ({ "{") (expression_statement "iVar1 = save(param_2);" (assignment_expression "iVar1 = save(param_2)" (identifier "iVar1") (= "=") (call_expression "save(param_2)" (identifier "save") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    iVar1 = save(iVar1);\n  }" (else "else") (compound_statement "{\n    iVar1 = save(iVar1);\n  }" ({ "{") (expression_statement "iVar1 = save(iVar1);" (assignment_expression "iVar1 = save(iVar1)" (identifier "iVar1") (= "=") (call_expression "save(iVar1)" (identifier "save") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 0) {\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }\n    (*(code *)PTR_free_0004f37c)(iVar1);\n  }" ({ "{") (if_statement "if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }" (if "if") (parenthesized_expression "((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0))" (( "(") (binary_expression "(*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)" (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" (( "(") (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" (* "*") (cast_expression "(int *)PTR_secure_0004ec48" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_secure_0004ec48"))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)" (( "(") (comma_expression "iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0" (assignment_expression "iVar2 = FUN_00020ebc(iVar1,param_3)" (identifier "iVar2") (= "=") (call_expression "FUN_00020ebc(iVar1,param_3)" (identifier "FUN_00020ebc") (argument_list "(iVar1,param_3)" (( "(") (identifier "iVar1") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      local_20[0] = iVar1;\n      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);\n    }" ({ "{") (expression_statement "local_20[0] = iVar1;" (assignment_expression "local_20[0] = iVar1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "error(PTR_LAB_0004ec08 + 0x7a7c,local_20);" (call_expression "error(PTR_LAB_0004ec08 + 0x7a7c,local_20)" (identifier "error") (argument_list "(PTR_LAB_0004ec08 + 0x7a7c,local_20)" (( "(") (binary_expression "PTR_LAB_0004ec08 + 0x7a7c" (identifier "PTR_LAB_0004ec08") (+ "+") (number_literal "0x7a7c")) (, ",") (identifier "local_20") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0004f37c)(iVar1);" (call_expression "(*(code *)PTR_free_0004f37c)(iVar1)" (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 "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_14 != *(int *)puVar3) {\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }" (if "if") (parenthesized_expression "(local_14 != *(int *)puVar3)" (( "(") (binary_expression "local_14 != *(int *)puVar3" (identifier "local_14") (!= "!=") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    puVar3 = PTR___stack_chk_fail_0004f354;\n    (*(code *)PTR___stack_chk_fail_0004f354)();\n    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);\n    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);\n    add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);\n    add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);\n    return;\n  }" ({ "{") (expression_statement "puVar3 = PTR___stack_chk_fail_0004f354;" (assignment_expression "puVar3 = PTR___stack_chk_fail_0004f354" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_fail_0004f354")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0004f354)();" (call_expression "(*(code *)PTR___stack_chk_fail_0004f354)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0004f354)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0004f354" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0004f354" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0004f354"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);" (call_expression "add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0)" (identifier "add_fcmd_table") (argument_list "(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0)" (( "(") (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1ec4" (pointer_expression "*(int *)(puVar3 + 0x2d724)" (* "*") (cast_expression "(int *)(puVar3 + 0x2d724)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2d724)" (( "(") (binary_expression "puVar3 + 0x2d724" (identifier "puVar3") (+ "+") (number_literal "0x2d724")) () ")")))) (+ "+") (number_literal "-0x1ec4")) (, ",") (number_literal "0x1e0") () ")"))) (; ";")) (expression_statement "add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);" (call_expression "add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9)" (identifier "add_ecmd_table") (argument_list "(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9)" (( "(") (binary_expression "*(int *)(puVar3 + 0x2d724) + -0x1f90" (pointer_expression "*(int *)(puVar3 + 0x2d724)" (* "*") (cast_expression "(int *)(puVar3 + 0x2d724)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2d724)" (( "(") (binary_expression "puVar3 + 0x2d724" (identifier "puVar3") (+ "+") (number_literal "0x2d724")) () ")")))) (+ "+") (number_literal "-0x1f90")) (, ",") (number_literal "0xc9") () ")"))) (; ";")) (expression_statement "add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);" (call_expression "add_hometable(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1)" (identifier "add_hometable") (argument_list "(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1)" (( "(") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7a9c" (pointer_expression "*(int *)(puVar3 + 0x2d734)" (* "*") (cast_expression "(int *)(puVar3 + 0x2d734)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2d734)" (( "(") (binary_expression "puVar3 + 0x2d734" (identifier "puVar3") (+ "+") (number_literal "0x2d734")) () ")")))) (+ "+") (number_literal "0x7a9c")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);" (call_expression "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1)" (identifier "add_hometable") (argument_list "(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1)" (( "(") (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ac0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" (* "*") (cast_expression "(int *)(puVar3 + 0x2d734)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2d734)" (( "(") (binary_expression "puVar3 + 0x2d734" (identifier "puVar3") (+ "+") (number_literal "0x2d734")) () ")")))) (+ "+") (number_literal "0x7ac0")) (, ",") (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ab0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" (* "*") (cast_expression "(int *)(puVar3 + 0x2d734)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2d734)" (( "(") (binary_expression "puVar3 + 0x2d734" (identifier "puVar3") (+ "+") (number_literal "0x2d734")) () ")")))) (+ "+") (number_literal "0x7ab0")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);" (call_expression "add_hometable(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0)" (identifier "add_hometable") (argument_list "(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0)" (( "(") (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad8" (pointer_expression "*(int *)(puVar3 + 0x2d734)" (* "*") (cast_expression "(int *)(puVar3 + 0x2d734)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2d734)" (( "(") (binary_expression "puVar3 + 0x2d734" (identifier "puVar3") (+ "+") (number_literal "0x2d734")) () ")")))) (+ "+") (number_literal "0x7ad8")) (, ",") (binary_expression "*(int *)(puVar3 + 0x2d734) + 0x7ad0" (pointer_expression "*(int *)(puVar3 + 0x2d734)" (* "*") (cast_expression "(int *)(puVar3 + 0x2d734)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2d734)" (( "(") (binary_expression "puVar3 + 0x2d734" (identifier "puVar3") (+ "+") (number_literal "0x2d734")) () ")")))) (+ "+") (number_literal "0x7ad0")) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal)))) (return_statement))) (return_statement))))

void MASKED(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  int local_20 [3];
  int local_14;
  
  puVar3 = PTR___stack_chk_guard_0004f374;
  local_14 = *(int *)PTR___stack_chk_guard_0004f374;
  if ((param_1 == 0) || (iVar1 = lgetenv(), iVar1 == 0)) {
    if (param_3 == 0) {
      iVar1 = homefile(param_2);
    }
    else {
      iVar1 = save(param_2);
    }
  }
  else {
    iVar1 = save(iVar1);
  }
  if (iVar1 != 0) {
    if ((*(int *)PTR_secure_0004ec48 == 0) && (iVar2 = FUN_00020ebc(iVar1,param_3), iVar2 < 0)) {
      local_20[0] = iVar1;
      error(PTR_LAB_0004ec08 + 0x7a7c,local_20);
    }
    (*(code *)PTR_free_0004f37c)(iVar1);
  }
  if (local_14 != *(int *)puVar3) {
    puVar3 = PTR___stack_chk_fail_0004f354;
    (*(code *)PTR___stack_chk_fail_0004f354)();
    add_fcmd_table(*(int *)(puVar3 + 0x2d724) + -0x1ec4,0x1e0);
    add_ecmd_table(*(int *)(puVar3 + 0x2d724) + -0x1f90,0xc9);
    MASKED(0,*(int *)(puVar3 + 0x2d734) + 0x7a9c,1);
    MASKED(*(int *)(puVar3 + 0x2d734) + 0x7ac0,*(int *)(puVar3 + 0x2d734) + 0x7ab0,1);
    MASKED(*(int *)(puVar3 + 0x2d734) + 0x7ad8,*(int *)(puVar3 + 0x2d734) + 0x7ad0,0);
    return;
  }
  return;
}

