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

void parse_long_options(int argc,char **argv,char *command_name,char *package,char *version,
                       _func_void_int *usage_func,...)

{
  int iVar1;
  int iVar2;
  
  iVar1 = rpl_opterr;
  rpl_opterr = 0;
  if (argc == 2) {
    iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0);
    if (iVar2 != -1) {
      if (iVar2 == 0x68) {
        (*usage_func)(0);
      }
      else if (iVar2 == 0x76) {
        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);
                    /* WARNING: Subroutine does not return */
        exit(0);
      }
    }
  }
  rpl_opterr = iVar1;
  rpl_optind = 0;
  return;
}



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

void FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,code *param_6)

{
  undefined4 uVar1;
  int iVar2;
  
  uVar1 = DAT_0001b144;
  DAT_0001b144 = 0;
  if (param_1 == 2) {
    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);
    if (iVar2 != -1) {
      if (iVar2 == 0x68) {
        (*param_6)(0);
      }
      else if (iVar2 == 0x76) {
        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);
                    /* WARNING: Subroutine does not return */
        exit(0);
      }
    }
  }
  DAT_0001b144 = uVar1;
  DAT_0001b148 = 0;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011540
ADD EBX,0x9108
CMP dword ptr [ESP + 0x10],0x2
LEA ESI,[EBX + 0x144]
MOV EDI,dword ptr [ESI]
MOV dword ptr [ESI],0x0
JZ 0x00011f28
LEA EAX,[EBX + 0x148]
MOV dword ptr [ESI],EDI
MOV dword ptr [EAX],0x0
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffffe80]
PUSH 0x0
PUSH EAX
LEA EAX,[EBX + 0xffffb6bc]
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
PUSH 0x2
CALL 0x00015790
ADD ESP,0x20
CMP EAX,-0x1
JZ 0x00011f13
CMP EAX,0x68
JZ 0x00011f88
CMP EAX,0x76
JNZ 0x00011f13
LEA EAX,[ESP + 0x28]
SUB ESP,0xc
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffd4]
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [EAX]
CALL 0x00014410
ADD ESP,0x14
PUSH 0x0
CALL 0x000111b0
SUB ESP,0xc
PUSH 0x0
CALL dword ptr [ESP + 0x34]
ADD ESP,0x10
JMP 0x00011f13
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)" ( (parameter_declaration "int param_1" primitive_type 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) , (parameter_declaration "code *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = DAT_0001b144;" (assignment_expression "uVar1 = DAT_0001b144" identifier = identifier) ;) (expression_statement "DAT_0001b144 = 0;" (assignment_expression "DAT_0001b144 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);" (assignment_expression "iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" identifier = (call_expression "FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" identifier (argument_list "(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" ( number_literal , identifier , (pointer_expression "&DAT_000166bc" & identifier) , (pointer_expression "&PTR_DAT_0001ae80" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }" { (if_statement "if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" if (parenthesized_expression "(iVar2 == 0x68)" ( (binary_expression "iVar2 == 0x68" identifier == number_literal) )) (compound_statement "{\n        (*param_6)(0);\n      }" { (expression_statement "(*param_6)(0);" (call_expression "(*param_6)(0)" (parenthesized_expression "(*param_6)" ( (pointer_expression "*param_6" * identifier) )) (argument_list "(0)" ( number_literal ))) ;) }) (else_clause "else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" else (if_statement "if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" if (parenthesized_expression "(iVar2 == 0x76)" ( (binary_expression "iVar2 == 0x76" identifier == number_literal) )) (compound_statement "{\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" { (expression_statement "FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);" (call_expression "FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c)" identifier (argument_list "(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c)" ( (pointer_expression "*(undefined4 *)PTR_stdout_0001afd4" * (cast_expression "(undefined4 *)PTR_stdout_0001afd4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier , identifier , (pointer_expression "&stack0x0000001c" & identifier) ))) ;) comment (expression_statement "exit(0);" (call_expression "exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })))) })) })) (expression_statement "DAT_0001b144 = uVar1;" (assignment_expression "DAT_0001b144 = uVar1" identifier = identifier) ;) (expression_statement "DAT_0001b148 = 0;" (assignment_expression "DAT_0001b148 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid parse_long_options(int argc,char **argv,char *command_name,char *package,char *version,\n                       _func_void_int *usage_func,...)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = rpl_opterr;\n  rpl_opterr = 0;\n  if (argc == 2) {\n    iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }\n  rpl_opterr = iVar1;\n  rpl_optind = 0;\n  return;\n}\n\n" comment comment (function_definition "void parse_long_options(int argc,char **argv,char *command_name,char *package,char *version,\n                       _func_void_int *usage_func,...)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = rpl_opterr;\n  rpl_opterr = 0;\n  if (argc == 2) {\n    iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }\n  rpl_opterr = iVar1;\n  rpl_optind = 0;\n  return;\n}" primitive_type (function_declarator "parse_long_options(int argc,char **argv,char *command_name,char *package,char *version,\n                       _func_void_int *usage_func,...)" identifier (parameter_list "(int argc,char **argv,char *command_name,char *package,char *version,\n                       _func_void_int *usage_func,...)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * 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 "_func_void_int *usage_func" type_identifier (pointer_declarator "*usage_func" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = rpl_opterr;\n  rpl_opterr = 0;\n  if (argc == 2) {\n    iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }\n  rpl_opterr = iVar1;\n  rpl_optind = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = rpl_opterr;" (assignment_expression "iVar1 = rpl_opterr" identifier = identifier) ;) (expression_statement "rpl_opterr = 0;" (assignment_expression "rpl_opterr = 0" identifier = number_literal) ;) (if_statement "if (argc == 2) {\n    iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }" if (parenthesized_expression "(argc == 2)" ( (binary_expression "argc == 2" identifier == number_literal) )) (compound_statement "{\n    iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }\n  }" { (expression_statement "iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0);" (assignment_expression "iVar2 = rpl_getopt_long(2,argv,"+",long_options,(int *)0x0)" identifier = (call_expression "rpl_getopt_long(2,argv,"+",long_options,(int *)0x0)" identifier (argument_list "(2,argv,"+",long_options,(int *)0x0)" ( number_literal , identifier , (string_literal ""+"" " string_content ") , identifier , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n      if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }\n    }" { (if_statement "if (iVar2 == 0x68) {\n        (*usage_func)(0);\n      }\n      else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" if (parenthesized_expression "(iVar2 == 0x68)" ( (binary_expression "iVar2 == 0x68" identifier == number_literal) )) (compound_statement "{\n        (*usage_func)(0);\n      }" { (expression_statement "(*usage_func)(0);" (call_expression "(*usage_func)(0)" (parenthesized_expression "(*usage_func)" ( (pointer_expression "*usage_func" * identifier) )) (argument_list "(0)" ( number_literal ))) ;) }) (else_clause "else if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" else (if_statement "if (iVar2 == 0x76) {\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" if (parenthesized_expression "(iVar2 == 0x76)" ( (binary_expression "iVar2 == 0x76" identifier == number_literal) )) (compound_statement "{\n        version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);\n                    /* WARNING: Subroutine does not return */\n        exit(0);\n      }" { (expression_statement "version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);" (call_expression "version_etc_va(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c)" identifier (argument_list "(*(FILE **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c)" ( (pointer_expression "*(FILE **)PTR_stdout_0001afd4" * (cast_expression "(FILE **)PTR_stdout_0001afd4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier , (pointer_expression "&stack0x0000001c" & identifier) ))) ;) comment (expression_statement "exit(0);" (call_expression "exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })))) })) })) (expression_statement "rpl_opterr = iVar1;" (assignment_expression "rpl_opterr = iVar1" identifier = identifier) ;) (expression_statement "rpl_optind = 0;" (assignment_expression "rpl_optind = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)" ( (parameter_declaration "int param_1" primitive_type 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) , (parameter_declaration "code *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = DAT_0001b144;" (assignment_expression "uVar1 = DAT_0001b144" identifier = identifier) ;) (expression_statement "DAT_0001b144 = 0;" (assignment_expression "DAT_0001b144 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);" (assignment_expression "iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" identifier = (call_expression "FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" identifier (argument_list "(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" ( number_literal , identifier , (pointer_expression "&DAT_000166bc" & identifier) , (pointer_expression "&PTR_DAT_0001ae80" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }" { (if_statement "if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" if (parenthesized_expression "(iVar2 == 0x68)" ( (binary_expression "iVar2 == 0x68" identifier == number_literal) )) (compound_statement "{\n        (*param_6)(0);\n      }" { (expression_statement "(*param_6)(0);" (call_expression "(*param_6)(0)" (parenthesized_expression "(*param_6)" ( (pointer_expression "*param_6" * identifier) )) (argument_list "(0)" ( number_literal ))) ;) }) (else_clause "else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" else (if_statement "if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" if (parenthesized_expression "(iVar2 == 0x76)" ( (binary_expression "iVar2 == 0x76" identifier == number_literal) )) (compound_statement "{\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" { (expression_statement "FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);" (call_expression "FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c)" identifier (argument_list "(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c)" ( (pointer_expression "*(undefined4 *)PTR_stdout_0001afd4" * (cast_expression "(undefined4 *)PTR_stdout_0001afd4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier , identifier , (pointer_expression "&stack0x0000001c" & identifier) ))) ;) (expression_statement "exit(0);" (call_expression "exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })))) })) })) (expression_statement "DAT_0001b144 = uVar1;" (assignment_expression "DAT_0001b144 = uVar1" identifier = identifier) ;) (expression_statement "DAT_0001b148 = 0;" (assignment_expression "DAT_0001b148 = 0" identifier = number_literal) ;) (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 IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( LIT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT , IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })))) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00011ef0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)" (identifier "FUN_00011ef0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,code *param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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")) (, ",") (parameter_declaration "code *param_6" (type_identifier "code") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = DAT_0001b144;\n  DAT_0001b144 = 0;\n  if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }\n  DAT_0001b144 = uVar1;\n  DAT_0001b148 = 0;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "uVar1 = DAT_0001b144;" (assignment_expression "uVar1 = DAT_0001b144" (identifier "uVar1") (= "=") (identifier "DAT_0001b144")) (; ";")) (expression_statement "DAT_0001b144 = 0;" (assignment_expression "DAT_0001b144 = 0" (identifier "DAT_0001b144") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 == 2) {\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 2)" (( "(") (binary_expression "param_1 == 2" (identifier "param_1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);\n    if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);" (assignment_expression "iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" (identifier "iVar2") (= "=") (call_expression "FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" (identifier "FUN_00015790") (argument_list "(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0)" (( "(") (number_literal "2") (, ",") (identifier "param_2") (, ",") (pointer_expression "&DAT_000166bc" (& "&") (identifier "DAT_000166bc")) (, ",") (pointer_expression "&PTR_DAT_0001ae80" (& "&") (identifier "PTR_DAT_0001ae80")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != -1) {\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }\n    }" ({ "{") (if_statement "if (iVar2 == 0x68) {\n        (*param_6)(0);\n      }\n      else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" (if "if") (parenthesized_expression "(iVar2 == 0x68)" (( "(") (binary_expression "iVar2 == 0x68" (identifier "iVar2") (== "==") (number_literal "0x68")) () ")")) (compound_statement "{\n        (*param_6)(0);\n      }" ({ "{") (expression_statement "(*param_6)(0);" (call_expression "(*param_6)(0)" (parenthesized_expression "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" (else "else") (if_statement "if (iVar2 == 0x76) {\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" (if "if") (parenthesized_expression "(iVar2 == 0x76)" (( "(") (binary_expression "iVar2 == 0x76" (identifier "iVar2") (== "==") (number_literal "0x76")) () ")")) (compound_statement "{\n        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);\n                    \n        exit(0);\n      }" ({ "{") (expression_statement "FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);" (call_expression "FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c)" (identifier "FUN_00014410") (argument_list "(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c)" (( "(") (pointer_expression "*(undefined4 *)PTR_stdout_0001afd4" (* "*") (cast_expression "(undefined4 *)PTR_stdout_0001afd4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_0001afd4"))) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (pointer_expression "&stack0x0000001c" (& "&") (identifier "stack0x0000001c")) () ")"))) (; ";")) (expression_statement "exit(0);" (call_expression "exit(0)" (identifier "exit") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}"))))) (} "}"))) (} "}"))) (expression_statement "DAT_0001b144 = uVar1;" (assignment_expression "DAT_0001b144 = uVar1" (identifier "DAT_0001b144") (= "=") (identifier "uVar1")) (; ";")) (expression_statement "DAT_0001b148 = 0;" (assignment_expression "DAT_0001b148 = 0" (identifier "DAT_0001b148") (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int var_1,char **argv,char *command_name,char *package,char *version,
                       type_1 *usage_func,...)

{
  int iVar1;
  int var_3;
  
  iVar1 = rpl_opterr;
  rpl_opterr = 0;
  if (var_1 == 2) {
    var_3 = var_2(2,argv,"+",long_options,(int *)0x0);
    if (var_3 != -1) {
      if (var_3 == 0x68) {
        (*usage_func)(0);
      }
      else if (var_3 == 0x76) {
        var_4(*(type_2 **)PTR_stdout_0001afd4,command_name,package,version,&stack0x0000001c);
                    /* WARNING: Subroutine does not return */
        var_5(0);
      }
    }
  }
  rpl_opterr = iVar1;
  rpl_optind = 0;
  return;
}


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

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

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

{
  undefined4 uVar1;
  int iVar2;
  
  uVar1 = DAT_0001b144;
  DAT_0001b144 = 0;
  if (param_1 == 2) {
    iVar2 = FUN_00015790(2,param_2,&DAT_000166bc,&PTR_DAT_0001ae80,0);
    if (iVar2 != -1) {
      if (iVar2 == 0x68) {
        (*param_6)(0);
      }
      else if (iVar2 == 0x76) {
        FUN_00014410(*(undefined4 *)PTR_stdout_0001afd4,param_3,param_4,param_5,&stack0x0000001c);
                    /* WARNING: Subroutine does not return */
        exit(0);
      }
    }
  }
  DAT_0001b144 = uVar1;
  DAT_0001b148 = 0;
  return;
}

