
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ctype<wchar_t>::do_is(unsigned short, wchar_t) const */

bool __thiscall std::ctype<wchar_t>::do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  if (*(ushort *)(this + 0x49a) == param_1) {
    iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8));
    return iVar2 != 0;
  }
  do {
    if ((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0) {
      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),
                           *(undefined4 *)(this + 8));
      if (iVar1 != 0) {
        return true;
      }
      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {
        return false;
      }
    }
    iVar2 = iVar2 + 1;
    if (iVar2 == 0xc) {
      return false;
    }
  } while( true );
}



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

bool FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  if (*(ushort *)(param_1 + 0x49a) == param_2) {
    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));
    return iVar2 != 0;
  }
  do {
    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {
      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),
                           *(undefined4 *)(param_1 + 8));
      if (iVar1 != 0) {
        return true;
      }
      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {
        return false;
      }
    }
    iVar2 = iVar2 + 1;
    if (iVar2 == 0xc) {
      return false;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
XOR ESI,ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x1584c5
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x20]
MOV EBP,EAX
CMP word ptr [EDI + 0x49a],AX
JNZ 0x001e6b68
JMP 0x001e6bb0
ADD ESI,0x1
CMP ESI,0xc
JZ 0x001e6ba0
TEST word ptr [EDI + ESI*0x2 + 0x490],BP
JZ 0x001e6b60
SUB ESP,0x4
PUSH dword ptr [EDI + 0x8]
PUSH dword ptr [EDI + ESI*0x4 + 0x4b0]
PUSH dword ptr [ESP + 0x34]
CALL 0x00028880
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001e6bd8
CMP word ptr [EDI + ESI*0x2 + 0x490],BP
JNZ 0x001e6b60
LEA ESI,[ESI]
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH dword ptr [EDI + 0x8]
PUSH dword ptr [EDI + 0x4c4]
PUSH dword ptr [ESP + 0x34]
CALL 0x00028880
ADD ESP,0x10
TEST EAX,EAX
SETNZ AL
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0x1
JMP 0x001e6ba2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}\n\n" comment (function_definition "bool FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,ushort param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "ushort param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x49a) == param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x49a) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x49a)" * (cast_expression "(ushort *)(param_1 + 0x49a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x49a)" ( (binary_expression "param_1 + 0x49a" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }" { (expression_statement "iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" identifier = (call_expression "__iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (return_statement "return iVar2 != 0;" return (binary_expression "iVar2 != 0" identifier != number_literal) ;) })) (do_statement "do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );" do (compound_statement "{\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  }" { (if_statement "if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }" if (parenthesized_expression "((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0)" ( (binary_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2" (pointer_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2)" * (cast_expression "(ushort *)(param_1 + 0x490 + iVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x490 + iVar2 * 2)" ( (binary_expression "param_1 + 0x490 + iVar2 * 2" (binary_expression "param_1 + 0x490" identifier + number_literal) + (binary_expression "iVar2 * 2" identifier * number_literal)) )))) & identifier) )) != number_literal) )) (compound_statement "{\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" identifier = (call_expression "__iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b0 + iVar2 * 4)" ( (binary_expression "param_1 + 0x4b0 + iVar2 * 4" (binary_expression "param_1 + 0x4b0" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (if_statement "if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2)" * (cast_expression "(ushort *)(param_1 + 0x490 + iVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x490 + iVar2 * 2)" ( (binary_expression "param_1 + 0x490 + iVar2 * 2" (binary_expression "param_1 + 0x490" identifier + number_literal) + (binary_expression "iVar2 * 2" identifier * number_literal)) )))) == identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0xc) {\n      return false;\n    }" if (parenthesized_expression "(iVar2 == 0xc)" ( (binary_expression "iVar2 == 0xc" identifier == number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ctype<wchar_t>::do_is(unsigned short, wchar_t) const */\n\nbool __thiscall std::ctype<wchar_t>::do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(this + 0x49a) == param_1) {\n    iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0) {\n      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}\n\n" comment comment (function_definition "bool __thiscall std::ctype<wchar_t>::do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(this + 0x49a) == param_1) {\n    iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0) {\n      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_is(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)" identifier (parameter_list "(ctype<wchar_t> *this,ushort param_1,wchar_t param_2)" ( (parameter_declaration "ctype<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "ushort param_1" type_identifier identifier) , (parameter_declaration "wchar_t param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(this + 0x49a) == param_1) {\n    iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0) {\n      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (*(ushort *)(this + 0x49a) == param_1) {\n    iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8));\n    return iVar2 != 0;\n  }" if (parenthesized_expression "(*(ushort *)(this + 0x49a) == param_1)" ( (binary_expression "*(ushort *)(this + 0x49a) == param_1" (pointer_expression "*(ushort *)(this + 0x49a)" * (cast_expression "(ushort *)(this + 0x49a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x49a)" ( (binary_expression "this + 0x49a" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n    iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8));\n    return iVar2 != 0;\n  }" { (expression_statement "iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8));" (assignment_expression "iVar2 = __iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8))" identifier = (call_expression "__iswctype_l(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8))" identifier (argument_list "(param_2,*(undefined4 *)(this + 0x4c4),*(undefined4 *)(this + 8))" ( identifier , (pointer_expression "*(undefined4 *)(this + 0x4c4)" * (cast_expression "(undefined4 *)(this + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x4c4)" ( (binary_expression "this + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) )))) ;) (return_statement "return iVar2 != 0;" return (binary_expression "iVar2 != 0" identifier != number_literal) ;) })) (do_statement "do {\n    if ((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0) {\n      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );" do (compound_statement "{\n    if ((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0) {\n      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  }" { (if_statement "if ((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0) {\n      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }\n    }" if (parenthesized_expression "((*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0)" ( (binary_expression "(*(ushort *)(this + iVar2 * 2 + 0x490) & param_1) != 0" (parenthesized_expression "(*(ushort *)(this + iVar2 * 2 + 0x490) & param_1)" ( (binary_expression "*(ushort *)(this + iVar2 * 2 + 0x490) & param_1" (pointer_expression "*(ushort *)(this + iVar2 * 2 + 0x490)" * (cast_expression "(ushort *)(this + iVar2 * 2 + 0x490)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar2 * 2 + 0x490)" ( (binary_expression "this + iVar2 * 2 + 0x490" (binary_expression "this + iVar2 * 2" identifier + (binary_expression "iVar2 * 2" identifier * number_literal)) + number_literal) )))) & identifier) )) != number_literal) )) (compound_statement "{\n      iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8));" (assignment_expression "iVar1 = __iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8))" identifier = (call_expression "__iswctype_l(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8))" identifier (argument_list "(param_2,*(undefined4 *)(this + iVar2 * 4 + 0x4b0),\n                           *(undefined4 *)(this + 8))" ( identifier , (pointer_expression "*(undefined4 *)(this + iVar2 * 4 + 0x4b0)" * (cast_expression "(undefined4 *)(this + iVar2 * 4 + 0x4b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar2 * 4 + 0x4b0)" ( (binary_expression "this + iVar2 * 4 + 0x4b0" (binary_expression "this + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) + number_literal) )))) , (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (if_statement "if (*(ushort *)(this + iVar2 * 2 + 0x490) == param_1) {\n        return false;\n      }" if (parenthesized_expression "(*(ushort *)(this + iVar2 * 2 + 0x490) == param_1)" ( (binary_expression "*(ushort *)(this + iVar2 * 2 + 0x490) == param_1" (pointer_expression "*(ushort *)(this + iVar2 * 2 + 0x490)" * (cast_expression "(ushort *)(this + iVar2 * 2 + 0x490)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar2 * 2 + 0x490)" ( (binary_expression "this + iVar2 * 2 + 0x490" (binary_expression "this + iVar2 * 2" identifier + (binary_expression "iVar2 * 2" identifier * number_literal)) + number_literal) )))) == identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0xc) {\n      return false;\n    }" if (parenthesized_expression "(iVar2 == 0xc)" ( (binary_expression "iVar2 == 0xc" identifier == number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "bool FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}\n\n" (function_definition "bool FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,ushort param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "ushort param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x49a) == param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x49a) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x49a)" * (cast_expression "(ushort *)(param_1 + 0x49a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x49a)" ( (binary_expression "param_1 + 0x49a" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }" { (expression_statement "iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" identifier = (call_expression "__iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (return_statement "return iVar2 != 0;" return (binary_expression "iVar2 != 0" identifier != number_literal) ;) })) (do_statement "do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );" do (compound_statement "{\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  }" { (if_statement "if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }" if (parenthesized_expression "((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0)" ( (binary_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2" (pointer_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2)" * (cast_expression "(ushort *)(param_1 + 0x490 + iVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x490 + iVar2 * 2)" ( (binary_expression "param_1 + 0x490 + iVar2 * 2" (binary_expression "param_1 + 0x490" identifier + number_literal) + (binary_expression "iVar2 * 2" identifier * number_literal)) )))) & identifier) )) != number_literal) )) (compound_statement "{\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" identifier = (call_expression "__iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4b0 + iVar2 * 4)" ( (binary_expression "param_1 + 0x4b0 + iVar2 * 4" (binary_expression "param_1 + 0x4b0" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (if_statement "if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }" if (parenthesized_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2)" * (cast_expression "(ushort *)(param_1 + 0x490 + iVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x490 + iVar2 * 2)" ( (binary_expression "param_1 + 0x490 + iVar2 * 2" (binary_expression "param_1 + 0x490" identifier + number_literal) + (binary_expression "iVar2 * 2" identifier * number_literal)) )))) == identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0xc) {\n      return false;\n    }" if (parenthesized_expression "(iVar2 == 0xc)" ( (binary_expression "iVar2 == 0xc" identifier == number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) & IDENT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) , (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 { (return_statement return BOOL ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) == IDENT) )) (compound_statement { (return_statement return BOOL ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return BOOL ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "bool FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" (primitive_type "bool") (function_declarator "FUN_001e6b30(int param_1,ushort param_2,undefined4 param_3)" (identifier "FUN_001e6b30") (parameter_list "(int param_1,ushort param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "ushort param_2" (type_identifier "ushort") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }\n  do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(ushort *)(param_1 + 0x49a) == param_2) {\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }" (if "if") (parenthesized_expression "(*(ushort *)(param_1 + 0x49a) == param_2)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x49a) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x49a)" (* "*") (cast_expression "(ushort *)(param_1 + 0x49a)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x49a)" (( "(") (binary_expression "param_1 + 0x49a" (identifier "param_1") (+ "+") (number_literal "0x49a")) () ")")))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));\n    return iVar2 != 0;\n  }" ({ "{") (expression_statement "iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));" (assignment_expression "iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (identifier "iVar2") (= "=") (call_expression "__iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (identifier "__iswctype_l") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c4)" (( "(") (binary_expression "param_1 + 0x4c4" (identifier "param_1") (+ "+") (number_literal "0x4c4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (return_statement "return iVar2 != 0;" (return "return") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (do_statement "do {\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }\n    iVar2 = iVar2 + 1;\n    if (iVar2 == 0xc) {\n      return false;\n    }\n  }" ({ "{") (if_statement "if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }" (if "if") (parenthesized_expression "((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2" (pointer_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2)" (* "*") (cast_expression "(ushort *)(param_1 + 0x490 + iVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x490 + iVar2 * 2)" (( "(") (binary_expression "param_1 + 0x490 + iVar2 * 2" (binary_expression "param_1 + 0x490" (identifier "param_1") (+ "+") (number_literal "0x490")) (+ "+") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) () ")")))) (& "&") (identifier "param_2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));\n      if (iVar1 != 0) {\n        return true;\n      }\n      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }\n    }" ({ "{") (expression_statement "iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8));" (assignment_expression "iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" (identifier "iVar1") (= "=") (call_expression "__iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" (identifier "__iswctype_l") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),\n                           *(undefined4 *)(param_1 + 8))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4b0 + iVar2 * 4)" (( "(") (binary_expression "param_1 + 0x4b0 + iVar2 * 4" (binary_expression "param_1 + 0x4b0" (identifier "param_1") (+ "+") (number_literal "0x4b0")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return true;\n      }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (if_statement "if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {\n        return false;\n      }" (if "if") (parenthesized_expression "(*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2" (pointer_expression "*(ushort *)(param_1 + 0x490 + iVar2 * 2)" (* "*") (cast_expression "(ushort *)(param_1 + 0x490 + iVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x490 + iVar2 * 2)" (( "(") (binary_expression "param_1 + 0x490 + iVar2 * 2" (binary_expression "param_1 + 0x490" (identifier "param_1") (+ "+") (number_literal "0x490")) (+ "+") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) () ")")))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == 0xc) {\n      return false;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0xc)" (( "(") (binary_expression "iVar2 == 0xc" (identifier "iVar2") (== "==") (number_literal "0xc")) () ")")) (compound_statement "{\n      return false;\n    }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ctype<wchar_t>::do_is(unsigned short, wchar_t) const */

bool __thiscall std::type_1<type_3>::function_1(type_1<type_3> *var_1,type_2 var_2,type_3 param_2)

{
  int var_5;
  int var_4;
  
  var_4 = 0;
  if (*(type_2 *)(var_1 + 0x49a) == var_2) {
    var_4 = var_3(param_2,*(type_4 *)(var_1 + 0x4c4),*(type_4 *)(var_1 + 8));
    return var_4 != 0;
  }
  do {
    if ((*(type_2 *)(var_1 + var_4 * 2 + 0x490) & var_2) != 0) {
      var_5 = var_3(param_2,*(type_4 *)(var_1 + var_4 * 4 + 0x4b0),
                           *(type_4 *)(var_1 + 8));
      if (var_5 != 0) {
        return true;
      }
      if (*(type_2 *)(var_1 + var_4 * 2 + 0x490) == var_2) {
        return false;
      }
    }
    var_4 = var_4 + 1;
    if (var_4 == 0xc) {
      return false;
    }
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (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 (binary_expression left: (identifier) right: (number_literal))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) (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 (return_statement (true)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) consequence: (compound_statement (return_statement (false)))))) (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 (false))))) condition: (parenthesized_expression (true))))))

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

bool MASKED(int param_1,ushort param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  if (*(ushort *)(param_1 + 0x49a) == param_2) {
    iVar2 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 8));
    return iVar2 != 0;
  }
  do {
    if ((*(ushort *)(param_1 + 0x490 + iVar2 * 2) & param_2) != 0) {
      iVar1 = __iswctype_l(param_3,*(undefined4 *)(param_1 + 0x4b0 + iVar2 * 4),
                           *(undefined4 *)(param_1 + 8));
      if (iVar1 != 0) {
        return true;
      }
      if (*(ushort *)(param_1 + 0x490 + iVar2 * 2) == param_2) {
        return false;
      }
    }
    iVar2 = iVar2 + 1;
    if (iVar2 == 0xc) {
      return false;
    }
  } while( true );
}

