
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* std::streambuf::in_avail() */

void __thiscall std::streambuf::in_avail(streambuf *this)

{
  if ((*(int *)(this + 0xc) == *(int *)(this + 8)) &&
     (*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78)) {
                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*(int *)this + 0x1c))();
    return;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void FUN_001b7aa0(int *param_1)

{
  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {
                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*param_1 + 0x1c))();
    return;
  }
  return;
}


CALL 0x00058c46
ADD ECX,0x18755b
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EDX + 0xc]
SUB EAX,dword ptr [EDX + 0x8]
JNZ 0x001b7ac4
MOV EDX,dword ptr [EDX]
MOV EDX,dword ptr [EDX + 0x1c]
CMP EDX,dword ptr [ECX + 0xfffffc78]
JNZ 0x001b7ac8
RET
JMP EDX
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid FUN_001b7aa0(int *param_1)\n\n{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001b7aa0(int *param_1)\n\n{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001b7aa0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}" { (if_statement "if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }" if (parenthesized_expression "((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78))" ( (binary_expression "(param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)" (parenthesized_expression "(param_1[3] == param_1[2])" ( (binary_expression "param_1[3] == param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) == (subscript_expression "param_1[2]" identifier [ number_literal ])) )) && (parenthesized_expression "(*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)" ( (binary_expression "*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78" (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0033ec78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }" { comment comment (expression_statement "(**(code **)(*param_1 + 0x1c))();" (call_expression "(**(code **)(*param_1 + 0x1c))()" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" ( (pointer_expression "**(code **)(*param_1 + 0x1c)" * (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* std::streambuf::in_avail() */\n\nvoid __thiscall std::streambuf::in_avail(streambuf *this)\n\n{\n  if ((*(int *)(this + 0xc) == *(int *)(this + 8)) &&\n     (*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*(int *)this + 0x1c))();\n    return;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::streambuf::in_avail(streambuf *this)\n\n{\n  if ((*(int *)(this + 0xc) == *(int *)(this + 8)) &&\n     (*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*(int *)this + 0x1c))();\n    return;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::streambuf::" identifier : : identifier : :) (function_declarator "in_avail(streambuf *this)" identifier (parameter_list "(streambuf *this)" ( (parameter_declaration "streambuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  if ((*(int *)(this + 0xc) == *(int *)(this + 8)) &&\n     (*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*(int *)this + 0x1c))();\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(int *)(this + 0xc) == *(int *)(this + 8)) &&\n     (*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78)) {\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*(int *)this + 0x1c))();\n    return;\n  }" if (parenthesized_expression "((*(int *)(this + 0xc) == *(int *)(this + 8)) &&\n     (*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78))" ( (binary_expression "(*(int *)(this + 0xc) == *(int *)(this + 8)) &&\n     (*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78)" (parenthesized_expression "(*(int *)(this + 0xc) == *(int *)(this + 8))" ( (binary_expression "*(int *)(this + 0xc) == *(int *)(this + 8)" (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) == (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78)" ( (binary_expression "*(code **)(*(int *)this + 0x1c) != (code *)PTR_showmanyc_0033ec78" (pointer_expression "*(code **)(*(int *)this + 0x1c)" * (cast_expression "(code **)(*(int *)this + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x1c)" ( (binary_expression "*(int *)this + 0x1c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != (cast_expression "(code *)PTR_showmanyc_0033ec78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*(int *)this + 0x1c))();\n    return;\n  }" { comment comment (expression_statement "(**(code **)(*(int *)this + 0x1c))();" (call_expression "(**(code **)(*(int *)this + 0x1c))()" (parenthesized_expression "(**(code **)(*(int *)this + 0x1c))" ( (pointer_expression "**(code **)(*(int *)this + 0x1c)" * (pointer_expression "*(code **)(*(int *)this + 0x1c)" * (cast_expression "(code **)(*(int *)this + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x1c)" ( (binary_expression "*(int *)this + 0x1c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001b7aa0(int *param_1)\n\n{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001b7aa0(int *param_1)\n\n{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001b7aa0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}" { (if_statement "if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }" if (parenthesized_expression "((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78))" ( (binary_expression "(param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)" (parenthesized_expression "(param_1[3] == param_1[2])" ( (binary_expression "param_1[3] == param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) == (subscript_expression "param_1[2]" identifier [ number_literal ])) )) && (parenthesized_expression "(*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)" ( (binary_expression "*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78" (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0033ec78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) )) (compound_statement "{\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }" { (expression_statement "(**(code **)(*param_1 + 0x1c))();" (call_expression "(**(code **)(*param_1 + 0x1c))()" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" ( (pointer_expression "**(code **)(*param_1 + 0x1c)" * (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_001b7aa0(int *param_1)\n\n{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b7aa0(int *param_1)" (identifier "FUN_001b7aa0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }" (if "if") (parenthesized_expression "((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78))" (( "(") (binary_expression "(param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)" (parenthesized_expression "(param_1[3] == param_1[2])" (( "(") (binary_expression "param_1[3] == param_1[2]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (== "==") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)" (( "(") (binary_expression "*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78" (pointer_expression "*(code **)(*param_1 + 0x1c)" (* "*") (cast_expression "(code **)(*param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (cast_expression "(code *)PTR_FUN_0033ec78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0033ec78"))) () ")"))) () ")")) (compound_statement "{\n                    \n                    \n    (**(code **)(*param_1 + 0x1c))();\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(*param_1 + 0x1c))();" (call_expression "(**(code **)(*param_1 + 0x1c))()" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x1c)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x1c)" (* "*") (cast_expression "(code **)(*param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* std::streambuf::in_avail() */

void __thiscall std::type_1::function_1(type_1 *var_1)

{
  if ((*(int *)(var_1 + 0xc) == *(int *)(var_1 + 8)) &&
     (*(type_2 **)(*(int *)var_1 + 0x1c) != (type_2 *)PTR_showmanyc_0033ec78)) {
                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(type_2 **)(*(int *)var_1 + 0x1c))();
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))) (return_statement))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void MASKED(int *param_1)

{
  if ((param_1[3] == param_1[2]) && (*(code **)(*param_1 + 0x1c) != (code *)PTR_FUN_0033ec78)) {
                    /* WARNING: Could not recover jumptable at 0x001b7ac8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*param_1 + 0x1c))();
    return;
  }
  return;
}

