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

bfd_boolean __regparm3
stab_push_string(stab_write_handle *info,char *string,long tindex,bfd_boolean definition,uint size)

{
  bfd *pbVar1;
  bfd *pbVar2;
  bfd_target *pbVar3;
  
  pbVar2 = (bfd *)xmalloc(0x24);
  pbVar3 = (bfd_target *)xstrdup(string);
  pbVar2->lru_next = (bfd *)0x0;
  pbVar2->xvec = pbVar3;
  pbVar2->iostream = (void *)tindex;
  pbVar2->lru_prev = (bfd *)definition;
  *(undefined4 *)&pbVar2->where = 0;
  pbVar2->iovec = (bfd_iovec *)size;
  pbVar1 = info->abfd;
  *(undefined4 *)((int)&pbVar2->where + 4) = 0;
  pbVar2->filename = (char *)pbVar1;
  info->abfd = pbVar2;
  pbVar2->mtime = 0;
  return 1;
}



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

undefined4 __regparm3
FUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)xmalloc(0x24);
  uVar2 = xstrdup(param_2);
  puVar1[5] = 0;
  puVar1[1] = uVar2;
  puVar1[2] = param_3;
  puVar1[4] = param_4;
  puVar1[6] = 0;
  puVar1[3] = param_5;
  uVar2 = *param_1;
  puVar1[7] = 0;
  *puVar1 = uVar2;
  *param_1 = puVar1;
  puVar1[8] = 0;
  return 1;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x15843
SUB ESP,0x28
MOV dword ptr [ESP + 0x18],ECX
PUSH 0x24
CALL 0x000132e0
MOV dword ptr [ESP],EBP
MOV ESI,EAX
CALL 0x00013310
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESI + 0x8],ECX
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [ESI + 0x18],0x0
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESI + 0x1c],0x0
MOV dword ptr [ESI],EAX
MOV EAX,0x1
MOV dword ptr [EDI],ESI
MOV dword ptr [ESI + 0x20],0x0
ADD ESP,0x2c
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 __regparm3\nFUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x24);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x24)" identifier = (cast_expression "(undefined4 *)xmalloc(0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "uVar2 = xstrdup(param_2);" (assignment_expression "uVar2 = xstrdup(param_2)" identifier = (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = uVar2;" (assignment_expression "puVar1[1] = uVar2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = 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] = param_4;" (assignment_expression "puVar1[4] = param_4" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3\nstab_push_string(stab_write_handle *info,char *string,long tindex,bfd_boolean definition,uint size)\n\n{\n  bfd *pbVar1;\n  bfd *pbVar2;\n  bfd_target *pbVar3;\n  \n  pbVar2 = (bfd *)xmalloc(0x24);\n  pbVar3 = (bfd_target *)xstrdup(string);\n  pbVar2->lru_next = (bfd *)0x0;\n  pbVar2->xvec = pbVar3;\n  pbVar2->iostream = (void *)tindex;\n  pbVar2->lru_prev = (bfd *)definition;\n  *(undefined4 *)&pbVar2->where = 0;\n  pbVar2->iovec = (bfd_iovec *)size;\n  pbVar1 = info->abfd;\n  *(undefined4 *)((int)&pbVar2->where + 4) = 0;\n  pbVar2->filename = (char *)pbVar1;\n  info->abfd = pbVar2;\n  pbVar2->mtime = 0;\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nstab_push_string(stab_write_handle *info,char *string,long tindex,bfd_boolean definition,uint size)\n\n{\n  bfd *pbVar1;\n  bfd *pbVar2;\n  bfd_target *pbVar3;\n  \n  pbVar2 = (bfd *)xmalloc(0x24);\n  pbVar3 = (bfd_target *)xstrdup(string);\n  pbVar2->lru_next = (bfd *)0x0;\n  pbVar2->xvec = pbVar3;\n  pbVar2->iostream = (void *)tindex;\n  pbVar2->lru_prev = (bfd *)definition;\n  *(undefined4 *)&pbVar2->where = 0;\n  pbVar2->iovec = (bfd_iovec *)size;\n  pbVar1 = info->abfd;\n  *(undefined4 *)((int)&pbVar2->where + 4) = 0;\n  pbVar2->filename = (char *)pbVar1;\n  info->abfd = pbVar2;\n  pbVar2->mtime = 0;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "stab_push_string(stab_write_handle *info,char *string,long tindex,bfd_boolean definition,uint size)" identifier (parameter_list "(stab_write_handle *info,char *string,long tindex,bfd_boolean definition,uint size)" ( (parameter_declaration "stab_write_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "long tindex" (sized_type_specifier "long" long) identifier) , (parameter_declaration "bfd_boolean definition" type_identifier identifier) , (parameter_declaration "uint size" type_identifier identifier) ))) (compound_statement "{\n  bfd *pbVar1;\n  bfd *pbVar2;\n  bfd_target *pbVar3;\n  \n  pbVar2 = (bfd *)xmalloc(0x24);\n  pbVar3 = (bfd_target *)xstrdup(string);\n  pbVar2->lru_next = (bfd *)0x0;\n  pbVar2->xvec = pbVar3;\n  pbVar2->iostream = (void *)tindex;\n  pbVar2->lru_prev = (bfd *)definition;\n  *(undefined4 *)&pbVar2->where = 0;\n  pbVar2->iovec = (bfd_iovec *)size;\n  pbVar1 = info->abfd;\n  *(undefined4 *)((int)&pbVar2->where + 4) = 0;\n  pbVar2->filename = (char *)pbVar1;\n  info->abfd = pbVar2;\n  pbVar2->mtime = 0;\n  return 1;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "bfd_target *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "pbVar2 = (bfd *)xmalloc(0x24);" (assignment_expression "pbVar2 = (bfd *)xmalloc(0x24)" identifier = (cast_expression "(bfd *)xmalloc(0x24)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "pbVar3 = (bfd_target *)xstrdup(string);" (assignment_expression "pbVar3 = (bfd_target *)xstrdup(string)" identifier = (cast_expression "(bfd_target *)xstrdup(string)" ( (type_descriptor "bfd_target *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(string)" identifier (argument_list "(string)" ( identifier ))))) ;) (expression_statement "pbVar2->lru_next = (bfd *)0x0;" (assignment_expression "pbVar2->lru_next = (bfd *)0x0" (field_expression "pbVar2->lru_next" identifier -> field_identifier) = (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pbVar2->xvec = pbVar3;" (assignment_expression "pbVar2->xvec = pbVar3" (field_expression "pbVar2->xvec" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar2->iostream = (void *)tindex;" (assignment_expression "pbVar2->iostream = (void *)tindex" (field_expression "pbVar2->iostream" identifier -> field_identifier) = (cast_expression "(void *)tindex" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar2->lru_prev = (bfd *)definition;" (assignment_expression "pbVar2->lru_prev = (bfd *)definition" (field_expression "pbVar2->lru_prev" identifier -> field_identifier) = (cast_expression "(bfd *)definition" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(undefined4 *)&pbVar2->where = 0;" (assignment_expression "*(undefined4 *)&pbVar2->where = 0" (pointer_expression "*(undefined4 *)&pbVar2->where" * (cast_expression "(undefined4 *)&pbVar2->where" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar2->where" & (field_expression "pbVar2->where" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pbVar2->iovec = (bfd_iovec *)size;" (assignment_expression "pbVar2->iovec = (bfd_iovec *)size" (field_expression "pbVar2->iovec" identifier -> field_identifier) = (cast_expression "(bfd_iovec *)size" ( (type_descriptor "bfd_iovec *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar1 = info->abfd;" (assignment_expression "pbVar1 = info->abfd" identifier = (field_expression "info->abfd" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&pbVar2->where + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pbVar2->where + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pbVar2->where + 4)" * (cast_expression "(undefined4 *)((int)&pbVar2->where + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pbVar2->where + 4)" ( (binary_expression "(int)&pbVar2->where + 4" (cast_expression "(int)&pbVar2->where" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pbVar2->where" & (field_expression "pbVar2->where" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "pbVar2->filename = (char *)pbVar1;" (assignment_expression "pbVar2->filename = (char *)pbVar1" (field_expression "pbVar2->filename" identifier -> field_identifier) = (cast_expression "(char *)pbVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "info->abfd = pbVar2;" (assignment_expression "info->abfd = pbVar2" (field_expression "info->abfd" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar2->mtime = 0;" (assignment_expression "pbVar2->mtime = 0" (field_expression "pbVar2->mtime" identifier -> field_identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x24);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x24)" identifier = (cast_expression "(undefined4 *)xmalloc(0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x24)" identifier (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "uVar2 = xstrdup(param_2);" (assignment_expression "uVar2 = xstrdup(param_2)" identifier = (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = uVar2;" (assignment_expression "puVar1[1] = uVar2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = 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] = param_4;" (assignment_expression "puVar1[4] = param_4" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3\nFUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" (identifier "FUN_0002a7b0") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (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")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)xmalloc(0x24);\n  uVar2 = xstrdup(param_2);\n  puVar1[5] = 0;\n  puVar1[1] = uVar2;\n  puVar1[2] = param_3;\n  puVar1[4] = param_4;\n  puVar1[6] = 0;\n  puVar1[3] = param_5;\n  uVar2 = *param_1;\n  puVar1[7] = 0;\n  *puVar1 = uVar2;\n  *param_1 = puVar1;\n  puVar1[8] = 0;\n  return 1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x24);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x24)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x24)" (identifier "xmalloc") (argument_list "(0x24)" (( "(") (number_literal "0x24") () ")"))))) (; ";")) (expression_statement "uVar2 = xstrdup(param_2);" (assignment_expression "uVar2 = xstrdup(param_2)" (identifier "uVar2") (= "=") (call_expression "xstrdup(param_2)" (identifier "xstrdup") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = uVar2;" (assignment_expression "puVar1[1] = uVar2" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (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] = param_4;" (assignment_expression "puVar1[4] = param_4" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar1[6] = 0;" (assignment_expression "puVar1[6] = 0" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar1[7] = 0;" (assignment_expression "puVar1[7] = 0" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar1[8] = 0;" (assignment_expression "puVar1[8] = 0" (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(type_2 *info,char *string,long tindex,type_1 definition,type_3 size)

{
  type_4 *pbVar1;
  type_4 *pbVar2;
  type_5 *pbVar3;
  
  pbVar2 = (type_4 *)var_1(0x24);
  pbVar3 = (type_5 *)var_2(string);
  pbVar2->lru_next = (type_4 *)0x0;
  pbVar2->xvec = pbVar3;
  pbVar2->iostream = (void *)tindex;
  pbVar2->lru_prev = (type_4 *)definition;
  *(type_6 *)&pbVar2->where = 0;
  pbVar2->iovec = (type_7 *)size;
  pbVar1 = info->abfd;
  *(type_6 *)((int)&pbVar2->where + 4) = 0;
  pbVar2->filename = (char *)pbVar1;
  info->abfd = pbVar2;
  pbVar2->mtime = 0;
  return 1;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))))

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

undefined4 __regparm3
MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)xmalloc(0x24);
  uVar2 = xstrdup(param_2);
  puVar1[5] = 0;
  puVar1[1] = uVar2;
  puVar1[2] = param_3;
  puVar1[4] = param_4;
  puVar1[6] = 0;
  puVar1[3] = param_5;
  uVar2 = *param_1;
  puVar1[7] = 0;
  *puVar1 = uVar2;
  *param_1 = puVar1;
  puVar1[8] = 0;
  return 1;
}

