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

functionptrtype func_from_key(int *kbinput)

{
  sc *psVar1;
  
  psVar1 = get_shortcut(kbinput);
  if (psVar1 != (sc *)0x0) {
    return psVar1->func;
  }
  return (functionptrtype)0x0;
}



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

undefined4 FUN_0001e670(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = FUN_000370e0(param_1);
  if (iVar1 != 0) {
    return *(undefined4 *)(iVar1 + 0x10);
  }
  return 0;
}


PUSH EBX
CALL 0x00014e20
ADD EBX,0x4c55a
SUB ESP,0x14
PUSH dword ptr [ESP + 0x1c]
CALL 0x000370e0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001e6a0
MOV EAX,dword ptr [EAX + 0x10]
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001e670(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0001e670(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001e670(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000370e0(param_1);" (assignment_expression "iVar1 = FUN_000370e0(param_1)" identifier = (call_expression "FUN_000370e0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return *(undefined4 *)(iVar1 + 0x10);\n  }" { (return_statement "return *(undefined4 *)(iVar1 + 0x10);" return (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) ;) })) (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\nfunctionptrtype func_from_key(int *kbinput)\n\n{\n  sc *psVar1;\n  \n  psVar1 = get_shortcut(kbinput);\n  if (psVar1 != (sc *)0x0) {\n    return psVar1->func;\n  }\n  return (functionptrtype)0x0;\n}\n\n" comment comment (function_definition "functionptrtype func_from_key(int *kbinput)\n\n{\n  sc *psVar1;\n  \n  psVar1 = get_shortcut(kbinput);\n  if (psVar1 != (sc *)0x0) {\n    return psVar1->func;\n  }\n  return (functionptrtype)0x0;\n}" type_identifier (function_declarator "func_from_key(int *kbinput)" identifier (parameter_list "(int *kbinput)" ( (parameter_declaration "int *kbinput" primitive_type (pointer_declarator "*kbinput" * identifier)) ))) (compound_statement "{\n  sc *psVar1;\n  \n  psVar1 = get_shortcut(kbinput);\n  if (psVar1 != (sc *)0x0) {\n    return psVar1->func;\n  }\n  return (functionptrtype)0x0;\n}" { (declaration "sc *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = get_shortcut(kbinput);" (assignment_expression "psVar1 = get_shortcut(kbinput)" identifier = (call_expression "get_shortcut(kbinput)" identifier (argument_list "(kbinput)" ( identifier )))) ;) (if_statement "if (psVar1 != (sc *)0x0) {\n    return psVar1->func;\n  }" if (parenthesized_expression "(psVar1 != (sc *)0x0)" ( (binary_expression "psVar1 != (sc *)0x0" identifier != (cast_expression "(sc *)0x0" ( (type_descriptor "sc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return psVar1->func;\n  }" { (return_statement "return psVar1->func;" return (field_expression "psVar1->func" identifier -> field_identifier) ;) })) (return_statement "return (functionptrtype)0x0;" return (cast_expression "(functionptrtype)0x0" ( (type_descriptor "functionptrtype" type_identifier) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_0001e670(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001e670(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001e670(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000370e0(param_1);" (assignment_expression "iVar1 = FUN_000370e0(param_1)" identifier = (call_expression "FUN_000370e0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return *(undefined4 *)(iVar1 + 0x10);\n  }" { (return_statement "return *(undefined4 *)(iVar1 + 0x10);" return (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001e670(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001e670(undefined4 param_1)" (identifier "FUN_0001e670") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000370e0(param_1);\n  if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_000370e0(param_1);" (assignment_expression "iVar1 = FUN_000370e0(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_000370e0(param_1)" (identifier "FUN_000370e0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    return *(undefined4 *)(iVar1 + 0x10);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(undefined4 *)(iVar1 + 0x10);\n  }" ({ "{") (return_statement "return *(undefined4 *)(iVar1 + 0x10);" (return "return") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (} "}"))) (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 */

type_1 function_1(int *kbinput)

{
  type_2 *var_2;
  
  var_2 = var_1(kbinput);
  if (var_2 != (type_2 *)0x0) {
    return var_2->func;
  }
  return (type_1)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = FUN_000370e0(param_1);
  if (iVar1 != 0) {
    return *(undefined4 *)(iVar1 + 0x10);
  }
  return 0;
}

