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

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

{
  int iVar1;
  char *pcVar2;
  size_t n_authors;
  int in_GS_OFFSET;
  char *authtab [10];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  n_authors = 0;
  do {
    pcVar2 = *(char **)(authors + n_authors * 4);
    authtab[n_authors] = pcVar2;
    if (pcVar2 == (char *)0x0) break;
    n_authors = n_authors + 1;
  } while (n_authors != 10);
  version_etc_arn(stream,command_name,package,version,authtab,n_authors);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0001f020(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 int param_5)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  int local_48 [10];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1f029;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = 0;
  do {
    iVar1 = *(int *)(param_5 + iVar2 * 4);
    local_48[iVar2] = iVar1;
    if (iVar1 == 0) break;
    iVar2 = iVar2 + 1;
  } while (iVar2 != 10);
  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00026270();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012e10
ADD EBX,0x11fd7
SUB ESP,0x4c
MOV EAX,dword ptr [ESP + 0x60]
MOV EDI,dword ptr [ESP + 0x68]
LEA ECX,[ESP + 0x14]
MOV EBP,dword ptr [ESP + 0x6c]
MOV ESI,dword ptr [ESP + 0x70]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
NOP
MOV EDX,dword ptr [ESI + EAX*0x4]
MOV dword ptr [ECX + EAX*0x4],EDX
TEST EDX,EDX
JZ 0x0001f072
ADD EAX,0x1
CMP EAX,0xa
JNZ 0x0001f060
SUB ESP,0x8
PUSH EAX
PUSH ECX
PUSH EBP
PUSH EDI
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x24]
CALL 0x0001ec00
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x3c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001f09e
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00026270
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001f020(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  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00026270();\n}\n\n" comment (function_definition "void FUN_0001f020(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  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00026270();\n}" primitive_type (function_declarator "FUN_0001f020(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 identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00026270();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_48 [10];" primitive_type (array_declarator "local_48 [10]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1f029;" (assignment_expression "uStack_14 = 0x1f029" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);" do (compound_statement "{\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar1 = *(int *)(param_5 + iVar2 * 4);" (assignment_expression "iVar1 = *(int *)(param_5 + iVar2 * 4)" identifier = (pointer_expression "*(int *)(param_5 + iVar2 * 4)" * (cast_expression "(int *)(param_5 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + iVar2 * 4)" ( (binary_expression "param_5 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "local_48[iVar2] = iVar1;" (assignment_expression "local_48[iVar2] = iVar1" (subscript_expression "local_48[iVar2]" identifier [ identifier ]) = identifier) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 10)" ( (binary_expression "iVar2 != 10" identifier != number_literal) )) ;) (expression_statement "FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);" (call_expression "FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,local_48,iVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00026270();" (call_expression "FUN_00026270()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid version_etc_va(FILE *stream,char *command_name,char *package,char *version,va_list authors)\n\n{\n  int iVar1;\n  char *pcVar2;\n  size_t n_authors;\n  int in_GS_OFFSET;\n  char *authtab [10];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  n_authors = 0;\n  do {\n    pcVar2 = *(char **)(authors + n_authors * 4);\n    authtab[n_authors] = pcVar2;\n    if (pcVar2 == (char *)0x0) break;\n    n_authors = n_authors + 1;\n  } while (n_authors != 10);\n  version_etc_arn(stream,command_name,package,version,authtab,n_authors);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void version_etc_va(FILE *stream,char *command_name,char *package,char *version,va_list authors)\n\n{\n  int iVar1;\n  char *pcVar2;\n  size_t n_authors;\n  int in_GS_OFFSET;\n  char *authtab [10];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  n_authors = 0;\n  do {\n    pcVar2 = *(char **)(authors + n_authors * 4);\n    authtab[n_authors] = pcVar2;\n    if (pcVar2 == (char *)0x0) break;\n    n_authors = n_authors + 1;\n  } while (n_authors != 10);\n  version_etc_arn(stream,command_name,package,version,authtab,n_authors);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "version_etc_va(FILE *stream,char *command_name,char *package,char *version,va_list authors)" identifier (parameter_list "(FILE *stream,char *command_name,char *package,char *version,va_list 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 "va_list authors" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  size_t n_authors;\n  int in_GS_OFFSET;\n  char *authtab [10];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  n_authors = 0;\n  do {\n    pcVar2 = *(char **)(authors + n_authors * 4);\n    authtab[n_authors] = pcVar2;\n    if (pcVar2 == (char *)0x0) break;\n    n_authors = n_authors + 1;\n  } while (n_authors != 10);\n  version_etc_arn(stream,command_name,package,version,authtab,n_authors);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t n_authors;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *authtab [10];" primitive_type (pointer_declarator "*authtab [10]" * (array_declarator "authtab [10]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "n_authors = 0;" (assignment_expression "n_authors = 0" identifier = number_literal) ;) (do_statement "do {\n    pcVar2 = *(char **)(authors + n_authors * 4);\n    authtab[n_authors] = pcVar2;\n    if (pcVar2 == (char *)0x0) break;\n    n_authors = n_authors + 1;\n  } while (n_authors != 10);" do (compound_statement "{\n    pcVar2 = *(char **)(authors + n_authors * 4);\n    authtab[n_authors] = pcVar2;\n    if (pcVar2 == (char *)0x0) break;\n    n_authors = n_authors + 1;\n  }" { (expression_statement "pcVar2 = *(char **)(authors + n_authors * 4);" (assignment_expression "pcVar2 = *(char **)(authors + n_authors * 4)" identifier = (pointer_expression "*(char **)(authors + n_authors * 4)" * (cast_expression "(char **)(authors + n_authors * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(authors + n_authors * 4)" ( (binary_expression "authors + n_authors * 4" identifier + (binary_expression "n_authors * 4" identifier * number_literal)) ))))) ;) (expression_statement "authtab[n_authors] = pcVar2;" (assignment_expression "authtab[n_authors] = pcVar2" (subscript_expression "authtab[n_authors]" identifier [ identifier ]) = identifier) ;) (if_statement "if (pcVar2 == (char *)0x0) break;" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "n_authors = n_authors + 1;" (assignment_expression "n_authors = n_authors + 1" identifier = (binary_expression "n_authors + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(n_authors != 10)" ( (binary_expression "n_authors != 10" identifier != number_literal) )) ;) (expression_statement "version_etc_arn(stream,command_name,package,version,authtab,n_authors);" (call_expression "version_etc_arn(stream,command_name,package,version,authtab,n_authors)" identifier (argument_list "(stream,command_name,package,version,authtab,n_authors)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0001f020(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  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00026270();\n}\n\n" (function_definition "void FUN_0001f020(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  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00026270();\n}" primitive_type (function_declarator "FUN_0001f020(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 identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00026270();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_48 [10];" primitive_type (array_declarator "local_48 [10]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1f029;" (assignment_expression "uStack_14 = 0x1f029" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);" do (compound_statement "{\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar1 = *(int *)(param_5 + iVar2 * 4);" (assignment_expression "iVar1 = *(int *)(param_5 + iVar2 * 4)" identifier = (pointer_expression "*(int *)(param_5 + iVar2 * 4)" * (cast_expression "(int *)(param_5 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + iVar2 * 4)" ( (binary_expression "param_5 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "local_48[iVar2] = iVar1;" (assignment_expression "local_48[iVar2] = iVar1" (subscript_expression "local_48[iVar2]" identifier [ identifier ]) = identifier) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 10)" ( (binary_expression "iVar2 != 10" identifier != number_literal) )) ;) (expression_statement "FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);" (call_expression "FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2)" identifier (argument_list "(param_1,param_2,param_3,param_4,local_48,iVar2)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00026270();" (call_expression "FUN_00026270()" identifier (argument_list "()" ( ))) ;) })))
(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 IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0001f020(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  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00026270();\n}" (primitive_type "void") (function_declarator "FUN_0001f020(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5)" (identifier "FUN_0001f020") (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") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_48 [10];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = 0;\n  do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);\n  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00026270();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_48 [10];" (primitive_type "int") (array_declarator "local_48 [10]" (identifier "local_48") ([ "[") (number_literal "10") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1f029;" (assignment_expression "uStack_14 = 0x1f029" (identifier "uStack_14") (= "=") (number_literal "0x1f029")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 10);" (do "do") (compound_statement "{\n    iVar1 = *(int *)(param_5 + iVar2 * 4);\n    local_48[iVar2] = iVar1;\n    if (iVar1 == 0) break;\n    iVar2 = iVar2 + 1;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_5 + iVar2 * 4);" (assignment_expression "iVar1 = *(int *)(param_5 + iVar2 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_5 + iVar2 * 4)" (* "*") (cast_expression "(int *)(param_5 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + iVar2 * 4)" (( "(") (binary_expression "param_5 + iVar2 * 4" (identifier "param_5") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "local_48[iVar2] = iVar1;" (assignment_expression "local_48[iVar2] = iVar1" (subscript_expression "local_48[iVar2]" (identifier "local_48") ([ "[") (identifier "iVar2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 10)" (( "(") (binary_expression "iVar2 != 10" (identifier "iVar2") (!= "!=") (number_literal "10")) () ")")) (; ";")) (expression_statement "FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);" (call_expression "FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2)" (identifier "FUN_0001ec00") (argument_list "(param_1,param_2,param_3,param_4,local_48,iVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "local_48") (, ",") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00026270();" (call_expression "FUN_00026270()" (identifier "FUN_00026270") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

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

{
  int var_6;
  char *var_4;
  size_t var_3;
  int var_1;
  char *authtab [10];
  
  var_6 = *(int *)(var_1 + 0x14);
  var_3 = 0;
  do {
    var_4 = *(char **)(var_2 + var_3 * 4);
    authtab[var_3] = var_4;
    if (var_4 == (char *)0x0) break;
    var_3 = var_3 + 1;
  } while (var_3 != 10);
  var_5(stream,command_name,package,version,authtab,var_3);
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(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: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* 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;
  int in_GS_OFFSET;
  int local_48 [10];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1f029;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = 0;
  do {
    iVar1 = *(int *)(param_5 + iVar2 * 4);
    local_48[iVar2] = iVar1;
    if (iVar1 == 0) break;
    iVar2 = iVar2 + 1;
  } while (iVar2 != 10);
  FUN_0001ec00(param_1,param_2,param_3,param_4,local_48,iVar2);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00026270();
}

