
char * xrealloc_getcwd_or_warn(char *cwd)

{
  undefined *puVar1;
  undefined *UNRECOVERED_JUMPTABLE;
  int iVar2;
  char *pcVar3;
  int iVar4;
  
  UNRECOVERED_JUMPTABLE = PTR_xrealloc_0012a2a4;
  puVar1 = PTR_bb_errno_0012a214;
  iVar4 = 0x80;
  do {
    iVar4 = iVar4 + 0x40;
    cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4);
    iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4);
    if (iVar2 != 0) {
      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);
                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);
      return pcVar3;
    }
  } while (**(int **)puVar1 == 0x22);
  (*(code *)PTR_free_0012b168)(cwd);
  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0xc94);
  return (char *)0x0;
}



undefined4 FUN_000fc728(undefined4 param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  
  puVar2 = PTR_FUN_0012a2a4;
  puVar1 = PTR_DAT_0012a214;
  iVar5 = 0x80;
  do {
    iVar5 = iVar5 + 0x40;
    param_1 = (*(code *)puVar2)(param_1,iVar5);
    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);
    if (iVar3 != 0) {
      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);
      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);
      return uVar4;
    }
  } while (**(int **)puVar1 == 0x22);
  (*(code *)PTR_free_0012b168)(param_1);
  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);
  return 0;
}


lui gp,0x3
addiu gp,gp,0x5a28
addu gp,gp,t9
addiu sp,sp,-0x30
sw s4,0x28(sp)
sw s2,0x20(sp)
sw s3,0x24(sp)
li s3,0x22
sw s1,0x1c(sp)
li s1,0x80
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
lw s2,-0x7eac(gp)
lw s4,-0x7f3c(gp)
addiu s1,s1,0x40
or a0,s0,zero
or t9,s2,zero
jalr t9
_or a1,s1,zero
or a1,s1,zero
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7204(gp)
jalr t9
_or s0,v0,zero
bne v0,zero,0x000fc7ec
_lw gp,0x10(sp)
lw v0,0x0(s4)
lw v0,0x0(v0)
beq v0,s3,0x000fc768
_lw t9,-0x6fe8(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw a0,-0x7fa8(gp)
lw t9,-0x7f18(gp)
jalr t9
_addiu a0,a0,-0xc94
or v0,zero,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7214(gp)
jalr t9
_or a0,s0,zero
or a0,s0,zero
lw gp,0x10(sp)
or t9,s2,zero
lw ra,0x2c(sp)
addiu a1,v0,0x1
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr t9
_addiu sp,sp,0x30
(translation_unit "undefined4 FUN_000fc728(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000fc728(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}" type_identifier (function_declarator "FUN_000fc728(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_FUN_0012a2a4;" (assignment_expression "puVar2 = PTR_FUN_0012a2a4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_0012a214;" (assignment_expression "puVar1 = PTR_DAT_0012a214" identifier = identifier) ;) (expression_statement "iVar5 = 0x80;" (assignment_expression "iVar5 = 0x80" identifier = number_literal) ;) (do_statement "do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);" do (compound_statement "{\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  }" { (expression_statement "iVar5 = iVar5 + 0x40;" (assignment_expression "iVar5 = iVar5 + 0x40" identifier = (binary_expression "iVar5 + 0x40" identifier + number_literal)) ;) (expression_statement "param_1 = (*(code *)puVar2)(param_1,iVar5);" (assignment_expression "param_1 = (*(code *)puVar2)(param_1,iVar5)" identifier = (call_expression "(*(code *)puVar2)(param_1,iVar5)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5)" ( identifier , identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);" (assignment_expression "iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5)" identifier = (call_expression "(*(code *)PTR_getcwd_0012af4c)(param_1,iVar5)" (parenthesized_expression "(*(code *)PTR_getcwd_0012af4c)" ( (pointer_expression "*(code *)PTR_getcwd_0012af4c" * (cast_expression "(code *)PTR_getcwd_0012af4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }" { (expression_statement "iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);" (assignment_expression "uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1)" identifier = (call_expression "(*(code *)puVar2)(param_1,iVar5 + 1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5 + 1)" ( identifier , (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (return_statement "return uVar4;" return identifier ;) })) }) while (parenthesized_expression "(**(int **)puVar1 == 0x22)" ( (binary_expression "**(int **)puVar1 == 0x22" (pointer_expression "**(int **)puVar1" * (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) ;) (expression_statement "(*(code *)PTR_free_0012b168)(param_1);" (call_expression "(*(code *)PTR_free_0012b168)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0xc94)" ( (binary_expression "PTR_FUN_0012a1a8 + -0xc94" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "char * xrealloc_getcwd_or_warn(char *cwd)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  UNRECOVERED_JUMPTABLE = PTR_xrealloc_0012a2a4;\n  puVar1 = PTR_bb_errno_0012a214;\n  iVar4 = 0x80;\n  do {\n    iVar4 = iVar4 + 0x40;\n    cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4);\n    iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4);\n    if (iVar2 != 0) {\n      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);\n                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);\n      return pcVar3;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(cwd);\n  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0xc94);\n  return (char *)0x0;\n}\n\n" (function_definition "char * xrealloc_getcwd_or_warn(char *cwd)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  UNRECOVERED_JUMPTABLE = PTR_xrealloc_0012a2a4;\n  puVar1 = PTR_bb_errno_0012a214;\n  iVar4 = 0x80;\n  do {\n    iVar4 = iVar4 + 0x40;\n    cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4);\n    iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4);\n    if (iVar2 != 0) {\n      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);\n                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);\n      return pcVar3;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(cwd);\n  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0xc94);\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* xrealloc_getcwd_or_warn(char *cwd)" * (function_declarator "xrealloc_getcwd_or_warn(char *cwd)" identifier (parameter_list "(char *cwd)" ( (parameter_declaration "char *cwd" primitive_type (pointer_declarator "*cwd" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  UNRECOVERED_JUMPTABLE = PTR_xrealloc_0012a2a4;\n  puVar1 = PTR_bb_errno_0012a214;\n  iVar4 = 0x80;\n  do {\n    iVar4 = iVar4 + 0x40;\n    cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4);\n    iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4);\n    if (iVar2 != 0) {\n      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);\n                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);\n      return pcVar3;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(cwd);\n  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0xc94);\n  return (char *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "UNRECOVERED_JUMPTABLE = PTR_xrealloc_0012a2a4;" (assignment_expression "UNRECOVERED_JUMPTABLE = PTR_xrealloc_0012a2a4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_bb_errno_0012a214;" (assignment_expression "puVar1 = PTR_bb_errno_0012a214" identifier = identifier) ;) (expression_statement "iVar4 = 0x80;" (assignment_expression "iVar4 = 0x80" identifier = number_literal) ;) (do_statement "do {\n    iVar4 = iVar4 + 0x40;\n    cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4);\n    iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4);\n    if (iVar2 != 0) {\n      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);\n                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);\n      return pcVar3;\n    }\n  } while (**(int **)puVar1 == 0x22);" do (compound_statement "{\n    iVar4 = iVar4 + 0x40;\n    cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4);\n    iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4);\n    if (iVar2 != 0) {\n      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);\n                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);\n      return pcVar3;\n    }\n  }" { (expression_statement "iVar4 = iVar4 + 0x40;" (assignment_expression "iVar4 = iVar4 + 0x40" identifier = (binary_expression "iVar4 + 0x40" identifier + number_literal)) ;) (expression_statement "cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4);" (assignment_expression "cwd = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4)" identifier = (cast_expression "(char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4)" (parenthesized_expression "(*(code *)UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*(code *)UNRECOVERED_JUMPTABLE" * (cast_expression "(code *)UNRECOVERED_JUMPTABLE" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cwd,iVar4)" ( identifier , identifier ))))) ;) (expression_statement "iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4);" (assignment_expression "iVar2 = (*(code *)PTR_getcwd_0012af4c)(cwd,iVar4)" identifier = (call_expression "(*(code *)PTR_getcwd_0012af4c)(cwd,iVar4)" (parenthesized_expression "(*(code *)PTR_getcwd_0012af4c)" ( (pointer_expression "*(code *)PTR_getcwd_0012af4c" * (cast_expression "(code *)PTR_getcwd_0012af4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cwd,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);\n                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);\n      return pcVar3;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);\n                    /* WARNING: Could not recover jumptable at 0x000fc820. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);\n      return pcVar3;\n    }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0012af3c)(cwd)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(cwd)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cwd)" ( identifier )))) ;) comment comment (expression_statement "pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1);" (assignment_expression "pcVar3 = (char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1)" identifier = (cast_expression "(char *)(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)UNRECOVERED_JUMPTABLE)(cwd,iVar4 + 1)" (parenthesized_expression "(*(code *)UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*(code *)UNRECOVERED_JUMPTABLE" * (cast_expression "(code *)UNRECOVERED_JUMPTABLE" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cwd,iVar4 + 1)" ( identifier , (binary_expression "iVar4 + 1" identifier + number_literal) ))))) ;) (return_statement "return pcVar3;" return identifier ;) })) }) while (parenthesized_expression "(**(int **)puVar1 == 0x22)" ( (binary_expression "**(int **)puVar1 == 0x22" (pointer_expression "**(int **)puVar1" * (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) ;) (expression_statement "(*(code *)PTR_free_0012b168)(cwd);" (call_expression "(*(code *)PTR_free_0012b168)(cwd)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cwd)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0xc94);" (binary_expression "(*(code *)PTR_bb_perror_msg_0012a238)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0xc94" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) (ERROR ")" )) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_000fc728(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000fc728(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}" type_identifier (function_declarator "FUN_000fc728(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_FUN_0012a2a4;" (assignment_expression "puVar2 = PTR_FUN_0012a2a4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_0012a214;" (assignment_expression "puVar1 = PTR_DAT_0012a214" identifier = identifier) ;) (expression_statement "iVar5 = 0x80;" (assignment_expression "iVar5 = 0x80" identifier = number_literal) ;) (do_statement "do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);" do (compound_statement "{\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  }" { (expression_statement "iVar5 = iVar5 + 0x40;" (assignment_expression "iVar5 = iVar5 + 0x40" identifier = (binary_expression "iVar5 + 0x40" identifier + number_literal)) ;) (expression_statement "param_1 = (*(code *)puVar2)(param_1,iVar5);" (assignment_expression "param_1 = (*(code *)puVar2)(param_1,iVar5)" identifier = (call_expression "(*(code *)puVar2)(param_1,iVar5)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5)" ( identifier , identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);" (assignment_expression "iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5)" identifier = (call_expression "(*(code *)PTR_getcwd_0012af4c)(param_1,iVar5)" (parenthesized_expression "(*(code *)PTR_getcwd_0012af4c)" ( (pointer_expression "*(code *)PTR_getcwd_0012af4c" * (cast_expression "(code *)PTR_getcwd_0012af4c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }" { (expression_statement "iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);" (assignment_expression "uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1)" identifier = (call_expression "(*(code *)puVar2)(param_1,iVar5 + 1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar5 + 1)" ( identifier , (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (return_statement "return uVar4;" return identifier ;) })) }) while (parenthesized_expression "(**(int **)puVar1 == 0x22)" ( (binary_expression "**(int **)puVar1 == 0x22" (pointer_expression "**(int **)puVar1" * (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) ;) (expression_statement "(*(code *)PTR_free_0012b168)(param_1);" (call_expression "(*(code *)PTR_free_0012b168)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0xc94)" ( (binary_expression "PTR_FUN_0012a1a8 + -0xc94" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (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 , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) == LIT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000fc728(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000fc728(undefined4 param_1)" (identifier "FUN_000fc728") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  puVar2 = PTR_FUN_0012a2a4;\n  puVar1 = PTR_DAT_0012a214;\n  iVar5 = 0x80;\n  do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);\n  (*(code *)PTR_free_0012b168)(param_1);\n  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "puVar2 = PTR_FUN_0012a2a4;" (assignment_expression "puVar2 = PTR_FUN_0012a2a4" (identifier "puVar2") (= "=") (identifier "PTR_FUN_0012a2a4")) (; ";")) (expression_statement "puVar1 = PTR_DAT_0012a214;" (assignment_expression "puVar1 = PTR_DAT_0012a214" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0012a214")) (; ";")) (expression_statement "iVar5 = 0x80;" (assignment_expression "iVar5 = 0x80" (identifier "iVar5") (= "=") (number_literal "0x80")) (; ";")) (do_statement "do {\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  } while (**(int **)puVar1 == 0x22);" (do "do") (compound_statement "{\n    iVar5 = iVar5 + 0x40;\n    param_1 = (*(code *)puVar2)(param_1,iVar5);\n    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);\n    if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }\n  }" ({ "{") (expression_statement "iVar5 = iVar5 + 0x40;" (assignment_expression "iVar5 = iVar5 + 0x40" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 0x40" (identifier "iVar5") (+ "+") (number_literal "0x40"))) (; ";")) (expression_statement "param_1 = (*(code *)puVar2)(param_1,iVar5);" (assignment_expression "param_1 = (*(code *)puVar2)(param_1,iVar5)" (identifier "param_1") (= "=") (call_expression "(*(code *)puVar2)(param_1,iVar5)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_1,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);" (assignment_expression "iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_getcwd_0012af4c)(param_1,iVar5)" (parenthesized_expression "(*(code *)PTR_getcwd_0012af4c)" (( "(") (pointer_expression "*(code *)PTR_getcwd_0012af4c" (* "*") (cast_expression "(code *)PTR_getcwd_0012af4c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getcwd_0012af4c"))) () ")")) (argument_list "(param_1,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);\n      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);\n      return uVar4;\n    }" ({ "{") (expression_statement "iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_0012af3c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0012af3c" (* "*") (cast_expression "(code *)PTR_strlen_0012af3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0012af3c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);" (assignment_expression "uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1)" (identifier "uVar4") (= "=") (call_expression "(*(code *)puVar2)(param_1,iVar5 + 1)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_1,iVar5 + 1)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(**(int **)puVar1 == 0x22)" (( "(") (binary_expression "**(int **)puVar1 == 0x22" (pointer_expression "**(int **)puVar1" (* "*") (pointer_expression "*(int **)puVar1" (* "*") (cast_expression "(int **)puVar1" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1")))) (== "==") (number_literal "0x22")) () ")")) (; ";")) (expression_statement "(*(code *)PTR_free_0012b168)(param_1);" (call_expression "(*(code *)PTR_free_0012b168)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -0xc94)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -0xc94" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0xc94")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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) (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) (identifier))))) (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: (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)))))) (return_statement (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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)))) (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 (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  
  puVar2 = PTR_FUN_0012a2a4;
  puVar1 = PTR_DAT_0012a214;
  iVar5 = 0x80;
  do {
    iVar5 = iVar5 + 0x40;
    param_1 = (*(code *)puVar2)(param_1,iVar5);
    iVar3 = (*(code *)PTR_getcwd_0012af4c)(param_1,iVar5);
    if (iVar3 != 0) {
      iVar5 = (*(code *)PTR_strlen_0012af3c)(param_1);
      uVar4 = (*(code *)puVar2)(param_1,iVar5 + 1);
      return uVar4;
    }
  } while (**(int **)puVar1 == 0x22);
  (*(code *)PTR_free_0012b168)(param_1);
  (*(code *)PTR_FUN_0012a238)(PTR_FUN_0012a1a8 + -0xc94);
  return 0;
}

