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

void version_etc_ar(FILE *stream,char *command_name,char *package,char *version,char **authors)

{
  char *pcVar1;
  size_t n_authors;
  
  n_authors = 0;
  pcVar1 = *authors;
  while (pcVar1 != (char *)0x0) {
    n_authors = n_authors + 1;
    pcVar1 = authors[n_authors];
  }
  version_etc_arn(stream,command_name,package,version,authors,n_authors);
  return;
}



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

void FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 int *param_5)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  iVar1 = *param_5;
  while (iVar1 != 0) {
    iVar2 = iVar2 + 1;
    iVar1 = param_5[iVar2];
  }
  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);
  return;
}


PUSH EBX
XOR EAX,EAX
CALL 0x00012150
ADD EBX,0x84a8
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [EDX]
TEST ECX,ECX
JZ 0x00014b7a
LEA ESI,[ESI]
NOP
ADD EAX,0x1
MOV ECX,dword ptr [EDX + EAX*0x4]
TEST ECX,ECX
JNZ 0x00014b70
SUB ESP,0x8
PUSH EAX
PUSH EDX
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
CALL 0x00014780
ADD ESP,0x28
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}\n\n" comment (function_definition "void FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}" primitive_type (function_declarator "FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier 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 "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *param_5;" (assignment_expression "iVar1 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (while_statement "while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = param_5[iVar2];" (assignment_expression "iVar1 = param_5[iVar2]" identifier = (subscript_expression "param_5[iVar2]" identifier [ identifier ])) ;) })) (expression_statement "FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);" (call_expression "FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,iVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (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\nvoid version_etc_ar(FILE *stream,char *command_name,char *package,char *version,char **authors)\n\n{\n  char *pcVar1;\n  size_t n_authors;\n  \n  n_authors = 0;\n  pcVar1 = *authors;\n  while (pcVar1 != (char *)0x0) {\n    n_authors = n_authors + 1;\n    pcVar1 = authors[n_authors];\n  }\n  version_etc_arn(stream,command_name,package,version,authors,n_authors);\n  return;\n}\n\n" comment comment (function_definition "void version_etc_ar(FILE *stream,char *command_name,char *package,char *version,char **authors)\n\n{\n  char *pcVar1;\n  size_t n_authors;\n  \n  n_authors = 0;\n  pcVar1 = *authors;\n  while (pcVar1 != (char *)0x0) {\n    n_authors = n_authors + 1;\n    pcVar1 = authors[n_authors];\n  }\n  version_etc_arn(stream,command_name,package,version,authors,n_authors);\n  return;\n}" primitive_type (function_declarator "version_etc_ar(FILE *stream,char *command_name,char *package,char *version,char **authors)" identifier (parameter_list "(FILE *stream,char *command_name,char *package,char *version,char **authors)" ( (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) , (parameter_declaration "char *command_name" primitive_type (pointer_declarator "*command_name" * identifier)) , (parameter_declaration "char *package" primitive_type (pointer_declarator "*package" * identifier)) , (parameter_declaration "char *version" primitive_type (pointer_declarator "*version" * identifier)) , (parameter_declaration "char **authors" primitive_type (pointer_declarator "**authors" * (pointer_declarator "*authors" * identifier))) ))) (compound_statement "{\n  char *pcVar1;\n  size_t n_authors;\n  \n  n_authors = 0;\n  pcVar1 = *authors;\n  while (pcVar1 != (char *)0x0) {\n    n_authors = n_authors + 1;\n    pcVar1 = authors[n_authors];\n  }\n  version_etc_arn(stream,command_name,package,version,authors,n_authors);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t n_authors;" primitive_type identifier ;) (expression_statement "n_authors = 0;" (assignment_expression "n_authors = 0" identifier = number_literal) ;) (expression_statement "pcVar1 = *authors;" (assignment_expression "pcVar1 = *authors" identifier = (pointer_expression "*authors" * identifier)) ;) (while_statement "while (pcVar1 != (char *)0x0) {\n    n_authors = n_authors + 1;\n    pcVar1 = authors[n_authors];\n  }" while (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    n_authors = n_authors + 1;\n    pcVar1 = authors[n_authors];\n  }" { (expression_statement "n_authors = n_authors + 1;" (assignment_expression "n_authors = n_authors + 1" identifier = (binary_expression "n_authors + 1" identifier + number_literal)) ;) (expression_statement "pcVar1 = authors[n_authors];" (assignment_expression "pcVar1 = authors[n_authors]" identifier = (subscript_expression "authors[n_authors]" identifier [ identifier ])) ;) })) (expression_statement "version_etc_arn(stream,command_name,package,version,authors,n_authors);" (call_expression "version_etc_arn(stream,command_name,package,version,authors,n_authors)" identifier (argument_list "(stream,command_name,package,version,authors,n_authors)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}\n\n" (function_definition "void FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}" primitive_type (function_declarator "FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier 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 "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *param_5;" (assignment_expression "iVar1 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (while_statement "while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = param_5[iVar2];" (assignment_expression "iVar1 = param_5[iVar2]" identifier = (subscript_expression "param_5[iVar2]" identifier [ identifier ])) ;) })) (expression_statement "FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);" (call_expression "FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,iVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00014b50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)" (identifier "FUN_00014b50") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (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 "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  iVar1 = *param_5;\n  while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }\n  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *param_5;" (assignment_expression "iVar1 = *param_5" (identifier "iVar1") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (while_statement "while (iVar1 != 0) {\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = iVar2 + 1;\n    iVar1 = param_5[iVar2];\n  }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = param_5[iVar2];" (assignment_expression "iVar1 = param_5[iVar2]" (identifier "iVar1") (= "=") (subscript_expression "param_5[iVar2]" (identifier "param_5") ([ "[") (identifier "iVar2") (] "]"))) (; ";")) (} "}"))) (expression_statement "FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);" (call_expression "FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2)" (identifier "FUN_00014780") (argument_list "(param_1,param_2,param_3,param_4,param_5,iVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *stream,char *command_name,char *package,char *version,char **authors)

{
  char *var_1;
  size_t var_2;
  
  var_2 = 0;
  var_1 = *authors;
  while (var_1 != (char *)0x0) {
    var_2 = var_2 + 1;
    var_1 = authors[var_2];
  }
  var_3(stream,command_name,package,version,authors,var_2);
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 int *param_5)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  iVar1 = *param_5;
  while (iVar1 != 0) {
    iVar2 = iVar2 + 1;
    iVar1 = param_5[iVar2];
  }
  FUN_00014780(param_1,param_2,param_3,param_4,param_5,iVar2);
  return;
}

