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

ARRAY_ELEMENT * array_create_element(arrayind_t indx,char *value)

{
  ARRAY_ELEMENT *pAVar1;
  size_t sVar2;
  char *__dest;
  
  pAVar1 = (ARRAY_ELEMENT *)xmalloc(0x14);
  pAVar1->ind = indx;
  if (value != (char *)0x0) {
    sVar2 = strlen(value);
    __dest = (char *)xmalloc(sVar2 + 1);
    value = strcpy(__dest,value);
  }
  pAVar1->value = value;
  pAVar1->prev = (array_element *)0x0;
  pAVar1->next = (array_element *)0x0;
  return pAVar1;
}



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

undefined4 * array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)

{
  undefined4 *puVar1;
  size_t sVar2;
  char *__dest;
  
  puVar1 = (undefined4 *)xmalloc(0x14);
  *puVar1 = param_1;
  puVar1[1] = param_2;
  if (param_3 != (char *)0x0) {
    sVar2 = strlen(param_3);
    __dest = (char *)xmalloc(sVar2 + 1);
    param_3 = strcpy(__dest,param_3);
  }
  puVar1[2] = param_3;
  puVar1[4] = 0;
  puVar1[3] = 0;
  return puVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xc80f7
SUB ESP,0x28
MOV EDI,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x44]
PUSH 0x14
CALL 0x00099200
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [EAX],EDI
MOV dword ptr [EAX + 0x4],EBP
TEST ESI,ESI
JZ 0x00081f5d
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x0002f760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x00099200
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0002f580
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV ESI,EAX
MOV dword ptr [EDX + 0x8],ESI
MOV EAX,EDX
MOV dword ptr [EDX + 0x10],0x0
MOV dword ptr [EDX + 0xc],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}\n\n" comment (function_definition "undefined4 * array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}" type_identifier (pointer_declarator "* array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)" * (function_declarator "array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }" if (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }" { (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "param_3 = strcpy(__dest,param_3);" (assignment_expression "param_3 = strcpy(__dest,param_3)" identifier = (call_expression "strcpy(__dest,param_3)" identifier (argument_list "(__dest,param_3)" ( identifier , identifier )))) ;) })) (expression_statement "puVar1[2] = param_3;" (assignment_expression "puVar1[2] = param_3" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = 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\nARRAY_ELEMENT * array_create_element(arrayind_t indx,char *value)\n\n{\n  ARRAY_ELEMENT *pAVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  pAVar1 = (ARRAY_ELEMENT *)xmalloc(0x14);\n  pAVar1->ind = indx;\n  if (value != (char *)0x0) {\n    sVar2 = strlen(value);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    value = strcpy(__dest,value);\n  }\n  pAVar1->value = value;\n  pAVar1->prev = (array_element *)0x0;\n  pAVar1->next = (array_element *)0x0;\n  return pAVar1;\n}\n\n" comment comment (function_definition "ARRAY_ELEMENT * array_create_element(arrayind_t indx,char *value)\n\n{\n  ARRAY_ELEMENT *pAVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  pAVar1 = (ARRAY_ELEMENT *)xmalloc(0x14);\n  pAVar1->ind = indx;\n  if (value != (char *)0x0) {\n    sVar2 = strlen(value);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    value = strcpy(__dest,value);\n  }\n  pAVar1->value = value;\n  pAVar1->prev = (array_element *)0x0;\n  pAVar1->next = (array_element *)0x0;\n  return pAVar1;\n}" type_identifier (pointer_declarator "* array_create_element(arrayind_t indx,char *value)" * (function_declarator "array_create_element(arrayind_t indx,char *value)" identifier (parameter_list "(arrayind_t indx,char *value)" ( (parameter_declaration "arrayind_t indx" type_identifier identifier) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) )))) (compound_statement "{\n  ARRAY_ELEMENT *pAVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  pAVar1 = (ARRAY_ELEMENT *)xmalloc(0x14);\n  pAVar1->ind = indx;\n  if (value != (char *)0x0) {\n    sVar2 = strlen(value);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    value = strcpy(__dest,value);\n  }\n  pAVar1->value = value;\n  pAVar1->prev = (array_element *)0x0;\n  pAVar1->next = (array_element *)0x0;\n  return pAVar1;\n}" { (declaration "ARRAY_ELEMENT *pAVar1;" type_identifier (pointer_declarator "*pAVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "pAVar1 = (ARRAY_ELEMENT *)xmalloc(0x14);" (assignment_expression "pAVar1 = (ARRAY_ELEMENT *)xmalloc(0x14)" identifier = (cast_expression "(ARRAY_ELEMENT *)xmalloc(0x14)" ( (type_descriptor "ARRAY_ELEMENT *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "pAVar1->ind = indx;" (assignment_expression "pAVar1->ind = indx" (field_expression "pAVar1->ind" identifier -> field_identifier) = identifier) ;) (if_statement "if (value != (char *)0x0) {\n    sVar2 = strlen(value);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    value = strcpy(__dest,value);\n  }" if (parenthesized_expression "(value != (char *)0x0)" ( (binary_expression "value != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(value);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    value = strcpy(__dest,value);\n  }" { (expression_statement "sVar2 = strlen(value);" (assignment_expression "sVar2 = strlen(value)" identifier = (call_expression "strlen(value)" identifier (argument_list "(value)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "value = strcpy(__dest,value);" (assignment_expression "value = strcpy(__dest,value)" identifier = (call_expression "strcpy(__dest,value)" identifier (argument_list "(__dest,value)" ( identifier , identifier )))) ;) })) (expression_statement "pAVar1->value = value;" (assignment_expression "pAVar1->value = value" (field_expression "pAVar1->value" identifier -> field_identifier) = identifier) ;) (expression_statement "pAVar1->prev = (array_element *)0x0;" (assignment_expression "pAVar1->prev = (array_element *)0x0" (field_expression "pAVar1->prev" identifier -> field_identifier) = (cast_expression "(array_element *)0x0" ( (type_descriptor "array_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pAVar1->next = (array_element *)0x0;" (assignment_expression "pAVar1->next = (array_element *)0x0" (field_expression "pAVar1->next" identifier -> field_identifier) = (cast_expression "(array_element *)0x0" ( (type_descriptor "array_element *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pAVar1;" return identifier ;) })))
(translation_unit "undefined4 * array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}\n\n" (function_definition "undefined4 * array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}" type_identifier (pointer_declarator "* array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)" * (function_declarator "array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }" if (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }" { (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "param_3 = strcpy(__dest,param_3);" (assignment_expression "param_3 = strcpy(__dest,param_3)" identifier = (call_expression "strcpy(__dest,param_3)" identifier (argument_list "(__dest,param_3)" ( identifier , identifier )))) ;) })) (expression_statement "puVar1[2] = param_3;" (assignment_expression "puVar1[2] = param_3" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)" (* "*") (function_declarator "array_create_element(undefined4 param_1,undefined4 param_2,char *param_3)" (identifier "array_create_element") (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }\n  puVar1[2] = param_3;\n  puVar1[4] = 0;\n  puVar1[3] = 0;\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x14)" (identifier "xmalloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_3 != (char *)0x0) {\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }" (if "if") (parenthesized_expression "(param_3 != (char *)0x0)" (( "(") (binary_expression "param_3 != (char *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar2 = strlen(param_3);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    param_3 = strcpy(__dest,param_3);\n  }" ({ "{") (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" (identifier "sVar2") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(sVar2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar2 + 1)" (identifier "xmalloc") (argument_list "(sVar2 + 1)" (( "(") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "param_3 = strcpy(__dest,param_3);" (assignment_expression "param_3 = strcpy(__dest,param_3)" (identifier "param_3") (= "=") (call_expression "strcpy(__dest,param_3)" (identifier "strcpy") (argument_list "(__dest,param_3)" (( "(") (identifier "__dest") (, ",") (identifier "param_3") () ")")))) (; ";")) (} "}"))) (expression_statement "puVar1[2] = param_3;" (assignment_expression "puVar1[2] = param_3" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (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 */

type_1 * function_1(type_2 indx,char *var_2)

{
  type_1 *pAVar1;
  size_t var_4;
  char *__dest;
  
  pAVar1 = (type_1 *)var_1(0x14);
  pAVar1->ind = indx;
  if (var_2 != (char *)0x0) {
    var_4 = var_3(var_2);
    __dest = (char *)var_1(var_4 + 1);
    var_2 = var_5(__dest,var_2);
  }
  pAVar1->var_2 = var_2;
  pAVar1->prev = (type_3 *)0x0;
  pAVar1->next = (type_3 *)0x0;
  return pAVar1;
}


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

{
  undefined4 *puVar1;
  size_t sVar2;
  char *__dest;
  
  puVar1 = (undefined4 *)xmalloc(0x14);
  *puVar1 = param_1;
  puVar1[1] = param_2;
  if (param_3 != (char *)0x0) {
    sVar2 = strlen(param_3);
    __dest = (char *)xmalloc(sVar2 + 1);
    param_3 = strcpy(__dest,param_3);
  }
  puVar1[2] = param_3;
  puVar1[4] = 0;
  puVar1[3] = 0;
  return puVar1;
}

