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

functionptrtype parse_help_input(int *kbinput)

{
  code *pcVar1;
  
  if (meta_key) {
_L117:
    pcVar1 = func_from_key(kbinput);
  }
  else {
    switch(*kbinput) {
    case 0x20:
      pcVar1 = do_page_down;
      break;
    default:
      goto _L117;
    case 0x2d:
    case 0x7f:
      return do_page_up;
    case 0x2f:
    case 0x57:
    case 0x77:
      pcVar1 = do_search_forward;
      break;
    case 0x45:
    case 0x51:
    case 0x58:
    case 0x65:
    case 0x71:
    case 0x78:
      pcVar1 = do_exit;
      break;
    case 0x4e:
      pcVar1 = do_findprevious;
      break;
    case 0x6e:
      pcVar1 = do_findnext;
    }
  }
  return pcVar1;
}



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

code * FUN_00022660(undefined4 *param_1)

{
  code *pcVar1;
  
  if (DAT_0006b9e4 == '\0') {
    switch(*param_1) {
    case 0x20:
      pcVar1 = FUN_00024730;
      break;
    default:
      goto LAB_00022698;
    case 0x2d:
    case 0x7f:
      return FUN_000245f0;
    case 0x2f:
    case 0x57:
    case 0x77:
      pcVar1 = FUN_0002e140;
      break;
    case 0x45:
    case 0x51:
    case 0x58:
    case 0x65:
    case 0x71:
    case 0x78:
      pcVar1 = FUN_00027120;
      break;
    case 0x4e:
      pcVar1 = FUN_0002cf20;
      break;
    case 0x6e:
      pcVar1 = FUN_0002cf40;
    }
  }
  else {
LAB_00022698:
    pcVar1 = (code *)FUN_0001e670(param_1);
  }
  return pcVar1;
}


PUSH EBX
CALL 0x00014e20
ADD EBX,0x4856a
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xe14]
CMP byte ptr [EAX],0x0
JNZ 0x00022698
MOV EAX,dword ptr [EDX]
SUB EAX,0x20
CMP EAX,0x5f
JA 0x00022698
MOV ECX,dword ptr [EBX + EAX*0x4 + 0xfffe4b30]
ADD ECX,EBX
JMP ECX
SUB ESP,0xc
PUSH EDX
CALL 0x0001e670
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ncode * FUN_00022660(undefined4 *param_1)\n\n{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "code * FUN_00022660(undefined4 *param_1)\n\n{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}" type_identifier (pointer_declarator "* FUN_00022660(undefined4 *param_1)" * (function_declarator "FUN_00022660(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" if (parenthesized_expression "(DAT_0006b9e4 == '\0')" ( (binary_expression "DAT_0006b9e4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }" { (switch_statement "switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }" switch (parenthesized_expression "(*param_1)" ( (pointer_expression "*param_1" * identifier) )) (compound_statement "{\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }" { (case_statement "case 0x20:\n      pcVar1 = FUN_00024730;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_00024730;" (assignment_expression "pcVar1 = FUN_00024730" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "default:\n      goto LAB_00022698;" default : (goto_statement "goto LAB_00022698;" goto statement_identifier ;)) (case_statement "case 0x2d:" case number_literal :) (case_statement "case 0x7f:\n      return FUN_000245f0;" case number_literal : (return_statement "return FUN_000245f0;" return identifier ;)) (case_statement "case 0x2f:" case number_literal :) (case_statement "case 0x57:" case number_literal :) (case_statement "case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_0002e140;" (assignment_expression "pcVar1 = FUN_0002e140" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x45:" case number_literal :) (case_statement "case 0x51:" case number_literal :) (case_statement "case 0x58:" case number_literal :) (case_statement "case 0x65:" case number_literal :) (case_statement "case 0x71:" case number_literal :) (case_statement "case 0x78:\n      pcVar1 = FUN_00027120;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_00027120;" (assignment_expression "pcVar1 = FUN_00027120" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_0002cf20;" (assignment_expression "pcVar1 = FUN_0002cf20" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x6e:\n      pcVar1 = FUN_0002cf40;" case number_literal : (expression_statement "pcVar1 = FUN_0002cf40;" (assignment_expression "pcVar1 = FUN_0002cf40" identifier = identifier) ;)) })) }) (else_clause "else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" else (compound_statement "{\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" { (labeled_statement "LAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);" statement_identifier : (expression_statement "pcVar1 = (code *)FUN_0001e670(param_1);" (assignment_expression "pcVar1 = (code *)FUN_0001e670(param_1)" identifier = (cast_expression "(code *)FUN_0001e670(param_1)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001e670(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;)) }))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nfunctionptrtype parse_help_input(int *kbinput)\n\n{\n  code *pcVar1;\n  \n  if (meta_key) {\n_L117:\n    pcVar1 = func_from_key(kbinput);\n  }\n  else {\n    switch(*kbinput) {\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }\n  }\n  return pcVar1;\n}\n\n" comment comment (function_definition "functionptrtype parse_help_input(int *kbinput)\n\n{\n  code *pcVar1;\n  \n  if (meta_key) {\n_L117:\n    pcVar1 = func_from_key(kbinput);\n  }\n  else {\n    switch(*kbinput) {\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }\n  }\n  return pcVar1;\n}" type_identifier (function_declarator "parse_help_input(int *kbinput)" identifier (parameter_list "(int *kbinput)" ( (parameter_declaration "int *kbinput" primitive_type (pointer_declarator "*kbinput" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  \n  if (meta_key) {\n_L117:\n    pcVar1 = func_from_key(kbinput);\n  }\n  else {\n    switch(*kbinput) {\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }\n  }\n  return pcVar1;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (meta_key) {\n_L117:\n    pcVar1 = func_from_key(kbinput);\n  }\n  else {\n    switch(*kbinput) {\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }\n  }" if (parenthesized_expression "(meta_key)" ( identifier )) (compound_statement "{\n_L117:\n    pcVar1 = func_from_key(kbinput);\n  }" { (labeled_statement "_L117:\n    pcVar1 = func_from_key(kbinput);" statement_identifier : (expression_statement "pcVar1 = func_from_key(kbinput);" (assignment_expression "pcVar1 = func_from_key(kbinput)" identifier = (call_expression "func_from_key(kbinput)" identifier (argument_list "(kbinput)" ( identifier )))) ;)) }) (else_clause "else {\n    switch(*kbinput) {\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }\n  }" else (compound_statement "{\n    switch(*kbinput) {\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }\n  }" { (switch_statement "switch(*kbinput) {\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }" switch (parenthesized_expression "(*kbinput)" ( (pointer_expression "*kbinput" * identifier) )) (compound_statement "{\n    case 0x20:\n      pcVar1 = do_page_down;\n      break;\n    default:\n      goto _L117;\n    case 0x2d:\n    case 0x7f:\n      return do_page_up;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = do_search_forward;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = do_exit;\n      break;\n    case 0x4e:\n      pcVar1 = do_findprevious;\n      break;\n    case 0x6e:\n      pcVar1 = do_findnext;\n    }" { (case_statement "case 0x20:\n      pcVar1 = do_page_down;\n      break;" case number_literal : (expression_statement "pcVar1 = do_page_down;" (assignment_expression "pcVar1 = do_page_down" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "default:\n      goto _L117;" default : (goto_statement "goto _L117;" goto statement_identifier ;)) (case_statement "case 0x2d:" case number_literal :) (case_statement "case 0x7f:\n      return do_page_up;" case number_literal : (return_statement "return do_page_up;" return identifier ;)) (case_statement "case 0x2f:" case number_literal :) (case_statement "case 0x57:" case number_literal :) (case_statement "case 0x77:\n      pcVar1 = do_search_forward;\n      break;" case number_literal : (expression_statement "pcVar1 = do_search_forward;" (assignment_expression "pcVar1 = do_search_forward" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x45:" case number_literal :) (case_statement "case 0x51:" case number_literal :) (case_statement "case 0x58:" case number_literal :) (case_statement "case 0x65:" case number_literal :) (case_statement "case 0x71:" case number_literal :) (case_statement "case 0x78:\n      pcVar1 = do_exit;\n      break;" case number_literal : (expression_statement "pcVar1 = do_exit;" (assignment_expression "pcVar1 = do_exit" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x4e:\n      pcVar1 = do_findprevious;\n      break;" case number_literal : (expression_statement "pcVar1 = do_findprevious;" (assignment_expression "pcVar1 = do_findprevious" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x6e:\n      pcVar1 = do_findnext;" case number_literal : (expression_statement "pcVar1 = do_findnext;" (assignment_expression "pcVar1 = do_findnext" identifier = identifier) ;)) })) }))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "code * FUN_00022660(undefined4 *param_1)\n\n{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}\n\n" (function_definition "code * FUN_00022660(undefined4 *param_1)\n\n{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}" type_identifier (pointer_declarator "* FUN_00022660(undefined4 *param_1)" * (function_declarator "FUN_00022660(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" if (parenthesized_expression "(DAT_0006b9e4 == '\0')" ( (binary_expression "DAT_0006b9e4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }" { (switch_statement "switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }" switch (parenthesized_expression "(*param_1)" ( (pointer_expression "*param_1" * identifier) )) (compound_statement "{\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }" { (case_statement "case 0x20:\n      pcVar1 = FUN_00024730;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_00024730;" (assignment_expression "pcVar1 = FUN_00024730" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "default:\n      goto LAB_00022698;" default : (goto_statement "goto LAB_00022698;" goto statement_identifier ;)) (case_statement "case 0x2d:" case number_literal :) (case_statement "case 0x7f:\n      return FUN_000245f0;" case number_literal : (return_statement "return FUN_000245f0;" return identifier ;)) (case_statement "case 0x2f:" case number_literal :) (case_statement "case 0x57:" case number_literal :) (case_statement "case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_0002e140;" (assignment_expression "pcVar1 = FUN_0002e140" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x45:" case number_literal :) (case_statement "case 0x51:" case number_literal :) (case_statement "case 0x58:" case number_literal :) (case_statement "case 0x65:" case number_literal :) (case_statement "case 0x71:" case number_literal :) (case_statement "case 0x78:\n      pcVar1 = FUN_00027120;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_00027120;" (assignment_expression "pcVar1 = FUN_00027120" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;" case number_literal : (expression_statement "pcVar1 = FUN_0002cf20;" (assignment_expression "pcVar1 = FUN_0002cf20" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x6e:\n      pcVar1 = FUN_0002cf40;" case number_literal : (expression_statement "pcVar1 = FUN_0002cf40;" (assignment_expression "pcVar1 = FUN_0002cf40" identifier = identifier) ;)) })) }) (else_clause "else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" else (compound_statement "{\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" { (labeled_statement "LAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);" statement_identifier : (expression_statement "pcVar1 = (code *)FUN_0001e670(param_1);" (assignment_expression "pcVar1 = (code *)FUN_0001e670(param_1)" identifier = (cast_expression "(code *)FUN_0001e670(param_1)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001e670(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;)) }))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (switch_statement switch (parenthesized_expression ( (pointer_expression * IDENT) )) (compound_statement { (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement default : (goto_statement goto statement_identifier ;)) (case_statement case LIT :) (case_statement case LIT : (return_statement return IDENT ;)) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;)) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;)) }))) (return_statement return IDENT ;) })))
(function_definition "code * FUN_00022660(undefined4 *param_1)\n\n{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}" (type_identifier "code") (pointer_declarator "* FUN_00022660(undefined4 *param_1)" (* "*") (function_declarator "FUN_00022660(undefined4 *param_1)" (identifier "FUN_00022660") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  code *pcVar1;\n  \n  if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }\n  return pcVar1;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (if_statement "if (DAT_0006b9e4 == '\0') {\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }\n  else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" (if "if") (parenthesized_expression "(DAT_0006b9e4 == '\0')" (( "(") (binary_expression "DAT_0006b9e4 == '\0'" (identifier "DAT_0006b9e4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }\n  }" ({ "{") (switch_statement "switch(*param_1) {\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }" (switch "switch") (parenthesized_expression "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")) (compound_statement "{\n    case 0x20:\n      pcVar1 = FUN_00024730;\n      break;\n    default:\n      goto LAB_00022698;\n    case 0x2d:\n    case 0x7f:\n      return FUN_000245f0;\n    case 0x2f:\n    case 0x57:\n    case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;\n    case 0x45:\n    case 0x51:\n    case 0x58:\n    case 0x65:\n    case 0x71:\n    case 0x78:\n      pcVar1 = FUN_00027120;\n      break;\n    case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;\n    case 0x6e:\n      pcVar1 = FUN_0002cf40;\n    }" ({ "{") (case_statement "case 0x20:\n      pcVar1 = FUN_00024730;\n      break;" (case "case") (number_literal "0x20") (: ":") (expression_statement "pcVar1 = FUN_00024730;" (assignment_expression "pcVar1 = FUN_00024730" (identifier "pcVar1") (= "=") (identifier "FUN_00024730")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n      goto LAB_00022698;" (default "default") (: ":") (goto_statement "goto LAB_00022698;" (goto "goto") (statement_identifier "LAB_00022698") (; ";"))) (case_statement "case 0x2d:" (case "case") (number_literal "0x2d") (: ":")) (case_statement "case 0x7f:\n      return FUN_000245f0;" (case "case") (number_literal "0x7f") (: ":") (return_statement "return FUN_000245f0;" (return "return") (identifier "FUN_000245f0") (; ";"))) (case_statement "case 0x2f:" (case "case") (number_literal "0x2f") (: ":")) (case_statement "case 0x57:" (case "case") (number_literal "0x57") (: ":")) (case_statement "case 0x77:\n      pcVar1 = FUN_0002e140;\n      break;" (case "case") (number_literal "0x77") (: ":") (expression_statement "pcVar1 = FUN_0002e140;" (assignment_expression "pcVar1 = FUN_0002e140" (identifier "pcVar1") (= "=") (identifier "FUN_0002e140")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x45:" (case "case") (number_literal "0x45") (: ":")) (case_statement "case 0x51:" (case "case") (number_literal "0x51") (: ":")) (case_statement "case 0x58:" (case "case") (number_literal "0x58") (: ":")) (case_statement "case 0x65:" (case "case") (number_literal "0x65") (: ":")) (case_statement "case 0x71:" (case "case") (number_literal "0x71") (: ":")) (case_statement "case 0x78:\n      pcVar1 = FUN_00027120;\n      break;" (case "case") (number_literal "0x78") (: ":") (expression_statement "pcVar1 = FUN_00027120;" (assignment_expression "pcVar1 = FUN_00027120" (identifier "pcVar1") (= "=") (identifier "FUN_00027120")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x4e:\n      pcVar1 = FUN_0002cf20;\n      break;" (case "case") (number_literal "0x4e") (: ":") (expression_statement "pcVar1 = FUN_0002cf20;" (assignment_expression "pcVar1 = FUN_0002cf20" (identifier "pcVar1") (= "=") (identifier "FUN_0002cf20")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x6e:\n      pcVar1 = FUN_0002cf40;" (case "case") (number_literal "0x6e") (: ":") (expression_statement "pcVar1 = FUN_0002cf40;" (assignment_expression "pcVar1 = FUN_0002cf40" (identifier "pcVar1") (= "=") (identifier "FUN_0002cf40")) (; ";"))) (} "}"))) (} "}")) (else_clause "else {\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" (else "else") (compound_statement "{\nLAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);\n  }" ({ "{") (labeled_statement "LAB_00022698:\n    pcVar1 = (code *)FUN_0001e670(param_1);" (statement_identifier "LAB_00022698") (: ":") (expression_statement "pcVar1 = (code *)FUN_0001e670(param_1);" (assignment_expression "pcVar1 = (code *)FUN_0001e670(param_1)" (identifier "pcVar1") (= "=") (cast_expression "(code *)FUN_0001e670(param_1)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001e670(param_1)" (identifier "FUN_0001e670") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";"))) (} "}")))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

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

type_1 function_1(int *kbinput)

{
  type_2 *pcVar1;
  
  if (meta_key) {
_L117:
    pcVar1 = var_1(kbinput);
  }
  else {
    switch(*kbinput) {
    case 0x20:
      pcVar1 = do_page_down;
      break;
    default:
      goto _L117;
    case 0x2d:
    case 0x7f:
      return do_page_up;
    case 0x2f:
    case 0x57:
    case 0x77:
      pcVar1 = do_search_forward;
      break;
    case 0x45:
    case 0x51:
    case 0x58:
    case 0x65:
    case 0x71:
    case 0x78:
      pcVar1 = do_exit;
      break;
    case 0x4e:
      pcVar1 = do_findprevious;
      break;
    case 0x6e:
      pcVar1 = do_findnext;
    }
  }
  return pcVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (switch_statement condition: (parenthesized_expression (pointer_expression argument: (identifier))) body: (compound_statement (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (break_statement)) (case_statement (goto_statement label: (statement_identifier))) (case_statement value: (number_literal)) (case_statement value: (number_literal) (return_statement (identifier))) (case_statement value: (number_literal)) (case_statement value: (number_literal)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (break_statement)) (case_statement value: (number_literal)) (case_statement value: (number_literal)) (case_statement value: (number_literal)) (case_statement value: (number_literal)) (case_statement value: (number_literal)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))))) (return_statement (identifier)))))

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

code * MASKED(undefined4 *param_1)

{
  code *pcVar1;
  
  if (DAT_0006b9e4 == '\0') {
    switch(*param_1) {
    case 0x20:
      pcVar1 = FUN_00024730;
      break;
    default:
      goto LAB_00022698;
    case 0x2d:
    case 0x7f:
      return FUN_000245f0;
    case 0x2f:
    case 0x57:
    case 0x77:
      pcVar1 = FUN_0002e140;
      break;
    case 0x45:
    case 0x51:
    case 0x58:
    case 0x65:
    case 0x71:
    case 0x78:
      pcVar1 = FUN_00027120;
      break;
    case 0x4e:
      pcVar1 = FUN_0002cf20;
      break;
    case 0x6e:
      pcVar1 = FUN_0002cf40;
    }
  }
  else {
LAB_00022698:
    pcVar1 = (code *)FUN_0001e670(param_1);
  }
  return pcVar1;
}

