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

void construct_argument_list(char ***arguments,char *command,char *filename)

{
  char *pcVar1;
  char **ppcVar2;
  int iVar3;
  int iVar4;
  
  pcVar1 = mallocstrcpy((char *)0x0,command);
  pcVar1 = strtok(pcVar1," ");
  if (pcVar1 == (char *)0x0) {
    iVar4 = 4;
    iVar3 = 0;
  }
  else {
    iVar3 = 2;
    do {
      iVar4 = iVar3;
      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);
      *arguments = ppcVar2;
      ppcVar2[iVar4 + -2] = pcVar1;
      pcVar1 = strtok((char *)0x0," ");
      iVar3 = iVar4 + 1;
    } while (pcVar1 != (char *)0x0);
    iVar4 = iVar4 * 4;
    iVar3 = iVar4 + -4;
  }
  ppcVar2 = *arguments;
  *(char **)((int)ppcVar2 + iVar3) = filename;
  *(undefined4 *)((int)ppcVar2 + iVar4) = 0;
  return;
}



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

void FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  pcVar2 = (char *)FUN_00035640(0,param_2);
  pcVar2 = strtok(pcVar2," ");
  if (pcVar2 == (char *)0x0) {
    iVar5 = 4;
    iVar4 = 0;
  }
  else {
    iVar4 = 2;
    do {
      iVar5 = iVar4;
      iVar4 = iVar5 + 1;
      iVar1 = iVar4 * 4;
      iVar3 = FUN_00035500(*param_1,iVar1);
      *param_1 = iVar3;
      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;
      pcVar2 = strtok((char *)0x0," ");
    } while (pcVar2 != (char *)0x0);
    iVar5 = iVar5 * 4;
    iVar4 = iVar5 + -4;
  }
  iVar1 = *param_1;
  *(undefined4 *)(iVar1 + iVar4) = param_3;
  *(undefined4 *)(iVar1 + iVar5) = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x37d87
SUB ESP,0x24
MOV EBP,dword ptr [ESP + 0x38]
PUSH dword ptr [ESP + 0x3c]
PUSH 0x0
LEA EDI,[EBX + 0xfffe3613]
CALL 0x00035640
POP ECX
POP ESI
MOV dword ptr [ESP + 0x14],EDI
PUSH EDI
PUSH EAX
CALL 0x00013830
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00032f00
MOV ECX,0x2
MOV ESI,EAX
MOV EDI,ECX
JMP 0x00032e92
MOV EDI,ECX
LEA ECX,[EDI + 0x1]
SUB ESP,0x8
MOV dword ptr [ESP + 0x10],ECX
LEA EDX,[ECX*0x4 + 0x0]
PUSH EDX
MOV dword ptr [ESP + 0x10],EDX
PUSH dword ptr [EBP]
CALL 0x00035500
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EBP],EAX
MOV dword ptr [EAX + EDX*0x1 + -0xc],ESI
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
CALL 0x00013830
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
MOV ESI,EAX
JNZ 0x00032e90
LEA EDX,[EDI*0x4 + 0xfffffffc]
LEA EBX,[EDX + 0x4]
MOV EAX,dword ptr [EBP]
MOV ECX,dword ptr [ESP + 0x38]
MOV dword ptr [EAX + EDX*0x1],ECX
MOV dword ptr [EAX + EBX*0x1],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,0x4
XOR EDX,EDX
JMP 0x00032edf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)FUN_00035640(0,param_2);" (assignment_expression "pcVar2 = (char *)FUN_00035640(0,param_2)" identifier = (cast_expression "(char *)FUN_00035640(0,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00035640(0,param_2)" identifier (argument_list "(0,param_2)" ( number_literal , identifier ))))) ;) (expression_statement "pcVar2 = strtok(pcVar2," ");" (assignment_expression "pcVar2 = strtok(pcVar2," ")" identifier = (call_expression "strtok(pcVar2," ")" identifier (argument_list "(pcVar2," ")" ( identifier , (string_literal "" "" " string_content ") )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\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 = 4;\n    iVar4 = 0;\n  }" { (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }" else (compound_statement "{\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);" do (compound_statement "{\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar5 + 1;" (assignment_expression "iVar4 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar4 * 4;" (assignment_expression "iVar1 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (expression_statement "iVar3 = FUN_00035500(*param_1,iVar1);" (assignment_expression "iVar3 = FUN_00035500(*param_1,iVar1)" identifier = (call_expression "FUN_00035500(*param_1,iVar1)" identifier (argument_list "(*param_1,iVar1)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(char **)(iVar3 + -0xc + iVar1) = pcVar2;" (assignment_expression "*(char **)(iVar3 + -0xc + iVar1) = pcVar2" (pointer_expression "*(char **)(iVar3 + -0xc + iVar1)" * (cast_expression "(char **)(iVar3 + -0xc + iVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + -0xc + iVar1)" ( (binary_expression "iVar3 + -0xc + iVar1" (binary_expression "iVar3 + -0xc" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "pcVar2 = strtok((char *)0x0," ");" (assignment_expression "pcVar2 = strtok((char *)0x0," ")" identifier = (call_expression "strtok((char *)0x0," ")" identifier (argument_list "((char *)0x0," ")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "" "" " string_content ") )))) ;) }) 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 "iVar5 = iVar5 * 4;" (assignment_expression "iVar5 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "iVar4 = iVar5 + -4;" (assignment_expression "iVar4 = iVar5 + -4" identifier = (binary_expression "iVar5 + -4" identifier + number_literal)) ;) }))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar4) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + iVar4) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + iVar4)" * (cast_expression "(undefined4 *)(iVar1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar4)" ( (binary_expression "iVar1 + iVar4" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar5) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar5) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar5)" ( (binary_expression "iVar1 + iVar5" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid construct_argument_list(char ***arguments,char *command,char *filename)\n\n{\n  char *pcVar1;\n  char **ppcVar2;\n  int iVar3;\n  int iVar4;\n  \n  pcVar1 = mallocstrcpy((char *)0x0,command);\n  pcVar1 = strtok(pcVar1," ");\n  if (pcVar1 == (char *)0x0) {\n    iVar4 = 4;\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 2;\n    do {\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    } while (pcVar1 != (char *)0x0);\n    iVar4 = iVar4 * 4;\n    iVar3 = iVar4 + -4;\n  }\n  ppcVar2 = *arguments;\n  *(char **)((int)ppcVar2 + iVar3) = filename;\n  *(undefined4 *)((int)ppcVar2 + iVar4) = 0;\n  return;\n}\n\n" comment comment (function_definition "void construct_argument_list(char ***arguments,char *command,char *filename)\n\n{\n  char *pcVar1;\n  char **ppcVar2;\n  int iVar3;\n  int iVar4;\n  \n  pcVar1 = mallocstrcpy((char *)0x0,command);\n  pcVar1 = strtok(pcVar1," ");\n  if (pcVar1 == (char *)0x0) {\n    iVar4 = 4;\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 2;\n    do {\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    } while (pcVar1 != (char *)0x0);\n    iVar4 = iVar4 * 4;\n    iVar3 = iVar4 + -4;\n  }\n  ppcVar2 = *arguments;\n  *(char **)((int)ppcVar2 + iVar3) = filename;\n  *(undefined4 *)((int)ppcVar2 + iVar4) = 0;\n  return;\n}" primitive_type (function_declarator "construct_argument_list(char ***arguments,char *command,char *filename)" identifier (parameter_list "(char ***arguments,char *command,char *filename)" ( (parameter_declaration "char ***arguments" primitive_type (pointer_declarator "***arguments" * (pointer_declarator "**arguments" * (pointer_declarator "*arguments" * identifier)))) , (parameter_declaration "char *command" primitive_type (pointer_declarator "*command" * identifier)) , (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char **ppcVar2;\n  int iVar3;\n  int iVar4;\n  \n  pcVar1 = mallocstrcpy((char *)0x0,command);\n  pcVar1 = strtok(pcVar1," ");\n  if (pcVar1 == (char *)0x0) {\n    iVar4 = 4;\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 2;\n    do {\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    } while (pcVar1 != (char *)0x0);\n    iVar4 = iVar4 * 4;\n    iVar3 = iVar4 + -4;\n  }\n  ppcVar2 = *arguments;\n  *(char **)((int)ppcVar2 + iVar3) = filename;\n  *(undefined4 *)((int)ppcVar2 + iVar4) = 0;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "pcVar1 = mallocstrcpy((char *)0x0,command);" (assignment_expression "pcVar1 = mallocstrcpy((char *)0x0,command)" identifier = (call_expression "mallocstrcpy((char *)0x0,command)" identifier (argument_list "((char *)0x0,command)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "pcVar1 = strtok(pcVar1," ");" (assignment_expression "pcVar1 = strtok(pcVar1," ")" identifier = (call_expression "strtok(pcVar1," ")" identifier (argument_list "(pcVar1," ")" ( identifier , (string_literal "" "" " string_content ") )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    iVar4 = 4;\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 2;\n    do {\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    } while (pcVar1 != (char *)0x0);\n    iVar4 = iVar4 * 4;\n    iVar3 = iVar4 + -4;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = 4;\n    iVar3 = 0;\n  }" { (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = 2;\n    do {\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    } while (pcVar1 != (char *)0x0);\n    iVar4 = iVar4 * 4;\n    iVar3 = iVar4 + -4;\n  }" else (compound_statement "{\n    iVar3 = 2;\n    do {\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    } while (pcVar1 != (char *)0x0);\n    iVar4 = iVar4 * 4;\n    iVar3 = iVar4 + -4;\n  }" { (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    } while (pcVar1 != (char *)0x0);" do (compound_statement "{\n      iVar4 = iVar3;\n      ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);\n      *arguments = ppcVar2;\n      ppcVar2[iVar4 + -2] = pcVar1;\n      pcVar1 = strtok((char *)0x0," ");\n      iVar3 = iVar4 + 1;\n    }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (expression_statement "ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4);" (assignment_expression "ppcVar2 = (char **)nrealloc(*arguments,(iVar4 + 1) * 4)" identifier = (cast_expression "(char **)nrealloc(*arguments,(iVar4 + 1) * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "nrealloc(*arguments,(iVar4 + 1) * 4)" identifier (argument_list "(*arguments,(iVar4 + 1) * 4)" ( (pointer_expression "*arguments" * identifier) , (binary_expression "(iVar4 + 1) * 4" (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )) * number_literal) ))))) ;) (expression_statement "*arguments = ppcVar2;" (assignment_expression "*arguments = ppcVar2" (pointer_expression "*arguments" * identifier) = identifier) ;) (expression_statement "ppcVar2[iVar4 + -2] = pcVar1;" (assignment_expression "ppcVar2[iVar4 + -2] = pcVar1" (subscript_expression "ppcVar2[iVar4 + -2]" identifier [ (binary_expression "iVar4 + -2" identifier + number_literal) ]) = identifier) ;) (expression_statement "pcVar1 = strtok((char *)0x0," ");" (assignment_expression "pcVar1 = strtok((char *)0x0," ")" identifier = (call_expression "strtok((char *)0x0," ")" identifier (argument_list "((char *)0x0," ")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "" "" " string_content ") )))) ;) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar4 = iVar4 * 4;" (assignment_expression "iVar4 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (expression_statement "iVar3 = iVar4 + -4;" (assignment_expression "iVar3 = iVar4 + -4" identifier = (binary_expression "iVar4 + -4" identifier + number_literal)) ;) }))) (expression_statement "ppcVar2 = *arguments;" (assignment_expression "ppcVar2 = *arguments" identifier = (pointer_expression "*arguments" * identifier)) ;) (expression_statement "*(char **)((int)ppcVar2 + iVar3) = filename;" (assignment_expression "*(char **)((int)ppcVar2 + iVar3) = filename" (pointer_expression "*(char **)((int)ppcVar2 + iVar3)" * (cast_expression "(char **)((int)ppcVar2 + iVar3)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar2 + iVar3)" ( (binary_expression "(int)ppcVar2 + iVar3" (cast_expression "(int)ppcVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)ppcVar2 + iVar4) = 0;" (assignment_expression "*(undefined4 *)((int)ppcVar2 + iVar4) = 0" (pointer_expression "*(undefined4 *)((int)ppcVar2 + iVar4)" * (cast_expression "(undefined4 *)((int)ppcVar2 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppcVar2 + iVar4)" ( (binary_expression "(int)ppcVar2 + iVar4" (cast_expression "(int)ppcVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)FUN_00035640(0,param_2);" (assignment_expression "pcVar2 = (char *)FUN_00035640(0,param_2)" identifier = (cast_expression "(char *)FUN_00035640(0,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00035640(0,param_2)" identifier (argument_list "(0,param_2)" ( number_literal , identifier ))))) ;) (expression_statement "pcVar2 = strtok(pcVar2," ");" (assignment_expression "pcVar2 = strtok(pcVar2," ")" identifier = (call_expression "strtok(pcVar2," ")" identifier (argument_list "(pcVar2," ")" ( identifier , (string_literal "" "" " string_content ") )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\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 = 4;\n    iVar4 = 0;\n  }" { (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }" else (compound_statement "{\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (do_statement "do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);" do (compound_statement "{\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar5 + 1;" (assignment_expression "iVar4 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar4 * 4;" (assignment_expression "iVar1 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (expression_statement "iVar3 = FUN_00035500(*param_1,iVar1);" (assignment_expression "iVar3 = FUN_00035500(*param_1,iVar1)" identifier = (call_expression "FUN_00035500(*param_1,iVar1)" identifier (argument_list "(*param_1,iVar1)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(char **)(iVar3 + -0xc + iVar1) = pcVar2;" (assignment_expression "*(char **)(iVar3 + -0xc + iVar1) = pcVar2" (pointer_expression "*(char **)(iVar3 + -0xc + iVar1)" * (cast_expression "(char **)(iVar3 + -0xc + iVar1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + -0xc + iVar1)" ( (binary_expression "iVar3 + -0xc + iVar1" (binary_expression "iVar3 + -0xc" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "pcVar2 = strtok((char *)0x0," ");" (assignment_expression "pcVar2 = strtok((char *)0x0," ")" identifier = (call_expression "strtok((char *)0x0," ")" identifier (argument_list "((char *)0x0," ")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "" "" " string_content ") )))) ;) }) 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 "iVar5 = iVar5 * 4;" (assignment_expression "iVar5 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "iVar4 = iVar5 + -4;" (assignment_expression "iVar4 = iVar5 + -4" identifier = (binary_expression "iVar5 + -4" identifier + number_literal)) ;) }))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar4) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + iVar4) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + iVar4)" * (cast_expression "(undefined4 *)(iVar1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar4)" ( (binary_expression "iVar1 + iVar4" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar5) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar5) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar5)" ( (binary_expression "iVar1 + iVar5" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , (string_literal " string_content ") )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00032e40(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00032e40") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  pcVar2 = (char *)FUN_00035640(0,param_2);\n  pcVar2 = strtok(pcVar2," ");\n  if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }\n  iVar1 = *param_1;\n  *(undefined4 *)(iVar1 + iVar4) = param_3;\n  *(undefined4 *)(iVar1 + iVar5) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "pcVar2 = (char *)FUN_00035640(0,param_2);" (assignment_expression "pcVar2 = (char *)FUN_00035640(0,param_2)" (identifier "pcVar2") (= "=") (cast_expression "(char *)FUN_00035640(0,param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00035640(0,param_2)" (identifier "FUN_00035640") (argument_list "(0,param_2)" (( "(") (number_literal "0") (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "pcVar2 = strtok(pcVar2," ");" (assignment_expression "pcVar2 = strtok(pcVar2," ")" (identifier "pcVar2") (= "=") (call_expression "strtok(pcVar2," ")" (identifier "strtok") (argument_list "(pcVar2," ")" (( "(") (identifier "pcVar2") (, ",") (string_literal "" "" (" """) (string_content " ") (" """)) () ")")))) (; ";")) (if_statement "if (pcVar2 == (char *)0x0) {\n    iVar5 = 4;\n    iVar4 = 0;\n  }\n  else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = 4;\n    iVar4 = 0;\n  }" ({ "{") (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" (identifier "iVar5") (= "=") (number_literal "4")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }" (else "else") (compound_statement "{\n    iVar4 = 2;\n    do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);\n    iVar5 = iVar5 * 4;\n    iVar4 = iVar5 + -4;\n  }" ({ "{") (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" (identifier "iVar4") (= "=") (number_literal "2")) (; ";")) (do_statement "do {\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    } while (pcVar2 != (char *)0x0);" (do "do") (compound_statement "{\n      iVar5 = iVar4;\n      iVar4 = iVar5 + 1;\n      iVar1 = iVar4 * 4;\n      iVar3 = FUN_00035500(*param_1,iVar1);\n      *param_1 = iVar3;\n      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;\n      pcVar2 = strtok((char *)0x0," ");\n    }" ({ "{") (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar4 = iVar5 + 1;" (assignment_expression "iVar4 = iVar5 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = iVar4 * 4;" (assignment_expression "iVar1 = iVar4 * 4" (identifier "iVar1") (= "=") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar3 = FUN_00035500(*param_1,iVar1);" (assignment_expression "iVar3 = FUN_00035500(*param_1,iVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_00035500(*param_1,iVar1)" (identifier "FUN_00035500") (argument_list "(*param_1,iVar1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(char **)(iVar3 + -0xc + iVar1) = pcVar2;" (assignment_expression "*(char **)(iVar3 + -0xc + iVar1) = pcVar2" (pointer_expression "*(char **)(iVar3 + -0xc + iVar1)" (* "*") (cast_expression "(char **)(iVar3 + -0xc + iVar1)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + -0xc + iVar1)" (( "(") (binary_expression "iVar3 + -0xc + iVar1" (binary_expression "iVar3 + -0xc" (identifier "iVar3") (+ "+") (number_literal "-0xc")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "pcVar2")) (; ";")) (expression_statement "pcVar2 = strtok((char *)0x0," ");" (assignment_expression "pcVar2 = strtok((char *)0x0," ")" (identifier "pcVar2") (= "=") (call_expression "strtok((char *)0x0," ")" (identifier "strtok") (argument_list "((char *)0x0," ")" (( "(") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (string_literal "" "" (" """) (string_content " ") (" """)) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "iVar5 = iVar5 * 4;" (assignment_expression "iVar5 = iVar5 * 4" (identifier "iVar5") (= "=") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar4 = iVar5 + -4;" (assignment_expression "iVar4 = iVar5 + -4" (identifier "iVar4") (= "=") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4"))) (; ";")) (} "}")))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + iVar4) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + iVar4) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + iVar4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar4)" (( "(") (binary_expression "iVar1 + iVar4" (identifier "iVar1") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + iVar5) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar5) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar5)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar5)" (( "(") (binary_expression "iVar1 + iVar5" (identifier "iVar1") (+ "+") (identifier "iVar5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char ***arguments,char *command,char *filename)

{
  char *var_3;
  char **ppcVar2;
  int var_6;
  int var_5;
  
  var_3 = var_1((char *)0x0,command);
  var_3 = var_2(var_3," ");
  if (var_3 == (char *)0x0) {
    var_5 = 4;
    var_6 = 0;
  }
  else {
    var_6 = 2;
    do {
      var_5 = var_6;
      ppcVar2 = (char **)var_4(*arguments,(var_5 + 1) * 4);
      *arguments = ppcVar2;
      ppcVar2[var_5 + -2] = var_3;
      var_3 = var_2((char *)0x0," ");
      var_6 = var_5 + 1;
    } while (var_3 != (char *)0x0);
    var_5 = var_5 * 4;
    var_6 = var_5 + -4;
  }
  ppcVar2 = *arguments;
  *(char **)((int)ppcVar2 + var_6) = filename;
  *(type_1 *)((int)ppcVar2 + var_5) = 0;
  return;
}


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

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

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

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  pcVar2 = (char *)FUN_00035640(0,param_2);
  pcVar2 = strtok(pcVar2," ");
  if (pcVar2 == (char *)0x0) {
    iVar5 = 4;
    iVar4 = 0;
  }
  else {
    iVar4 = 2;
    do {
      iVar5 = iVar4;
      iVar4 = iVar5 + 1;
      iVar1 = iVar4 * 4;
      iVar3 = FUN_00035500(*param_1,iVar1);
      *param_1 = iVar3;
      *(char **)(iVar3 + -0xc + iVar1) = pcVar2;
      pcVar2 = strtok((char *)0x0," ");
    } while (pcVar2 != (char *)0x0);
    iVar5 = iVar5 * 4;
    iVar4 = iVar5 + -4;
  }
  iVar1 = *param_1;
  *(undefined4 *)(iVar1 + iVar4) = param_3;
  *(undefined4 *)(iVar1 + iVar5) = 0;
  return;
}

