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

int __regparm3 bash_complete_username_internal(int what_to_do)

{
  undefined1 *puVar1;
  rl_completion_func_t *prVar2;
  rl_compentry_func_t *prVar3;
  int iVar4;
  
  prVar3 = rl_completion_entry_function;
  prVar2 = rl_attempted_completion_function;
  puVar1 = rl_ignore_some_completions_function;
  rl_attempted_completion_function = (rl_completion_func_t *)0x0;
  rl_completion_entry_function = rl_username_completion_function;
  iVar4 = rl_complete_internal(what_to_do);
  rl_completion_entry_function = prVar3;
  rl_attempted_completion_function = prVar2;
  rl_ignore_some_completions_function = puVar1;
  return iVar4;
}



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

void __regparm3 FUN_0008b610(undefined4 param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  uVar3 = rl_completion_entry_function;
  uVar2 = rl_attempted_completion_function;
  uVar1 = rl_ignore_some_completions_function;
  rl_attempted_completion_function = 0;
  rl_completion_entry_function = rl_username_completion_function;
  rl_complete_internal(param_1);
  rl_completion_entry_function = (code *)uVar3;
  rl_attempted_completion_function = uVar2;
  rl_ignore_some_completions_function = uVar1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xbe9e7
SUB ESP,0x28
LEA EDI,[EBX + 0x7d8c]
LEA ESI,[EBX + 0x7d84]
LEA EBP,[EBX + 0x7d60]
MOV EDX,dword ptr [EDI]
MOV ECX,dword ptr [ESI]
MOV dword ptr [ESI],0x0
MOV dword ptr [ESP + 0x18],EDX
MOV EDX,dword ptr [EBP]
MOV dword ptr [ESP + 0x10],ECX
LEA ECX,[EBX + 0xfff865d0]
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
MOV dword ptr [EDI],ECX
CALL 0x000cf490
MOV EDX,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0x14]
MOV dword ptr [EDI],EDX
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI],ECX
MOV dword ptr [EBP],EDX
ADD ESP,0x2c
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 __regparm3 FUN_0008b610(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0008b610(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008b610(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = rl_completion_entry_function;" (assignment_expression "uVar3 = rl_completion_entry_function" identifier = identifier) ;) (expression_statement "uVar2 = rl_attempted_completion_function;" (assignment_expression "uVar2 = rl_attempted_completion_function" identifier = identifier) ;) (expression_statement "uVar1 = rl_ignore_some_completions_function;" (assignment_expression "uVar1 = rl_ignore_some_completions_function" identifier = identifier) ;) (expression_statement "rl_attempted_completion_function = 0;" (assignment_expression "rl_attempted_completion_function = 0" identifier = number_literal) ;) (expression_statement "rl_completion_entry_function = rl_username_completion_function;" (assignment_expression "rl_completion_entry_function = rl_username_completion_function" identifier = identifier) ;) (expression_statement "rl_complete_internal(param_1);" (call_expression "rl_complete_internal(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "rl_completion_entry_function = (code *)uVar3;" (assignment_expression "rl_completion_entry_function = (code *)uVar3" identifier = (cast_expression "(code *)uVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "rl_attempted_completion_function = uVar2;" (assignment_expression "rl_attempted_completion_function = uVar2" identifier = identifier) ;) (expression_statement "rl_ignore_some_completions_function = uVar1;" (assignment_expression "rl_ignore_some_completions_function = uVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 bash_complete_username_internal(int what_to_do)\n\n{\n  undefined1 *puVar1;\n  rl_completion_func_t *prVar2;\n  rl_compentry_func_t *prVar3;\n  int iVar4;\n  \n  prVar3 = rl_completion_entry_function;\n  prVar2 = rl_attempted_completion_function;\n  puVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = (rl_completion_func_t *)0x0;\n  rl_completion_entry_function = rl_username_completion_function;\n  iVar4 = rl_complete_internal(what_to_do);\n  rl_completion_entry_function = prVar3;\n  rl_attempted_completion_function = prVar2;\n  rl_ignore_some_completions_function = puVar1;\n  return iVar4;\n}\n\n" comment (function_definition "int __regparm3 bash_complete_username_internal(int what_to_do)\n\n{\n  undefined1 *puVar1;\n  rl_completion_func_t *prVar2;\n  rl_compentry_func_t *prVar3;\n  int iVar4;\n  \n  prVar3 = rl_completion_entry_function;\n  prVar2 = rl_attempted_completion_function;\n  puVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = (rl_completion_func_t *)0x0;\n  rl_completion_entry_function = rl_username_completion_function;\n  iVar4 = rl_complete_internal(what_to_do);\n  rl_completion_entry_function = prVar3;\n  rl_attempted_completion_function = prVar2;\n  rl_ignore_some_completions_function = puVar1;\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "bash_complete_username_internal(int what_to_do)" identifier (parameter_list "(int what_to_do)" ( (parameter_declaration "int what_to_do" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  rl_completion_func_t *prVar2;\n  rl_compentry_func_t *prVar3;\n  int iVar4;\n  \n  prVar3 = rl_completion_entry_function;\n  prVar2 = rl_attempted_completion_function;\n  puVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = (rl_completion_func_t *)0x0;\n  rl_completion_entry_function = rl_username_completion_function;\n  iVar4 = rl_complete_internal(what_to_do);\n  rl_completion_entry_function = prVar3;\n  rl_attempted_completion_function = prVar2;\n  rl_ignore_some_completions_function = puVar1;\n  return iVar4;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "rl_completion_func_t *prVar2;" type_identifier (pointer_declarator "*prVar2" * identifier) ;) (declaration "rl_compentry_func_t *prVar3;" type_identifier (pointer_declarator "*prVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "prVar3 = rl_completion_entry_function;" (assignment_expression "prVar3 = rl_completion_entry_function" identifier = identifier) ;) (expression_statement "prVar2 = rl_attempted_completion_function;" (assignment_expression "prVar2 = rl_attempted_completion_function" identifier = identifier) ;) (expression_statement "puVar1 = rl_ignore_some_completions_function;" (assignment_expression "puVar1 = rl_ignore_some_completions_function" identifier = identifier) ;) (expression_statement "rl_attempted_completion_function = (rl_completion_func_t *)0x0;" (assignment_expression "rl_attempted_completion_function = (rl_completion_func_t *)0x0" identifier = (cast_expression "(rl_completion_func_t *)0x0" ( (type_descriptor "rl_completion_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "rl_completion_entry_function = rl_username_completion_function;" (assignment_expression "rl_completion_entry_function = rl_username_completion_function" identifier = identifier) ;) (expression_statement "iVar4 = rl_complete_internal(what_to_do);" (assignment_expression "iVar4 = rl_complete_internal(what_to_do)" identifier = (call_expression "rl_complete_internal(what_to_do)" identifier (argument_list "(what_to_do)" ( identifier )))) ;) (expression_statement "rl_completion_entry_function = prVar3;" (assignment_expression "rl_completion_entry_function = prVar3" identifier = identifier) ;) (expression_statement "rl_attempted_completion_function = prVar2;" (assignment_expression "rl_attempted_completion_function = prVar2" identifier = identifier) ;) (expression_statement "rl_ignore_some_completions_function = puVar1;" (assignment_expression "rl_ignore_some_completions_function = puVar1" identifier = identifier) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_0008b610(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0008b610(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008b610(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = rl_completion_entry_function;" (assignment_expression "uVar3 = rl_completion_entry_function" identifier = identifier) ;) (expression_statement "uVar2 = rl_attempted_completion_function;" (assignment_expression "uVar2 = rl_attempted_completion_function" identifier = identifier) ;) (expression_statement "uVar1 = rl_ignore_some_completions_function;" (assignment_expression "uVar1 = rl_ignore_some_completions_function" identifier = identifier) ;) (expression_statement "rl_attempted_completion_function = 0;" (assignment_expression "rl_attempted_completion_function = 0" identifier = number_literal) ;) (expression_statement "rl_completion_entry_function = rl_username_completion_function;" (assignment_expression "rl_completion_entry_function = rl_username_completion_function" identifier = identifier) ;) (expression_statement "rl_complete_internal(param_1);" (call_expression "rl_complete_internal(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "rl_completion_entry_function = (code *)uVar3;" (assignment_expression "rl_completion_entry_function = (code *)uVar3" identifier = (cast_expression "(code *)uVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "rl_attempted_completion_function = uVar2;" (assignment_expression "rl_attempted_completion_function = uVar2" identifier = identifier) ;) (expression_statement "rl_ignore_some_completions_function = uVar1;" (assignment_expression "rl_ignore_some_completions_function = uVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0008b610(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0008b610(undefined4 param_1)" (identifier "FUN_0008b610") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar3 = rl_completion_entry_function;\n  uVar2 = rl_attempted_completion_function;\n  uVar1 = rl_ignore_some_completions_function;\n  rl_attempted_completion_function = 0;\n  rl_completion_entry_function = rl_username_completion_function;\n  rl_complete_internal(param_1);\n  rl_completion_entry_function = (code *)uVar3;\n  rl_attempted_completion_function = uVar2;\n  rl_ignore_some_completions_function = uVar1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = rl_completion_entry_function;" (assignment_expression "uVar3 = rl_completion_entry_function" (identifier "uVar3") (= "=") (identifier "rl_completion_entry_function")) (; ";")) (expression_statement "uVar2 = rl_attempted_completion_function;" (assignment_expression "uVar2 = rl_attempted_completion_function" (identifier "uVar2") (= "=") (identifier "rl_attempted_completion_function")) (; ";")) (expression_statement "uVar1 = rl_ignore_some_completions_function;" (assignment_expression "uVar1 = rl_ignore_some_completions_function" (identifier "uVar1") (= "=") (identifier "rl_ignore_some_completions_function")) (; ";")) (expression_statement "rl_attempted_completion_function = 0;" (assignment_expression "rl_attempted_completion_function = 0" (identifier "rl_attempted_completion_function") (= "=") (number_literal "0")) (; ";")) (expression_statement "rl_completion_entry_function = rl_username_completion_function;" (assignment_expression "rl_completion_entry_function = rl_username_completion_function" (identifier "rl_completion_entry_function") (= "=") (identifier "rl_username_completion_function")) (; ";")) (expression_statement "rl_complete_internal(param_1);" (call_expression "rl_complete_internal(param_1)" (identifier "rl_complete_internal") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "rl_completion_entry_function = (code *)uVar3;" (assignment_expression "rl_completion_entry_function = (code *)uVar3" (identifier "rl_completion_entry_function") (= "=") (cast_expression "(code *)uVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "rl_attempted_completion_function = uVar2;" (assignment_expression "rl_attempted_completion_function = uVar2" (identifier "rl_attempted_completion_function") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "rl_ignore_some_completions_function = uVar1;" (assignment_expression "rl_ignore_some_completions_function = uVar1" (identifier "rl_ignore_some_completions_function") (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int __regparm3 function_1(int what_to_do)

{
  type_1 *puVar1;
  type_2 *prVar2;
  type_3 *prVar3;
  int iVar4;
  
  prVar3 = rl_completion_entry_function;
  prVar2 = rl_attempted_completion_function;
  puVar1 = rl_ignore_some_completions_function;
  rl_attempted_completion_function = (type_2 *)0x0;
  rl_completion_entry_function = rl_username_completion_function;
  iVar4 = var_1(what_to_do);
  rl_completion_entry_function = prVar3;
  rl_attempted_completion_function = prVar2;
  rl_ignore_some_completions_function = puVar1;
  return iVar4;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (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))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 __regparm3 MASKED(undefined4 param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  uVar3 = rl_completion_entry_function;
  uVar2 = rl_attempted_completion_function;
  uVar1 = rl_ignore_some_completions_function;
  rl_attempted_completion_function = 0;
  rl_completion_entry_function = rl_username_completion_function;
  rl_complete_internal(param_1);
  rl_completion_entry_function = (code *)uVar3;
  rl_attempted_completion_function = uVar2;
  rl_ignore_some_completions_function = uVar1;
  return;
}

