
/* std::__codecvt_utf8_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*, wchar_t
   const*&, char*, char*, char*&) const */

undefined4 __thiscall
std::__codecvt_utf8_base<wchar_t>::do_out
          (__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,wchar_t *param_3
          ,wchar_t **param_4,char *param_5,char *param_6,char **param_7)

{
  char cVar1;
  undefined4 uVar2;
  char *local_18;
  char *local_14;
  wchar_t *local_10;
  wchar_t *local_c;
  
  local_18 = param_5;
  uVar2 = *(undefined4 *)(this + 0xc);
  local_14 = param_6;
  local_10 = param_2;
  local_c = param_3;
  if (((byte)this[0x10] & 2) != 0) {
    cVar1 = (anonymous_namespace)::write_utf8_bom(&local_18);
    if (cVar1 == '\0') {
      uVar2 = 1;
      goto LAB_0026e5fb;
    }
  }
  uVar2 = (anonymous_namespace)::ucs4_out(&local_10,&local_18,uVar2);
LAB_0026e5fb:
  *param_4 = local_10;
  *param_7 = local_18;
  return uVar2;
}



undefined4
FUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)

{
  char cVar1;
  undefined4 uVar2;
  
  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {
    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);
    if (cVar1 == '\0') {
      uVar2 = 1;
      goto LAB_0026e5fb;
    }
  }
  uVar2 = FUN_0026e540();
LAB_0026e5fb:
  *param_5 = param_3;
  *param_8 = param_6;
  return uVar2;
}


PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EDX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [ESP + 0x1c]
MOV EBX,ESP
MOV dword ptr [ESP],EDX
MOV EDX,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0xc],EDX
TEST byte ptr [EAX + 0x10],0x2
JZ 0x0026e5ee
MOV EAX,EBX
CALL 0x0026e380
TEST AL,AL
JZ 0x0026e618
LEA EAX,[ESP + 0x8]
MOV ECX,ESI
MOV EDX,EBX
CALL 0x0026e540
MOV EDX,dword ptr [ESP + 0x2c]
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EDX],ECX
MOV EDX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [ESP]
MOV dword ptr [EDX],ECX
ADD ESP,0x10
POP EBX
POP ESI
RET
MOV EAX,0x1
JMP 0x0026e5fb
(translation_unit "undefined4\nFUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}\n\n" (function_definition "undefined4\nFUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 2) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x10) & 2) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x10) & 2" (pointer_expression "*(byte *)(param_1 + 0x10)" * (cast_expression "(byte *)(param_1 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" { (expression_statement "cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);" (assignment_expression "cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4)" identifier = (call_expression "FUN_0026e380(param_6,param_7,param_3,param_4)" identifier (argument_list "(param_6,param_7,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026e5fb;" goto statement_identifier ;) })) })) (expression_statement "uVar2 = FUN_0026e540();" (assignment_expression "uVar2 = FUN_0026e540()" identifier = (call_expression "FUN_0026e540()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_0026e5fb:\n  *param_5 = param_3;" statement_identifier : (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;)) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* std::__codecvt_utf8_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*, wchar_t\n   const*&, char*, char*, char*&) const */\n\nundefined4 __thiscall\nstd::__codecvt_utf8_base<wchar_t>::do_out\n          (__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,wchar_t *param_3\n          ,wchar_t **param_4,char *param_5,char *param_6,char **param_7)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  char *local_18;\n  char *local_14;\n  wchar_t *local_10;\n  wchar_t *local_c;\n  \n  local_18 = param_5;\n  uVar2 = *(undefined4 *)(this + 0xc);\n  local_14 = param_6;\n  local_10 = param_2;\n  local_c = param_3;\n  if (((byte)this[0x10] & 2) != 0) {\n    cVar1 = (anonymous_namespace)::write_utf8_bom(&local_18);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = (anonymous_namespace)::ucs4_out(&local_10,&local_18,uVar2);\nLAB_0026e5fb:\n  *param_4 = local_10;\n  *param_7 = local_18;\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 __thiscall\nstd::__codecvt_utf8_base<wchar_t>::do_out\n          (__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,wchar_t *param_3\n          ,wchar_t **param_4,char *param_5,char *param_6,char **param_7)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  char *local_18;\n  char *local_14;\n  wchar_t *local_10;\n  wchar_t *local_c;\n  \n  local_18 = param_5;\n  uVar2 = *(undefined4 *)(this + 0xc);\n  local_14 = param_6;\n  local_10 = param_2;\n  local_c = param_3;\n  if (((byte)this[0x10] & 2) != 0) {\n    cVar1 = (anonymous_namespace)::write_utf8_bom(&local_18);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = (anonymous_namespace)::ucs4_out(&local_10,&local_18,uVar2);\nLAB_0026e5fb:\n  *param_4 = local_10;\n  *param_7 = local_18;\n  return uVar2;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf8_base<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_out\n          (__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,wchar_t *param_3\n          ,wchar_t **param_4,char *param_5,char *param_6,char **param_7)" identifier (parameter_list "(__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,wchar_t *param_3\n          ,wchar_t **param_4,char *param_5,char *param_6,char **param_7)" ( (parameter_declaration "__codecvt_utf8_base<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__mbstate_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "wchar_t **param_4" type_identifier (pointer_declarator "**param_4" * (pointer_declarator "*param_4" * identifier))) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "char **param_7" primitive_type (pointer_declarator "**param_7" * (pointer_declarator "*param_7" * identifier))) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  char *local_18;\n  char *local_14;\n  wchar_t *local_10;\n  wchar_t *local_c;\n  \n  local_18 = param_5;\n  uVar2 = *(undefined4 *)(this + 0xc);\n  local_14 = param_6;\n  local_10 = param_2;\n  local_c = param_3;\n  if (((byte)this[0x10] & 2) != 0) {\n    cVar1 = (anonymous_namespace)::write_utf8_bom(&local_18);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = (anonymous_namespace)::ucs4_out(&local_10,&local_18,uVar2);\nLAB_0026e5fb:\n  *param_4 = local_10;\n  *param_7 = local_18;\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "wchar_t *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (declaration "wchar_t *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "local_18 = param_5;" (assignment_expression "local_18 = param_5" identifier = identifier) ;) (expression_statement "uVar2 = *(undefined4 *)(this + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(this + 0xc)" identifier = (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_14 = param_6;" (assignment_expression "local_14 = param_6" identifier = identifier) ;) (expression_statement "local_10 = param_2;" (assignment_expression "local_10 = param_2" identifier = identifier) ;) (expression_statement "local_c = param_3;" (assignment_expression "local_c = param_3" identifier = identifier) ;) (if_statement "if (((byte)this[0x10] & 2) != 0) {\n    cVar1 = (anonymous_namespace)::write_utf8_bom(&local_18);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" if (parenthesized_expression "(((byte)this[0x10] & 2) != 0)" ( (binary_expression "((byte)this[0x10] & 2) != 0" (parenthesized_expression "((byte)this[0x10] & 2)" ( (binary_expression "(byte)this[0x10] & 2" (cast_expression "(byte)this[0x10]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "this[0x10]" identifier [ number_literal ])) & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar1 = (anonymous_namespace)::write_utf8_bom(&local_18);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" { (ERROR "cVar1 = (anonymous_namespace)::" (assignment_expression "cVar1 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "write_utf8_bom(&local_18);" (call_expression "write_utf8_bom(&local_18)" identifier (argument_list "(&local_18)" ( (pointer_expression "&local_18" & identifier) ))) ;) (if_statement "if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026e5fb;" goto statement_identifier ;) })) })) (ERROR "uVar2 = (anonymous_namespace)::" (assignment_expression "uVar2 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "ucs4_out(&local_10,&local_18,uVar2);" (call_expression "ucs4_out(&local_10,&local_18,uVar2)" identifier (argument_list "(&local_10,&local_18,uVar2)" ( (pointer_expression "&local_10" & identifier) , (pointer_expression "&local_18" & identifier) , identifier ))) ;) (labeled_statement "LAB_0026e5fb:\n  *param_4 = local_10;" statement_identifier : (expression_statement "*param_4 = local_10;" (assignment_expression "*param_4 = local_10" (pointer_expression "*param_4" * identifier) = identifier) ;)) (expression_statement "*param_7 = local_18;" (assignment_expression "*param_7 = local_18" (pointer_expression "*param_7" * identifier) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "undefined4\nFUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}\n\n" (function_definition "undefined4\nFUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 2) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x10) & 2) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x10) & 2" (pointer_expression "*(byte *)(param_1 + 0x10)" * (cast_expression "(byte *)(param_1 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" { (expression_statement "cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);" (assignment_expression "cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4)" identifier = (call_expression "FUN_0026e380(param_6,param_7,param_3,param_4)" identifier (argument_list "(param_6,param_7,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026e5fb;" goto statement_identifier ;) })) })) (expression_statement "uVar2 = FUN_0026e540();" (assignment_expression "uVar2 = FUN_0026e540()" identifier = (call_expression "FUN_0026e540()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_0026e5fb:\n  *param_5 = param_3;" statement_identifier : (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;)) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (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) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4\nFUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0026e5b0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" (identifier "FUN_0026e5b0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 *param_8" (type_identifier "undefined4") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }\n  uVar2 = FUN_0026e540();\nLAB_0026e5fb:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x10) & 2) != 0) {\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x10) & 2) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 2)" (( "(") (binary_expression "*(byte *)(param_1 + 0x10) & 2" (pointer_expression "*(byte *)(param_1 + 0x10)" (* "*") (cast_expression "(byte *)(param_1 + 0x10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);\n    if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }\n  }" ({ "{") (expression_statement "cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);" (assignment_expression "cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4)" (identifier "cVar1") (= "=") (call_expression "FUN_0026e380(param_6,param_7,param_3,param_4)" (identifier "FUN_0026e380") (argument_list "(param_6,param_7,param_3,param_4)" (( "(") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar2 = 1;\n      goto LAB_0026e5fb;\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_0026e5fb;" (goto "goto") (statement_identifier "LAB_0026e5fb") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar2 = FUN_0026e540();" (assignment_expression "uVar2 = FUN_0026e540()" (identifier "uVar2") (= "=") (call_expression "FUN_0026e540()" (identifier "FUN_0026e540") (argument_list "()" (( "(") () ")")))) (; ";")) (labeled_statement "LAB_0026e5fb:\n  *param_5 = param_3;" (statement_identifier "LAB_0026e5fb") (: ":") (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_3")) (; ";"))) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "param_6")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* std::__codecvt_utf8_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*, wchar_t
   const*&, char*, char*, char*&) const */

type_1 __thiscall
std::type_2<type_4>::function_1
          (type_2<type_4> *var_1,type_3 *param_1,type_4 *param_2,type_4 *param_3
          ,type_4 **param_4,char *param_5,char *param_6,char **param_7)

{
  char var_3;
  type_1 uVar2;
  char *local_18;
  char *local_14;
  type_4 *local_10;
  type_4 *local_c;
  
  local_18 = param_5;
  uVar2 = *(type_1 *)(var_1 + 0xc);
  local_14 = param_6;
  local_10 = param_2;
  local_c = param_3;
  if (((type_5)var_1[0x10] & 2) != 0) {
    var_3 = (anonymous_namespace)::var_2(&local_18);
    if (var_3 == '\0') {
      uVar2 = 1;
      goto LAB_0026e5fb;
    }
  }
  uVar2 = (anonymous_namespace)::var_4(&local_10,&local_18,uVar2);
LAB_0026e5fb:
  *param_4 = local_10;
  *param_7 = local_18;
  return uVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

undefined4
MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)

{
  char cVar1;
  undefined4 uVar2;
  
  if ((*(byte *)(param_1 + 0x10) & 2) != 0) {
    cVar1 = FUN_0026e380(param_6,param_7,param_3,param_4);
    if (cVar1 == '\0') {
      uVar2 = 1;
      goto LAB_0026e5fb;
    }
  }
  uVar2 = FUN_0026e540();
LAB_0026e5fb:
  *param_5 = param_3;
  *param_8 = param_6;
  return uVar2;
}

