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

size_t shell_quote_length(char *string)

{
  quoting_options *o;
  size_t argsize;
  size_t sVar1;
  
  if (sh_quoting_options == (quoting_options *)0x0) {
    init_sh_quoting_options();
  }
  o = sh_quoting_options;
  argsize = strlen(string);
  sVar1 = quotearg_buffer((char *)0x0,0,string,argsize,o);
  return sVar1;
}



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

void FUN_00022e80(char *param_1)

{
  int iVar1;
  size_t sVar2;
  
  if (DAT_0004d474 == 0) {
    FUN_00022e50();
  }
  iVar1 = DAT_0004d474;
  sVar2 = strlen(param_1);
  FUN_00039300(0,0,param_1,sVar2,iVar1);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00013b20
ADD EBX,0x2a174
MOV ESI,dword ptr [EBX + 0x474]
TEST ESI,ESI
JZ 0x00022ec0
SUB ESP,0xc
PUSH EDI
CALL 0x000123c0
MOV dword ptr [ESP],ESI
PUSH EAX
PUSH EDI
PUSH 0x0
PUSH 0x0
CALL 0x00039300
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
CALL 0x00022e50
MOV ESI,dword ptr [EBX + 0x474]
JMP 0x00022e9c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00022e80(char *param_1)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_00022e80(char *param_1)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00022e80(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }" if (parenthesized_expression "(DAT_0004d474 == 0)" ( (binary_expression "DAT_0004d474 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00022e50();\n  }" { (expression_statement "FUN_00022e50();" (call_expression "FUN_00022e50()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = DAT_0004d474;" (assignment_expression "iVar1 = DAT_0004d474" identifier = identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "FUN_00039300(0,0,param_1,sVar2,iVar1);" (call_expression "FUN_00039300(0,0,param_1,sVar2,iVar1)" identifier (argument_list "(0,0,param_1,sVar2,iVar1)" ( number_literal , number_literal , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsize_t shell_quote_length(char *string)\n\n{\n  quoting_options *o;\n  size_t argsize;\n  size_t sVar1;\n  \n  if (sh_quoting_options == (quoting_options *)0x0) {\n    init_sh_quoting_options();\n  }\n  o = sh_quoting_options;\n  argsize = strlen(string);\n  sVar1 = quotearg_buffer((char *)0x0,0,string,argsize,o);\n  return sVar1;\n}\n\n" comment (function_definition "size_t shell_quote_length(char *string)\n\n{\n  quoting_options *o;\n  size_t argsize;\n  size_t sVar1;\n  \n  if (sh_quoting_options == (quoting_options *)0x0) {\n    init_sh_quoting_options();\n  }\n  o = sh_quoting_options;\n  argsize = strlen(string);\n  sVar1 = quotearg_buffer((char *)0x0,0,string,argsize,o);\n  return sVar1;\n}" primitive_type (function_declarator "shell_quote_length(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  quoting_options *o;\n  size_t argsize;\n  size_t sVar1;\n  \n  if (sh_quoting_options == (quoting_options *)0x0) {\n    init_sh_quoting_options();\n  }\n  o = sh_quoting_options;\n  argsize = strlen(string);\n  sVar1 = quotearg_buffer((char *)0x0,0,string,argsize,o);\n  return sVar1;\n}" { (declaration "quoting_options *o;" type_identifier (pointer_declarator "*o" * identifier) ;) (declaration "size_t argsize;" primitive_type identifier ;) (declaration "size_t sVar1;" primitive_type identifier ;) (if_statement "if (sh_quoting_options == (quoting_options *)0x0) {\n    init_sh_quoting_options();\n  }" if (parenthesized_expression "(sh_quoting_options == (quoting_options *)0x0)" ( (binary_expression "sh_quoting_options == (quoting_options *)0x0" identifier == (cast_expression "(quoting_options *)0x0" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    init_sh_quoting_options();\n  }" { (expression_statement "init_sh_quoting_options();" (call_expression "init_sh_quoting_options()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "o = sh_quoting_options;" (assignment_expression "o = sh_quoting_options" identifier = identifier) ;) (expression_statement "argsize = strlen(string);" (assignment_expression "argsize = strlen(string)" identifier = (call_expression "strlen(string)" identifier (argument_list "(string)" ( identifier )))) ;) (expression_statement "sVar1 = quotearg_buffer((char *)0x0,0,string,argsize,o);" (assignment_expression "sVar1 = quotearg_buffer((char *)0x0,0,string,argsize,o)" identifier = (call_expression "quotearg_buffer((char *)0x0,0,string,argsize,o)" identifier (argument_list "((char *)0x0,0,string,argsize,o)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , identifier , identifier , identifier )))) ;) (return_statement "return sVar1;" return identifier ;) })))
(translation_unit "void FUN_00022e80(char *param_1)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}\n\n" (function_definition "void FUN_00022e80(char *param_1)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00022e80(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }" if (parenthesized_expression "(DAT_0004d474 == 0)" ( (binary_expression "DAT_0004d474 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00022e50();\n  }" { (expression_statement "FUN_00022e50();" (call_expression "FUN_00022e50()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = DAT_0004d474;" (assignment_expression "iVar1 = DAT_0004d474" identifier = identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "FUN_00039300(0,0,param_1,sVar2,iVar1);" (call_expression "FUN_00039300(0,0,param_1,sVar2,iVar1)" identifier (argument_list "(0,0,param_1,sVar2,iVar1)" ( number_literal , number_literal , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00022e80(char *param_1)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00022e80(char *param_1)" (identifier "FUN_00022e80") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }\n  iVar1 = DAT_0004d474;\n  sVar2 = strlen(param_1);\n  FUN_00039300(0,0,param_1,sVar2,iVar1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (if_statement "if (DAT_0004d474 == 0) {\n    FUN_00022e50();\n  }" (if "if") (parenthesized_expression "(DAT_0004d474 == 0)" (( "(") (binary_expression "DAT_0004d474 == 0" (identifier "DAT_0004d474") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00022e50();\n  }" ({ "{") (expression_statement "FUN_00022e50();" (call_expression "FUN_00022e50()" (identifier "FUN_00022e50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = DAT_0004d474;" (assignment_expression "iVar1 = DAT_0004d474" (identifier "iVar1") (= "=") (identifier "DAT_0004d474")) (; ";")) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" (identifier "sVar2") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "FUN_00039300(0,0,param_1,sVar2,iVar1);" (call_expression "FUN_00039300(0,0,param_1,sVar2,iVar1)" (identifier "FUN_00039300") (argument_list "(0,0,param_1,sVar2,iVar1)" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_1") (, ",") (identifier "sVar2") (, ",") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

size_t function_1(char *string)

{
  type_1 *o;
  size_t argsize;
  size_t sVar1;
  
  if (var_1 == (type_1 *)0x0) {
    var_2();
  }
  o = var_1;
  argsize = var_3(string);
  sVar1 = var_4((char *)0x0,0,string,argsize,o);
  return sVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (identifier) (identifier) (identifier)))) (return_statement))))

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

void MASKED(char *param_1)

{
  int iVar1;
  size_t sVar2;
  
  if (DAT_0004d474 == 0) {
    FUN_00022e50();
  }
  iVar1 = DAT_0004d474;
  sVar2 = strlen(param_1);
  FUN_00039300(0,0,param_1,sVar2,iVar1);
  return;
}

