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

int get_userpass_input(prompts_t *p,uchar *in,int inlen)

{
  int iVar1;
  
  iVar1 = cmdline_get_passwd_input(p,in,inlen);
  if (iVar1 != -1) {
    return iVar1;
  }
  iVar1 = console_get_userpass_input(p,in,inlen);
  return iVar1;
}



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

void FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = FUN_00016780(param_1,param_2,param_3);
  if (iVar1 != -1) {
    return;
  }
  FUN_00062990(param_1,param_2,param_3);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015fa0
ADD EBX,0x3d777
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x28]
MOV EBP,dword ptr [ESP + 0x2c]
PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00016780
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00067630
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00062990
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}\n\n" comment (function_definition "void FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00016780(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_00016780(param_1,param_2,param_3)" identifier = (call_expression "FUN_00016780(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00062990(param_1,param_2,param_3);" (call_expression "FUN_00062990(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , 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 get_userpass_input(prompts_t *p,uchar *in,int inlen)\n\n{\n  int iVar1;\n  \n  iVar1 = cmdline_get_passwd_input(p,in,inlen);\n  if (iVar1 != -1) {\n    return iVar1;\n  }\n  iVar1 = console_get_userpass_input(p,in,inlen);\n  return iVar1;\n}\n\n" comment comment (function_definition "int get_userpass_input(prompts_t *p,uchar *in,int inlen)\n\n{\n  int iVar1;\n  \n  iVar1 = cmdline_get_passwd_input(p,in,inlen);\n  if (iVar1 != -1) {\n    return iVar1;\n  }\n  iVar1 = console_get_userpass_input(p,in,inlen);\n  return iVar1;\n}" primitive_type (function_declarator "get_userpass_input(prompts_t *p,uchar *in,int inlen)" identifier (parameter_list "(prompts_t *p,uchar *in,int inlen)" ( (parameter_declaration "prompts_t *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "uchar *in" type_identifier (pointer_declarator "*in" * identifier)) , (parameter_declaration "int inlen" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = cmdline_get_passwd_input(p,in,inlen);\n  if (iVar1 != -1) {\n    return iVar1;\n  }\n  iVar1 = console_get_userpass_input(p,in,inlen);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = cmdline_get_passwd_input(p,in,inlen);" (assignment_expression "iVar1 = cmdline_get_passwd_input(p,in,inlen)" identifier = (call_expression "cmdline_get_passwd_input(p,in,inlen)" identifier (argument_list "(p,in,inlen)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = console_get_userpass_input(p,in,inlen);" (assignment_expression "iVar1 = console_get_userpass_input(p,in,inlen)" identifier = (call_expression "console_get_userpass_input(p,in,inlen)" identifier (argument_list "(p,in,inlen)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00016780(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_00016780(param_1,param_2,param_3)" identifier = (call_expression "FUN_00016780(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00062990(param_1,param_2,param_3);" (call_expression "FUN_00062990(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , 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) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000675f0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000675f0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00016780(param_1,param_2,param_3);\n  if (iVar1 != -1) {\n    return;\n  }\n  FUN_00062990(param_1,param_2,param_3);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00016780(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_00016780(param_1,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_00016780(param_1,param_2,param_3)" (identifier "FUN_00016780") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 != -1) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00062990(param_1,param_2,param_3);" (call_expression "FUN_00062990(param_1,param_2,param_3)" (identifier "FUN_00062990") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (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(type_1 *p,type_2 *in,int inlen)

{
  int var_2;
  
  var_2 = var_1(p,in,inlen);
  if (var_2 != -1) {
    return var_2;
  }
  var_2 = var_3(p,in,inlen);
  return var_2;
}


(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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)

{
  int iVar1;
  
  iVar1 = FUN_00016780(param_1,param_2,param_3);
  if (iVar1 != -1) {
    return;
  }
  FUN_00062990(param_1,param_2,param_3);
  return;
}

