
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::money_get<char, std::istreambuf_iterator<char, std::char_traits<char> >
   >::do_get(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char,
   std::char_traits<char> >, bool, std::ios_base&, std::_Ios_Iostate&, std::string&) const */

undefined4 *
std::money_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>::do_get
          (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,
          undefined4 *param_10)

{
  void *__dest;
  undefined1 *__src;
  size_t __n;
  ctype *this;
  undefined1 *puVar1;
  undefined4 local_44;
  undefined4 local_40;
  undefined1 *local_34;
  size_t local_30;
  undefined1 local_2c [28];
  
  this = use_facet<std::ctype<char>>((locale *)(param_8 + 0x6c));
  local_30 = 0;
  local_2c[0] = 0;
  local_34 = local_2c;
  if (param_7 == '\0') {
    _M_extract<false>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  else {
                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */
    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  __n = local_30;
  if (local_30 != 0) {
    std::string::resize((uint)param_10,(char)local_30);
    __src = local_34;
    puVar1 = local_34 + __n;
    __dest = (void *)*param_10;
    if (this[0x1c] == (ctype)0x1) {
      if (puVar1 != local_34) {
        memcpy(__dest,local_34,__n);
      }
    }
    else {
      if (this[0x1c] == (ctype)0x0) {
        ctype<char>::_M_widen_init((ctype<char> *)this);
      }
      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {
        if (puVar1 != __src) {
          memcpy(__dest,__src,__n);
        }
      }
      else {
        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);
      }
    }
  }
  *param_1 = local_44;
  param_1[1] = local_40;
  if (local_34 != local_2c) {
    operator_delete(local_34);
  }
  return param_1;
}



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

undefined4 *
FUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,
            undefined4 *param_10)

{
  void *__dest;
  undefined1 *__src;
  size_t __n;
  int *piVar1;
  undefined1 *puVar2;
  undefined4 local_44;
  undefined4 local_40;
  undefined1 *local_34;
  size_t local_30;
  undefined1 local_2c [28];
  
  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);
  local_30 = 0;
  local_2c[0] = 0;
  local_34 = local_2c;
  if (param_7 == '\0') {
    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  else {
                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */
    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  __n = local_30;
  if (local_30 != 0) {
    FUN_003b6a50(param_10,local_30,0);
    __src = local_34;
    puVar2 = local_34 + __n;
    __dest = (void *)*param_10;
    if ((char)piVar1[7] == '\x01') {
      if (puVar2 != local_34) {
        memcpy(__dest,local_34,__n);
      }
    }
    else {
      if ((char)piVar1[7] == '\0') {
        FUN_003f3f90(piVar1);
      }
      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {
        if (puVar2 != __src) {
          memcpy(__dest,__src,__n);
        }
      }
      else {
        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);
      }
    }
  }
  *param_1 = local_44;
  param_1[1] = local_40;
  if (local_34 != local_2c) {
    FUN_003ae080(local_34);
  }
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x00063c76
ADD ESI,0x1ba646
PUSH EBX
SUB ESP,0x58
MOV EAX,dword ptr [EBP + 0x20]
MOV EDI,dword ptr [EBP + 0x24]
MOV dword ptr [EBP + -0x48],EAX
LEA EAX,[EDI + 0x6c]
PUSH EAX
MOV EBX,ESI
CALL 0x003c30b0
LEA ECX,[EBP + -0x28]
ADD ESP,0x10
CMP byte ptr [EBP + -0x48],0x0
MOV dword ptr [EBP + -0x4c],EAX
LEA EDX,[EBP + -0x40]
LEA EAX,[EBP + -0x30]
MOV dword ptr [EBP + -0x44],ECX
MOV dword ptr [EBP + -0x30],ECX
MOV dword ptr [EBP + -0x2c],0x0
MOV byte ptr [EBP + -0x28],0x0
JZ 0x0042fa68
SUB ESP,0xc
PUSH EAX
PUSH dword ptr [EBP + 0x28]
PUSH EDI
PUSH dword ptr [EBP + 0x1c]
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [EBP + 0x14]
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + 0xc]
PUSH EDX
CALL 0x0042d7b0
MOV EAX,dword ptr [EBP + -0x40]
MOV EDX,dword ptr [EBP + -0x3c]
ADD ESP,0x2c
MOV dword ptr [EBP + 0x10],EAX
MOV EAX,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + 0x14],EDX
MOV dword ptr [EBP + -0x48],EAX
TEST EAX,EAX
JNZ 0x0042fa90
MOV EDI,dword ptr [EBP + -0x30]
MOV EBX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EBP + 0x10]
MOV EDX,dword ptr [EBP + 0x14]
MOV dword ptr [EBX],EAX
MOV dword ptr [EBX + 0x4],EDX
CMP EDI,dword ptr [EBP + -0x44]
JZ 0x0042fa58
SUB ESP,0xc
MOV EBX,ESI
PUSH EDI
CALL 0x003ae080
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
SUB ESP,0xc
PUSH EAX
PUSH dword ptr [EBP + 0x28]
PUSH EDI
PUSH dword ptr [EBP + 0x1c]
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [EBP + 0x14]
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + 0xc]
PUSH EDX
CALL 0x0042e830
JMP 0x0042fa1b
SUB ESP,0x4
MOV EBX,ESI
PUSH 0x0
PUSH dword ptr [EBP + -0x48]
PUSH dword ptr [EBP + 0x2c]
CALL 0x003b6a50
MOV EDI,dword ptr [EBP + -0x30]
MOV EAX,dword ptr [EBP + -0x48]
ADD ESP,0x10
MOV EBX,dword ptr [EBP + 0x2c]
ADD EAX,EDI
MOV dword ptr [EBP + -0x50],EAX
MOV EAX,dword ptr [EBP + -0x4c]
MOV EBX,dword ptr [EBX]
MOVZX EAX,byte ptr [EAX + 0x1c]
MOV dword ptr [EBP + -0x54],EBX
CMP AL,0x1
JZ 0x0042fb18
TEST AL,AL
JZ 0x0042fb00
MOV EAX,dword ptr [EBP + -0x4c]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x1c]
CMP EAX,dword ptr [ESI + 0xffffff84]
JNZ 0x0042fb40
CMP dword ptr [EBP + -0x50],EDI
JZ 0x0042fa34
SUB ESP,0x4
PUSH dword ptr [EBP + -0x48]
MOV EBX,ESI
PUSH EDI
PUSH dword ptr [EBP + -0x54]
CALL 0x000392d0
MOV EDI,dword ptr [EBP + -0x30]
ADD ESP,0x10
JMP 0x0042fa37
SUB ESP,0xc
PUSH dword ptr [EBP + -0x4c]
MOV EBX,ESI
CALL 0x003f3f90
ADD ESP,0x10
JMP 0x0042fac7
CMP dword ptr [EBP + -0x50],EDI
JZ 0x0042fa37
SUB ESP,0x4
PUSH dword ptr [EBP + -0x48]
PUSH EDI
PUSH EBX
MOV EBX,ESI
CALL 0x000392d0
MOV EDI,dword ptr [EBP + -0x30]
ADD ESP,0x10
JMP 0x0042fa37
PUSH dword ptr [EBP + -0x54]
PUSH dword ptr [EBP + -0x50]
PUSH EDI
PUSH dword ptr [EBP + -0x4c]
CALL EAX
ADD ESP,0x10
JMP 0x0042fa34
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 *\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)\n\n{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}\n\n" comment (function_definition "undefined4 *\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)\n\n{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" * (function_declarator "FUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * 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 identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "char param_7" primitive_type identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) , (parameter_declaration "undefined4 *param_10" type_identifier (pointer_declarator "*param_10" * identifier)) )))) (compound_statement "{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined1 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "size_t local_30;" primitive_type identifier ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);" (assignment_expression "piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c)" identifier = (cast_expression "(int *)FUN_003c30b0(param_8 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003c30b0(param_8 + 0x6c)" identifier (argument_list "(param_8 + 0x6c)" ( (binary_expression "param_8 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (if_statement "if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" if (parenthesized_expression "(param_7 == '\0')" ( (binary_expression "param_7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { (expression_statement "FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" identifier (argument_list "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" ( (pointer_expression "&local_44" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_34" & identifier) ))) ;) }) (else_clause "else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" else (compound_statement "{\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { comment (expression_statement "FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" identifier (argument_list "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" ( (pointer_expression "&local_44" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_34" & identifier) ))) ;) }))) (expression_statement "__n = local_30;" (assignment_expression "__n = local_30" identifier = identifier) ;) (if_statement "if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }" { (expression_statement "FUN_003b6a50(param_10,local_30,0);" (call_expression "FUN_003b6a50(param_10,local_30,0)" identifier (argument_list "(param_10,local_30,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "__src = local_34;" (assignment_expression "__src = local_34" identifier = identifier) ;) (expression_statement "puVar2 = local_34 + __n;" (assignment_expression "puVar2 = local_34 + __n" identifier = (binary_expression "local_34 + __n" identifier + identifier)) ;) (expression_statement "__dest = (void *)*param_10;" (assignment_expression "__dest = (void *)*param_10" identifier = (cast_expression "(void *)*param_10" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_10" * identifier))) ;) (if_statement "if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" if (parenthesized_expression "((char)piVar1[7] == '\x01')" ( (binary_expression "(char)piVar1[7] == '\x01'" (cast_expression "(char)piVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[7]" identifier [ number_literal ])) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }" { (if_statement "if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }" if (parenthesized_expression "(puVar2 != local_34)" ( (binary_expression "puVar2 != local_34" identifier != identifier) )) (compound_statement "{\n        memcpy(__dest,local_34,__n);\n      }" { (expression_statement "memcpy(__dest,local_34,__n);" (call_expression "memcpy(__dest,local_34,__n)" identifier (argument_list "(__dest,local_34,__n)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" else (compound_statement "{\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" { (if_statement "if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }" if (parenthesized_expression "((char)piVar1[7] == '\0')" ( (binary_expression "(char)piVar1[7] == '\0'" (cast_expression "(char)piVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[7]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_003f3f90(piVar1);\n      }" { (expression_statement "FUN_003f3f90(piVar1);" (call_expression "FUN_003f3f90(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) (if_statement "if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84)" ( (binary_expression "*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84" (pointer_expression "*(code **)(*piVar1 + 0x1c)" * (cast_expression "(code **)(*piVar1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x1c)" ( (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_005e9f84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }" { (if_statement "if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }" if (parenthesized_expression "(puVar2 != __src)" ( (binary_expression "puVar2 != __src" identifier != identifier) )) (compound_statement "{\n          memcpy(__dest,__src,__n);\n        }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" else (compound_statement "{\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" { (expression_statement "(**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);" (call_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest)" (parenthesized_expression "(**(code **)(*piVar1 + 0x1c))" ( (pointer_expression "**(code **)(*piVar1 + 0x1c)" * (pointer_expression "*(code **)(*piVar1 + 0x1c)" * (cast_expression "(code **)(*piVar1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x1c)" ( (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,__src,puVar2,__dest)" ( identifier , identifier , identifier , identifier ))) ;) }))) }))) })) (expression_statement "*param_1 = local_44;" (assignment_expression "*param_1 = local_44" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_40;" (assignment_expression "param_1[1] = local_40" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n    FUN_003ae080(local_34);\n  }" { (expression_statement "FUN_003ae080(local_34);" (call_expression "FUN_003ae080(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::money_get<char, std::istreambuf_iterator<char, std::char_traits<char> >\n   >::do_get(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char,\n   std::char_traits<char> >, bool, std::ios_base&, std::_Ios_Iostate&, std::string&) const */\n\nundefined4 *\nstd::money_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>::do_get\n          (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n          undefined4 *param_10)\n\n{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  ctype *this;\n  undefined1 *puVar1;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  this = use_facet<std::ctype<char>>((locale *)(param_8 + 0x6c));\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    _M_extract<false>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    std::string::resize((uint)param_10,(char)local_30);\n    __src = local_34;\n    puVar1 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if (this[0x1c] == (ctype)0x1) {\n      if (puVar1 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }\n      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    operator_delete(local_34);\n  }\n  return param_1;\n}\n\n" comment comment (ERROR "undefined4 *\nstd::money_get<char," (binary_expression "undefined4 *\nstd::money_get<char" (binary_expression "undefined4 *\nstd" identifier * identifier) (ERROR "::money_get" : : identifier) < identifier) ,) (labeled_statement "std::istreambuf_iterator<char,std::char_traits<char>>>::do_get\n          (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n          undefined4 *param_10)" statement_identifier (ERROR "::istreambuf_iterator<char,std:" : : (comma_expression "istreambuf_iterator<char,std" (binary_expression "istreambuf_iterator<char" identifier < identifier) , identifier) :) : (expression_statement "char_traits<char>>>::do_get\n          (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n          undefined4 *param_10)" (binary_expression "char_traits<char>>>::do_get\n          (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n          undefined4 *param_10)" identifier < (binary_expression "char>>>::do_get\n          (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n          undefined4 *param_10)" identifier >> (ERROR ">::" > : :) (call_expression "do_get\n          (undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n          undefined4 *param_10)" identifier (argument_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n          undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n          undefined4 *param_10)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , identifier (ERROR "param_4" identifier) , identifier (ERROR "param_5" identifier) , identifier (ERROR "param_6" identifier) , (ERROR "char" identifier) identifier , (ERROR "int" identifier) identifier , identifier (ERROR "param_9" identifier) , (binary_expression "undefined4 *param_10" identifier * identifier) ))))) ;)) (compound_statement "{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  ctype *this;\n  undefined1 *puVar1;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  this = use_facet<std::ctype<char>>((locale *)(param_8 + 0x6c));\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    _M_extract<false>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    std::string::resize((uint)param_10,(char)local_30);\n    __src = local_34;\n    puVar1 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if (this[0x1c] == (ctype)0x1) {\n      if (puVar1 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }\n      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    operator_delete(local_34);\n  }\n  return param_1;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "ctype *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined1 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "size_t local_30;" primitive_type identifier ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "this = use_facet<std::ctype<char>>((locale *)(param_8 + 0x6c));" (binary_expression "this = use_facet<std::ctype<char>>((locale *)(param_8 + 0x6c))" (assignment_expression "this = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>((locale *)(param_8 + 0x6c))" identifier >> (parenthesized_expression "((locale *)(param_8 + 0x6c))" ( (cast_expression "(locale *)(param_8 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + 0x6c)" ( (binary_expression "param_8 + 0x6c" identifier + number_literal) ))) )))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (if_statement "if (param_7 == '\0') {\n    _M_extract<false>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" if (parenthesized_expression "(param_7 == '\0')" ( (binary_expression "param_7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    _M_extract<false>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { (expression_statement "_M_extract<false>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (binary_expression "_M_extract<false>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (binary_expression "_M_extract<false" identifier < false) > (parenthesized_expression "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" ( (comma_expression "&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34" (pointer_expression "&local_44" & identifier) , (comma_expression "param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_3,param_4,param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_4,param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_8,param_9,&local_34" identifier , (comma_expression "param_9,&local_34" identifier , (pointer_expression "&local_34" & identifier))))))))) ))) ;) }) (else_clause "else {\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" else (compound_statement "{\n                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */\n    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { comment (expression_statement "_M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (binary_expression "_M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (binary_expression "_M_extract<true" identifier < true) > (parenthesized_expression "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" ( (comma_expression "&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34" (pointer_expression "&local_44" & identifier) , (comma_expression "param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_3,param_4,param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_4,param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_5,param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_6,param_8,param_9,&local_34" identifier , (comma_expression "param_8,param_9,&local_34" identifier , (comma_expression "param_9,&local_34" identifier , (pointer_expression "&local_34" & identifier))))))))) ))) ;) }))) (expression_statement "__n = local_30;" (assignment_expression "__n = local_30" identifier = identifier) ;) (if_statement "if (local_30 != 0) {\n    std::string::resize((uint)param_10,(char)local_30);\n    __src = local_34;\n    puVar1 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if (this[0x1c] == (ctype)0x1) {\n      if (puVar1 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }\n      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }\n    }\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    std::string::resize((uint)param_10,(char)local_30);\n    __src = local_34;\n    puVar1 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if (this[0x1c] == (ctype)0x1) {\n      if (puVar1 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }\n      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }\n    }\n  }" { (labeled_statement "std::string::resize((uint)param_10,(char)local_30);" statement_identifier : (ERROR ":" :) (labeled_statement "string::resize((uint)param_10,(char)local_30);" statement_identifier : (ERROR ":" :) (expression_statement "resize((uint)param_10,(char)local_30);" (call_expression "resize((uint)param_10,(char)local_30)" identifier (argument_list "((uint)param_10,(char)local_30)" ( (cast_expression "(uint)param_10" ( (type_descriptor "uint" type_identifier) ) identifier) , (cast_expression "(char)local_30" ( (type_descriptor "char" primitive_type) ) identifier) ))) ;))) (expression_statement "__src = local_34;" (assignment_expression "__src = local_34" identifier = identifier) ;) (expression_statement "puVar1 = local_34 + __n;" (assignment_expression "puVar1 = local_34 + __n" identifier = (binary_expression "local_34 + __n" identifier + identifier)) ;) (expression_statement "__dest = (void *)*param_10;" (assignment_expression "__dest = (void *)*param_10" identifier = (cast_expression "(void *)*param_10" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_10" * identifier))) ;) (if_statement "if (this[0x1c] == (ctype)0x1) {\n      if (puVar1 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }\n      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }\n    }" if (parenthesized_expression "(this[0x1c] == (ctype)0x1)" ( (binary_expression "this[0x1c] == (ctype)0x1" (subscript_expression "this[0x1c]" identifier [ number_literal ]) == (cast_expression "(ctype)0x1" ( (type_descriptor "ctype" type_identifier) ) number_literal)) )) (compound_statement "{\n      if (puVar1 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }" { (if_statement "if (puVar1 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }" if (parenthesized_expression "(puVar1 != local_34)" ( (binary_expression "puVar1 != local_34" identifier != identifier) )) (compound_statement "{\n        memcpy(__dest,local_34,__n);\n      }" { (expression_statement "memcpy(__dest,local_34,__n);" (call_expression "memcpy(__dest,local_34,__n)" identifier (argument_list "(__dest,local_34,__n)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n      if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }\n      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }\n    }" else (compound_statement "{\n      if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }\n      if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }\n    }" { (if_statement "if (this[0x1c] == (ctype)0x0) {\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }" if (parenthesized_expression "(this[0x1c] == (ctype)0x0)" ( (binary_expression "this[0x1c] == (ctype)0x0" (subscript_expression "this[0x1c]" identifier [ number_literal ]) == (cast_expression "(ctype)0x0" ( (type_descriptor "ctype" type_identifier) ) number_literal)) )) (compound_statement "{\n        ctype<char>::_M_widen_init((ctype<char> *)this);\n      }" { (expression_statement "ctype<char>::_M_widen_init((ctype<char> *)this);" (binary_expression "ctype<char>::_M_widen_init((ctype<char> *)this)" (binary_expression "ctype<char" identifier < identifier) > (ERROR "::" : :) (call_expression "_M_widen_init((ctype<char> *)this)" identifier (argument_list "((ctype<char> *)this)" ( (parenthesized_expression "(ctype<char> *)this)" ( (binary_expression "ctype<char> *)this" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*)this" * (ERROR ")" )) identifier)) )) )))) ;) })) (if_statement "if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84) {\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }" if (parenthesized_expression "(*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84)" ( (binary_expression "*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_005e9f84" (pointer_expression "*(code **)(*(int *)this + 0x1c)" * (cast_expression "(code **)(*(int *)this + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x1c)" ( (binary_expression "*(int *)this + 0x1c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) == (cast_expression "(code *)PTR_do_widen_005e9f84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }" { (if_statement "if (puVar1 != __src) {\n          memcpy(__dest,__src,__n);\n        }" if (parenthesized_expression "(puVar1 != __src)" ( (binary_expression "puVar1 != __src" identifier != identifier) )) (compound_statement "{\n          memcpy(__dest,__src,__n);\n        }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }" else (compound_statement "{\n        (**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);\n      }" { (expression_statement "(**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest);" (call_expression "(**(code **)(*(int *)this + 0x1c))(this,__src,puVar1,__dest)" (parenthesized_expression "(**(code **)(*(int *)this + 0x1c))" ( (pointer_expression "**(code **)(*(int *)this + 0x1c)" * (pointer_expression "*(code **)(*(int *)this + 0x1c)" * (cast_expression "(code **)(*(int *)this + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x1c)" ( (binary_expression "*(int *)this + 0x1c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,__src,puVar1,__dest)" ( identifier , identifier , identifier , identifier ))) ;) }))) }))) })) (expression_statement "*param_1 = local_44;" (assignment_expression "*param_1 = local_44" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_40;" (assignment_expression "param_1[1] = local_40" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_34 != local_2c) {\n    operator_delete(local_34);\n  }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n    operator_delete(local_34);\n  }" { (expression_statement "operator_delete(local_34);" (call_expression "operator_delete(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) }))
(translation_unit "undefined4 *\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)\n\n{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}\n\n" (function_definition "undefined4 *\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)\n\n{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" * (function_declarator "FUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * 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 identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "char param_7" primitive_type identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) , (parameter_declaration "undefined4 *param_10" type_identifier (pointer_declarator "*param_10" * identifier)) )))) (compound_statement "{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined1 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "size_t local_30;" primitive_type identifier ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);" (assignment_expression "piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c)" identifier = (cast_expression "(int *)FUN_003c30b0(param_8 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003c30b0(param_8 + 0x6c)" identifier (argument_list "(param_8 + 0x6c)" ( (binary_expression "param_8 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (if_statement "if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" if (parenthesized_expression "(param_7 == '\0')" ( (binary_expression "param_7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { (expression_statement "FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" identifier (argument_list "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" ( (pointer_expression "&local_44" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_34" & identifier) ))) ;) }) (else_clause "else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" else (compound_statement "{\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { (expression_statement "FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" identifier (argument_list "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" ( (pointer_expression "&local_44" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_34" & identifier) ))) ;) }))) (expression_statement "__n = local_30;" (assignment_expression "__n = local_30" identifier = identifier) ;) (if_statement "if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }" { (expression_statement "FUN_003b6a50(param_10,local_30,0);" (call_expression "FUN_003b6a50(param_10,local_30,0)" identifier (argument_list "(param_10,local_30,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "__src = local_34;" (assignment_expression "__src = local_34" identifier = identifier) ;) (expression_statement "puVar2 = local_34 + __n;" (assignment_expression "puVar2 = local_34 + __n" identifier = (binary_expression "local_34 + __n" identifier + identifier)) ;) (expression_statement "__dest = (void *)*param_10;" (assignment_expression "__dest = (void *)*param_10" identifier = (cast_expression "(void *)*param_10" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_10" * identifier))) ;) (if_statement "if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" if (parenthesized_expression "((char)piVar1[7] == '\x01')" ( (binary_expression "(char)piVar1[7] == '\x01'" (cast_expression "(char)piVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[7]" identifier [ number_literal ])) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }" { (if_statement "if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }" if (parenthesized_expression "(puVar2 != local_34)" ( (binary_expression "puVar2 != local_34" identifier != identifier) )) (compound_statement "{\n        memcpy(__dest,local_34,__n);\n      }" { (expression_statement "memcpy(__dest,local_34,__n);" (call_expression "memcpy(__dest,local_34,__n)" identifier (argument_list "(__dest,local_34,__n)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" else (compound_statement "{\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" { (if_statement "if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }" if (parenthesized_expression "((char)piVar1[7] == '\0')" ( (binary_expression "(char)piVar1[7] == '\0'" (cast_expression "(char)piVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[7]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_003f3f90(piVar1);\n      }" { (expression_statement "FUN_003f3f90(piVar1);" (call_expression "FUN_003f3f90(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) (if_statement "if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84)" ( (binary_expression "*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84" (pointer_expression "*(code **)(*piVar1 + 0x1c)" * (cast_expression "(code **)(*piVar1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x1c)" ( (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_005e9f84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }" { (if_statement "if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }" if (parenthesized_expression "(puVar2 != __src)" ( (binary_expression "puVar2 != __src" identifier != identifier) )) (compound_statement "{\n          memcpy(__dest,__src,__n);\n        }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" else (compound_statement "{\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" { (expression_statement "(**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);" (call_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest)" (parenthesized_expression "(**(code **)(*piVar1 + 0x1c))" ( (pointer_expression "**(code **)(*piVar1 + 0x1c)" * (pointer_expression "*(code **)(*piVar1 + 0x1c)" * (cast_expression "(code **)(*piVar1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x1c)" ( (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,__src,puVar2,__dest)" ( identifier , identifier , identifier , identifier ))) ;) }))) }))) })) (expression_statement "*param_1 = local_44;" (assignment_expression "*param_1 = local_44" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_40;" (assignment_expression "param_1[1] = local_40" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n    FUN_003ae080(local_34);\n  }" { (expression_statement "FUN_003ae080(local_34);" (call_expression "FUN_003ae080(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) ))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (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 { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (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 ( IDENT , IDENT , IDENT , IDENT ))) ;) }))) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)\n\n{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" (* "*") (function_declarator "FUN_0042f9b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" (identifier "FUN_0042f9b0") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,char param_7,int param_8,undefined4 param_9,\n            undefined4 *param_10)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (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") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "char param_7" (primitive_type "char") (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) (, ",") (parameter_declaration "undefined4 param_9" (type_identifier "undefined4") (identifier "param_9")) (, ",") (parameter_declaration "undefined4 *param_10" (type_identifier "undefined4") (pointer_declarator "*param_10" (* "*") (identifier "param_10"))) () ")")))) (compound_statement "{\n  void *__dest;\n  undefined1 *__src;\n  size_t __n;\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  size_t local_30;\n  undefined1 local_2c [28];\n  \n  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);\n  local_30 = 0;\n  local_2c[0] = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  __n = local_30;\n  if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }\n  return param_1;\n}" ({ "{") (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined1 *__src;" (type_identifier "undefined1") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined1 *local_34;" (type_identifier "undefined1") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "size_t local_30;" (primitive_type "size_t") (identifier "local_30") (; ";")) (declaration "undefined1 local_2c [28];" (type_identifier "undefined1") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (expression_statement "piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);" (assignment_expression "piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_003c30b0(param_8 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003c30b0(param_8 + 0x6c)" (identifier "FUN_003c30b0") (argument_list "(param_8 + 0x6c)" (( "(") (binary_expression "param_8 + 0x6c" (identifier "param_8") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" (identifier "local_34") (= "=") (identifier "local_2c")) (; ";")) (if_statement "if (param_7 == '\0') {\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" (if "if") (parenthesized_expression "(param_7 == '\0')" (( "(") (binary_expression "param_7 == '\0'" (identifier "param_7") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" ({ "{") (expression_statement "FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (identifier "FUN_0042e830") (argument_list "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (( "(") (pointer_expression "&local_44" (& "&") (identifier "local_44")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" (else "else") (compound_statement "{\n                    \n    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" ({ "{") (expression_statement "FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (identifier "FUN_0042d7b0") (argument_list "(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (( "(") (pointer_expression "&local_44" (& "&") (identifier "local_44")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")"))) (; ";")) (} "}")))) (expression_statement "__n = local_30;" (assignment_expression "__n = local_30" (identifier "__n") (= "=") (identifier "local_30")) (; ";")) (if_statement "if (local_30 != 0) {\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_003b6a50(param_10,local_30,0);\n    __src = local_34;\n    puVar2 = local_34 + __n;\n    __dest = (void *)*param_10;\n    if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }\n  }" ({ "{") (expression_statement "FUN_003b6a50(param_10,local_30,0);" (call_expression "FUN_003b6a50(param_10,local_30,0)" (identifier "FUN_003b6a50") (argument_list "(param_10,local_30,0)" (( "(") (identifier "param_10") (, ",") (identifier "local_30") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "__src = local_34;" (assignment_expression "__src = local_34" (identifier "__src") (= "=") (identifier "local_34")) (; ";")) (expression_statement "puVar2 = local_34 + __n;" (assignment_expression "puVar2 = local_34 + __n" (identifier "puVar2") (= "=") (binary_expression "local_34 + __n" (identifier "local_34") (+ "+") (identifier "__n"))) (; ";")) (expression_statement "__dest = (void *)*param_10;" (assignment_expression "__dest = (void *)*param_10" (identifier "__dest") (= "=") (cast_expression "(void *)*param_10" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_10" (* "*") (identifier "param_10")))) (; ";")) (if_statement "if ((char)piVar1[7] == '\x01') {\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }\n    else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" (if "if") (parenthesized_expression "((char)piVar1[7] == '\x01')" (( "(") (binary_expression "(char)piVar1[7] == '\x01'" (cast_expression "(char)piVar1[7]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[7]" (identifier "piVar1") ([ "[") (number_literal "7") (] "]"))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }\n    }" ({ "{") (if_statement "if (puVar2 != local_34) {\n        memcpy(__dest,local_34,__n);\n      }" (if "if") (parenthesized_expression "(puVar2 != local_34)" (( "(") (binary_expression "puVar2 != local_34" (identifier "puVar2") (!= "!=") (identifier "local_34")) () ")")) (compound_statement "{\n        memcpy(__dest,local_34,__n);\n      }" ({ "{") (expression_statement "memcpy(__dest,local_34,__n);" (call_expression "memcpy(__dest,local_34,__n)" (identifier "memcpy") (argument_list "(__dest,local_34,__n)" (( "(") (identifier "__dest") (, ",") (identifier "local_34") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" (else "else") (compound_statement "{\n      if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }\n      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }\n    }" ({ "{") (if_statement "if ((char)piVar1[7] == '\0') {\n        FUN_003f3f90(piVar1);\n      }" (if "if") (parenthesized_expression "((char)piVar1[7] == '\0')" (( "(") (binary_expression "(char)piVar1[7] == '\0'" (cast_expression "(char)piVar1[7]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[7]" (identifier "piVar1") ([ "[") (number_literal "7") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        FUN_003f3f90(piVar1);\n      }" ({ "{") (expression_statement "FUN_003f3f90(piVar1);" (call_expression "FUN_003f3f90(piVar1)" (identifier "FUN_003f3f90") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }\n      else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" (if "if") (parenthesized_expression "(*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84)" (( "(") (binary_expression "*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84" (pointer_expression "*(code **)(*piVar1 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x1c)" (( "(") (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (cast_expression "(code *)PTR_FUN_005e9f84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_005e9f84"))) () ")")) (compound_statement "{\n        if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }\n      }" ({ "{") (if_statement "if (puVar2 != __src) {\n          memcpy(__dest,__src,__n);\n        }" (if "if") (parenthesized_expression "(puVar2 != __src)" (( "(") (binary_expression "puVar2 != __src" (identifier "puVar2") (!= "!=") (identifier "__src")) () ")")) (compound_statement "{\n          memcpy(__dest,__src,__n);\n        }" ({ "{") (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" (identifier "memcpy") (argument_list "(__dest,__src,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" (else "else") (compound_statement "{\n        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);\n      }" ({ "{") (expression_statement "(**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);" (call_expression "(**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest)" (parenthesized_expression "(**(code **)(*piVar1 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x1c)" (( "(") (binary_expression "*piVar1 + 0x1c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar1,__src,puVar2,__dest)" (( "(") (identifier "piVar1") (, ",") (identifier "__src") (, ",") (identifier "puVar2") (, ",") (identifier "__dest") () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}"))) (expression_statement "*param_1 = local_44;" (assignment_expression "*param_1 = local_44" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_44")) (; ";")) (expression_statement "param_1[1] = local_40;" (assignment_expression "param_1[1] = local_40" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_40")) (; ";")) (if_statement "if (local_34 != local_2c) {\n    FUN_003ae080(local_34);\n  }" (if "if") (parenthesized_expression "(local_34 != local_2c)" (( "(") (binary_expression "local_34 != local_2c" (identifier "local_34") (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n    FUN_003ae080(local_34);\n  }" ({ "{") (expression_statement "FUN_003ae080(local_34);" (call_expression "FUN_003ae080(local_34)" (identifier "FUN_003ae080") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::money_get<char, std::istreambuf_iterator<char, std::char_traits<char> >
   >::do_get(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char,
   std::char_traits<char> >, bool, std::ios_base&, std::_Ios_Iostate&, std::string&) const */

var_4 *
var_8::money_get<var_2,std::istreambuf_iterator<var_2,var_8::var_1<var_2>>>::var_3
          (var_4 *var_5,var_4 param_2,var_4 param_3,var_4 param_4,
          var_4 param_5,var_4 param_6,var_2 var_10,int var_9,var_4 param_9,
          var_4 *var_6)

{
  void *__dest;
  type_1 *var_19;
  size_t var_15;
  type_2 *this;
  type_1 *var_16;
  var_4 local_44;
  var_4 local_40;
  type_1 *var_14;
  size_t var_12;
  type_1 var_20 [28];
  
  this = var_7<var_8::type_2<var_2>>((type_3 *)(var_9 + 0x6c));
  var_12 = 0;
  var_20[0] = 0;
  var_14 = var_20;
  if (var_10 == '\0') {
    var_11<false>(&local_44,param_2,param_3,param_4,param_5,param_6,var_9,param_9,&var_14);
  }
  else {
                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */
    var_11<true>(&local_44,param_2,param_3,param_4,param_5,param_6,var_9,param_9,&var_14);
  }
  var_15 = var_12;
  if (var_12 != 0) {
    std::string::var_13((type_4)var_6,(char)var_12);
    var_19 = var_14;
    var_16 = var_14 + var_15;
    __dest = (void *)*var_6;
    if (this[0x1c] == (type_2)0x1) {
      if (var_16 != var_14) {
        var_17(__dest,var_14,var_15);
      }
    }
    else {
      if (this[0x1c] == (type_2)0x0) {
        type_2<var_2>::var_18((type_2<var_2> *)this);
      }
      if (*(type_5 **)(*(int *)this + 0x1c) == (type_5 *)PTR_do_widen_005e9f84) {
        if (var_16 != var_19) {
          var_17(__dest,var_19,var_15);
        }
      }
      else {
        (**(type_5 **)(*(int *)this + 0x1c))(this,var_19,var_16,__dest);
      }
    }
  }
  *var_5 = local_44;
  var_5[1] = local_40;
  if (var_14 != var_20) {
    var_21(var_14);
  }
  return var_5;
}


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

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

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

{
  void *__dest;
  undefined1 *__src;
  size_t __n;
  int *piVar1;
  undefined1 *puVar2;
  undefined4 local_44;
  undefined4 local_40;
  undefined1 *local_34;
  size_t local_30;
  undefined1 local_2c [28];
  
  piVar1 = (int *)FUN_003c30b0(param_8 + 0x6c);
  local_30 = 0;
  local_2c[0] = 0;
  local_34 = local_2c;
  if (param_7 == '\0') {
    FUN_0042e830(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  else {
                    /* try { // try from 0042fa16 to 0042fb4b has its CatchHandler @ 0042fb54 */
    FUN_0042d7b0(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  __n = local_30;
  if (local_30 != 0) {
    FUN_003b6a50(param_10,local_30,0);
    __src = local_34;
    puVar2 = local_34 + __n;
    __dest = (void *)*param_10;
    if ((char)piVar1[7] == '\x01') {
      if (puVar2 != local_34) {
        memcpy(__dest,local_34,__n);
      }
    }
    else {
      if ((char)piVar1[7] == '\0') {
        FUN_003f3f90(piVar1);
      }
      if (*(code **)(*piVar1 + 0x1c) == (code *)PTR_FUN_005e9f84) {
        if (puVar2 != __src) {
          memcpy(__dest,__src,__n);
        }
      }
      else {
        (**(code **)(*piVar1 + 0x1c))(piVar1,__src,puVar2,__dest);
      }
    }
  }
  *param_1 = local_44;
  param_1[1] = local_40;
  if (local_34 != local_2c) {
    FUN_003ae080(local_34);
  }
  return param_1;
}

