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

int rpl_getopt_internal(int argc,char **argv,char *optstring,rpl_option *longopts,int *longind,
                       int long_only,int posixly_correct)

{
  int iVar1;
  
  getopt_data.rpl_optind = rpl_optind;
  getopt_data.rpl_opterr = rpl_opterr;
  iVar1 = _getopt_internal_r(argc,argv,optstring,longopts,longind,long_only,&getopt_data,
                             posixly_correct);
  rpl_optind = getopt_data.rpl_optind;
  rpl_optarg = getopt_data.rpl_optarg;
  rpl_optopt = getopt_data.rpl_optopt;
  return iVar1;
}



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

void FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  DAT_00026380 = DAT_000261e8;
  DAT_00026384 = DAT_000261e4;
  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);
  DAT_000261e8 = DAT_00026380;
  DAT_000263a4 = DAT_0002638c;
  DAT_000261e0 = DAT_00026388;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00012ee0
ADD EBX,0xa4c9
SUB ESP,0x4
LEA ESI,[EBX + 0x1e8]
MOV EAX,dword ptr [ESI]
MOV dword ptr [EBX + 0x380],EAX
LEA EAX,[EBX + 0x1e4]
MOV EAX,dword ptr [EAX]
PUSH dword ptr [ESP + 0x28]
MOV dword ptr [EBX + 0x384],EAX
LEA EAX,[EBX + 0x380]
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001b540
MOV EDX,dword ptr [EBX + 0x380]
MOV ECX,dword ptr [EBX + 0x38c]
MOV dword ptr [ESI],EDX
LEA EDX,[EBX + 0x3a4]
MOV dword ptr [EDX],ECX
LEA EDX,[EBX + 0x1e0]
MOV ECX,dword ptr [EBX + 0x388]
MOV dword ptr [EDX],ECX
ADD ESP,0x24
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}\n\n" comment (function_definition "void FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}" primitive_type (function_declarator "FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (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 "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}" { (expression_statement "DAT_00026380 = DAT_000261e8;" (assignment_expression "DAT_00026380 = DAT_000261e8" identifier = identifier) ;) (expression_statement "DAT_00026384 = DAT_000261e4;" (assignment_expression "DAT_00026384 = DAT_000261e4" identifier = identifier) ;) (expression_statement "FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);" (call_expression "FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7)" ( identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&DAT_00026380" & identifier) , identifier ))) ;) (expression_statement "DAT_000261e8 = DAT_00026380;" (assignment_expression "DAT_000261e8 = DAT_00026380" identifier = identifier) ;) (expression_statement "DAT_000263a4 = DAT_0002638c;" (assignment_expression "DAT_000263a4 = DAT_0002638c" identifier = identifier) ;) (expression_statement "DAT_000261e0 = DAT_00026388;" (assignment_expression "DAT_000261e0 = DAT_00026388" 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\nint rpl_getopt_internal(int argc,char **argv,char *optstring,rpl_option *longopts,int *longind,\n                       int long_only,int posixly_correct)\n\n{\n  int iVar1;\n  \n  getopt_data.rpl_optind = rpl_optind;\n  getopt_data.rpl_opterr = rpl_opterr;\n  iVar1 = _getopt_internal_r(argc,argv,optstring,longopts,longind,long_only,&getopt_data,\n                             posixly_correct);\n  rpl_optind = getopt_data.rpl_optind;\n  rpl_optarg = getopt_data.rpl_optarg;\n  rpl_optopt = getopt_data.rpl_optopt;\n  return iVar1;\n}\n\n" comment comment (function_definition "int rpl_getopt_internal(int argc,char **argv,char *optstring,rpl_option *longopts,int *longind,\n                       int long_only,int posixly_correct)\n\n{\n  int iVar1;\n  \n  getopt_data.rpl_optind = rpl_optind;\n  getopt_data.rpl_opterr = rpl_opterr;\n  iVar1 = _getopt_internal_r(argc,argv,optstring,longopts,longind,long_only,&getopt_data,\n                             posixly_correct);\n  rpl_optind = getopt_data.rpl_optind;\n  rpl_optarg = getopt_data.rpl_optarg;\n  rpl_optopt = getopt_data.rpl_optopt;\n  return iVar1;\n}" primitive_type (function_declarator "rpl_getopt_internal(int argc,char **argv,char *optstring,rpl_option *longopts,int *longind,\n                       int long_only,int posixly_correct)" identifier (parameter_list "(int argc,char **argv,char *optstring,rpl_option *longopts,int *longind,\n                       int long_only,int posixly_correct)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) , (parameter_declaration "char *optstring" primitive_type (pointer_declarator "*optstring" * identifier)) , (parameter_declaration "rpl_option *longopts" type_identifier (pointer_declarator "*longopts" * identifier)) , (parameter_declaration "int *longind" primitive_type (pointer_declarator "*longind" * identifier)) , (parameter_declaration "int long_only" primitive_type identifier) , (parameter_declaration "int posixly_correct" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  getopt_data.rpl_optind = rpl_optind;\n  getopt_data.rpl_opterr = rpl_opterr;\n  iVar1 = _getopt_internal_r(argc,argv,optstring,longopts,longind,long_only,&getopt_data,\n                             posixly_correct);\n  rpl_optind = getopt_data.rpl_optind;\n  rpl_optarg = getopt_data.rpl_optarg;\n  rpl_optopt = getopt_data.rpl_optopt;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "getopt_data.rpl_optind = rpl_optind;" (assignment_expression "getopt_data.rpl_optind = rpl_optind" (field_expression "getopt_data.rpl_optind" identifier . field_identifier) = identifier) ;) (expression_statement "getopt_data.rpl_opterr = rpl_opterr;" (assignment_expression "getopt_data.rpl_opterr = rpl_opterr" (field_expression "getopt_data.rpl_opterr" identifier . field_identifier) = identifier) ;) (expression_statement "iVar1 = _getopt_internal_r(argc,argv,optstring,longopts,longind,long_only,&getopt_data,\n                             posixly_correct);" (assignment_expression "iVar1 = _getopt_internal_r(argc,argv,optstring,longopts,longind,long_only,&getopt_data,\n                             posixly_correct)" identifier = (call_expression "_getopt_internal_r(argc,argv,optstring,longopts,longind,long_only,&getopt_data,\n                             posixly_correct)" identifier (argument_list "(argc,argv,optstring,longopts,longind,long_only,&getopt_data,\n                             posixly_correct)" ( identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&getopt_data" & identifier) , identifier )))) ;) (expression_statement "rpl_optind = getopt_data.rpl_optind;" (assignment_expression "rpl_optind = getopt_data.rpl_optind" identifier = (field_expression "getopt_data.rpl_optind" identifier . field_identifier)) ;) (expression_statement "rpl_optarg = getopt_data.rpl_optarg;" (assignment_expression "rpl_optarg = getopt_data.rpl_optarg" identifier = (field_expression "getopt_data.rpl_optarg" identifier . field_identifier)) ;) (expression_statement "rpl_optopt = getopt_data.rpl_optopt;" (assignment_expression "rpl_optopt = getopt_data.rpl_optopt" identifier = (field_expression "getopt_data.rpl_optopt" identifier . field_identifier)) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}\n\n" (function_definition "void FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}" primitive_type (function_declarator "FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (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 "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}" { (expression_statement "DAT_00026380 = DAT_000261e8;" (assignment_expression "DAT_00026380 = DAT_000261e8" identifier = identifier) ;) (expression_statement "DAT_00026384 = DAT_000261e4;" (assignment_expression "DAT_00026384 = DAT_000261e4" identifier = identifier) ;) (expression_statement "FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);" (call_expression "FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7)" ( identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&DAT_00026380" & identifier) , identifier ))) ;) (expression_statement "DAT_000261e8 = DAT_00026380;" (assignment_expression "DAT_000261e8 = DAT_00026380" identifier = identifier) ;) (expression_statement "DAT_000263a4 = DAT_0002638c;" (assignment_expression "DAT_000263a4 = DAT_0002638c" identifier = identifier) ;) (expression_statement "DAT_000261e0 = DAT_00026388;" (assignment_expression "DAT_000261e0 = DAT_00026388" 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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001bb30(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" (identifier "FUN_0001bb30") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" (( "(") (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 "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) () ")"))) (compound_statement "{\n  DAT_00026380 = DAT_000261e8;\n  DAT_00026384 = DAT_000261e4;\n  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);\n  DAT_000261e8 = DAT_00026380;\n  DAT_000263a4 = DAT_0002638c;\n  DAT_000261e0 = DAT_00026388;\n  return;\n}" ({ "{") (expression_statement "DAT_00026380 = DAT_000261e8;" (assignment_expression "DAT_00026380 = DAT_000261e8" (identifier "DAT_00026380") (= "=") (identifier "DAT_000261e8")) (; ";")) (expression_statement "DAT_00026384 = DAT_000261e4;" (assignment_expression "DAT_00026384 = DAT_000261e4" (identifier "DAT_00026384") (= "=") (identifier "DAT_000261e4")) (; ";")) (expression_statement "FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);" (call_expression "FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7)" (identifier "FUN_0001b540") (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (pointer_expression "&DAT_00026380" (& "&") (identifier "DAT_00026380")) (, ",") (identifier "param_7") () ")"))) (; ";")) (expression_statement "DAT_000261e8 = DAT_00026380;" (assignment_expression "DAT_000261e8 = DAT_00026380" (identifier "DAT_000261e8") (= "=") (identifier "DAT_00026380")) (; ";")) (expression_statement "DAT_000263a4 = DAT_0002638c;" (assignment_expression "DAT_000263a4 = DAT_0002638c" (identifier "DAT_000263a4") (= "=") (identifier "DAT_0002638c")) (; ";")) (expression_statement "DAT_000261e0 = DAT_00026388;" (assignment_expression "DAT_000261e0 = DAT_00026388" (identifier "DAT_000261e0") (= "=") (identifier "DAT_00026388")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int function_1(int argc,char **argv,char *optstring,type_1 *longopts,int *longind,
                       int long_only,int posixly_correct)

{
  int iVar1;
  
  getopt_data.rpl_optind = rpl_optind;
  getopt_data.rpl_opterr = rpl_opterr;
  iVar1 = var_1(argc,argv,optstring,longopts,longind,long_only,&getopt_data,
                             posixly_correct);
  rpl_optind = getopt_data.rpl_optind;
  rpl_optarg = getopt_data.rpl_optarg;
  rpl_optopt = getopt_data.rpl_optopt;
  return iVar1;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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,
                 undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  DAT_00026380 = DAT_000261e8;
  DAT_00026384 = DAT_000261e4;
  FUN_0001b540(param_1,param_2,param_3,param_4,param_5,param_6,&DAT_00026380,param_7);
  DAT_000261e8 = DAT_00026380;
  DAT_000263a4 = DAT_0002638c;
  DAT_000261e0 = DAT_00026388;
  return;
}

