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

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

{
  return *(undefined4 *)(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4);
}



undefined4 FUN_00282ff0(int param_1,byte param_2)

{
  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);
}


MOV EAX,dword ptr [ESP + 0x4]
MOVZX EDX,byte ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x10]
MOV EAX,dword ptr [EAX + EDX*0x4]
RET
(translation_unit "undefined4 FUN_00282ff0(int param_1,byte param_2)\n\n{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}\n\n" (function_definition "undefined4 FUN_00282ff0(int param_1,byte param_2)\n\n{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}" type_identifier (function_declarator "FUN_00282ff0(int param_1,byte param_2)" identifier (parameter_list "(int param_1,byte param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}" { (return_statement "return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);" return (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + (uint)param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "(uint)param_2 * 4" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) ;) })))
(translation_unit "/* std::ctype<char>::do_toupper(char) const */\n\nundefined4 __thiscall std::ctype<char>::do_toupper(ctype<char> *this,char param_1)\n\n{\n  return *(undefined4 *)(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4);\n}\n\n" comment (function_definition "undefined4 __thiscall std::ctype<char>::do_toupper(ctype<char> *this,char param_1)\n\n{\n  return *(undefined4 *)(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4);\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_toupper(ctype<char> *this,char param_1)" identifier (parameter_list "(ctype<char> *this,char param_1)" ( (parameter_declaration "ctype<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  return *(undefined4 *)(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4);\n}" { (return_statement "return *(undefined4 *)(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4);" return (pointer_expression "*(undefined4 *)(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x10) + (uint)(byte)param_1 * 4)" ( (binary_expression "*(int *)(this + 0x10) + (uint)(byte)param_1 * 4" (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) + (binary_expression "(uint)(byte)param_1 * 4" (cast_expression "(uint)(byte)param_1" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier)) * number_literal)) )))) ;) })))
(translation_unit "undefined4 FUN_00282ff0(int param_1,byte param_2)\n\n{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}\n\n" (function_definition "undefined4 FUN_00282ff0(int param_1,byte param_2)\n\n{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}" type_identifier (function_declarator "FUN_00282ff0(int param_1,byte param_2)" identifier (parameter_list "(int param_1,byte param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}" { (return_statement "return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);" return (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + (uint)param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "(uint)param_2 * 4" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) ;) })))
(function_definition "undefined4 FUN_00282ff0(int param_1,byte param_2)\n\n{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}" (type_identifier "undefined4") (function_declarator "FUN_00282ff0(int param_1,byte param_2)" (identifier "FUN_00282ff0") (parameter_list "(int param_1,byte param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "byte param_2" (type_identifier "byte") (identifier "param_2")) () ")"))) (compound_statement "{\n  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);\n}" ({ "{") (return_statement "return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);" (return "return") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + (uint)param_2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + (uint)param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "(uint)param_2 * 4" (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}")))

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

type_1 __thiscall std::type_2<char>::function_1(type_2<char> *var_1,char param_1)

{
  return *(type_1 *)(*(int *)(var_1 + 0x10) + (type_3)(type_4)param_1 * 4);
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))))))))

undefined4 MASKED(int param_1,byte param_2)

{
  return *(undefined4 *)(*(int *)(param_1 + 0x10) + (uint)param_2 * 4);
}

