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

undefined4 __regparm3 base_of_encoded_value(byte param_1,int param_2)

{
  byte bVar1;
  undefined4 uVar2;
  
  if (param_1 == 0xff) {
    return 0;
  }
  bVar1 = param_1 & 0x70;
  if (bVar1 == 0x20) {
    uVar2 = *(undefined4 *)(param_2 + 0x54);
  }
  else {
    if (bVar1 < 0x21) {
      if ((param_1 & 0x70) == 0) {
        return 0;
      }
      if (bVar1 == 0x10) {
        return 0;
      }
LAB_0027bb2d:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    if (bVar1 == 0x40) {
      uVar2 = *(undefined4 *)(param_2 + 0x5c);
    }
    else {
      if (bVar1 == 0x50) {
        return 0;
      }
      if (bVar1 != 0x30) goto LAB_0027bb2d;
      uVar2 = *(undefined4 *)(param_2 + 0x58);
    }
  }
  return uVar2;
}



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

undefined4 __regparm3 FUN_0027bae0(byte param_1,int param_2)

{
  byte bVar1;
  undefined4 uVar2;
  
  if (param_1 == 0xff) {
    return 0;
  }
  bVar1 = param_1 & 0x70;
  if (bVar1 == 0x20) {
    uVar2 = *(undefined4 *)(param_2 + 0x54);
  }
  else {
    if (bVar1 < 0x21) {
      if ((param_1 & 0x70) == 0) {
        return 0;
      }
      if (bVar1 == 0x10) {
        return 0;
      }
LAB_0027bb2d:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    if (bVar1 == 0x40) {
      uVar2 = *(undefined4 *)(param_2 + 0x5c);
    }
    else {
      if (bVar1 == 0x50) {
        return 0;
      }
      if (bVar1 != 0x30) goto LAB_0027bb2d;
      uVar2 = *(undefined4 *)(param_2 + 0x58);
    }
  }
  return uVar2;
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x11351a
SUB ESP,0x8
CMP AL,0xff
JZ 0x0027bb18
AND EAX,0x70
CMP AL,0x20
JZ 0x0027bb28
JBE 0x0027bb10
CMP AL,0x40
JZ 0x0027bb20
CMP AL,0x50
JZ 0x0027bb18
CMP AL,0x30
JNZ 0x0027bb2d
MOV EAX,dword ptr [EDX + 0x58]
ADD ESP,0x8
POP EBX
RET
TEST AL,AL
JZ 0x0027bb18
CMP AL,0x10
JNZ 0x0027bb2d
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
MOV EAX,dword ptr [EDX + 0x5c]
JMP 0x0027bb0b
MOV EAX,dword ptr [EDX + 0x54]
JMP 0x0027bb0b
CALL 0x00029080
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0027bae0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0027bae0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0027bae0(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  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" if (parenthesized_expression "(bVar1 == 0x20)" ( (binary_expression "bVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x54)" * (cast_expression "(undefined4 *)(param_2 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x54)" ( (binary_expression "param_2 + 0x54" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" else (compound_statement "{\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" { (if_statement "if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(bVar1 < 0x21)" ( (binary_expression "bVar1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { (if_statement "if ((param_1 & 0x70) == 0) {\n        return 0;\n      }" if (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) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 == 0x10) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0x10)" ( (binary_expression "bVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (if_statement "if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" if (parenthesized_expression "(bVar1 == 0x40)" ( (binary_expression "bVar1 == 0x40" identifier == number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }" { (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" * (cast_expression "(undefined4 *)(param_2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" else (compound_statement "{\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" { (if_statement "if (bVar1 == 0x50) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0x50)" ( (binary_expression "bVar1 == 0x50" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 != 0x30) goto LAB_0027bb2d;" if (parenthesized_expression "(bVar1 != 0x30)" ( (binary_expression "bVar1 != 0x30" identifier != number_literal) )) (goto_statement "goto LAB_0027bb2d;" goto statement_identifier ;)) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x58);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x58)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x58)" * (cast_expression "(undefined4 *)(param_2 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) }))) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 base_of_encoded_value(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 __regparm3 base_of_encoded_value(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "base_of_encoded_value(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  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" if (parenthesized_expression "(bVar1 == 0x20)" ( (binary_expression "bVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x54)" * (cast_expression "(undefined4 *)(param_2 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x54)" ( (binary_expression "param_2 + 0x54" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" else (compound_statement "{\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" { (if_statement "if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(bVar1 < 0x21)" ( (binary_expression "bVar1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { (if_statement "if ((param_1 & 0x70) == 0) {\n        return 0;\n      }" if (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) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 == 0x10) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0x10)" ( (binary_expression "bVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0027bb2d:\n                    /* WARNING: Subroutine does not return */\n      abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (if_statement "if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" if (parenthesized_expression "(bVar1 == 0x40)" ( (binary_expression "bVar1 == 0x40" identifier == number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }" { (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" * (cast_expression "(undefined4 *)(param_2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" else (compound_statement "{\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" { (if_statement "if (bVar1 == 0x50) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0x50)" ( (binary_expression "bVar1 == 0x50" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 != 0x30) goto LAB_0027bb2d;" if (parenthesized_expression "(bVar1 != 0x30)" ( (binary_expression "bVar1 != 0x30" identifier != number_literal) )) (goto_statement "goto LAB_0027bb2d;" goto statement_identifier ;)) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x58);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x58)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x58)" * (cast_expression "(undefined4 *)(param_2 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) }))) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_0027bae0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0027bae0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0027bae0(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  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" if (parenthesized_expression "(bVar1 == 0x20)" ( (binary_expression "bVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x54)" * (cast_expression "(undefined4 *)(param_2 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x54)" ( (binary_expression "param_2 + 0x54" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" else (compound_statement "{\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" { (if_statement "if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }" if (parenthesized_expression "(bVar1 < 0x21)" ( (binary_expression "bVar1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }" { (if_statement "if ((param_1 & 0x70) == 0) {\n        return 0;\n      }" if (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) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 == 0x10) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0x10)" ( (binary_expression "bVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0027bb2d:\n                    \n      abort();" statement_identifier : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (if_statement "if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" if (parenthesized_expression "(bVar1 == 0x40)" ( (binary_expression "bVar1 == 0x40" identifier == number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }" { (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" * (cast_expression "(undefined4 *)(param_2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" else (compound_statement "{\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" { (if_statement "if (bVar1 == 0x50) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0x50)" ( (binary_expression "bVar1 == 0x50" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 != 0x30) goto LAB_0027bb2d;" if (parenthesized_expression "(bVar1 != 0x30)" ( (binary_expression "bVar1 != 0x30" identifier != number_literal) )) (goto_statement "goto LAB_0027bb2d;" goto statement_identifier ;)) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x58);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x58)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x58)" * (cast_expression "(undefined4 *)(param_2 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) }))) }))) (return_statement "return uVar2;" return identifier ;) })))
(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 ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_0027bae0(byte param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0027bae0(byte param_1,int param_2)" (identifier "FUN_0027bae0") (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  undefined4 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0xff)" (( "(") (binary_expression "param_1 == 0xff" (identifier "param_1") (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (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    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }\n  else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" (if "if") (parenthesized_expression "(bVar1 == 0x20)" (( "(") (binary_expression "bVar1 == 0x20" (identifier "bVar1") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_2 + 0x54);\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x54);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x54)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x54)" (( "(") (binary_expression "param_2 + 0x54" (identifier "param_2") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" (else "else") (compound_statement "{\n    if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }\n    if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }\n  }" ({ "{") (if_statement "if (bVar1 < 0x21) {\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }" (if "if") (parenthesized_expression "(bVar1 < 0x21)" (( "(") (binary_expression "bVar1 < 0x21" (identifier "bVar1") (< "<") (number_literal "0x21")) () ")")) (compound_statement "{\n      if ((param_1 & 0x70) == 0) {\n        return 0;\n      }\n      if (bVar1 == 0x10) {\n        return 0;\n      }\nLAB_0027bb2d:\n                    \n      abort();\n    }" ({ "{") (if_statement "if ((param_1 & 0x70) == 0) {\n        return 0;\n      }" (if "if") (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")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (bVar1 == 0x10) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0x10)" (( "(") (binary_expression "bVar1 == 0x10" (identifier "bVar1") (== "==") (number_literal "0x10")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_0027bb2d:\n                    \n      abort();" (statement_identifier "LAB_0027bb2d") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (if_statement "if (bVar1 == 0x40) {\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }\n    else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" (if "if") (parenthesized_expression "(bVar1 == 0x40)" (( "(") (binary_expression "bVar1 == 0x40" (identifier "bVar1") (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n    }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x5c)" (( "(") (binary_expression "param_2 + 0x5c" (identifier "param_2") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" (else "else") (compound_statement "{\n      if (bVar1 == 0x50) {\n        return 0;\n      }\n      if (bVar1 != 0x30) goto LAB_0027bb2d;\n      uVar2 = *(undefined4 *)(param_2 + 0x58);\n    }" ({ "{") (if_statement "if (bVar1 == 0x50) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0x50)" (( "(") (binary_expression "bVar1 == 0x50" (identifier "bVar1") (== "==") (number_literal "0x50")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (bVar1 != 0x30) goto LAB_0027bb2d;" (if "if") (parenthesized_expression "(bVar1 != 0x30)" (( "(") (binary_expression "bVar1 != 0x30" (identifier "bVar1") (!= "!=") (number_literal "0x30")) () ")")) (goto_statement "goto LAB_0027bb2d;" (goto "goto") (statement_identifier "LAB_0027bb2d") (; ";"))) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x58);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x58)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (} "}")))) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* 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;
  type_1 uVar2;
  
  if (var_1 == 0xff) {
    return 0;
  }
  var_2 = var_1 & 0x70;
  if (var_2 == 0x20) {
    uVar2 = *(type_1 *)(var_3 + 0x54);
  }
  else {
    if (var_2 < 0x21) {
      if ((var_1 & 0x70) == 0) {
        return 0;
      }
      if (var_2 == 0x10) {
        return 0;
      }
LAB_0027bb2d:
                    /* WARNING: Subroutine does not return */
      var_4();
    }
    if (var_2 == 0x40) {
      uVar2 = *(type_1 *)(var_3 + 0x5c);
    }
    else {
      if (var_2 == 0x50) {
        return 0;
      }
      if (var_2 != 0x30) goto LAB_0027bb2d;
      uVar2 = *(type_1 *)(var_3 + 0x58);
    }
  }
  return uVar2;
}


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

/* 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;
  undefined4 uVar2;
  
  if (param_1 == 0xff) {
    return 0;
  }
  bVar1 = param_1 & 0x70;
  if (bVar1 == 0x20) {
    uVar2 = *(undefined4 *)(param_2 + 0x54);
  }
  else {
    if (bVar1 < 0x21) {
      if ((param_1 & 0x70) == 0) {
        return 0;
      }
      if (bVar1 == 0x10) {
        return 0;
      }
LAB_0027bb2d:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    if (bVar1 == 0x40) {
      uVar2 = *(undefined4 *)(param_2 + 0x5c);
    }
    else {
      if (bVar1 == 0x50) {
        return 0;
      }
      if (bVar1 != 0x30) goto LAB_0027bb2d;
      uVar2 = *(undefined4 *)(param_2 + 0x58);
    }
  }
  return uVar2;
}

