
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::streambuf::sputc(char) */

uint __thiscall std::streambuf::sputc(streambuf *this,char param_1)

{
  uint uVar1;
  
  uVar1 = (uint)(byte)param_1;
  if (*(char **)(this + 0x14) < *(char **)(this + 0x18)) {
    **(char **)(this + 0x14) = param_1;
    *(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;
  }
  else {
    if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {
                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (**(code **)(*(int *)this + 0x34))();
      return uVar1;
    }
    uVar1 = 0xffffffff;
  }
  return uVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

uint FUN_003b9920(int *param_1,byte param_2)

{
  uint uVar1;
  
  uVar1 = (uint)param_2;
  if ((byte *)param_1[5] < (byte *)param_1[6]) {
    *(byte *)param_1[5] = param_2;
    param_1[5] = param_1[5] + 1;
  }
  else {
    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {
                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (**(code **)(*param_1 + 0x34))();
      return uVar1;
    }
    uVar1 = 0xffffffff;
  }
  return uVar1;
}


PUSH ESI
CALL 0x00063c76
ADD ESI,0x2306da
PUSH EBX
MOV EDX,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EDX + 0x14]
MOVZX EAX,BL
CMP ECX,dword ptr [EDX + 0x18]
JNC 0x003b9950
MOV byte ptr [ECX],BL
ADD dword ptr [EDX + 0x14],0x1
POP EBX
POP ESI
RET
MOV EDX,dword ptr [EDX]
MOV EDX,dword ptr [EDX + 0x34]
CMP EDX,dword ptr [ESI + 0xfffffc24]
JNZ 0x003b9968
MOV EAX,0xffffffff
JMP 0x003b9946
MOV dword ptr [ESP + 0x10],EAX
POP EBX
POP ESI
JMP EDX
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nuint FUN_003b9920(int *param_1,byte param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}\n\n" comment (function_definition "uint FUN_003b9920(int *param_1,byte param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_003b9920(int *param_1,byte param_2)" identifier (parameter_list "(int *param_1,byte param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (uint)param_2;" (assignment_expression "uVar1 = (uint)param_2" identifier = (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "((byte *)param_1[5] < (byte *)param_1[6])" ( (binary_expression "(byte *)param_1[5] < (byte *)param_1[6]" (cast_expression "(byte *)param_1[5]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) < (cast_expression "(byte *)param_1[6]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }" { (expression_statement "*(byte *)param_1[5] = param_2;" (assignment_expression "*(byte *)param_1[5] = param_2" (pointer_expression "*(byte *)param_1[5]" * (cast_expression "(byte *)param_1[5]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) = identifier) ;) (expression_statement "param_1[5] = param_1[5] + 1;" (assignment_expression "param_1[5] = param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" else (compound_statement "{\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" { (if_statement "if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }" if (parenthesized_expression "(*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24)" ( (binary_expression "*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24" (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) )))) != (cast_expression "(code *)PTR_FUN_005e9c24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }" { comment comment (expression_statement "uVar1 = (**(code **)(*param_1 + 0x34))();" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x34))()" identifier = (call_expression "(**(code **)(*param_1 + 0x34))()" (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 "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::streambuf::sputc(char) */\n\nuint __thiscall std::streambuf::sputc(streambuf *this,char param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = (uint)(byte)param_1;\n  if (*(char **)(this + 0x14) < *(char **)(this + 0x18)) {\n    **(char **)(this + 0x14) = param_1;\n    *(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;\n  }\n  else {\n    if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}\n\n" comment comment (function_definition "uint __thiscall std::streambuf::sputc(streambuf *this,char param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = (uint)(byte)param_1;\n  if (*(char **)(this + 0x14) < *(char **)(this + 0x18)) {\n    **(char **)(this + 0x14) = param_1;\n    *(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;\n  }\n  else {\n    if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::streambuf::" identifier : : identifier : :) (function_declarator "sputc(streambuf *this,char param_1)" identifier (parameter_list "(streambuf *this,char param_1)" ( (parameter_declaration "streambuf *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (uint)(byte)param_1;\n  if (*(char **)(this + 0x14) < *(char **)(this + 0x18)) {\n    **(char **)(this + 0x14) = param_1;\n    *(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;\n  }\n  else {\n    if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (uint)(byte)param_1;" (assignment_expression "uVar1 = (uint)(byte)param_1" identifier = (cast_expression "(uint)(byte)param_1" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier))) ;) (if_statement "if (*(char **)(this + 0x14) < *(char **)(this + 0x18)) {\n    **(char **)(this + 0x14) = param_1;\n    *(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;\n  }\n  else {\n    if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(*(char **)(this + 0x14) < *(char **)(this + 0x18))" ( (binary_expression "*(char **)(this + 0x14) < *(char **)(this + 0x18)" (pointer_expression "*(char **)(this + 0x14)" * (cast_expression "(char **)(this + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) < (pointer_expression "*(char **)(this + 0x18)" * (cast_expression "(char **)(this + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    **(char **)(this + 0x14) = param_1;\n    *(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;\n  }" { (expression_statement "**(char **)(this + 0x14) = param_1;" (assignment_expression "**(char **)(this + 0x14) = param_1" (pointer_expression "**(char **)(this + 0x14)" * (pointer_expression "*(char **)(this + 0x14)" * (cast_expression "(char **)(this + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;" (assignment_expression "*(int *)(this + 0x14) = *(int *)(this + 0x14) + 1" (pointer_expression "*(int *)(this + 0x14)" * (cast_expression "(int *)(this + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(this + 0x14) + 1" (pointer_expression "*(int *)(this + 0x14)" * (cast_expression "(int *)(this + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" else (compound_statement "{\n    if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" { (if_statement "if (*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24) {\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }" if (parenthesized_expression "(*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24)" ( (binary_expression "*(code **)(*(int *)this + 0x34) != (code *)PTR_overflow_005e9c24" (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) )))) != (cast_expression "(code *)PTR_overflow_005e9c24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar1 = (**(code **)(*(int *)this + 0x34))();\n      return uVar1;\n    }" { comment comment (expression_statement "uVar1 = (**(code **)(*(int *)this + 0x34))();" (assignment_expression "uVar1 = (**(code **)(*(int *)this + 0x34))()" identifier = (call_expression "(**(code **)(*(int *)this + 0x34))()" (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 "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint FUN_003b9920(int *param_1,byte param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_003b9920(int *param_1,byte param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_003b9920(int *param_1,byte param_2)" identifier (parameter_list "(int *param_1,byte param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (uint)param_2;" (assignment_expression "uVar1 = (uint)param_2" identifier = (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "((byte *)param_1[5] < (byte *)param_1[6])" ( (binary_expression "(byte *)param_1[5] < (byte *)param_1[6]" (cast_expression "(byte *)param_1[5]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) < (cast_expression "(byte *)param_1[6]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (compound_statement "{\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }" { (expression_statement "*(byte *)param_1[5] = param_2;" (assignment_expression "*(byte *)param_1[5] = param_2" (pointer_expression "*(byte *)param_1[5]" * (cast_expression "(byte *)param_1[5]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) = identifier) ;) (expression_statement "param_1[5] = param_1[5] + 1;" (assignment_expression "param_1[5] = param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" else (compound_statement "{\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" { (if_statement "if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }" if (parenthesized_expression "(*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24)" ( (binary_expression "*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24" (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) )))) != (cast_expression "(code *)PTR_FUN_005e9c24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }" { (expression_statement "uVar1 = (**(code **)(*param_1 + 0x34))();" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x34))()" identifier = (call_expression "(**(code **)(*param_1 + 0x34))()" (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 "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (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 (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 ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint FUN_003b9920(int *param_1,byte param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_003b9920(int *param_1,byte param_2)" (identifier "FUN_003b9920") (parameter_list "(int *param_1,byte param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte param_2" (type_identifier "byte") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (uint)param_2;\n  if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = (uint)param_2;" (assignment_expression "uVar1 = (uint)param_2" (identifier "uVar1") (= "=") (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2"))) (; ";")) (if_statement "if ((byte *)param_1[5] < (byte *)param_1[6]) {\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }\n  else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "((byte *)param_1[5] < (byte *)param_1[6])" (( "(") (binary_expression "(byte *)param_1[5] < (byte *)param_1[6]" (cast_expression "(byte *)param_1[5]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (< "<") (cast_expression "(byte *)param_1[6]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) () ")")) (compound_statement "{\n    *(byte *)param_1[5] = param_2;\n    param_1[5] = param_1[5] + 1;\n  }" ({ "{") (expression_statement "*(byte *)param_1[5] = param_2;" (assignment_expression "*(byte *)param_1[5] = param_2" (pointer_expression "*(byte *)param_1[5]" (* "*") (cast_expression "(byte *)param_1[5]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[5] = param_1[5] + 1;" (assignment_expression "param_1[5] = param_1[5] + 1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" (else "else") (compound_statement "{\n    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }\n    uVar1 = 0xffffffff;\n  }" ({ "{") (if_statement "if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24)" (( "(") (binary_expression "*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24" (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")) () ")")))) (!= "!=") (cast_expression "(code *)PTR_FUN_005e9c24" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_005e9c24"))) () ")")) (compound_statement "{\n                    \n                    \n      uVar1 = (**(code **)(*param_1 + 0x34))();\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = (**(code **)(*param_1 + 0x34))();" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x34))()" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x34))()" (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 "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::streambuf::sputc(char) */

type_1 __thiscall std::type_2::function_1(type_2 *var_1,char param_1)

{
  type_1 uVar1;
  
  uVar1 = (type_1)(type_3)param_1;
  if (*(char **)(var_1 + 0x14) < *(char **)(var_1 + 0x18)) {
    **(char **)(var_1 + 0x14) = param_1;
    *(int *)(var_1 + 0x14) = *(int *)(var_1 + 0x14) + 1;
  }
  else {
    if (*(type_4 **)(*(int *)var_1 + 0x34) != (type_4 *)PTR_overflow_005e9c24) {
                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (**(type_4 **)(*(int *)var_1 + 0x34))();
      return uVar1;
    }
    uVar1 = 0xffffffff;
  }
  return uVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (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: (subscript_expression argument: (identifier) index: (number_literal)))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (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 (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)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

uint MASKED(int *param_1,byte param_2)

{
  uint uVar1;
  
  uVar1 = (uint)param_2;
  if ((byte *)param_1[5] < (byte *)param_1[6]) {
    *(byte *)param_1[5] = param_2;
    param_1[5] = param_1[5] + 1;
  }
  else {
    if (*(code **)(*param_1 + 0x34) != (code *)PTR_FUN_005e9c24) {
                    /* WARNING: Could not recover jumptable at 0x003b996e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (**(code **)(*param_1 + 0x34))();
      return uVar1;
    }
    uVar1 = 0xffffffff;
  }
  return uVar1;
}

