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

int wordsplit_get_words(wordsplit *ws,size_t *wordc,char ***wordv)

{
  char **ppcVar1;
  int iVar2;
  
  ppcVar1 = (char **)realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4);
  if (ppcVar1 == (char **)0x0) {
    iVar2 = -1;
  }
  else {
    *wordv = ppcVar1;
    *wordc = ws->ws_wordc;
    iVar2 = 0;
    ws->ws_wordv = (char **)0x0;
    ws->ws_wordc = 0;
    ws->ws_wordn = 0;
  }
  return iVar2;
}



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

undefined4 FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)

{
  void *pvVar1;
  undefined4 uVar2;
  
  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);
  if (pvVar1 == (void *)0x0) {
    uVar2 = 0xffffffff;
  }
  else {
    *param_3 = pvVar1;
    *param_2 = *param_1;
    uVar2 = 0;
    param_1[1] = 0;
    *param_1 = 0;
    param_1[3] = 0;
  }
  return uVar2;
}


PUSH ESI
PUSH EBX
CALL 0x00012800
ADD EBX,0x19529
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESI]
LEA EAX,[EAX*0x4 + 0x4]
PUSH EAX
PUSH dword ptr [ESI + 0x4]
CALL 0x000121f0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001c997
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [EDX],EAX
MOV EDX,dword ptr [ESI]
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX],EDX
XOR EAX,EAX
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI],0x0
MOV dword ptr [ESI + 0xc],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,0xffffffff
JMP 0x0001c991
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);" (assignment_expression "pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4)" identifier = (call_expression "realloc((void *)param_1[1],*param_1 * 4 + 4)" identifier (argument_list "((void *)param_1[1],*param_1 * 4 + 4)" ( (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , (binary_expression "*param_1 * 4 + 4" (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal) + number_literal) )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" if (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" else (compound_statement "{\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" { (expression_statement "*param_3 = pvVar1;" (assignment_expression "*param_3 = pvVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint wordsplit_get_words(wordsplit *ws,size_t *wordc,char ***wordv)\n\n{\n  char **ppcVar1;\n  int iVar2;\n  \n  ppcVar1 = (char **)realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4);\n  if (ppcVar1 == (char **)0x0) {\n    iVar2 = -1;\n  }\n  else {\n    *wordv = ppcVar1;\n    *wordc = ws->ws_wordc;\n    iVar2 = 0;\n    ws->ws_wordv = (char **)0x0;\n    ws->ws_wordc = 0;\n    ws->ws_wordn = 0;\n  }\n  return iVar2;\n}\n\n" comment comment (function_definition "int wordsplit_get_words(wordsplit *ws,size_t *wordc,char ***wordv)\n\n{\n  char **ppcVar1;\n  int iVar2;\n  \n  ppcVar1 = (char **)realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4);\n  if (ppcVar1 == (char **)0x0) {\n    iVar2 = -1;\n  }\n  else {\n    *wordv = ppcVar1;\n    *wordc = ws->ws_wordc;\n    iVar2 = 0;\n    ws->ws_wordv = (char **)0x0;\n    ws->ws_wordc = 0;\n    ws->ws_wordn = 0;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "wordsplit_get_words(wordsplit *ws,size_t *wordc,char ***wordv)" identifier (parameter_list "(wordsplit *ws,size_t *wordc,char ***wordv)" ( (parameter_declaration "wordsplit *ws" type_identifier (pointer_declarator "*ws" * identifier)) , (parameter_declaration "size_t *wordc" primitive_type (pointer_declarator "*wordc" * identifier)) , (parameter_declaration "char ***wordv" primitive_type (pointer_declarator "***wordv" * (pointer_declarator "**wordv" * (pointer_declarator "*wordv" * identifier)))) ))) (compound_statement "{\n  char **ppcVar1;\n  int iVar2;\n  \n  ppcVar1 = (char **)realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4);\n  if (ppcVar1 == (char **)0x0) {\n    iVar2 = -1;\n  }\n  else {\n    *wordv = ppcVar1;\n    *wordc = ws->ws_wordc;\n    iVar2 = 0;\n    ws->ws_wordv = (char **)0x0;\n    ws->ws_wordc = 0;\n    ws->ws_wordn = 0;\n  }\n  return iVar2;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "ppcVar1 = (char **)realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4);" (assignment_expression "ppcVar1 = (char **)realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4)" identifier = (cast_expression "(char **)realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "realloc(ws->ws_wordv,ws->ws_wordc * 4 + 4)" identifier (argument_list "(ws->ws_wordv,ws->ws_wordc * 4 + 4)" ( (field_expression "ws->ws_wordv" identifier -> field_identifier) , (binary_expression "ws->ws_wordc * 4 + 4" (binary_expression "ws->ws_wordc * 4" (field_expression "ws->ws_wordc" identifier -> field_identifier) * number_literal) + number_literal) ))))) ;) (if_statement "if (ppcVar1 == (char **)0x0) {\n    iVar2 = -1;\n  }\n  else {\n    *wordv = ppcVar1;\n    *wordc = ws->ws_wordc;\n    iVar2 = 0;\n    ws->ws_wordv = (char **)0x0;\n    ws->ws_wordc = 0;\n    ws->ws_wordn = 0;\n  }" if (parenthesized_expression "(ppcVar1 == (char **)0x0)" ( (binary_expression "ppcVar1 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    iVar2 = -1;\n  }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    *wordv = ppcVar1;\n    *wordc = ws->ws_wordc;\n    iVar2 = 0;\n    ws->ws_wordv = (char **)0x0;\n    ws->ws_wordc = 0;\n    ws->ws_wordn = 0;\n  }" else (compound_statement "{\n    *wordv = ppcVar1;\n    *wordc = ws->ws_wordc;\n    iVar2 = 0;\n    ws->ws_wordv = (char **)0x0;\n    ws->ws_wordc = 0;\n    ws->ws_wordn = 0;\n  }" { (expression_statement "*wordv = ppcVar1;" (assignment_expression "*wordv = ppcVar1" (pointer_expression "*wordv" * identifier) = identifier) ;) (expression_statement "*wordc = ws->ws_wordc;" (assignment_expression "*wordc = ws->ws_wordc" (pointer_expression "*wordc" * identifier) = (field_expression "ws->ws_wordc" identifier -> field_identifier)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "ws->ws_wordv = (char **)0x0;" (assignment_expression "ws->ws_wordv = (char **)0x0" (field_expression "ws->ws_wordv" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "ws->ws_wordc = 0;" (assignment_expression "ws->ws_wordc = 0" (field_expression "ws->ws_wordc" identifier -> field_identifier) = number_literal) ;) (expression_statement "ws->ws_wordn = 0;" (assignment_expression "ws->ws_wordn = 0" (field_expression "ws->ws_wordn" identifier -> field_identifier) = number_literal) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);" (assignment_expression "pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4)" identifier = (call_expression "realloc((void *)param_1[1],*param_1 * 4 + 4)" identifier (argument_list "((void *)param_1[1],*param_1 * 4 + 4)" ( (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , (binary_expression "*param_1 * 4 + 4" (binary_expression "*param_1 * 4" (pointer_expression "*param_1" * identifier) * number_literal) + number_literal) )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" if (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" else (compound_statement "{\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" { (expression_statement "*param_3 = pvVar1;" (assignment_expression "*param_3 = pvVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression (binary_expression (pointer_expression * IDENT) * LIT) + LIT) )))) ;) (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) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)\n\n{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001c940(int *param_1,int *param_2,undefined4 *param_3)" (identifier "FUN_0001c940") (parameter_list "(int *param_1,int *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  void *pvVar1;\n  undefined4 uVar2;\n  \n  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);\n  if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);" (assignment_expression "pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4)" (identifier "pvVar1") (= "=") (call_expression "realloc((void *)param_1[1],*param_1 * 4 + 4)" (identifier "realloc") (argument_list "((void *)param_1[1],*param_1 * 4 + 4)" (( "(") (cast_expression "(void *)param_1[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (, ",") (binary_expression "*param_1 * 4 + 4" (binary_expression "*param_1 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "4")) (+ "+") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (pvVar1 == (void *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" (if "if") (parenthesized_expression "(pvVar1 == (void *)0x0)" (( "(") (binary_expression "pvVar1 == (void *)0x0" (identifier "pvVar1") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" (else "else") (compound_statement "{\n    *param_3 = pvVar1;\n    *param_2 = *param_1;\n    uVar2 = 0;\n    param_1[1] = 0;\n    *param_1 = 0;\n    param_1[3] = 0;\n  }" ({ "{") (expression_statement "*param_3 = pvVar1;" (assignment_expression "*param_3 = pvVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "pvVar1")) (; ";")) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int function_1(type_1 *ws,size_t *wordc,char ***wordv)

{
  char **var_2;
  int iVar2;
  
  var_2 = (char **)var_1(ws->ws_wordv,ws->ws_wordc * 4 + 4);
  if (var_2 == (char **)0x0) {
    iVar2 = -1;
  }
  else {
    *wordv = var_2;
    *wordc = ws->ws_wordc;
    iVar2 = 0;
    ws->ws_wordv = (char **)0x0;
    ws->ws_wordc = 0;
    ws->ws_wordn = 0;
  }
  return iVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (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: (subscript_expression argument: (identifier) index: (number_literal))) (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (number_literal)))))) (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)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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,int *param_2,undefined4 *param_3)

{
  void *pvVar1;
  undefined4 uVar2;
  
  pvVar1 = realloc((void *)param_1[1],*param_1 * 4 + 4);
  if (pvVar1 == (void *)0x0) {
    uVar2 = 0xffffffff;
  }
  else {
    *param_3 = pvVar1;
    *param_2 = *param_1;
    uVar2 = 0;
    param_1[1] = 0;
    *param_1 = 0;
    param_1[3] = 0;
  }
  return uVar2;
}

