
/* std::wfilebuf::sync() */

int __thiscall std::wfilebuf::sync(wfilebuf *this)

{
  int iVar1;
  
  iVar1 = 0;
  if (*(uint *)(this + 0x10) < *(uint *)(this + 0x14)) {
    iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff);
    iVar1 = -(uint)(iVar1 == -1);
  }
  return iVar1;
}



int FUN_00212220(int *param_1)

{
  int iVar1;
  
  iVar1 = 0;
  if ((uint)param_1[4] < (uint)param_1[5]) {
    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);
    iVar1 = -(uint)(iVar1 == -1);
  }
  return iVar1;
}


SUB ESP,0xc
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EDX + 0x14]
CMP dword ptr [EDX + 0x10],ECX
JNC 0x0021224a
SUB ESP,0x8
MOV EAX,dword ptr [EDX]
PUSH -0x1
PUSH EDX
CALL dword ptr [EAX + 0x34]
ADD ESP,0x10
CMP EAX,-0x1
SETZ AL
MOVZX EAX,AL
NEG EAX
ADD ESP,0xc
RET
(translation_unit "int FUN_00212220(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00212220(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00212220(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" if (parenthesized_expression "((uint)param_1[4] < (uint)param_1[5])" ( (binary_expression "(uint)param_1[4] < (uint)param_1[5]" (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < (cast_expression "(uint)param_1[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" { (expression_statement "iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x34))" ( (pointer_expression "**(code **)(*param_1 + 0x34)" * (pointer_expression "*(code **)(*param_1 + 0x34)" * (cast_expression "(code **)(*param_1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x34)" ( (binary_expression "*param_1 + 0x34" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "iVar1 = -(uint)(iVar1 == -1);" (assignment_expression "iVar1 = -(uint)(iVar1 == -1)" identifier = (unary_expression "-(uint)(iVar1 == -1)" - (call_expression "(uint)(iVar1 == -1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* std::wfilebuf::sync() */\n\nint __thiscall std::wfilebuf::sync(wfilebuf *this)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (*(uint *)(this + 0x10) < *(uint *)(this + 0x14)) {\n    iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int __thiscall std::wfilebuf::sync(wfilebuf *this)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (*(uint *)(this + 0x10) < *(uint *)(this + 0x14)) {\n    iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfilebuf::" identifier : : identifier : :) (function_declarator "sync(wfilebuf *this)" identifier (parameter_list "(wfilebuf *this)" ( (parameter_declaration "wfilebuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if (*(uint *)(this + 0x10) < *(uint *)(this + 0x14)) {\n    iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(uint *)(this + 0x10) < *(uint *)(this + 0x14)) {\n    iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" if (parenthesized_expression "(*(uint *)(this + 0x10) < *(uint *)(this + 0x14))" ( (binary_expression "*(uint *)(this + 0x10) < *(uint *)(this + 0x14)" (pointer_expression "*(uint *)(this + 0x10)" * (cast_expression "(uint *)(this + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) < (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" { (expression_statement "iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff);" (assignment_expression "iVar1 = (**(code **)(*(int *)this + 0x34))(this,0xffffffff)" identifier = (call_expression "(**(code **)(*(int *)this + 0x34))(this,0xffffffff)" (parenthesized_expression "(**(code **)(*(int *)this + 0x34))" ( (pointer_expression "**(code **)(*(int *)this + 0x34)" * (pointer_expression "*(code **)(*(int *)this + 0x34)" * (cast_expression "(code **)(*(int *)this + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x34)" ( (binary_expression "*(int *)this + 0x34" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "iVar1 = -(uint)(iVar1 == -1);" (assignment_expression "iVar1 = -(uint)(iVar1 == -1)" identifier = (unary_expression "-(uint)(iVar1 == -1)" - (call_expression "(uint)(iVar1 == -1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00212220(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00212220(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00212220(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" if (parenthesized_expression "((uint)param_1[4] < (uint)param_1[5])" ( (binary_expression "(uint)param_1[4] < (uint)param_1[5]" (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < (cast_expression "(uint)param_1[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" { (expression_statement "iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x34))" ( (pointer_expression "**(code **)(*param_1 + 0x34)" * (pointer_expression "*(code **)(*param_1 + 0x34)" * (cast_expression "(code **)(*param_1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x34)" ( (binary_expression "*param_1 + 0x34" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (expression_statement "iVar1 = -(uint)(iVar1 == -1);" (assignment_expression "iVar1 = -(uint)(iVar1 == -1)" identifier = (unary_expression "-(uint)(iVar1 == -1)" - (call_expression "(uint)(iVar1 == -1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00212220(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00212220(int *param_1)" (identifier "FUN_00212220") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((uint)param_1[4] < (uint)param_1[5]) {\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" (if "if") (parenthesized_expression "((uint)param_1[4] < (uint)param_1[5])" (( "(") (binary_expression "(uint)param_1[4] < (uint)param_1[5]" (cast_expression "(uint)param_1[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (< "<") (cast_expression "(uint)param_1[5]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n    iVar1 = -(uint)(iVar1 == -1);\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x34))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x34)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x34)" (* "*") (cast_expression "(code **)(*param_1 + 0x34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x34)" (( "(") (binary_expression "*param_1 + 0x34" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (argument_list "(param_1,0xffffffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (expression_statement "iVar1 = -(uint)(iVar1 == -1);" (assignment_expression "iVar1 = -(uint)(iVar1 == -1)" (identifier "iVar1") (= "=") (unary_expression "-(uint)(iVar1 == -1)" (- "-") (call_expression "(uint)(iVar1 == -1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")"))))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* std::wfilebuf::sync() */

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

{
  int var_2;
  
  var_2 = 0;
  if (*(type_2 *)(var_1 + 0x10) < *(type_2 *)(var_1 + 0x14)) {
    var_2 = (**(type_3 **)(*(int *)var_1 + 0x34))(var_1,0xffffffff);
    var_2 = -(type_2)(var_2 == -1);
  }
  return var_2;
}


(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 (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

int MASKED(int *param_1)

{
  int iVar1;
  
  iVar1 = 0;
  if ((uint)param_1[4] < (uint)param_1[5]) {
    iVar1 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);
    iVar1 = -(uint)(iVar1 == -1);
  }
  return iVar1;
}

