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

char ** dupargv(char **argv)

{
  char **ppcVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  char **ppcVar6;
  
  if (argv == (char **)0x0) {
    ppcVar1 = (char **)0x0;
  }
  else {
    if (*argv == (char *)0x0) {
      iVar5 = 4;
    }
    else {
      iVar5 = 0;
      do {
        iVar4 = iVar5;
        iVar5 = iVar4 + 1;
      } while (argv[iVar5] != (char *)0x0);
      iVar5 = iVar4 * 4 + 8;
    }
    ppcVar1 = (char **)xmalloc(iVar5);
    pcVar2 = *argv;
    ppcVar6 = ppcVar1;
    if (pcVar2 != (char *)0x0) {
      iVar5 = 0;
      do {
        uVar3 = xstrdup(pcVar2);
        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;
        iVar5 = iVar5 + 4;
        pcVar2 = *(char **)((int)argv + iVar5);
      } while (pcVar2 != (char *)0x0);
      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);
    }
    *ppcVar6 = (char *)0x0;
  }
  return ppcVar1;
}



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

undefined4 * FUN_0004c210(int *param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined4 *puVar5;
  
  if (param_1 == (int *)0x0) {
    puVar1 = (undefined4 *)0x0;
  }
  else {
    if (*param_1 == 0) {
      iVar3 = 4;
    }
    else {
      iVar3 = 0;
      do {
        iVar4 = iVar3;
        iVar3 = iVar4 + 1;
      } while (param_1[iVar3] != 0);
      iVar3 = iVar4 * 4 + 8;
    }
    puVar1 = (undefined4 *)xmalloc(iVar3);
    iVar3 = *param_1;
    puVar5 = puVar1;
    if (iVar3 != 0) {
      iVar4 = 0;
      do {
        uVar2 = xstrdup(iVar3);
        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;
        iVar4 = iVar4 + 4;
        iVar3 = *(int *)((int)param_1 + iVar4);
      } while (iVar3 != 0);
      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);
    }
    *puVar5 = 0;
  }
  return puVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016090
ADD EBX,0x22de7
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
TEST EBP,EBP
JZ 0x0004c2a4
MOV ESI,dword ptr [EBP]
TEST ESI,ESI
JZ 0x0004c298
XOR EDX,EDX
JMP 0x0004c23a
MOV EDX,EAX
LEA EAX,[EDX + 0x1]
MOV ECX,dword ptr [EBP + EAX*0x4]
TEST ECX,ECX
JNZ 0x0004c238
LEA EAX,[EDX*0x4 + 0x8]
SUB ESP,0xc
PUSH EAX
CALL 0x00014820
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x0004c2a0
XOR ESI,ESI
LEA ESI,[ESI]
NOP
SUB ESP,0xc
PUSH EAX
CALL 0x00014300
ADD ESP,0x10
MOV dword ptr [EDI + ESI*0x1],EAX
ADD ESI,0x4
MOV EAX,dword ptr [EBP + ESI*0x1]
TEST EAX,EAX
JNZ 0x0004c268
ADD ESI,EDI
MOV dword ptr [ESI],0x0
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0x4
JMP 0x0004c24c
MOV ESI,EDI
JMP 0x0004c284
XOR EDI,EDI
JMP 0x0004c28a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0004c210(int *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}\n\n" comment (function_definition "undefined4 * FUN_0004c210(int *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0004c210(int *param_1)" * (function_declarator "FUN_0004c210(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)0x0;\n  }" { (expression_statement "puVar1 = (undefined4 *)0x0;" (assignment_expression "puVar1 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" else (compound_statement "{\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" { (if_statement "if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      iVar3 = 4;\n    }" { (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" else (compound_statement "{\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);" do (compound_statement "{\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1[iVar3] != 0)" ( (binary_expression "param_1[iVar3] != 0" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) != number_literal) )) ;) (expression_statement "iVar3 = iVar4 * 4 + 8;" (assignment_expression "iVar3 = iVar4 * 4 + 8" identifier = (binary_expression "iVar4 * 4 + 8" (binary_expression "iVar4 * 4" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "puVar1 = (undefined4 *)xmalloc(iVar3);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(iVar3)" identifier = (cast_expression "(undefined4 *)xmalloc(iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))))) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar5 = puVar1;" (assignment_expression "puVar5 = puVar1" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);" do (compound_statement "{\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      }" { (expression_statement "uVar2 = xstrdup(iVar3);" (assignment_expression "uVar2 = xstrdup(iVar3)" identifier = (call_expression "xstrdup(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "*(undefined4 *)((int)puVar1 + iVar4) = uVar2;" (assignment_expression "*(undefined4 *)((int)puVar1 + iVar4) = uVar2" (pointer_expression "*(undefined4 *)((int)puVar1 + iVar4)" * (cast_expression "(undefined4 *)((int)puVar1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar4)" ( (binary_expression "(int)puVar1 + iVar4" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" identifier = (binary_expression "iVar4 + 4" identifier + number_literal)) ;) (expression_statement "iVar3 = *(int *)((int)param_1 + iVar4);" (assignment_expression "iVar3 = *(int *)((int)param_1 + iVar4)" identifier = (pointer_expression "*(int *)((int)param_1 + iVar4)" * (cast_expression "(int *)((int)param_1 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar4)" ( (binary_expression "(int)param_1 + iVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "puVar5 = (undefined4 *)(iVar4 + (int)puVar1);" (assignment_expression "puVar5 = (undefined4 *)(iVar4 + (int)puVar1)" identifier = (cast_expression "(undefined4 *)(iVar4 + (int)puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (int)puVar1)" ( (binary_expression "iVar4 + (int)puVar1" identifier + (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }))) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar ** dupargv(char **argv)\n\n{\n  char **ppcVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char **ppcVar6;\n  \n  if (argv == (char **)0x0) {\n    ppcVar1 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      iVar5 = 4;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }\n    ppcVar1 = (char **)xmalloc(iVar5);\n    pcVar2 = *argv;\n    ppcVar6 = ppcVar1;\n    if (pcVar2 != (char *)0x0) {\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }\n    *ppcVar6 = (char *)0x0;\n  }\n  return ppcVar1;\n}\n\n" comment comment (function_definition "char ** dupargv(char **argv)\n\n{\n  char **ppcVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char **ppcVar6;\n  \n  if (argv == (char **)0x0) {\n    ppcVar1 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      iVar5 = 4;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }\n    ppcVar1 = (char **)xmalloc(iVar5);\n    pcVar2 = *argv;\n    ppcVar6 = ppcVar1;\n    if (pcVar2 != (char *)0x0) {\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }\n    *ppcVar6 = (char *)0x0;\n  }\n  return ppcVar1;\n}" primitive_type (pointer_declarator "** dupargv(char **argv)" * (pointer_declarator "* dupargv(char **argv)" * (function_declarator "dupargv(char **argv)" identifier (parameter_list "(char **argv)" ( (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))))) (compound_statement "{\n  char **ppcVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char **ppcVar6;\n  \n  if (argv == (char **)0x0) {\n    ppcVar1 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      iVar5 = 4;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }\n    ppcVar1 = (char **)xmalloc(iVar5);\n    pcVar2 = *argv;\n    ppcVar6 = ppcVar1;\n    if (pcVar2 != (char *)0x0) {\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }\n    *ppcVar6 = (char *)0x0;\n  }\n  return ppcVar1;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (if_statement "if (argv == (char **)0x0) {\n    ppcVar1 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      iVar5 = 4;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }\n    ppcVar1 = (char **)xmalloc(iVar5);\n    pcVar2 = *argv;\n    ppcVar6 = ppcVar1;\n    if (pcVar2 != (char *)0x0) {\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }\n    *ppcVar6 = (char *)0x0;\n  }" if (parenthesized_expression "(argv == (char **)0x0)" ( (binary_expression "argv == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    ppcVar1 = (char **)0x0;\n  }" { (expression_statement "ppcVar1 = (char **)0x0;" (assignment_expression "ppcVar1 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n    if (*argv == (char *)0x0) {\n      iVar5 = 4;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }\n    ppcVar1 = (char **)xmalloc(iVar5);\n    pcVar2 = *argv;\n    ppcVar6 = ppcVar1;\n    if (pcVar2 != (char *)0x0) {\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }\n    *ppcVar6 = (char *)0x0;\n  }" else (compound_statement "{\n    if (*argv == (char *)0x0) {\n      iVar5 = 4;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }\n    ppcVar1 = (char **)xmalloc(iVar5);\n    pcVar2 = *argv;\n    ppcVar6 = ppcVar1;\n    if (pcVar2 != (char *)0x0) {\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }\n    *ppcVar6 = (char *)0x0;\n  }" { (if_statement "if (*argv == (char *)0x0) {\n      iVar5 = 4;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }" if (parenthesized_expression "(*argv == (char *)0x0)" ( (binary_expression "*argv == (char *)0x0" (pointer_expression "*argv" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = 4;\n    }" { (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }" else (compound_statement "{\n      iVar5 = 0;\n      do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);\n      iVar5 = iVar4 * 4 + 8;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      } while (argv[iVar5] != (char *)0x0);" do (compound_statement "{\n        iVar4 = iVar5;\n        iVar5 = iVar4 + 1;\n      }" { (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" identifier = identifier) ;) (expression_statement "iVar5 = iVar4 + 1;" (assignment_expression "iVar5 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(argv[iVar5] != (char *)0x0)" ( (binary_expression "argv[iVar5] != (char *)0x0" (subscript_expression "argv[iVar5]" identifier [ identifier ]) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar5 = iVar4 * 4 + 8;" (assignment_expression "iVar5 = iVar4 * 4 + 8" identifier = (binary_expression "iVar4 * 4 + 8" (binary_expression "iVar4 * 4" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "ppcVar1 = (char **)xmalloc(iVar5);" (assignment_expression "ppcVar1 = (char **)xmalloc(iVar5)" identifier = (cast_expression "(char **)xmalloc(iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "pcVar2 = *argv;" (assignment_expression "pcVar2 = *argv" identifier = (pointer_expression "*argv" * identifier)) ;) (expression_statement "ppcVar6 = ppcVar1;" (assignment_expression "ppcVar6 = ppcVar1" identifier = identifier) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = 0;\n      do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);\n      ppcVar6 = (char **)(iVar5 + (int)ppcVar1);\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      } while (pcVar2 != (char *)0x0);" do (compound_statement "{\n        uVar3 = xstrdup(pcVar2);\n        *(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;\n        iVar5 = iVar5 + 4;\n        pcVar2 = *(char **)((int)argv + iVar5);\n      }" { (expression_statement "uVar3 = xstrdup(pcVar2);" (assignment_expression "uVar3 = xstrdup(pcVar2)" identifier = (call_expression "xstrdup(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)((int)ppcVar1 + iVar5) = uVar3;" (assignment_expression "*(undefined4 *)((int)ppcVar1 + iVar5) = uVar3" (pointer_expression "*(undefined4 *)((int)ppcVar1 + iVar5)" * (cast_expression "(undefined4 *)((int)ppcVar1 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppcVar1 + iVar5)" ( (binary_expression "(int)ppcVar1 + iVar5" (cast_expression "(int)ppcVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (expression_statement "pcVar2 = *(char **)((int)argv + iVar5);" (assignment_expression "pcVar2 = *(char **)((int)argv + iVar5)" identifier = (pointer_expression "*(char **)((int)argv + iVar5)" * (cast_expression "(char **)((int)argv + iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)argv + iVar5)" ( (binary_expression "(int)argv + iVar5" (cast_expression "(int)argv" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "ppcVar6 = (char **)(iVar5 + (int)ppcVar1);" (assignment_expression "ppcVar6 = (char **)(iVar5 + (int)ppcVar1)" identifier = (cast_expression "(char **)(iVar5 + (int)ppcVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + (int)ppcVar1)" ( (binary_expression "iVar5 + (int)ppcVar1" identifier + (cast_expression "(int)ppcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*ppcVar6 = (char *)0x0;" (assignment_expression "*ppcVar6 = (char *)0x0" (pointer_expression "*ppcVar6" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (return_statement "return ppcVar1;" return identifier ;) })))
(translation_unit "undefined4 * FUN_0004c210(int *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_0004c210(int *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0004c210(int *param_1)" * (function_declarator "FUN_0004c210(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)0x0;\n  }" { (expression_statement "puVar1 = (undefined4 *)0x0;" (assignment_expression "puVar1 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" else (compound_statement "{\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" { (if_statement "if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      iVar3 = 4;\n    }" { (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" else (compound_statement "{\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);" do (compound_statement "{\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1[iVar3] != 0)" ( (binary_expression "param_1[iVar3] != 0" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) != number_literal) )) ;) (expression_statement "iVar3 = iVar4 * 4 + 8;" (assignment_expression "iVar3 = iVar4 * 4 + 8" identifier = (binary_expression "iVar4 * 4 + 8" (binary_expression "iVar4 * 4" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "puVar1 = (undefined4 *)xmalloc(iVar3);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(iVar3)" identifier = (cast_expression "(undefined4 *)xmalloc(iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))))) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar5 = puVar1;" (assignment_expression "puVar5 = puVar1" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);" do (compound_statement "{\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      }" { (expression_statement "uVar2 = xstrdup(iVar3);" (assignment_expression "uVar2 = xstrdup(iVar3)" identifier = (call_expression "xstrdup(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "*(undefined4 *)((int)puVar1 + iVar4) = uVar2;" (assignment_expression "*(undefined4 *)((int)puVar1 + iVar4) = uVar2" (pointer_expression "*(undefined4 *)((int)puVar1 + iVar4)" * (cast_expression "(undefined4 *)((int)puVar1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + iVar4)" ( (binary_expression "(int)puVar1 + iVar4" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" identifier = (binary_expression "iVar4 + 4" identifier + number_literal)) ;) (expression_statement "iVar3 = *(int *)((int)param_1 + iVar4);" (assignment_expression "iVar3 = *(int *)((int)param_1 + iVar4)" identifier = (pointer_expression "*(int *)((int)param_1 + iVar4)" * (cast_expression "(int *)((int)param_1 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar4)" ( (binary_expression "(int)param_1 + iVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "puVar5 = (undefined4 *)(iVar4 + (int)puVar1);" (assignment_expression "puVar5 = (undefined4 *)(iVar4 + (int)puVar1)" identifier = (cast_expression "(undefined4 *)(iVar4 + (int)puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (int)puVar1)" ( (binary_expression "iVar4 + (int)puVar1" identifier + (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }))) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0004c210(int *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0004c210(int *param_1)" (* "*") (function_declarator "FUN_0004c210(int *param_1)" (identifier "FUN_0004c210") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n    puVar1 = (undefined4 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)0x0;" (assignment_expression "puVar1 = (undefined4 *)0x0" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" (else "else") (compound_statement "{\n    if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }\n    puVar1 = (undefined4 *)xmalloc(iVar3);\n    iVar3 = *param_1;\n    puVar5 = puVar1;\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }\n    *puVar5 = 0;\n  }" ({ "{") (if_statement "if (*param_1 == 0) {\n      iVar3 = 4;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = 4;\n    }" ({ "{") (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" (identifier "iVar3") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" (else "else") (compound_statement "{\n      iVar3 = 0;\n      do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);\n      iVar3 = iVar4 * 4 + 8;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      } while (param_1[iVar3] != 0);" (do "do") (compound_statement "{\n        iVar4 = iVar3;\n        iVar3 = iVar4 + 1;\n      }" ({ "{") (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1[iVar3] != 0)" (( "(") (binary_expression "param_1[iVar3] != 0" (subscript_expression "param_1[iVar3]" (identifier "param_1") ([ "[") (identifier "iVar3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar3 = iVar4 * 4 + 8;" (assignment_expression "iVar3 = iVar4 * 4 + 8" (identifier "iVar3") (= "=") (binary_expression "iVar4 * 4 + 8" (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4")) (+ "+") (number_literal "8"))) (; ";")) (} "}")))) (expression_statement "puVar1 = (undefined4 *)xmalloc(iVar3);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(iVar3)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar3)" (identifier "xmalloc") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))))) (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar5 = puVar1;" (assignment_expression "puVar5 = puVar1" (identifier "puVar5") (= "=") (identifier "puVar1")) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = 0;\n      do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);\n      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      } while (iVar3 != 0);" (do "do") (compound_statement "{\n        uVar2 = xstrdup(iVar3);\n        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;\n        iVar4 = iVar4 + 4;\n        iVar3 = *(int *)((int)param_1 + iVar4);\n      }" ({ "{") (expression_statement "uVar2 = xstrdup(iVar3);" (assignment_expression "uVar2 = xstrdup(iVar3)" (identifier "uVar2") (= "=") (call_expression "xstrdup(iVar3)" (identifier "xstrdup") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar1 + iVar4) = uVar2;" (assignment_expression "*(undefined4 *)((int)puVar1 + iVar4) = uVar2" (pointer_expression "*(undefined4 *)((int)puVar1 + iVar4)" (* "*") (cast_expression "(undefined4 *)((int)puVar1 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + iVar4)" (( "(") (binary_expression "(int)puVar1 + iVar4" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (identifier "iVar4")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar3 = *(int *)((int)param_1 + iVar4);" (assignment_expression "iVar3 = *(int *)((int)param_1 + iVar4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)((int)param_1 + iVar4)" (* "*") (cast_expression "(int *)((int)param_1 + iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar4)" (( "(") (binary_expression "(int)param_1 + iVar4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar5 = (undefined4 *)(iVar4 + (int)puVar1);" (assignment_expression "puVar5 = (undefined4 *)(iVar4 + (int)puVar1)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(iVar4 + (int)puVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + (int)puVar1)" (( "(") (binary_expression "iVar4 + (int)puVar1" (identifier "iVar4") (+ "+") (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1"))) () ")")))) (; ";")) (} "}"))) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

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

char ** function_1(char **var_1)

{
  char **ppcVar1;
  char *var_4;
  type_1 uVar3;
  int var_2;
  int var_6;
  char **ppcVar6;
  
  if (var_1 == (char **)0x0) {
    ppcVar1 = (char **)0x0;
  }
  else {
    if (*var_1 == (char *)0x0) {
      var_6 = 4;
    }
    else {
      var_6 = 0;
      do {
        var_2 = var_6;
        var_6 = var_2 + 1;
      } while (var_1[var_6] != (char *)0x0);
      var_6 = var_2 * 4 + 8;
    }
    ppcVar1 = (char **)var_3(var_6);
    var_4 = *var_1;
    ppcVar6 = ppcVar1;
    if (var_4 != (char *)0x0) {
      var_6 = 0;
      do {
        uVar3 = var_5(var_4);
        *(type_1 *)((int)ppcVar1 + var_6) = uVar3;
        var_6 = var_6 + 4;
        var_4 = *(char **)((int)var_1 + var_6);
      } while (var_4 != (char *)0x0);
      ppcVar6 = (char **)(var_6 + (int)ppcVar1);
    }
    *ppcVar6 = (char *)0x0;
  }
  return ppcVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (return_statement (identifier)))))

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

undefined4 * MASKED(int *param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined4 *puVar5;
  
  if (param_1 == (int *)0x0) {
    puVar1 = (undefined4 *)0x0;
  }
  else {
    if (*param_1 == 0) {
      iVar3 = 4;
    }
    else {
      iVar3 = 0;
      do {
        iVar4 = iVar3;
        iVar3 = iVar4 + 1;
      } while (param_1[iVar3] != 0);
      iVar3 = iVar4 * 4 + 8;
    }
    puVar1 = (undefined4 *)xmalloc(iVar3);
    iVar3 = *param_1;
    puVar5 = puVar1;
    if (iVar3 != 0) {
      iVar4 = 0;
      do {
        uVar2 = xstrdup(iVar3);
        *(undefined4 *)((int)puVar1 + iVar4) = uVar2;
        iVar4 = iVar4 + 4;
        iVar3 = *(int *)((int)param_1 + iVar4);
      } while (iVar3 != 0);
      puVar5 = (undefined4 *)(iVar4 + (int)puVar1);
    }
    *puVar5 = 0;
  }
  return puVar1;
}

