
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios::_M_cache_locale(std::locale const&) */

void __thiscall std::ios::_M_cache_locale(ios *this,locale *param_1)

{
  bool bVar1;
  ctype *pcVar2;
  num_put *pnVar3;
  num_get *pnVar4;
  
  bVar1 = has_facet<std::ctype<char>>(param_1);
  if (bVar1) {
    pcVar2 = use_facet<std::ctype<char>>(param_1);
    *(ctype **)(this + 0x7c) = pcVar2;
  }
  else {
    *(undefined4 *)(this + 0x7c) = 0;
  }
  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>
                    (param_1);
  if (bVar1) {
    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>
                       (param_1);
    *(num_put **)(this + 0x80) = pnVar3;
  }
  else {
    *(undefined4 *)(this + 0x80) = 0;
  }
  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>
                    (param_1);
  if (bVar1) {
    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>
                       (param_1);
    *(num_get **)(this + 0x84) = pnVar4;
  }
  else {
    *(undefined4 *)(this + 0x84) = 0;
  }
  return;
}



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

void FUN_001aa9f0(int param_1,undefined4 param_2)

{
  char cVar1;
  undefined4 uVar2;
  
  cVar1 = FUN_001974a0(param_2);
  if (cVar1 == '\0') {
    *(undefined4 *)(param_1 + 0x7c) = 0;
  }
  else {
    uVar2 = FUN_001957d0(param_2);
    *(undefined4 *)(param_1 + 0x7c) = uVar2;
  }
  cVar1 = FUN_00197620(param_2);
  if (cVar1 == '\0') {
    *(undefined4 *)(param_1 + 0x80) = 0;
  }
  else {
    uVar2 = FUN_00196330(param_2);
    *(undefined4 *)(param_1 + 0x80) = uVar2;
  }
  cVar1 = FUN_00197680(param_2);
  if (cVar1 == '\0') {
    *(undefined4 *)(param_1 + 0x84) = 0;
  }
  else {
    uVar2 = FUN_00196390(param_2);
    *(undefined4 *)(param_1 + 0x84) = uVar2;
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
CALL 0x00032730
ADD EBX,0x157604
MOV EDI,dword ptr [ESP + 0x10]
SUB ESP,0xc
PUSH ESI
CALL 0x001974a0
ADD ESP,0x10
TEST AL,AL
JZ 0x001aaa70
SUB ESP,0xc
PUSH ESI
CALL 0x001957d0
ADD ESP,0x10
MOV dword ptr [EDI + 0x7c],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x00197620
ADD ESP,0x10
TEST AL,AL
JZ 0x001aaa80
SUB ESP,0xc
PUSH ESI
CALL 0x00196330
ADD ESP,0x10
MOV dword ptr [EDI + 0x80],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x00197680
ADD ESP,0x10
TEST AL,AL
JZ 0x001aaa90
SUB ESP,0xc
PUSH ESI
CALL 0x00196390
ADD ESP,0x10
MOV dword ptr [EDI + 0x84],EAX
POP EBX
POP ESI
POP EDI
RET
MOV dword ptr [EDI + 0x7c],0x0
JMP 0x001aaa25
MOV dword ptr [EDI + 0x80],0x0
JMP 0x001aaa47
MOV dword ptr [EDI + 0x84],0x0
JMP 0x001aaa69
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001aa9f0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001aa9f0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001aa9f0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "cVar1 = FUN_001974a0(param_2);" (assignment_expression "cVar1 = FUN_001974a0(param_2)" identifier = (call_expression "FUN_001974a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" else (compound_statement "{\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" { (expression_statement "uVar2 = FUN_001957d0(param_2);" (assignment_expression "uVar2 = FUN_001957d0(param_2)" identifier = (call_expression "FUN_001957d0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar1 = FUN_00197620(param_2);" (assignment_expression "cVar1 = FUN_00197620(param_2)" identifier = (call_expression "FUN_00197620(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x80) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x80) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x80)" * (cast_expression "(undefined4 *)(param_1 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" else (compound_statement "{\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" { (expression_statement "uVar2 = FUN_00196330(param_2);" (assignment_expression "uVar2 = FUN_00196330(param_2)" identifier = (call_expression "FUN_00196330(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x80) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x80) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x80)" * (cast_expression "(undefined4 *)(param_1 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar1 = FUN_00197680(param_2);" (assignment_expression "cVar1 = FUN_00197680(param_2)" identifier = (call_expression "FUN_00197680(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x84) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" else (compound_statement "{\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" { (expression_statement "uVar2 = FUN_00196390(param_2);" (assignment_expression "uVar2 = FUN_00196390(param_2)" identifier = (call_expression "FUN_00196390(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x84) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" 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::ios::_M_cache_locale(std::locale const&) */\n\nvoid __thiscall std::ios::_M_cache_locale(ios *this,locale *param_1)\n\n{\n  bool bVar1;\n  ctype *pcVar2;\n  num_put *pnVar3;\n  num_get *pnVar4;\n  \n  bVar1 = has_facet<std::ctype<char>>(param_1);\n  if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0x7c) = pcVar2;\n  }\n  else {\n    *(undefined4 *)(this + 0x7c) = 0;\n  }\n  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0x80) = pnVar3;\n  }\n  else {\n    *(undefined4 *)(this + 0x80) = 0;\n  }\n  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x84) = pnVar4;\n  }\n  else {\n    *(undefined4 *)(this + 0x84) = 0;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ios::_M_cache_locale(ios *this,locale *param_1)\n\n{\n  bool bVar1;\n  ctype *pcVar2;\n  num_put *pnVar3;\n  num_get *pnVar4;\n  \n  bVar1 = has_facet<std::ctype<char>>(param_1);\n  if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0x7c) = pcVar2;\n  }\n  else {\n    *(undefined4 *)(this + 0x7c) = 0;\n  }\n  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0x80) = pnVar3;\n  }\n  else {\n    *(undefined4 *)(this + 0x80) = 0;\n  }\n  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x84) = pnVar4;\n  }\n  else {\n    *(undefined4 *)(this + 0x84) = 0;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios::" identifier : : identifier : :) (function_declarator "_M_cache_locale(ios *this,locale *param_1)" identifier (parameter_list "(ios *this,locale *param_1)" ( (parameter_declaration "ios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "locale *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  ctype *pcVar2;\n  num_put *pnVar3;\n  num_get *pnVar4;\n  \n  bVar1 = has_facet<std::ctype<char>>(param_1);\n  if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0x7c) = pcVar2;\n  }\n  else {\n    *(undefined4 *)(this + 0x7c) = 0;\n  }\n  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0x80) = pnVar3;\n  }\n  else {\n    *(undefined4 *)(this + 0x80) = 0;\n  }\n  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x84) = pnVar4;\n  }\n  else {\n    *(undefined4 *)(this + 0x84) = 0;\n  }\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "ctype *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "num_put *pnVar3;" type_identifier (pointer_declarator "*pnVar3" * identifier) ;) (declaration "num_get *pnVar4;" type_identifier (pointer_declarator "*pnVar4" * identifier) ;) (expression_statement "bVar1 = has_facet<std::ctype<char>>(param_1);" (binary_expression "bVar1 = has_facet<std::ctype<char>>(param_1)" (assignment_expression "bVar1 = has_facet<std" identifier = (binary_expression "has_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(param_1)" identifier >> (parenthesized_expression "(param_1)" ( identifier )))) ;) (if_statement "if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0x7c) = pcVar2;\n  }\n  else {\n    *(undefined4 *)(this + 0x7c) = 0;\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0x7c) = pcVar2;\n  }" { (expression_statement "pcVar2 = use_facet<std::ctype<char>>(param_1);" (binary_expression "pcVar2 = use_facet<std::ctype<char>>(param_1)" (assignment_expression "pcVar2 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(param_1)" identifier >> (parenthesized_expression "(param_1)" ( identifier )))) ;) (expression_statement "*(ctype **)(this + 0x7c) = pcVar2;" (assignment_expression "*(ctype **)(this + 0x7c) = pcVar2" (pointer_expression "*(ctype **)(this + 0x7c)" * (cast_expression "(ctype **)(this + 0x7c)" ( (type_descriptor "ctype **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(undefined4 *)(this + 0x7c) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(this + 0x7c) = 0;\n  }" { (expression_statement "*(undefined4 *)(this + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x7c) = 0" (pointer_expression "*(undefined4 *)(this + 0x7c)" * (cast_expression "(undefined4 *)(this + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) )))) = number_literal) ;) }))) (ERROR "bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::" (comma_expression "bVar1 = has_facet<std::num_put<char,std" (binary_expression "bVar1 = has_facet<std::num_put<char" (assignment_expression "bVar1 = has_facet<std" identifier = (binary_expression "has_facet<std" identifier < identifier)) (ERROR "::num_put" : : identifier) < identifier) , identifier) : : (comma_expression "ostreambuf_iterator<char,std" (binary_expression "ostreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                    (param_1);" (binary_expression "char_traits<char>>>>\n                    (param_1)" identifier < (binary_expression "char>>>>\n                    (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (if_statement "if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0x80) = pnVar3;\n  }\n  else {\n    *(undefined4 *)(this + 0x80) = 0;\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0x80) = pnVar3;\n  }" { (ERROR "pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::" (comma_expression "pnVar3 = use_facet<std::num_put<char,std" (binary_expression "pnVar3 = use_facet<std::num_put<char" (assignment_expression "pnVar3 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::num_put" : : identifier) < identifier) , identifier) : : (comma_expression "ostreambuf_iterator<char,std" (binary_expression "ostreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                       (param_1);" (binary_expression "char_traits<char>>>>\n                       (param_1)" identifier < (binary_expression "char>>>>\n                       (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (expression_statement "*(num_put **)(this + 0x80) = pnVar3;" (assignment_expression "*(num_put **)(this + 0x80) = pnVar3" (pointer_expression "*(num_put **)(this + 0x80)" * (cast_expression "(num_put **)(this + 0x80)" ( (type_descriptor "num_put **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x80)" ( (binary_expression "this + 0x80" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(undefined4 *)(this + 0x80) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(this + 0x80) = 0;\n  }" { (expression_statement "*(undefined4 *)(this + 0x80) = 0;" (assignment_expression "*(undefined4 *)(this + 0x80) = 0" (pointer_expression "*(undefined4 *)(this + 0x80)" * (cast_expression "(undefined4 *)(this + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x80)" ( (binary_expression "this + 0x80" identifier + number_literal) )))) = number_literal) ;) }))) (ERROR "bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::" (comma_expression "bVar1 = has_facet<std::num_get<char,std" (binary_expression "bVar1 = has_facet<std::num_get<char" (assignment_expression "bVar1 = has_facet<std" identifier = (binary_expression "has_facet<std" identifier < identifier)) (ERROR "::num_get" : : identifier) < identifier) , identifier) : : (comma_expression "istreambuf_iterator<char,std" (binary_expression "istreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                    (param_1);" (binary_expression "char_traits<char>>>>\n                    (param_1)" identifier < (binary_expression "char>>>>\n                    (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (if_statement "if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x84) = pnVar4;\n  }\n  else {\n    *(undefined4 *)(this + 0x84) = 0;\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x84) = pnVar4;\n  }" { (ERROR "pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::" (comma_expression "pnVar4 = use_facet<std::num_get<char,std" (binary_expression "pnVar4 = use_facet<std::num_get<char" (assignment_expression "pnVar4 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::num_get" : : identifier) < identifier) , identifier) : : (comma_expression "istreambuf_iterator<char,std" (binary_expression "istreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                       (param_1);" (binary_expression "char_traits<char>>>>\n                       (param_1)" identifier < (binary_expression "char>>>>\n                       (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (expression_statement "*(num_get **)(this + 0x84) = pnVar4;" (assignment_expression "*(num_get **)(this + 0x84) = pnVar4" (pointer_expression "*(num_get **)(this + 0x84)" * (cast_expression "(num_get **)(this + 0x84)" ( (type_descriptor "num_get **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x84)" ( (binary_expression "this + 0x84" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(undefined4 *)(this + 0x84) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(this + 0x84) = 0;\n  }" { (expression_statement "*(undefined4 *)(this + 0x84) = 0;" (assignment_expression "*(undefined4 *)(this + 0x84) = 0" (pointer_expression "*(undefined4 *)(this + 0x84)" * (cast_expression "(undefined4 *)(this + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x84)" ( (binary_expression "this + 0x84" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001aa9f0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001aa9f0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001aa9f0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "cVar1 = FUN_001974a0(param_2);" (assignment_expression "cVar1 = FUN_001974a0(param_2)" identifier = (call_expression "FUN_001974a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" else (compound_statement "{\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" { (expression_statement "uVar2 = FUN_001957d0(param_2);" (assignment_expression "uVar2 = FUN_001957d0(param_2)" identifier = (call_expression "FUN_001957d0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar1 = FUN_00197620(param_2);" (assignment_expression "cVar1 = FUN_00197620(param_2)" identifier = (call_expression "FUN_00197620(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x80) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x80) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x80)" * (cast_expression "(undefined4 *)(param_1 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" else (compound_statement "{\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" { (expression_statement "uVar2 = FUN_00196330(param_2);" (assignment_expression "uVar2 = FUN_00196330(param_2)" identifier = (call_expression "FUN_00196330(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x80) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x80) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x80)" * (cast_expression "(undefined4 *)(param_1 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar1 = FUN_00197680(param_2);" (assignment_expression "cVar1 = FUN_00197680(param_2)" identifier = (call_expression "FUN_00197680(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x84) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" else (compound_statement "{\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" { (expression_statement "uVar2 = FUN_00196390(param_2);" (assignment_expression "uVar2 = FUN_00196390(param_2)" identifier = (call_expression "FUN_00196390(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x84) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (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 (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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 IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (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 (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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 IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (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 (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 ;) })))
(function_definition "void FUN_001aa9f0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001aa9f0(int param_1,undefined4 param_2)" (identifier "FUN_001aa9f0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  cVar1 = FUN_001974a0(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }\n  cVar1 = FUN_00197620(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }\n  cVar1 = FUN_00197680(param_2);\n  if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "cVar1 = FUN_001974a0(param_2);" (assignment_expression "cVar1 = FUN_001974a0(param_2)" (identifier "cVar1") (= "=") (call_expression "FUN_001974a0(param_2)" (identifier "FUN_001974a0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }\n  else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x7c) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" (else "else") (compound_statement "{\n    uVar2 = FUN_001957d0(param_2);\n    *(undefined4 *)(param_1 + 0x7c) = uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_001957d0(param_2);" (assignment_expression "uVar2 = FUN_001957d0(param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_001957d0(param_2)" (identifier "FUN_001957d0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (expression_statement "cVar1 = FUN_00197620(param_2);" (assignment_expression "cVar1 = FUN_00197620(param_2)" (identifier "cVar1") (= "=") (call_expression "FUN_00197620(param_2)" (identifier "FUN_00197620") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }\n  else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x80) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x80) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x80) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x80)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x80)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" (else "else") (compound_statement "{\n    uVar2 = FUN_00196330(param_2);\n    *(undefined4 *)(param_1 + 0x80) = uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_00196330(param_2);" (assignment_expression "uVar2 = FUN_00196330(param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_00196330(param_2)" (identifier "FUN_00196330") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x80) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x80) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x80)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x80)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (expression_statement "cVar1 = FUN_00197680(param_2);" (assignment_expression "cVar1 = FUN_00197680(param_2)" (identifier "cVar1") (= "=") (call_expression "FUN_00197680(param_2)" (identifier "FUN_00197680") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }\n  else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x84) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x84) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" (else "else") (compound_statement "{\n    uVar2 = FUN_00196390(param_2);\n    *(undefined4 *)(param_1 + 0x84) = uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_00196390(param_2);" (assignment_expression "uVar2 = FUN_00196390(param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_00196390(param_2)" (identifier "FUN_00196390") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x84) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios::_M_cache_locale(std::locale const&) */

void __thiscall var_2::type_1::function_1(type_1 *var_5,type_2 *param_1)

{
  bool bVar1;
  type_3 *pcVar2;
  type_4 *pnVar3;
  type_5 *pnVar4;
  
  bVar1 = var_1<var_2::type_3<var_3>>(param_1);
  if (bVar1) {
    pcVar2 = var_4<var_2::type_3<var_3>>(param_1);
    *(type_3 **)(var_5 + 0x7c) = pcVar2;
  }
  else {
    *(type_6 *)(var_5 + 0x7c) = 0;
  }
  bVar1 = var_1<var_2::type_4<var_3,var_2::ostreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                    (param_1);
  if (bVar1) {
    pnVar3 = var_4<var_2::type_4<var_3,var_2::ostreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                       (param_1);
    *(type_4 **)(var_5 + 0x80) = pnVar3;
  }
  else {
    *(type_6 *)(var_5 + 0x80) = 0;
  }
  bVar1 = var_1<var_2::type_5<var_3,var_2::istreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                    (param_1);
  if (bVar1) {
    pnVar4 = var_4<var_2::type_5<var_3,var_2::istreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                       (param_1);
    *(type_5 **)(var_5 + 0x84) = pnVar4;
  }
  else {
    *(type_6 *)(var_5 + 0x84) = 0;
  }
  return;
}


(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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) 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 (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) 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 (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) 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 (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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 param_2)

{
  char cVar1;
  undefined4 uVar2;
  
  cVar1 = FUN_001974a0(param_2);
  if (cVar1 == '\0') {
    *(undefined4 *)(param_1 + 0x7c) = 0;
  }
  else {
    uVar2 = FUN_001957d0(param_2);
    *(undefined4 *)(param_1 + 0x7c) = uVar2;
  }
  cVar1 = FUN_00197620(param_2);
  if (cVar1 == '\0') {
    *(undefined4 *)(param_1 + 0x80) = 0;
  }
  else {
    uVar2 = FUN_00196330(param_2);
    *(undefined4 *)(param_1 + 0x80) = uVar2;
  }
  cVar1 = FUN_00197680(param_2);
  if (cVar1 == '\0') {
    *(undefined4 *)(param_1 + 0x84) = 0;
  }
  else {
    uVar2 = FUN_00196390(param_2);
    *(undefined4 *)(param_1 + 0x84) = uVar2;
  }
  return;
}

