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

void _rl_control_keypad(int on)

{
  char *pcVar1;
  
  if (on == 0) {
    pcVar1 = _rl_term_ke;
    if (_rl_term_ke == (char *)0x0) {
      return;
    }
  }
  else {
    pcVar1 = _rl_term_ks;
    if (_rl_term_ks == (char *)0x0) {
      return;
    }
  }
  tputs(pcVar1,1,_rl_output_character_function);
  return;
}



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

void _rl_control_keypad(int param_1)

{
  int iVar1;
  
  if (param_1 == 0) {
    iVar1 = DAT_00152a88;
    if (DAT_00152a88 == 0) {
      return;
    }
  }
  else {
    iVar1 = DAT_00152a8c;
    if (DAT_00152a8c == 0) {
      return;
    }
  }
  tputs(iVar1,1,_rl_output_character_function);
  return;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0x687fa
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JNZ 0x000e1840
MOV EAX,dword ptr [EBX + 0x8a88]
TEST EAX,EAX
JZ 0x000e1836
SUB ESP,0x4
LEA EDX,[EBX + 0xfff96a10]
PUSH EDX
PUSH 0x1
PUSH EAX
CALL 0x0002f0f0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [EBX + 0x8a8c]
TEST EAX,EAX
JNZ 0x000e1821
JMP 0x000e1836
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid _rl_control_keypad(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}\n\n" comment (function_definition "void _rl_control_keypad(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}" primitive_type (function_declarator "_rl_control_keypad(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }" { (expression_statement "iVar1 = DAT_00152a88;" (assignment_expression "iVar1 = DAT_00152a88" identifier = identifier) ;) (if_statement "if (DAT_00152a88 == 0) {\n      return;\n    }" if (parenthesized_expression "(DAT_00152a88 == 0)" ( (binary_expression "DAT_00152a88 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" { (expression_statement "iVar1 = DAT_00152a8c;" (assignment_expression "iVar1 = DAT_00152a8c" identifier = identifier) ;) (if_statement "if (DAT_00152a8c == 0) {\n      return;\n    }" if (parenthesized_expression "(DAT_00152a8c == 0)" ( (binary_expression "DAT_00152a8c == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "tputs(iVar1,1,_rl_output_character_function);" (call_expression "tputs(iVar1,1,_rl_output_character_function)" identifier (argument_list "(iVar1,1,_rl_output_character_function)" ( identifier , number_literal , 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\nvoid _rl_control_keypad(int on)\n\n{\n  char *pcVar1;\n  \n  if (on == 0) {\n    pcVar1 = _rl_term_ke;\n    if (_rl_term_ke == (char *)0x0) {\n      return;\n    }\n  }\n  else {\n    pcVar1 = _rl_term_ks;\n    if (_rl_term_ks == (char *)0x0) {\n      return;\n    }\n  }\n  tputs(pcVar1,1,_rl_output_character_function);\n  return;\n}\n\n" comment comment (function_definition "void _rl_control_keypad(int on)\n\n{\n  char *pcVar1;\n  \n  if (on == 0) {\n    pcVar1 = _rl_term_ke;\n    if (_rl_term_ke == (char *)0x0) {\n      return;\n    }\n  }\n  else {\n    pcVar1 = _rl_term_ks;\n    if (_rl_term_ks == (char *)0x0) {\n      return;\n    }\n  }\n  tputs(pcVar1,1,_rl_output_character_function);\n  return;\n}" primitive_type (function_declarator "_rl_control_keypad(int on)" identifier (parameter_list "(int on)" ( (parameter_declaration "int on" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if (on == 0) {\n    pcVar1 = _rl_term_ke;\n    if (_rl_term_ke == (char *)0x0) {\n      return;\n    }\n  }\n  else {\n    pcVar1 = _rl_term_ks;\n    if (_rl_term_ks == (char *)0x0) {\n      return;\n    }\n  }\n  tputs(pcVar1,1,_rl_output_character_function);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (on == 0) {\n    pcVar1 = _rl_term_ke;\n    if (_rl_term_ke == (char *)0x0) {\n      return;\n    }\n  }\n  else {\n    pcVar1 = _rl_term_ks;\n    if (_rl_term_ks == (char *)0x0) {\n      return;\n    }\n  }" if (parenthesized_expression "(on == 0)" ( (binary_expression "on == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar1 = _rl_term_ke;\n    if (_rl_term_ke == (char *)0x0) {\n      return;\n    }\n  }" { (expression_statement "pcVar1 = _rl_term_ke;" (assignment_expression "pcVar1 = _rl_term_ke" identifier = identifier) ;) (if_statement "if (_rl_term_ke == (char *)0x0) {\n      return;\n    }" if (parenthesized_expression "(_rl_term_ke == (char *)0x0)" ( (binary_expression "_rl_term_ke == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    pcVar1 = _rl_term_ks;\n    if (_rl_term_ks == (char *)0x0) {\n      return;\n    }\n  }" else (compound_statement "{\n    pcVar1 = _rl_term_ks;\n    if (_rl_term_ks == (char *)0x0) {\n      return;\n    }\n  }" { (expression_statement "pcVar1 = _rl_term_ks;" (assignment_expression "pcVar1 = _rl_term_ks" identifier = identifier) ;) (if_statement "if (_rl_term_ks == (char *)0x0) {\n      return;\n    }" if (parenthesized_expression "(_rl_term_ks == (char *)0x0)" ( (binary_expression "_rl_term_ks == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "tputs(pcVar1,1,_rl_output_character_function);" (call_expression "tputs(pcVar1,1,_rl_output_character_function)" identifier (argument_list "(pcVar1,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void _rl_control_keypad(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}\n\n" (function_definition "void _rl_control_keypad(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}" primitive_type (function_declarator "_rl_control_keypad(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }" { (expression_statement "iVar1 = DAT_00152a88;" (assignment_expression "iVar1 = DAT_00152a88" identifier = identifier) ;) (if_statement "if (DAT_00152a88 == 0) {\n      return;\n    }" if (parenthesized_expression "(DAT_00152a88 == 0)" ( (binary_expression "DAT_00152a88 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" { (expression_statement "iVar1 = DAT_00152a8c;" (assignment_expression "iVar1 = DAT_00152a8c" identifier = identifier) ;) (if_statement "if (DAT_00152a8c == 0) {\n      return;\n    }" if (parenthesized_expression "(DAT_00152a8c == 0)" ( (binary_expression "DAT_00152a8c == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "tputs(iVar1,1,_rl_output_character_function);" (call_expression "tputs(iVar1,1,_rl_output_character_function)" identifier (argument_list "(iVar1,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void _rl_control_keypad(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}" (primitive_type "void") (function_declarator "_rl_control_keypad(int param_1)" (identifier "_rl_control_keypad") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }\n  tputs(iVar1,1,_rl_output_character_function);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == 0) {\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }\n  else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = DAT_00152a88;\n    if (DAT_00152a88 == 0) {\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = DAT_00152a88;" (assignment_expression "iVar1 = DAT_00152a88" (identifier "iVar1") (= "=") (identifier "DAT_00152a88")) (; ";")) (if_statement "if (DAT_00152a88 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(DAT_00152a88 == 0)" (( "(") (binary_expression "DAT_00152a88 == 0" (identifier "DAT_00152a88") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = DAT_00152a8c;\n    if (DAT_00152a8c == 0) {\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = DAT_00152a8c;" (assignment_expression "iVar1 = DAT_00152a8c" (identifier "iVar1") (= "=") (identifier "DAT_00152a8c")) (; ";")) (if_statement "if (DAT_00152a8c == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(DAT_00152a8c == 0)" (( "(") (binary_expression "DAT_00152a8c == 0" (identifier "DAT_00152a8c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "tputs(iVar1,1,_rl_output_character_function);" (call_expression "tputs(iVar1,1,_rl_output_character_function)" (identifier "tputs") (argument_list "(iVar1,1,_rl_output_character_function)" (( "(") (identifier "iVar1") (, ",") (number_literal "1") (, ",") (identifier "_rl_output_character_function") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int var_1)

{
  char *pcVar1;
  
  if (var_1 == 0) {
    pcVar1 = var_2;
    if (var_2 == (char *)0x0) {
      return;
    }
  }
  else {
    pcVar1 = var_3;
    if (var_3 == (char *)0x0) {
      return;
    }
  }
  var_4(pcVar1,1,_rl_output_character_function);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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) (number_literal) (identifier)))) (return_statement))))

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

void MASKED(int param_1)

{
  int iVar1;
  
  if (param_1 == 0) {
    iVar1 = DAT_00152a88;
    if (DAT_00152a88 == 0) {
      return;
    }
  }
  else {
    iVar1 = DAT_00152a8c;
    if (DAT_00152a8c == 0) {
      return;
    }
  }
  tputs(iVar1,1,_rl_output_character_function);
  return;
}

