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

fxp_name * fxp_dup_name(fxp_name *name)

{
  fxp_name *pfVar1;
  char *pcVar2;
  
  pfVar1 = (fxp_name *)safemalloc(1,0x28);
  pcVar2 = dupstr(name->filename);
  pfVar1->filename = pcVar2;
  pcVar2 = dupstr(name->longname);
  pfVar1->longname = pcVar2;
  (pfVar1->attrs).flags = (name->attrs).flags;
  (pfVar1->attrs).size.hi = (name->attrs).size.hi;
  (pfVar1->attrs).size.lo = (name->attrs).size.lo;
  (pfVar1->attrs).uid = (name->attrs).uid;
  (pfVar1->attrs).gid = (name->attrs).gid;
  (pfVar1->attrs).permissions = (name->attrs).permissions;
  (pfVar1->attrs).atime = (name->attrs).atime;
  (pfVar1->attrs).mtime = (name->attrs).mtime;
  return pfVar1;
}



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

undefined4 * FUN_0002a630(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);
  uVar2 = FUN_0001aac0(*param_1);
  *puVar1 = uVar2;
  uVar2 = FUN_0001aac0(param_1[1]);
  puVar1[1] = uVar2;
  puVar1[2] = param_1[2];
  puVar1[3] = param_1[3];
  puVar1[4] = param_1[4];
  puVar1[5] = param_1[5];
  puVar1[6] = param_1[6];
  puVar1[7] = param_1[7];
  puVar1[8] = param_1[8];
  puVar1[9] = param_1[9];
  return puVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00014970
ADD EBX,0x7f754
SUB ESP,0x8
PUSH 0x28
PUSH 0x1
CALL 0x0001a9b0
MOV ESI,EAX
POP EAX
PUSH dword ptr [EDI]
CALL 0x0001aac0
MOV dword ptr [ESI],EAX
POP EDX
PUSH dword ptr [EDI + 0x4]
CALL 0x0001aac0
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EDI + 0x8]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EDI + 0xc]
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [EDI + 0x10]
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [EDI + 0x14]
MOV dword ptr [ESI + 0x14],EAX
MOV EAX,dword ptr [EDI + 0x18]
MOV dword ptr [ESI + 0x18],EAX
MOV EAX,dword ptr [EDI + 0x1c]
MOV dword ptr [ESI + 0x1c],EAX
MOV EAX,dword ptr [EDI + 0x20]
MOV dword ptr [ESI + 0x20],EAX
MOV EAX,dword ptr [EDI + 0x24]
MOV dword ptr [ESI + 0x24],EAX
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0002a630(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}\n\n" comment (function_definition "undefined4 * FUN_0002a630(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0002a630(undefined4 *param_1)" * (function_declarator "FUN_0002a630(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28)" identifier = (cast_expression "(undefined4 *)FUN_0001a9b0(1,0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(1,0x28)" identifier (argument_list "(1,0x28)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar2 = FUN_0001aac0(*param_1);" (assignment_expression "uVar2 = FUN_0001aac0(*param_1)" identifier = (call_expression "FUN_0001aac0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = FUN_0001aac0(param_1[1]);" (assignment_expression "uVar2 = FUN_0001aac0(param_1[1])" identifier = (call_expression "FUN_0001aac0(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ 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_1[2];" (assignment_expression "puVar1[2] = param_1[2]" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "puVar1[3] = param_1[3];" (assignment_expression "puVar1[3] = param_1[3]" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "puVar1[4] = param_1[4];" (assignment_expression "puVar1[4] = param_1[4]" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "puVar1[5] = param_1[5];" (assignment_expression "puVar1[5] = param_1[5]" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "puVar1[6] = param_1[6];" (assignment_expression "puVar1[6] = param_1[6]" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "puVar1[7] = param_1[7];" (assignment_expression "puVar1[7] = param_1[7]" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "puVar1[8] = param_1[8];" (assignment_expression "puVar1[8] = param_1[8]" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (expression_statement "puVar1[9] = param_1[9];" (assignment_expression "puVar1[9] = param_1[9]" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ 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\nfxp_name * fxp_dup_name(fxp_name *name)\n\n{\n  fxp_name *pfVar1;\n  char *pcVar2;\n  \n  pfVar1 = (fxp_name *)safemalloc(1,0x28);\n  pcVar2 = dupstr(name->filename);\n  pfVar1->filename = pcVar2;\n  pcVar2 = dupstr(name->longname);\n  pfVar1->longname = pcVar2;\n  (pfVar1->attrs).flags = (name->attrs).flags;\n  (pfVar1->attrs).size.hi = (name->attrs).size.hi;\n  (pfVar1->attrs).size.lo = (name->attrs).size.lo;\n  (pfVar1->attrs).uid = (name->attrs).uid;\n  (pfVar1->attrs).gid = (name->attrs).gid;\n  (pfVar1->attrs).permissions = (name->attrs).permissions;\n  (pfVar1->attrs).atime = (name->attrs).atime;\n  (pfVar1->attrs).mtime = (name->attrs).mtime;\n  return pfVar1;\n}\n\n" comment comment (function_definition "fxp_name * fxp_dup_name(fxp_name *name)\n\n{\n  fxp_name *pfVar1;\n  char *pcVar2;\n  \n  pfVar1 = (fxp_name *)safemalloc(1,0x28);\n  pcVar2 = dupstr(name->filename);\n  pfVar1->filename = pcVar2;\n  pcVar2 = dupstr(name->longname);\n  pfVar1->longname = pcVar2;\n  (pfVar1->attrs).flags = (name->attrs).flags;\n  (pfVar1->attrs).size.hi = (name->attrs).size.hi;\n  (pfVar1->attrs).size.lo = (name->attrs).size.lo;\n  (pfVar1->attrs).uid = (name->attrs).uid;\n  (pfVar1->attrs).gid = (name->attrs).gid;\n  (pfVar1->attrs).permissions = (name->attrs).permissions;\n  (pfVar1->attrs).atime = (name->attrs).atime;\n  (pfVar1->attrs).mtime = (name->attrs).mtime;\n  return pfVar1;\n}" type_identifier (pointer_declarator "* fxp_dup_name(fxp_name *name)" * (function_declarator "fxp_dup_name(fxp_name *name)" identifier (parameter_list "(fxp_name *name)" ( (parameter_declaration "fxp_name *name" type_identifier (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  fxp_name *pfVar1;\n  char *pcVar2;\n  \n  pfVar1 = (fxp_name *)safemalloc(1,0x28);\n  pcVar2 = dupstr(name->filename);\n  pfVar1->filename = pcVar2;\n  pcVar2 = dupstr(name->longname);\n  pfVar1->longname = pcVar2;\n  (pfVar1->attrs).flags = (name->attrs).flags;\n  (pfVar1->attrs).size.hi = (name->attrs).size.hi;\n  (pfVar1->attrs).size.lo = (name->attrs).size.lo;\n  (pfVar1->attrs).uid = (name->attrs).uid;\n  (pfVar1->attrs).gid = (name->attrs).gid;\n  (pfVar1->attrs).permissions = (name->attrs).permissions;\n  (pfVar1->attrs).atime = (name->attrs).atime;\n  (pfVar1->attrs).mtime = (name->attrs).mtime;\n  return pfVar1;\n}" { (declaration "fxp_name *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pfVar1 = (fxp_name *)safemalloc(1,0x28);" (assignment_expression "pfVar1 = (fxp_name *)safemalloc(1,0x28)" identifier = (cast_expression "(fxp_name *)safemalloc(1,0x28)" ( (type_descriptor "fxp_name *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x28)" identifier (argument_list "(1,0x28)" ( number_literal , number_literal ))))) ;) (expression_statement "pcVar2 = dupstr(name->filename);" (assignment_expression "pcVar2 = dupstr(name->filename)" identifier = (call_expression "dupstr(name->filename)" identifier (argument_list "(name->filename)" ( (field_expression "name->filename" identifier -> field_identifier) )))) ;) (expression_statement "pfVar1->filename = pcVar2;" (assignment_expression "pfVar1->filename = pcVar2" (field_expression "pfVar1->filename" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar2 = dupstr(name->longname);" (assignment_expression "pcVar2 = dupstr(name->longname)" identifier = (call_expression "dupstr(name->longname)" identifier (argument_list "(name->longname)" ( (field_expression "name->longname" identifier -> field_identifier) )))) ;) (expression_statement "pfVar1->longname = pcVar2;" (assignment_expression "pfVar1->longname = pcVar2" (field_expression "pfVar1->longname" identifier -> field_identifier) = identifier) ;) (expression_statement "(pfVar1->attrs).flags = (name->attrs).flags;" (assignment_expression "(pfVar1->attrs).flags = (name->attrs).flags" (field_expression "(pfVar1->attrs).flags" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) = (field_expression "(name->attrs).flags" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pfVar1->attrs).size.hi = (name->attrs).size.hi;" (assignment_expression "(pfVar1->attrs).size.hi = (name->attrs).size.hi" (field_expression "(pfVar1->attrs).size.hi" (field_expression "(pfVar1->attrs).size" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (field_expression "(name->attrs).size.hi" (field_expression "(name->attrs).size" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "(pfVar1->attrs).size.lo = (name->attrs).size.lo;" (assignment_expression "(pfVar1->attrs).size.lo = (name->attrs).size.lo" (field_expression "(pfVar1->attrs).size.lo" (field_expression "(pfVar1->attrs).size" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (field_expression "(name->attrs).size.lo" (field_expression "(name->attrs).size" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "(pfVar1->attrs).uid = (name->attrs).uid;" (assignment_expression "(pfVar1->attrs).uid = (name->attrs).uid" (field_expression "(pfVar1->attrs).uid" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) = (field_expression "(name->attrs).uid" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pfVar1->attrs).gid = (name->attrs).gid;" (assignment_expression "(pfVar1->attrs).gid = (name->attrs).gid" (field_expression "(pfVar1->attrs).gid" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) = (field_expression "(name->attrs).gid" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pfVar1->attrs).permissions = (name->attrs).permissions;" (assignment_expression "(pfVar1->attrs).permissions = (name->attrs).permissions" (field_expression "(pfVar1->attrs).permissions" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) = (field_expression "(name->attrs).permissions" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pfVar1->attrs).atime = (name->attrs).atime;" (assignment_expression "(pfVar1->attrs).atime = (name->attrs).atime" (field_expression "(pfVar1->attrs).atime" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) = (field_expression "(name->attrs).atime" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pfVar1->attrs).mtime = (name->attrs).mtime;" (assignment_expression "(pfVar1->attrs).mtime = (name->attrs).mtime" (field_expression "(pfVar1->attrs).mtime" (parenthesized_expression "(pfVar1->attrs)" ( (field_expression "pfVar1->attrs" identifier -> field_identifier) )) . field_identifier) = (field_expression "(name->attrs).mtime" (parenthesized_expression "(name->attrs)" ( (field_expression "name->attrs" identifier -> field_identifier) )) . field_identifier)) ;) (return_statement "return pfVar1;" return identifier ;) })))
(translation_unit "undefined4 * FUN_0002a630(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_0002a630(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0002a630(undefined4 *param_1)" * (function_declarator "FUN_0002a630(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28)" identifier = (cast_expression "(undefined4 *)FUN_0001a9b0(1,0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(1,0x28)" identifier (argument_list "(1,0x28)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar2 = FUN_0001aac0(*param_1);" (assignment_expression "uVar2 = FUN_0001aac0(*param_1)" identifier = (call_expression "FUN_0001aac0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = FUN_0001aac0(param_1[1]);" (assignment_expression "uVar2 = FUN_0001aac0(param_1[1])" identifier = (call_expression "FUN_0001aac0(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ 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_1[2];" (assignment_expression "puVar1[2] = param_1[2]" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "puVar1[3] = param_1[3];" (assignment_expression "puVar1[3] = param_1[3]" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "puVar1[4] = param_1[4];" (assignment_expression "puVar1[4] = param_1[4]" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "puVar1[5] = param_1[5];" (assignment_expression "puVar1[5] = param_1[5]" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "puVar1[6] = param_1[6];" (assignment_expression "puVar1[6] = param_1[6]" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "puVar1[7] = param_1[7];" (assignment_expression "puVar1[7] = param_1[7]" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "puVar1[8] = param_1[8];" (assignment_expression "puVar1[8] = param_1[8]" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (expression_statement "puVar1[9] = param_1[9];" (assignment_expression "puVar1[9] = param_1[9]" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0002a630(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0002a630(undefined4 *param_1)" (* "*") (function_declarator "FUN_0002a630(undefined4 *param_1)" (identifier "FUN_0002a630") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);\n  uVar2 = FUN_0001aac0(*param_1);\n  *puVar1 = uVar2;\n  uVar2 = FUN_0001aac0(param_1[1]);\n  puVar1[1] = uVar2;\n  puVar1[2] = param_1[2];\n  puVar1[3] = param_1[3];\n  puVar1[4] = param_1[4];\n  puVar1[5] = param_1[5];\n  puVar1[6] = param_1[6];\n  puVar1[7] = param_1[7];\n  puVar1[8] = param_1[8];\n  puVar1[9] = param_1[9];\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0001a9b0(1,0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a9b0(1,0x28)" (identifier "FUN_0001a9b0") (argument_list "(1,0x28)" (( "(") (number_literal "1") (, ",") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_0001aac0(*param_1);" (assignment_expression "uVar2 = FUN_0001aac0(*param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0001aac0(*param_1)" (identifier "FUN_0001aac0") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = FUN_0001aac0(param_1[1]);" (assignment_expression "uVar2 = FUN_0001aac0(param_1[1])" (identifier "uVar2") (= "=") (call_expression "FUN_0001aac0(param_1[1])" (identifier "FUN_0001aac0") (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (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_1[2];" (assignment_expression "puVar1[2] = param_1[2]" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar1[3] = param_1[3];" (assignment_expression "puVar1[3] = param_1[3]" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "puVar1[4] = param_1[4];" (assignment_expression "puVar1[4] = param_1[4]" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "puVar1[5] = param_1[5];" (assignment_expression "puVar1[5] = param_1[5]" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "puVar1[6] = param_1[6];" (assignment_expression "puVar1[6] = param_1[6]" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "puVar1[7] = param_1[7];" (assignment_expression "puVar1[7] = param_1[7]" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "puVar1[8] = param_1[8];" (assignment_expression "puVar1[8] = param_1[8]" (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "puVar1[9] = param_1[9];" (assignment_expression "puVar1[9] = param_1[9]" (subscript_expression "puVar1[9]" (identifier "puVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (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_1 *name)

{
  type_1 *pfVar1;
  char *pcVar2;
  
  pfVar1 = (type_1 *)var_1(1,0x28);
  pcVar2 = var_2(name->filename);
  pfVar1->filename = pcVar2;
  pcVar2 = var_2(name->longname);
  pfVar1->longname = pcVar2;
  (pfVar1->attrs).flags = (name->attrs).flags;
  (pfVar1->attrs).size.hi = (name->attrs).size.hi;
  (pfVar1->attrs).size.lo = (name->attrs).size.lo;
  (pfVar1->attrs).uid = (name->attrs).uid;
  (pfVar1->attrs).gid = (name->attrs).gid;
  (pfVar1->attrs).permissions = (name->attrs).permissions;
  (pfVar1->attrs).atime = (name->attrs).atime;
  (pfVar1->attrs).mtime = (name->attrs).mtime;
  return pfVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (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 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_0001a9b0(1,0x28);
  uVar2 = FUN_0001aac0(*param_1);
  *puVar1 = uVar2;
  uVar2 = FUN_0001aac0(param_1[1]);
  puVar1[1] = uVar2;
  puVar1[2] = param_1[2];
  puVar1[3] = param_1[3];
  puVar1[4] = param_1[4];
  puVar1[5] = param_1[5];
  puVar1[6] = param_1[6];
  puVar1[7] = param_1[7];
  puVar1[8] = param_1[8];
  puVar1[9] = param_1[9];
  return puVar1;
}

