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

undefined4 __regparm3 base_from_cb_data(byte param_1,int param_2)

{
  byte bVar1;
  
  if (param_1 != 0xff) {
    bVar1 = param_1 & 0x70;
    if (bVar1 == 0x20) {
      return *(undefined4 *)(param_2 + 4);
    }
    if (bVar1 < 0x21) {
      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;
    }
    else {
      if (bVar1 == 0x30) {
        return *(undefined4 *)(param_2 + 8);
      }
      if (bVar1 != 0x50) {
LAB_0027e238:
                    /* WARNING: Subroutine does not return */
        abort();
      }
    }
  }
  return 0;
}



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

undefined4 __regparm3 FUN_0027e1f0(byte param_1,int param_2)

{
  byte bVar1;
  
  if (param_1 != 0xff) {
    bVar1 = param_1 & 0x70;
    if (bVar1 == 0x20) {
      return *(undefined4 *)(param_2 + 4);
    }
    if (bVar1 < 0x21) {
      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;
    }
    else {
      if (bVar1 == 0x30) {
        return *(undefined4 *)(param_2 + 8);
      }
      if (bVar1 != 0x50) {
LAB_0027e238:
                    /* WARNING: Subroutine does not return */
        abort();
      }
    }
  }
  return 0;
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x110e0a
SUB ESP,0x8
CMP AL,0xff
JZ 0x0027e224
AND EAX,0x70
CMP AL,0x20
JZ 0x0027e240
JBE 0x0027e230
CMP AL,0x30
JNZ 0x0027e220
MOV EAX,dword ptr [EDX + 0x8]
ADD ESP,0x8
POP EBX
RET
CMP AL,0x50
JNZ 0x0027e238
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
TEST AL,AL
JZ 0x0027e224
CMP AL,0x10
JZ 0x0027e224
CALL 0x00029080
MOV EAX,dword ptr [EDX + 0x4]
JMP 0x0027e213
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0027e1f0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0027e1f0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0027e1f0(byte param_1,int param_2)" identifier (parameter_list "(byte param_1,int param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0xff)" ( (binary_expression "param_1 != 0xff" identifier != number_literal) )) (compound_statement "{\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" { (expression_statement "bVar1 = param_1 & 0x70;" (assignment_expression "bVar1 = param_1 & 0x70" identifier = (binary_expression "param_1 & 0x70" identifier & number_literal)) ;) (if_statement "if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }" if (parenthesized_expression "(bVar1 == 0x20)" ( (binary_expression "bVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n      return *(undefined4 *)(param_2 + 4);\n    }" { (return_statement "return *(undefined4 *)(param_2 + 4);" return (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) ;) })) (if_statement "if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" if (parenthesized_expression "(bVar1 < 0x21)" ( (binary_expression "bVar1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }" { (if_statement "if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;" if (parenthesized_expression "(((param_1 & 0x70) != 0) && (bVar1 != 0x10))" ( (binary_expression "((param_1 & 0x70) != 0) && (bVar1 != 0x10)" (parenthesized_expression "((param_1 & 0x70) != 0)" ( (binary_expression "(param_1 & 0x70) != 0" (parenthesized_expression "(param_1 & 0x70)" ( (binary_expression "param_1 & 0x70" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(bVar1 != 0x10)" ( (binary_expression "bVar1 != 0x10" identifier != number_literal) ))) )) (goto_statement "goto LAB_0027e238;" goto statement_identifier ;)) }) (else_clause "else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" else (compound_statement "{\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" { (if_statement "if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }" if (parenthesized_expression "(bVar1 == 0x30)" ( (binary_expression "bVar1 == 0x30" identifier == number_literal) )) (compound_statement "{\n        return *(undefined4 *)(param_2 + 8);\n      }" { (return_statement "return *(undefined4 *)(param_2 + 8);" return (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" if (parenthesized_expression "(bVar1 != 0x50)" ( (binary_expression "bVar1 != 0x50" identifier != number_literal) )) (compound_statement "{\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" { (labeled_statement "LAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 base_from_cb_data(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 base_from_cb_data(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "base_from_cb_data(byte param_1,int param_2)" identifier (parameter_list "(byte param_1,int param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0xff)" ( (binary_expression "param_1 != 0xff" identifier != number_literal) )) (compound_statement "{\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" { (expression_statement "bVar1 = param_1 & 0x70;" (assignment_expression "bVar1 = param_1 & 0x70" identifier = (binary_expression "param_1 & 0x70" identifier & number_literal)) ;) (if_statement "if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }" if (parenthesized_expression "(bVar1 == 0x20)" ( (binary_expression "bVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n      return *(undefined4 *)(param_2 + 4);\n    }" { (return_statement "return *(undefined4 *)(param_2 + 4);" return (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) ;) })) (if_statement "if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" if (parenthesized_expression "(bVar1 < 0x21)" ( (binary_expression "bVar1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }" { (if_statement "if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;" if (parenthesized_expression "(((param_1 & 0x70) != 0) && (bVar1 != 0x10))" ( (binary_expression "((param_1 & 0x70) != 0) && (bVar1 != 0x10)" (parenthesized_expression "((param_1 & 0x70) != 0)" ( (binary_expression "(param_1 & 0x70) != 0" (parenthesized_expression "(param_1 & 0x70)" ( (binary_expression "param_1 & 0x70" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(bVar1 != 0x10)" ( (binary_expression "bVar1 != 0x10" identifier != number_literal) ))) )) (goto_statement "goto LAB_0027e238;" goto statement_identifier ;)) }) (else_clause "else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" else (compound_statement "{\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" { (if_statement "if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }" if (parenthesized_expression "(bVar1 == 0x30)" ( (binary_expression "bVar1 == 0x30" identifier == number_literal) )) (compound_statement "{\n        return *(undefined4 *)(param_2 + 8);\n      }" { (return_statement "return *(undefined4 *)(param_2 + 8);" return (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (bVar1 != 0x50) {\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" if (parenthesized_expression "(bVar1 != 0x50)" ( (binary_expression "bVar1 != 0x50" identifier != number_literal) )) (compound_statement "{\nLAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" { (labeled_statement "LAB_0027e238:\n                    /* WARNING: Subroutine does not return */\n        abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0027e1f0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0027e1f0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0027e1f0(byte param_1,int param_2)" identifier (parameter_list "(byte param_1,int param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0xff)" ( (binary_expression "param_1 != 0xff" identifier != number_literal) )) (compound_statement "{\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }" { (expression_statement "bVar1 = param_1 & 0x70;" (assignment_expression "bVar1 = param_1 & 0x70" identifier = (binary_expression "param_1 & 0x70" identifier & number_literal)) ;) (if_statement "if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }" if (parenthesized_expression "(bVar1 == 0x20)" ( (binary_expression "bVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n      return *(undefined4 *)(param_2 + 4);\n    }" { (return_statement "return *(undefined4 *)(param_2 + 4);" return (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) ;) })) (if_statement "if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }" if (parenthesized_expression "(bVar1 < 0x21)" ( (binary_expression "bVar1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }" { (if_statement "if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;" if (parenthesized_expression "(((param_1 & 0x70) != 0) && (bVar1 != 0x10))" ( (binary_expression "((param_1 & 0x70) != 0) && (bVar1 != 0x10)" (parenthesized_expression "((param_1 & 0x70) != 0)" ( (binary_expression "(param_1 & 0x70) != 0" (parenthesized_expression "(param_1 & 0x70)" ( (binary_expression "param_1 & 0x70" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(bVar1 != 0x10)" ( (binary_expression "bVar1 != 0x10" identifier != number_literal) ))) )) (goto_statement "goto LAB_0027e238;" goto statement_identifier ;)) }) (else_clause "else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }" else (compound_statement "{\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }" { (if_statement "if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }" if (parenthesized_expression "(bVar1 == 0x30)" ( (binary_expression "bVar1 == 0x30" identifier == number_literal) )) (compound_statement "{\n        return *(undefined4 *)(param_2 + 8);\n      }" { (return_statement "return *(undefined4 *)(param_2 + 8);" return (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }" if (parenthesized_expression "(bVar1 != 0x50)" ( (binary_expression "bVar1 != 0x50" identifier != number_literal) )) (compound_statement "{\nLAB_0027e238:\n                    \n        abort();\n      }" { (labeled_statement "LAB_0027e238:\n                    \n        abort();" statement_identifier : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 = (binary_expression IDENT & LIT)) ;) (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) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (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) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) }))) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0027e1f0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0027e1f0(byte param_1,int param_2)" (identifier "FUN_0027e1f0") (parameter_list "(byte param_1,int param_2)" (( "(") (parameter_declaration "byte param_1" (type_identifier "byte") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  \n  if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (if_statement "if (param_1 != 0xff) {\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0xff)" (( "(") (binary_expression "param_1 != 0xff" (identifier "param_1") (!= "!=") (number_literal "0xff")) () ")")) (compound_statement "{\n    bVar1 = param_1 & 0x70;\n    if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }\n    if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }\n  }" ({ "{") (expression_statement "bVar1 = param_1 & 0x70;" (assignment_expression "bVar1 = param_1 & 0x70" (identifier "bVar1") (= "=") (binary_expression "param_1 & 0x70" (identifier "param_1") (& "&") (number_literal "0x70"))) (; ";")) (if_statement "if (bVar1 == 0x20) {\n      return *(undefined4 *)(param_2 + 4);\n    }" (if "if") (parenthesized_expression "(bVar1 == 0x20)" (( "(") (binary_expression "bVar1 == 0x20" (identifier "bVar1") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n      return *(undefined4 *)(param_2 + 4);\n    }" ({ "{") (return_statement "return *(undefined4 *)(param_2 + 4);" (return "return") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}"))) (if_statement "if (bVar1 < 0x21) {\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }\n    else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }" (if "if") (parenthesized_expression "(bVar1 < 0x21)" (( "(") (binary_expression "bVar1 < 0x21" (identifier "bVar1") (< "<") (number_literal "0x21")) () ")")) (compound_statement "{\n      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;\n    }" ({ "{") (if_statement "if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;" (if "if") (parenthesized_expression "(((param_1 & 0x70) != 0) && (bVar1 != 0x10))" (( "(") (binary_expression "((param_1 & 0x70) != 0) && (bVar1 != 0x10)" (parenthesized_expression "((param_1 & 0x70) != 0)" (( "(") (binary_expression "(param_1 & 0x70) != 0" (parenthesized_expression "(param_1 & 0x70)" (( "(") (binary_expression "param_1 & 0x70" (identifier "param_1") (& "&") (number_literal "0x70")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(bVar1 != 0x10)" (( "(") (binary_expression "bVar1 != 0x10" (identifier "bVar1") (!= "!=") (number_literal "0x10")) () ")"))) () ")")) (goto_statement "goto LAB_0027e238;" (goto "goto") (statement_identifier "LAB_0027e238") (; ";"))) (} "}")) (else_clause "else {\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }" (else "else") (compound_statement "{\n      if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }\n      if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }\n    }" ({ "{") (if_statement "if (bVar1 == 0x30) {\n        return *(undefined4 *)(param_2 + 8);\n      }" (if "if") (parenthesized_expression "(bVar1 == 0x30)" (( "(") (binary_expression "bVar1 == 0x30" (identifier "bVar1") (== "==") (number_literal "0x30")) () ")")) (compound_statement "{\n        return *(undefined4 *)(param_2 + 8);\n      }" ({ "{") (return_statement "return *(undefined4 *)(param_2 + 8);" (return "return") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (if_statement "if (bVar1 != 0x50) {\nLAB_0027e238:\n                    \n        abort();\n      }" (if "if") (parenthesized_expression "(bVar1 != 0x50)" (( "(") (binary_expression "bVar1 != 0x50" (identifier "bVar1") (!= "!=") (number_literal "0x50")) () ")")) (compound_statement "{\nLAB_0027e238:\n                    \n        abort();\n      }" ({ "{") (labeled_statement "LAB_0027e238:\n                    \n        abort();" (statement_identifier "LAB_0027e238") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}")))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 var_1,int var_3)

{
  type_2 var_2;
  
  if (var_1 != 0xff) {
    var_2 = var_1 & 0x70;
    if (var_2 == 0x20) {
      return *(type_1 *)(var_3 + 4);
    }
    if (var_2 < 0x21) {
      if (((var_1 & 0x70) != 0) && (var_2 != 0x10)) goto LAB_0027e238;
    }
    else {
      if (var_2 == 0x30) {
        return *(type_1 *)(var_3 + 8);
      }
      if (var_2 != 0x50) {
LAB_0027e238:
                    /* WARNING: Subroutine does not return */
        var_4();
      }
    }
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))))))) (return_statement (number_literal)))))

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

undefined4 __regparm3 MASKED(byte param_1,int param_2)

{
  byte bVar1;
  
  if (param_1 != 0xff) {
    bVar1 = param_1 & 0x70;
    if (bVar1 == 0x20) {
      return *(undefined4 *)(param_2 + 4);
    }
    if (bVar1 < 0x21) {
      if (((param_1 & 0x70) != 0) && (bVar1 != 0x10)) goto LAB_0027e238;
    }
    else {
      if (bVar1 == 0x30) {
        return *(undefined4 *)(param_2 + 8);
      }
      if (bVar1 != 0x50) {
LAB_0027e238:
                    /* WARNING: Subroutine does not return */
        abort();
      }
    }
  }
  return 0;
}

