
/* std::ctype<char>::do_toupper(char*, char const*) const */

void __thiscall std::ctype<char>::do_toupper(ctype<char> *this,char *param_1,char *param_2)

{
  byte *pbVar1;
  
  if (param_1 < param_2) {
    do {
      pbVar1 = (byte *)param_1 + 1;
      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);
      param_1 = (char *)pbVar1;
    } while ((byte *)param_2 != pbVar1);
  }
  return;
}



void FUN_003101f0(long param_1,byte *param_2,byte *param_3)

{
  byte *pbVar1;
  
  if (param_2 < param_3) {
    do {
      pbVar1 = param_2 + 1;
      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);
      param_2 = pbVar1;
    } while (param_3 != pbVar1);
  }
  return;
}


MOV RAX,RDX
CMP RSI,RDX
JNC 0x00310218
NOP dword ptr [RAX + RAX*0x1]
MOVZX R8D,byte ptr [RSI]
MOV RCX,qword ptr [RDI + 0x20]
ADD RSI,0x1
MOV ECX,dword ptr [RCX + R8*0x4]
MOV byte ptr [RSI + -0x1],CL
CMP RAX,RSI
JNZ 0x00310200
RET
(translation_unit "void FUN_003101f0(long param_1,byte *param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_003101f0(long param_1,byte *param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003101f0(long param_1,byte *param_2,byte *param_3)" identifier (parameter_list "(long param_1,byte *param_2,byte *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (if_statement "if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }" { (do_statement "do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);" do (compound_statement "{\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    }" { (expression_statement "pbVar1 = param_2 + 1;" (assignment_expression "pbVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);" (assignment_expression "*param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (pointer_expression "*param_2" * identifier) = (binary_expression "(byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" ( (binary_expression "*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + (binary_expression "(ulong)*param_2 * 4" (binary_expression "(ulong)*param_2" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal)) ))))) ;) (expression_statement "param_2 = pbVar1;" (assignment_expression "param_2 = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(param_3 != pbVar1)" ( (binary_expression "param_3 != pbVar1" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::ctype<char>::do_toupper(char*, char const*) const */\n\nvoid __thiscall std::ctype<char>::do_toupper(ctype<char> *this,char *param_1,char *param_2)\n\n{\n  byte *pbVar1;\n  \n  if (param_1 < param_2) {\n    do {\n      pbVar1 = (byte *)param_1 + 1;\n      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);\n      param_1 = (char *)pbVar1;\n    } while ((byte *)param_2 != pbVar1);\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ctype<char>::do_toupper(ctype<char> *this,char *param_1,char *param_2)\n\n{\n  byte *pbVar1;\n  \n  if (param_1 < param_2) {\n    do {\n      pbVar1 = (byte *)param_1 + 1;\n      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);\n      param_1 = (char *)pbVar1;\n    } while ((byte *)param_2 != pbVar1);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_toupper(ctype<char> *this,char *param_1,char *param_2)" identifier (parameter_list "(ctype<char> *this,char *param_1,char *param_2)" ( (parameter_declaration "ctype<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  \n  if (param_1 < param_2) {\n    do {\n      pbVar1 = (byte *)param_1 + 1;\n      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);\n      param_1 = (char *)pbVar1;\n    } while ((byte *)param_2 != pbVar1);\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (if_statement "if (param_1 < param_2) {\n    do {\n      pbVar1 = (byte *)param_1 + 1;\n      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);\n      param_1 = (char *)pbVar1;\n    } while ((byte *)param_2 != pbVar1);\n  }" if (parenthesized_expression "(param_1 < param_2)" ( (binary_expression "param_1 < param_2" identifier < identifier) )) (compound_statement "{\n    do {\n      pbVar1 = (byte *)param_1 + 1;\n      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);\n      param_1 = (char *)pbVar1;\n    } while ((byte *)param_2 != pbVar1);\n  }" { (do_statement "do {\n      pbVar1 = (byte *)param_1 + 1;\n      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);\n      param_1 = (char *)pbVar1;\n    } while ((byte *)param_2 != pbVar1);" do (compound_statement "{\n      pbVar1 = (byte *)param_1 + 1;\n      *param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);\n      param_1 = (char *)pbVar1;\n    }" { (expression_statement "pbVar1 = (byte *)param_1 + 1;" (assignment_expression "pbVar1 = (byte *)param_1 + 1" identifier = (binary_expression "(byte *)param_1 + 1" (cast_expression "(byte *)param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal)) ;) (expression_statement "*param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4);" (assignment_expression "*param_1 = (byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4)" (pointer_expression "*param_1" * identifier) = (binary_expression "(byte)*(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4)" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined4 *)(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4)" ( (binary_expression "*(long *)(this + 0x20) + (ulong)(byte)*param_1 * 4" (pointer_expression "*(long *)(this + 0x20)" * (cast_expression "(long *)(this + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) + (binary_expression "(ulong)(byte)*param_1 * 4" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) * number_literal)) ))))) ;) (expression_statement "param_1 = (char *)pbVar1;" (assignment_expression "param_1 = (char *)pbVar1" identifier = (cast_expression "(char *)pbVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) while (parenthesized_expression "((byte *)param_2 != pbVar1)" ( (binary_expression "(byte *)param_2 != pbVar1" (cast_expression "(byte *)param_2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003101f0(long param_1,byte *param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_003101f0(long param_1,byte *param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003101f0(long param_1,byte *param_2,byte *param_3)" identifier (parameter_list "(long param_1,byte *param_2,byte *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (if_statement "if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }" { (do_statement "do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);" do (compound_statement "{\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    }" { (expression_statement "pbVar1 = param_2 + 1;" (assignment_expression "pbVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);" (assignment_expression "*param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (pointer_expression "*param_2" * identifier) = (binary_expression "(byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" ( (binary_expression "*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + (binary_expression "(ulong)*param_2 * 4" (binary_expression "(ulong)*param_2" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal)) ))))) ;) (expression_statement "param_2 = pbVar1;" (assignment_expression "param_2 = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(param_3 != pbVar1)" ( (binary_expression "param_3 != pbVar1" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_003101f0(long param_1,byte *param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003101f0(long param_1,byte *param_2,byte *param_3)" (identifier "FUN_003101f0") (parameter_list "(long param_1,byte *param_2,byte *param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "byte *param_3" (type_identifier "byte") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  \n  if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (if_statement "if (param_2 < param_3) {\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }" (if "if") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);\n  }" ({ "{") (do_statement "do {\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    } while (param_3 != pbVar1);" (do "do") (compound_statement "{\n      pbVar1 = param_2 + 1;\n      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);\n      param_2 = pbVar1;\n    }" ({ "{") (expression_statement "pbVar1 = param_2 + 1;" (assignment_expression "pbVar1 = param_2 + 1" (identifier "pbVar1") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);" (assignment_expression "*param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "(byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4)" (( "(") (binary_expression "*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4" (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (binary_expression "(ulong)*param_2 * 4" (binary_expression "(ulong)*param_2" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "param_2")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "param_2 = pbVar1;" (assignment_expression "param_2 = pbVar1" (identifier "param_2") (= "=") (identifier "pbVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != pbVar1)" (( "(") (binary_expression "param_3 != pbVar1" (identifier "param_3") (!= "!=") (identifier "pbVar1")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ctype<char>::do_toupper(char*, char const*) const */

void __thiscall std::type_1<char>::function_1(type_1<char> *var_3,char *var_1,char *var_2)

{
  type_2 *var_4;
  
  if (var_1 < var_2) {
    do {
      var_4 = (type_2 *)var_1 + 1;
      *var_1 = (type_2)*(type_3 *)(*(long *)(var_3 + 0x20) + (ulong)(type_2)*var_1 * 4);
      var_1 = (char *)var_4;
    } while ((type_2 *)var_2 != var_4);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement))))

void MASKED(long param_1,byte *param_2,byte *param_3)

{
  byte *pbVar1;
  
  if (param_2 < param_3) {
    do {
      pbVar1 = param_2 + 1;
      *param_2 = (byte)*(undefined4 *)(*(long *)(param_1 + 0x20) + (ulong)*param_2 * 4);
      param_2 = pbVar1;
    } while (param_3 != pbVar1);
  }
  return;
}

