
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wios::clear(std::_Ios_Iostate) */

void std::wios::clear(_Ios_Iostate param_1)

{
}



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

void FUN_003d8970(int param_1,uint param_2)

{
  if (*(int *)(param_1 + 0x7c) == 0) {
    param_2 = param_2 | 1;
  }
  *(uint *)(param_1 + 0x14) = param_2;
  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_003eddc0("basic_ios::clear");
}


PUSH EBX
CALL 0x00050b50
ADD EBX,0x21168a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [EAX + 0x7c]
TEST ECX,ECX
JZ 0x003d89a0
MOV dword ptr [EAX + 0x14],EDX
TEST dword ptr [EAX + 0x10],EDX
JNZ 0x003d89a5
ADD ESP,0x8
POP EBX
RET
OR EDX,0x1
JMP 0x003d898e
SUB ESP,0xc
LEA EAX,[EBX + 0xffeb8f87]
PUSH EAX
CALL 0x003eddc0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_003d8970(int param_1,uint param_2)\n\n{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_003eddc0("basic_ios::clear");\n}\n\n" comment (function_definition "void FUN_003d8970(int param_1,uint param_2)\n\n{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_003eddc0("basic_ios::clear");\n}" primitive_type (function_declarator "FUN_003d8970(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_003eddc0("basic_ios::clear");\n}" { (if_statement "if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x7c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x7c) == 0" (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    param_2 = param_2 | 1;\n  }" { (expression_statement "param_2 = param_2 | 1;" (assignment_expression "param_2 = param_2 | 1" identifier = (binary_expression "param_2 | 1" identifier | number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0x14) = param_2;" (assignment_expression "*(uint *)(param_1 + 0x14) = param_2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x10) & param_2) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x10) & param_2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & param_2)" ( (binary_expression "*(uint *)(param_1 + 0x10) & param_2" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & identifier) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_003eddc0("basic_ios::clear");" (call_expression "FUN_003eddc0("basic_ios::clear")" identifier (argument_list "("basic_ios::clear")" ( (string_literal ""basic_ios::clear"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wios::clear(std::_Ios_Iostate) */\n\nvoid std::wios::clear(_Ios_Iostate param_1)\n\n{\n}\n\n" comment comment (function_definition "void std::wios::clear(_Ios_Iostate param_1)\n\n{\n}" primitive_type (ERROR "std::wios::" identifier : : identifier : :) (function_declarator "clear(_Ios_Iostate param_1)" identifier (parameter_list "(_Ios_Iostate param_1)" ( (parameter_declaration "_Ios_Iostate param_1" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_003d8970(int param_1,uint param_2)\n\n{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_003eddc0("basic_ios::clear");\n}\n\n" (function_definition "void FUN_003d8970(int param_1,uint param_2)\n\n{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_003eddc0("basic_ios::clear");\n}" primitive_type (function_declarator "FUN_003d8970(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_003eddc0("basic_ios::clear");\n}" { (if_statement "if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x7c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x7c) == 0" (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    param_2 = param_2 | 1;\n  }" { (expression_statement "param_2 = param_2 | 1;" (assignment_expression "param_2 = param_2 | 1" identifier = (binary_expression "param_2 | 1" identifier | number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0x14) = param_2;" (assignment_expression "*(uint *)(param_1 + 0x14) = param_2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x10) & param_2) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x10) & param_2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & param_2)" ( (binary_expression "*(uint *)(param_1 + 0x10) & param_2" (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & identifier) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_003eddc0("basic_ios::clear");" (call_expression "FUN_003eddc0("basic_ios::clear")" identifier (argument_list "("basic_ios::clear")" ( (string_literal ""basic_ios::clear"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 IDENT + LIT) )))) & IDENT) )) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_003d8970(int param_1,uint param_2)\n\n{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_003eddc0("basic_ios::clear");\n}" (primitive_type "void") (function_declarator "FUN_003d8970(int param_1,uint param_2)" (identifier "FUN_003d8970") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x14) = param_2;\n  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_003eddc0("basic_ios::clear");\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x7c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x7c) == 0" (pointer_expression "*(int *)(param_1 + 0x7c)" (* "*") (cast_expression "(int *)(param_1 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = param_2 | 1;\n  }" ({ "{") (expression_statement "param_2 = param_2 | 1;" (assignment_expression "param_2 = param_2 | 1" (identifier "param_2") (= "=") (binary_expression "param_2 | 1" (identifier "param_2") (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x14) = param_2;" (assignment_expression "*(uint *)(param_1 + 0x14) = param_2" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x10) & param_2) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x10) & param_2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x10) & param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x10) & param_2" (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (identifier "param_2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_003eddc0("basic_ios::clear");" (call_expression "FUN_003eddc0("basic_ios::clear")" (identifier "FUN_003eddc0") (argument_list "("basic_ios::clear")" (( "(") (string_literal ""basic_ios::clear"" (" """) (string_content "basic_ios::clear") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wios::clear(std::_Ios_Iostate) */

void std::wios::function_1(type_1 param_1)

{
}


(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)))) body: (compound_statement (if_statement condition: (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_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))) (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: (identifier) right: (number_literal))))) right: (identifier))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

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

void MASKED(int param_1,uint param_2)

{
  if (*(int *)(param_1 + 0x7c) == 0) {
    param_2 = param_2 | 1;
  }
  *(uint *)(param_1 + 0x14) = param_2;
  if ((*(uint *)(param_1 + 0x10) & param_2) == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_003eddc0("basic_ios::clear");
}

