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

argv_iterator * argv_iter_init_stream(FILE *fp)

{
  argv_iterator *paVar1;
  
  paVar1 = (argv_iterator *)malloc(0x18);
  if (paVar1 != (argv_iterator *)0x0) {
    paVar1->tok = (char *)0x0;
    paVar1->buf_len = 0;
    paVar1->fp = fp;
    paVar1->item_idx = 0;
    paVar1->arg_list = (char **)0x0;
  }
  return paVar1;
}



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

void FUN_00014be0(undefined4 param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)malloc(0x18);
  if (puVar1 != (undefined4 *)0x0) {
    puVar1[2] = 0;
    puVar1[3] = 0;
    *puVar1 = param_1;
    puVar1[1] = 0;
    puVar1[4] = 0;
  }
  return;
}


PUSH EBX
CALL 0x00014070
ADD EBX,0x3141a
SUB ESP,0x14
PUSH 0x18
CALL 0x00012320
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00014c1f
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX],EDX
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x10],0x0
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00014be0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00014be0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00014be0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)malloc(0x18);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x18)" identifier = (cast_expression "(undefined4 *)malloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = 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\nargv_iterator * argv_iter_init_stream(FILE *fp)\n\n{\n  argv_iterator *paVar1;\n  \n  paVar1 = (argv_iterator *)malloc(0x18);\n  if (paVar1 != (argv_iterator *)0x0) {\n    paVar1->tok = (char *)0x0;\n    paVar1->buf_len = 0;\n    paVar1->fp = fp;\n    paVar1->item_idx = 0;\n    paVar1->arg_list = (char **)0x0;\n  }\n  return paVar1;\n}\n\n" comment comment (function_definition "argv_iterator * argv_iter_init_stream(FILE *fp)\n\n{\n  argv_iterator *paVar1;\n  \n  paVar1 = (argv_iterator *)malloc(0x18);\n  if (paVar1 != (argv_iterator *)0x0) {\n    paVar1->tok = (char *)0x0;\n    paVar1->buf_len = 0;\n    paVar1->fp = fp;\n    paVar1->item_idx = 0;\n    paVar1->arg_list = (char **)0x0;\n  }\n  return paVar1;\n}" type_identifier (pointer_declarator "* argv_iter_init_stream(FILE *fp)" * (function_declarator "argv_iter_init_stream(FILE *fp)" identifier (parameter_list "(FILE *fp)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) )))) (compound_statement "{\n  argv_iterator *paVar1;\n  \n  paVar1 = (argv_iterator *)malloc(0x18);\n  if (paVar1 != (argv_iterator *)0x0) {\n    paVar1->tok = (char *)0x0;\n    paVar1->buf_len = 0;\n    paVar1->fp = fp;\n    paVar1->item_idx = 0;\n    paVar1->arg_list = (char **)0x0;\n  }\n  return paVar1;\n}" { (declaration "argv_iterator *paVar1;" type_identifier (pointer_declarator "*paVar1" * identifier) ;) (expression_statement "paVar1 = (argv_iterator *)malloc(0x18);" (assignment_expression "paVar1 = (argv_iterator *)malloc(0x18)" identifier = (cast_expression "(argv_iterator *)malloc(0x18)" ( (type_descriptor "argv_iterator *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (paVar1 != (argv_iterator *)0x0) {\n    paVar1->tok = (char *)0x0;\n    paVar1->buf_len = 0;\n    paVar1->fp = fp;\n    paVar1->item_idx = 0;\n    paVar1->arg_list = (char **)0x0;\n  }" if (parenthesized_expression "(paVar1 != (argv_iterator *)0x0)" ( (binary_expression "paVar1 != (argv_iterator *)0x0" identifier != (cast_expression "(argv_iterator *)0x0" ( (type_descriptor "argv_iterator *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    paVar1->tok = (char *)0x0;\n    paVar1->buf_len = 0;\n    paVar1->fp = fp;\n    paVar1->item_idx = 0;\n    paVar1->arg_list = (char **)0x0;\n  }" { (expression_statement "paVar1->tok = (char *)0x0;" (assignment_expression "paVar1->tok = (char *)0x0" (field_expression "paVar1->tok" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "paVar1->buf_len = 0;" (assignment_expression "paVar1->buf_len = 0" (field_expression "paVar1->buf_len" identifier -> field_identifier) = number_literal) ;) (expression_statement "paVar1->fp = fp;" (assignment_expression "paVar1->fp = fp" (field_expression "paVar1->fp" identifier -> field_identifier) = identifier) ;) (expression_statement "paVar1->item_idx = 0;" (assignment_expression "paVar1->item_idx = 0" (field_expression "paVar1->item_idx" identifier -> field_identifier) = number_literal) ;) (expression_statement "paVar1->arg_list = (char **)0x0;" (assignment_expression "paVar1->arg_list = (char **)0x0" (field_expression "paVar1->arg_list" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) })) (return_statement "return paVar1;" return identifier ;) })))
(translation_unit "void FUN_00014be0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00014be0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00014be0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)malloc(0x18);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x18)" identifier = (cast_expression "(undefined4 *)malloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00014be0(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00014be0(undefined4 param_1)" (identifier "FUN_00014be0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)malloc(0x18);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)malloc(0x18);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x18)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)malloc(0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x18)" (identifier "malloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    *puVar1 = param_1;\n    puVar1[1] = 0;\n    puVar1[4] = 0;\n  }" ({ "{") (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (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")) (; ";")) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (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 */

type_1 * function_1(type_2 *fp)

{
  type_1 *var_2;
  
  var_2 = (type_1 *)var_1(0x18);
  if (var_2 != (type_1 *)0x0) {
    var_2->tok = (char *)0x0;
    var_2->buf_len = 0;
    var_2->fp = fp;
    var_2->item_idx = 0;
    var_2->arg_list = (char **)0x0;
  }
  return var_2;
}


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

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

void MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)malloc(0x18);
  if (puVar1 != (undefined4 *)0x0) {
    puVar1[2] = 0;
    puVar1[3] = 0;
    *puVar1 = param_1;
    puVar1[1] = 0;
    puVar1[4] = 0;
  }
  return;
}

