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

int sv_histsize(char *value)

{
  int max;
  
  max = 500;
  if (((value != (char *)0x0) && (*value != '\0')) && (max = strtol(value,(char **)0x0,10), max < 0)
     ) {
    unstifle_history();
    return 0;
  }
  stifle_history(max);
  return 0;
}



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

undefined4 FUN_000d0d00(char *param_1)

{
  long lVar1;
  
  lVar1 = 500;
  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&
     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {
    unstifle_history();
    return 0;
  }
  stifle_history(lVar1);
  return 0;
}


PUSH EBX
MOV EAX,0x1f4
CALL 0x00031ed0
ADD EBX,0x792f5
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
TEST EDX,EDX
JZ 0x000d0d21
CMP byte ptr [EDX],0x0
JNZ 0x000d0d38
SUB ESP,0xc
PUSH EAX
CALL 0x000e5e70
ADD ESP,0x10
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
SUB ESP,0x4
PUSH 0xa
PUSH 0x0
PUSH EDX
CALL 0x0002fcf0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x000d0d21
CALL 0x000e5f50
JMP 0x000d0d2d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000d0d00(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_000d0d00(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_000d0d00(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = 500;" (assignment_expression "lVar1 = 500" identifier = number_literal) ;) (if_statement "if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }" if (parenthesized_expression "(((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0))" ( (binary_expression "((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)" (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" ( (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)" ( (comma_expression "lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0" (assignment_expression "lVar1 = strtol(param_1,(char **)0x0,10)" identifier = (call_expression "strtol(param_1,(char **)0x0,10)" identifier (argument_list "(param_1,(char **)0x0,10)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) , (binary_expression "lVar1 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    unstifle_history();\n    return 0;\n  }" { (expression_statement "unstifle_history();" (call_expression "unstifle_history()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "stifle_history(lVar1);" (call_expression "stifle_history(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint sv_histsize(char *value)\n\n{\n  int max;\n  \n  max = 500;\n  if (((value != (char *)0x0) && (*value != '\0')) && (max = strtol(value,(char **)0x0,10), max < 0)\n     ) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(max);\n  return 0;\n}\n\n" comment comment (function_definition "int sv_histsize(char *value)\n\n{\n  int max;\n  \n  max = 500;\n  if (((value != (char *)0x0) && (*value != '\0')) && (max = strtol(value,(char **)0x0,10), max < 0)\n     ) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(max);\n  return 0;\n}" primitive_type (function_declarator "sv_histsize(char *value)" identifier (parameter_list "(char *value)" ( (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  int max;\n  \n  max = 500;\n  if (((value != (char *)0x0) && (*value != '\0')) && (max = strtol(value,(char **)0x0,10), max < 0)\n     ) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(max);\n  return 0;\n}" { (declaration "int max;" primitive_type identifier ;) (expression_statement "max = 500;" (assignment_expression "max = 500" identifier = number_literal) ;) (if_statement "if (((value != (char *)0x0) && (*value != '\0')) && (max = strtol(value,(char **)0x0,10), max < 0)\n     ) {\n    unstifle_history();\n    return 0;\n  }" if (parenthesized_expression "(((value != (char *)0x0) && (*value != '\0')) && (max = strtol(value,(char **)0x0,10), max < 0)\n     )" ( (binary_expression "((value != (char *)0x0) && (*value != '\0')) && (max = strtol(value,(char **)0x0,10), max < 0)" (parenthesized_expression "((value != (char *)0x0) && (*value != '\0'))" ( (binary_expression "(value != (char *)0x0) && (*value != '\0')" (parenthesized_expression "(value != (char *)0x0)" ( (binary_expression "value != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*value != '\0')" ( (binary_expression "*value != '\0'" (pointer_expression "*value" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(max = strtol(value,(char **)0x0,10), max < 0)" ( (comma_expression "max = strtol(value,(char **)0x0,10), max < 0" (assignment_expression "max = strtol(value,(char **)0x0,10)" identifier = (call_expression "strtol(value,(char **)0x0,10)" identifier (argument_list "(value,(char **)0x0,10)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) , (binary_expression "max < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    unstifle_history();\n    return 0;\n  }" { (expression_statement "unstifle_history();" (call_expression "unstifle_history()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "stifle_history(max);" (call_expression "stifle_history(max)" identifier (argument_list "(max)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000d0d00(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000d0d00(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_000d0d00(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = 500;" (assignment_expression "lVar1 = 500" identifier = number_literal) ;) (if_statement "if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }" if (parenthesized_expression "(((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0))" ( (binary_expression "((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)" (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" ( (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)" ( (comma_expression "lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0" (assignment_expression "lVar1 = strtol(param_1,(char **)0x0,10)" identifier = (call_expression "strtol(param_1,(char **)0x0,10)" identifier (argument_list "(param_1,(char **)0x0,10)" ( identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) , (binary_expression "lVar1 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n    unstifle_history();\n    return 0;\n  }" { (expression_statement "unstifle_history();" (call_expression "unstifle_history()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "stifle_history(lVar1);" (call_expression "stifle_history(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT) , LIT )))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000d0d00(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000d0d00(char *param_1)" (identifier "FUN_000d0d00") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = 500;\n  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }\n  stifle_history(lVar1);\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = 500;" (assignment_expression "lVar1 = 500" (identifier "lVar1") (= "=") (number_literal "500")) (; ";")) (if_statement "if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {\n    unstifle_history();\n    return 0;\n  }" (if "if") (parenthesized_expression "(((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0))" (( "(") (binary_expression "((param_1 != (char *)0x0) && (*param_1 != '\0')) &&\n     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)" (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" (( "(") (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)" (( "(") (comma_expression "lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0" (assignment_expression "lVar1 = strtol(param_1,(char **)0x0,10)" (identifier "lVar1") (= "=") (call_expression "strtol(param_1,(char **)0x0,10)" (identifier "strtol") (argument_list "(param_1,(char **)0x0,10)" (( "(") (identifier "param_1") (, ",") (cast_expression "(char **)0x0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0")) (, ",") (number_literal "10") () ")")))) (, ",") (binary_expression "lVar1 < 0" (identifier "lVar1") (< "<") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    unstifle_history();\n    return 0;\n  }" ({ "{") (expression_statement "unstifle_history();" (call_expression "unstifle_history()" (identifier "unstifle_history") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "stifle_history(lVar1);" (call_expression "stifle_history(lVar1)" (identifier "stifle_history") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(char *var_1)

{
  int var_3;
  
  var_3 = 500;
  if (((var_1 != (char *)0x0) && (*var_1 != '\0')) && (var_3 = var_2(var_1,(char **)0x0,10), var_3 < 0)
     ) {
    var_4();
    return 0;
  }
  var_5(var_3);
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (number_literal)) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))))

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

undefined4 MASKED(char *param_1)

{
  long lVar1;
  
  lVar1 = 500;
  if (((param_1 != (char *)0x0) && (*param_1 != '\0')) &&
     (lVar1 = strtol(param_1,(char **)0x0,10), lVar1 < 0)) {
    unstifle_history();
    return 0;
  }
  stifle_history(lVar1);
  return 0;
}

