
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::filebuf::_M_allocate_internal_buffer() */

void __thiscall std::filebuf::_M_allocate_internal_buffer(filebuf *this)

{
  void *pvVar1;
  
  if ((this[100] == (filebuf)0x0) && (*(int *)(this + 0x5c) == 0)) {
    pvVar1 = operator_new__(*(uint *)(this + 0x60));
    this[100] = (filebuf)0x1;
    *(void **)(this + 0x5c) = pvVar1;
  }
  return;
}



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

void FUN_0022bdf0(int param_1)

{
  undefined4 uVar1;
  
  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {
    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));
    *(undefined1 *)(param_1 + 100) = 1;
    *(undefined4 *)(param_1 + 0x5c) = uVar1;
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x183209
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
CMP byte ptr [ESI + 0x64],0x0
JNZ 0x0022be11
MOV EAX,dword ptr [ESI + 0x5c]
TEST EAX,EAX
JZ 0x0022be20
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESI + 0x60]
CALL 0x001fd400
MOV byte ptr [ESI + 0x64],0x1
ADD ESP,0x10
MOV dword ptr [ESI + 0x5c],EAX
JMP 0x0022be11
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0022bdf0(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0022bdf0(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0022bdf0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0))" ( (binary_expression "(*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)" (parenthesized_expression "(*(char *)(param_1 + 100) == '\0')" ( (binary_expression "*(char *)(param_1 + 100) == '\0'" (pointer_expression "*(char *)(param_1 + 100)" * (cast_expression "(char *)(param_1 + 100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(param_1 + 0x5c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x5c) == 0" (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) )))) == number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));" (assignment_expression "uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60))" identifier = (call_expression "FUN_001fd400(*(undefined4 *)(param_1 + 0x60))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x60))" ( (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) )))) )))) ;) (expression_statement "*(undefined1 *)(param_1 + 100) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 100) = 1" (pointer_expression "*(undefined1 *)(param_1 + 100)" * (cast_expression "(undefined1 *)(param_1 + 100)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::filebuf::_M_allocate_internal_buffer() */\n\nvoid __thiscall std::filebuf::_M_allocate_internal_buffer(filebuf *this)\n\n{\n  void *pvVar1;\n  \n  if ((this[100] == (filebuf)0x0) && (*(int *)(this + 0x5c) == 0)) {\n    pvVar1 = operator_new__(*(uint *)(this + 0x60));\n    this[100] = (filebuf)0x1;\n    *(void **)(this + 0x5c) = pvVar1;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::filebuf::_M_allocate_internal_buffer(filebuf *this)\n\n{\n  void *pvVar1;\n  \n  if ((this[100] == (filebuf)0x0) && (*(int *)(this + 0x5c) == 0)) {\n    pvVar1 = operator_new__(*(uint *)(this + 0x60));\n    this[100] = (filebuf)0x1;\n    *(void **)(this + 0x5c) = pvVar1;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::filebuf::" identifier : : identifier : :) (function_declarator "_M_allocate_internal_buffer(filebuf *this)" identifier (parameter_list "(filebuf *this)" ( (parameter_declaration "filebuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  \n  if ((this[100] == (filebuf)0x0) && (*(int *)(this + 0x5c) == 0)) {\n    pvVar1 = operator_new__(*(uint *)(this + 0x60));\n    this[100] = (filebuf)0x1;\n    *(void **)(this + 0x5c) = pvVar1;\n  }\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if ((this[100] == (filebuf)0x0) && (*(int *)(this + 0x5c) == 0)) {\n    pvVar1 = operator_new__(*(uint *)(this + 0x60));\n    this[100] = (filebuf)0x1;\n    *(void **)(this + 0x5c) = pvVar1;\n  }" if (parenthesized_expression "((this[100] == (filebuf)0x0) && (*(int *)(this + 0x5c) == 0))" ( (binary_expression "(this[100] == (filebuf)0x0) && (*(int *)(this + 0x5c) == 0)" (parenthesized_expression "(this[100] == (filebuf)0x0)" ( (binary_expression "this[100] == (filebuf)0x0" (subscript_expression "this[100]" identifier [ number_literal ]) == (cast_expression "(filebuf)0x0" ( (type_descriptor "filebuf" type_identifier) ) number_literal)) )) && (parenthesized_expression "(*(int *)(this + 0x5c) == 0)" ( (binary_expression "*(int *)(this + 0x5c) == 0" (pointer_expression "*(int *)(this + 0x5c)" * (cast_expression "(int *)(this + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x5c)" ( (binary_expression "this + 0x5c" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    pvVar1 = operator_new__(*(uint *)(this + 0x60));\n    this[100] = (filebuf)0x1;\n    *(void **)(this + 0x5c) = pvVar1;\n  }" { (expression_statement "pvVar1 = operator_new__(*(uint *)(this + 0x60));" (assignment_expression "pvVar1 = operator_new__(*(uint *)(this + 0x60))" identifier = (call_expression "operator_new__(*(uint *)(this + 0x60))" identifier (argument_list "(*(uint *)(this + 0x60))" ( (pointer_expression "*(uint *)(this + 0x60)" * (cast_expression "(uint *)(this + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x60)" ( (binary_expression "this + 0x60" identifier + number_literal) )))) )))) ;) (expression_statement "this[100] = (filebuf)0x1;" (assignment_expression "this[100] = (filebuf)0x1" (subscript_expression "this[100]" identifier [ number_literal ]) = (cast_expression "(filebuf)0x1" ( (type_descriptor "filebuf" type_identifier) ) number_literal)) ;) (expression_statement "*(void **)(this + 0x5c) = pvVar1;" (assignment_expression "*(void **)(this + 0x5c) = pvVar1" (pointer_expression "*(void **)(this + 0x5c)" * (cast_expression "(void **)(this + 0x5c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x5c)" ( (binary_expression "this + 0x5c" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0022bdf0(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0022bdf0(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0022bdf0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0))" ( (binary_expression "(*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)" (parenthesized_expression "(*(char *)(param_1 + 100) == '\0')" ( (binary_expression "*(char *)(param_1 + 100) == '\0'" (pointer_expression "*(char *)(param_1 + 100)" * (cast_expression "(char *)(param_1 + 100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(param_1 + 0x5c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x5c) == 0" (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) )))) == number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));" (assignment_expression "uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60))" identifier = (call_expression "FUN_001fd400(*(undefined4 *)(param_1 + 0x60))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x60))" ( (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) )))) )))) ;) (expression_statement "*(undefined1 *)(param_1 + 100) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 100) = 1" (pointer_expression "*(undefined1 *)(param_1 + 100)" * (cast_expression "(undefined1 *)(param_1 + 100)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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) )))) == (char_literal ' escape_sequence ')) )) && (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 = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0022bdf0(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0022bdf0(int param_1)" (identifier "FUN_0022bdf0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0))" (( "(") (binary_expression "(*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)" (parenthesized_expression "(*(char *)(param_1 + 100) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 100) == '\0'" (pointer_expression "*(char *)(param_1 + 100)" (* "*") (cast_expression "(char *)(param_1 + 100)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x5c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x5c) == 0" (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")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));\n    *(undefined1 *)(param_1 + 100) = 1;\n    *(undefined4 *)(param_1 + 0x5c) = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));" (assignment_expression "uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60))" (identifier "uVar1") (= "=") (call_expression "FUN_001fd400(*(undefined4 *)(param_1 + 0x60))" (identifier "FUN_001fd400") (argument_list "(*(undefined4 *)(param_1 + 0x60))" (( "(") (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")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 100) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 100) = 1" (pointer_expression "*(undefined1 *)(param_1 + 100)" (* "*") (cast_expression "(undefined1 *)(param_1 + 100)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::filebuf::_M_allocate_internal_buffer() */

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

{
  void *pvVar1;
  
  if ((var_1[100] == (type_1)0x0) && (*(int *)(var_1 + 0x5c) == 0)) {
    pvVar1 = var_2(*(type_2 *)(var_1 + 0x60));
    var_1[100] = (type_1)0x1;
    *(void **)(var_1 + 0x5c) = pvVar1;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (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: (call_expression function: (identifier) arguments: (argument_list (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))))))))) (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))) (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))))) (return_statement))))

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

void MASKED(int param_1)

{
  undefined4 uVar1;
  
  if ((*(char *)(param_1 + 100) == '\0') && (*(int *)(param_1 + 0x5c) == 0)) {
    uVar1 = FUN_001fd400(*(undefined4 *)(param_1 + 0x60));
    *(undefined1 *)(param_1 + 100) = 1;
    *(undefined4 *)(param_1 + 0x5c) = uVar1;
  }
  return;
}

