
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wfilebuf::setbuf(wchar_t*, int) */

void std::wfilebuf::setbuf(wchar_t *param_1,int param_2)

{
}



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

int FUN_002734d0(int param_1,int param_2,int param_3)

{
  char cVar1;
  
  cVar1 = FUN_00248850(param_1 + 0x38);
  if (cVar1 == '\0') {
    if (param_2 == 0 && param_3 == 0) {
      *(undefined4 *)(param_1 + 0x60) = 1;
    }
    else if ((param_2 != 0) && (0 < param_3)) {
      *(int *)(param_1 + 0x5c) = param_2;
      *(int *)(param_1 + 0x60) = param_3;
      return param_1;
    }
  }
  return param_1;
}


PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x1a0b29
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
LEA EAX,[ESI + 0x38]
PUSH EAX
CALL 0x00248850
ADD ESP,0x10
TEST AL,AL
JNZ 0x00273505
MOV EAX,dword ptr [ESP + 0x14]
OR EAX,dword ptr [ESP + 0x18]
JNZ 0x00273510
MOV dword ptr [ESI + 0x60],0x1
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
MOV EDX,dword ptr [ESP + 0x14]
TEST EDX,EDX
JZ 0x00273505
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JLE 0x00273505
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x5c],EAX
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI + 0x60],EAX
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_002734d0(int param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" comment (function_definition "int FUN_002734d0(int param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_002734d0(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "cVar1 = FUN_00248850(param_1 + 0x38);" (assignment_expression "cVar1 = FUN_00248850(param_1 + 0x38)" identifier = (call_expression "FUN_00248850(param_1 + 0x38)" identifier (argument_list "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ;) (if_statement "if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }" { (if_statement "if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" if (parenthesized_expression "(param_2 == 0 && param_3 == 0)" ( (binary_expression "param_2 == 0 && param_3 == 0" (binary_expression "param_2 == 0" identifier == number_literal) && (binary_expression "param_3 == 0" identifier == number_literal)) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x60) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" else (if_statement "if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" if (parenthesized_expression "((param_2 != 0) && (0 < param_3))" ( (binary_expression "(param_2 != 0) && (0 < param_3)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) ))) )) (compound_statement "{\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" { (expression_statement "*(int *)(param_1 + 0x5c) = param_2;" (assignment_expression "*(int *)(param_1 + 0x5c) = param_2" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x60) = param_3;" (assignment_expression "*(int *)(param_1 + 0x60) = param_3" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wfilebuf::setbuf(wchar_t*, int) */\n\nvoid std::wfilebuf::setbuf(wchar_t *param_1,int param_2)\n\n{\n}\n\n" comment comment (function_definition "void std::wfilebuf::setbuf(wchar_t *param_1,int param_2)\n\n{\n}" primitive_type (ERROR "std::wfilebuf::" identifier : : identifier : :) (function_declarator "setbuf(wchar_t *param_1,int param_2)" identifier (parameter_list "(wchar_t *param_1,int param_2)" ( (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int FUN_002734d0(int param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_002734d0(int param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_002734d0(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "cVar1 = FUN_00248850(param_1 + 0x38);" (assignment_expression "cVar1 = FUN_00248850(param_1 + 0x38)" identifier = (call_expression "FUN_00248850(param_1 + 0x38)" identifier (argument_list "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ;) (if_statement "if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }" { (if_statement "if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" if (parenthesized_expression "(param_2 == 0 && param_3 == 0)" ( (binary_expression "param_2 == 0 && param_3 == 0" (binary_expression "param_2 == 0" identifier == number_literal) && (binary_expression "param_3 == 0" identifier == number_literal)) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x60) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" else (if_statement "if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" if (parenthesized_expression "((param_2 != 0) && (0 < param_3))" ( (binary_expression "(param_2 != 0) && (0 < param_3)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) ))) )) (compound_statement "{\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" { (expression_statement "*(int *)(param_1 + 0x5c) = param_2;" (assignment_expression "*(int *)(param_1 + 0x5c) = param_2" (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x60) = param_3;" (assignment_expression "*(int *)(param_1 + 0x60) = param_3" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_002734d0(int param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_002734d0(int param_1,int param_2,int param_3)" (identifier "FUN_002734d0") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  \n  cVar1 = FUN_00248850(param_1 + 0x38);\n  if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (expression_statement "cVar1 = FUN_00248850(param_1 + 0x38);" (assignment_expression "cVar1 = FUN_00248850(param_1 + 0x38)" (identifier "cVar1") (= "=") (call_expression "FUN_00248850(param_1 + 0x38)" (identifier "FUN_00248850") (argument_list "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0 && param_3 == 0) {\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }\n    else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0 && param_3 == 0)" (( "(") (binary_expression "param_2 == 0 && param_3 == 0" (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) (&& "&&") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x60) = 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x60) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" (else "else") (if_statement "if ((param_2 != 0) && (0 < param_3)) {\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" (if "if") (parenthesized_expression "((param_2 != 0) && (0 < param_3))" (( "(") (binary_expression "(param_2 != 0) && (0 < param_3)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")"))) () ")")) (compound_statement "{\n      *(int *)(param_1 + 0x5c) = param_2;\n      *(int *)(param_1 + 0x60) = param_3;\n      return param_1;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x5c) = param_2;" (assignment_expression "*(int *)(param_1 + 0x5c) = param_2" (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int *)(param_1 + 0x60) = param_3;" (assignment_expression "*(int *)(param_1 + 0x60) = param_3" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wfilebuf::setbuf(wchar_t*, int) */

void std::wfilebuf::function_1(type_1 *param_1,int param_2)

{
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (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: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_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: (identifier))) (return_statement (identifier)))))))) (return_statement (identifier)))))

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

int MASKED(int param_1,int param_2,int param_3)

{
  char cVar1;
  
  cVar1 = FUN_00248850(param_1 + 0x38);
  if (cVar1 == '\0') {
    if (param_2 == 0 && param_3 == 0) {
      *(undefined4 *)(param_1 + 0x60) = 1;
    }
    else if ((param_2 != 0) && (0 < param_3)) {
      *(int *)(param_1 + 0x5c) = param_2;
      *(int *)(param_1 + 0x60) = param_3;
      return param_1;
    }
  }
  return param_1;
}

