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

undefined4 *
std::money_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::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,
          wstring *param_10)

{
  uint uVar1;
  ctype *pcVar2;
  undefined4 local_44;
  undefined4 local_40;
  undefined1 *local_34;
  uint local_30;
  undefined1 local_2c [28];
  
  pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_8 + 0x6c));
  local_2c[0] = 0;
  local_30 = 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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */
    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  uVar1 = local_30;
  if (local_30 != 0) {
    std::wstring::resize(param_10,local_30,L'\0');
    (**(code **)(*(int *)pcVar2 + 0x2c))(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10);
  }
  *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_0021f1b0(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)

{
  int iVar1;
  int *piVar2;
  undefined4 local_44;
  undefined4 local_40;
  undefined1 *local_34;
  int local_30;
  undefined1 local_2c [28];
  
  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);
  local_2c[0] = 0;
  local_30 = 0;
  local_34 = local_2c;
  if (param_7 == '\0') {
    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  else {
                    /* try { // try from 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */
    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  iVar1 = local_30;
  if (local_30 != 0) {
    FUN_001b1460(param_10,local_30,0);
    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);
  }
  *param_1 = local_44;
  param_1[1] = local_40;
  if (local_34 != local_2c) {
    FUN_001ac470(local_34);
  }
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x000487a6
ADD ESI,0x11fe46
PUSH EBX
SUB ESP,0x48
MOV EAX,dword ptr [EBP + 0x24]
MOV EDI,dword ptr [EBP + 0x20]
ADD EAX,0x6c
PUSH EAX
MOV EBX,ESI
CALL 0x00201890
LEA ECX,[EBP + -0x28]
MOV byte ptr [EBP + -0x28],0x0
ADD ESP,0x10
MOV dword ptr [EBP + -0x44],ECX
LEA EDX,[EBP + -0x40]
MOV dword ptr [EBP + -0x30],ECX
MOV ECX,EDI
MOV dword ptr [EBP + -0x48],EAX
LEA EAX,[EBP + -0x30]
MOV dword ptr [EBP + -0x2c],0x0
TEST CL,CL
JZ 0x0021f268
SUB ESP,0xc
PUSH EAX
PUSH dword ptr [EBP + 0x28]
PUSH dword ptr [EBP + 0x24]
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 0x0021cf90
MOV EAX,dword ptr [EBP + -0x40]
MOV EDX,dword ptr [EBP + -0x3c]
ADD ESP,0x2c
MOV EDI,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + 0x10],EAX
MOV dword ptr [EBP + 0x14],EDX
TEST EDI,EDI
JNZ 0x0021f290
MOV EBX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EBP + 0x10]
MOV EDX,dword ptr [EBP + 0x14]
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [EBP + -0x30]
MOV dword ptr [EBX + 0x4],EDX
CMP EAX,dword ptr [EBP + -0x44]
JZ 0x0021f254
SUB ESP,0xc
MOV EBX,ESI
PUSH EAX
CALL 0x001ac470
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 dword ptr [EBP + 0x24]
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 0x0021e020
JMP 0x0021f21a
SUB ESP,0x4
MOV EBX,ESI
PUSH 0x0
PUSH EDI
PUSH dword ptr [EBP + 0x2c]
CALL 0x001b1460
MOV EBX,dword ptr [EBP + -0x48]
MOV EAX,dword ptr [EBP + -0x30]
ADD ESP,0x10
MOV ECX,dword ptr [EBP + 0x2c]
MOV EDX,dword ptr [EBX]
ADD EDI,EAX
PUSH dword ptr [ECX]
PUSH EDI
PUSH EAX
PUSH EBX
CALL dword ptr [EDX + 0x2c]
ADD ESP,0x10
JMP 0x0021f230
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 *\nFUN_0021f1b0(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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}\n\n" comment (function_definition "undefined4 *\nFUN_0021f1b0(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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_0021f1b0(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_0021f1b0(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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * 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 "int local_30;" primitive_type identifier ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "piVar2 = (int *)FUN_00201890(param_8 + 0x6c);" (assignment_expression "piVar2 = (int *)FUN_00201890(param_8 + 0x6c)" identifier = (cast_expression "(int *)FUN_00201890(param_8 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00201890(param_8 + 0x6c)" identifier (argument_list "(param_8 + 0x6c)" ( (binary_expression "param_8 + 0x6c" 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_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (if_statement "if (param_7 == '\0') {\n    FUN_0021e020(&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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    FUN_0021cf90(&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_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { (expression_statement "FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0021e020(&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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    FUN_0021cf90(&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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { comment (expression_statement "FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0021cf90(&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 "iVar1 = local_30;" (assignment_expression "iVar1 = local_30" identifier = identifier) ;) (if_statement "if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }" { (expression_statement "FUN_001b1460(param_10,local_30,0);" (call_expression "FUN_001b1460(param_10,local_30,0)" identifier (argument_list "(param_10,local_30,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);" (call_expression "(**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10)" (parenthesized_expression "(**(code **)(*piVar2 + 0x2c))" ( (pointer_expression "**(code **)(*piVar2 + 0x2c)" * (pointer_expression "*(code **)(*piVar2 + 0x2c)" * (cast_expression "(code **)(*piVar2 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x2c)" ( (binary_expression "*piVar2 + 0x2c" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,local_34,local_34 + iVar1,*param_10)" ( identifier , identifier , (binary_expression "local_34 + iVar1" identifier + identifier) , (pointer_expression "*param_10" * 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_001ac470(local_34);\n  }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n    FUN_001ac470(local_34);\n  }" { (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(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<wchar_t, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >\n   >::do_get(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >,\n   std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,\n   std::_Ios_Iostate&, std::wstring&) const */\n\nundefined4 *\nstd::money_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::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          wstring *param_10)\n\n{\n  uint uVar1;\n  ctype *pcVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  uint local_30;\n  undefined1 local_2c [28];\n  \n  pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_8 + 0x6c));\n  local_2c[0] = 0;\n  local_30 = 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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  uVar1 = local_30;\n  if (local_30 != 0) {\n    std::wstring::resize(param_10,local_30,L'\0');\n    (**(code **)(*(int *)pcVar2 + 0x2c))(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10);\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<wchar_t," (binary_expression "undefined4 *\nstd::money_get<wchar_t" (binary_expression "undefined4 *\nstd" identifier * identifier) (ERROR "::money_get" : : identifier) < identifier) ,) (labeled_statement "std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::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          wstring *param_10)" statement_identifier (ERROR "::istreambuf_iterator<wchar_t,std:" : : (comma_expression "istreambuf_iterator<wchar_t,std" (binary_expression "istreambuf_iterator<wchar_t" identifier < identifier) , identifier) :) : (expression_statement "char_traits<wchar_t>>>::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          wstring *param_10)" (binary_expression "char_traits<wchar_t>>>::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          wstring *param_10)" identifier < (binary_expression "wchar_t>>>::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          wstring *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          wstring *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          wstring *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 "wstring *param_10" identifier * identifier) ))))) ;)) (compound_statement "{\n  uint uVar1;\n  ctype *pcVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  uint local_30;\n  undefined1 local_2c [28];\n  \n  pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_8 + 0x6c));\n  local_2c[0] = 0;\n  local_30 = 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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\n    _M_extract<true>(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  uVar1 = local_30;\n  if (local_30 != 0) {\n    std::wstring::resize(param_10,local_30,L'\0');\n    (**(code **)(*(int *)pcVar2 + 0x2c))(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10);\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 "uint uVar1;" type_identifier identifier ;) (declaration "ctype *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * 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 "uint local_30;" type_identifier identifier ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_8 + 0x6c));" (binary_expression "pcVar2 = use_facet<std::ctype<wchar_t>>((locale *)(param_8 + 0x6c))" (assignment_expression "pcVar2 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "wchar_t>>((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_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = 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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\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 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */\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 "uVar1 = local_30;" (assignment_expression "uVar1 = local_30" identifier = identifier) ;) (if_statement "if (local_30 != 0) {\n    std::wstring::resize(param_10,local_30,L'\0');\n    (**(code **)(*(int *)pcVar2 + 0x2c))(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    std::wstring::resize(param_10,local_30,L'\0');\n    (**(code **)(*(int *)pcVar2 + 0x2c))(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10);\n  }" { (labeled_statement "std::wstring::resize(param_10,local_30,L'\0');" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::resize(param_10,local_30,L'\0');" statement_identifier : (ERROR ":" :) (expression_statement "resize(param_10,local_30,L'\0');" (call_expression "resize(param_10,local_30,L'\0')" identifier (argument_list "(param_10,local_30,L'\0')" ( identifier , identifier , (char_literal "L'\0'" L' escape_sequence ') ))) ;))) (expression_statement "(**(code **)(*(int *)pcVar2 + 0x2c))(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10);" (call_expression "(**(code **)(*(int *)pcVar2 + 0x2c))(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10)" (parenthesized_expression "(**(code **)(*(int *)pcVar2 + 0x2c))" ( (pointer_expression "**(code **)(*(int *)pcVar2 + 0x2c)" * (pointer_expression "*(code **)(*(int *)pcVar2 + 0x2c)" * (cast_expression "(code **)(*(int *)pcVar2 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar2 + 0x2c)" ( (binary_expression "*(int *)pcVar2 + 0x2c" (pointer_expression "*(int *)pcVar2" * (cast_expression "(int *)pcVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar2,local_34,local_34 + uVar1,*(undefined4 *)param_10)" ( identifier , identifier , (binary_expression "local_34 + uVar1" identifier + identifier) , (pointer_expression "*(undefined4 *)param_10" * (cast_expression "(undefined4 *)param_10" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) 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_0021f1b0(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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}\n\n" (function_definition "undefined4 *\nFUN_0021f1b0(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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_0021f1b0(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_0021f1b0(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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * 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 "int local_30;" primitive_type identifier ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "piVar2 = (int *)FUN_00201890(param_8 + 0x6c);" (assignment_expression "piVar2 = (int *)FUN_00201890(param_8 + 0x6c)" identifier = (cast_expression "(int *)FUN_00201890(param_8 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00201890(param_8 + 0x6c)" identifier (argument_list "(param_8 + 0x6c)" ( (binary_expression "param_8 + 0x6c" 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_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (if_statement "if (param_7 == '\0') {\n    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0021cf90(&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_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { (expression_statement "FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0021e020(&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_0021cf90(&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_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" { (expression_statement "FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0021cf90(&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 "iVar1 = local_30;" (assignment_expression "iVar1 = local_30" identifier = identifier) ;) (if_statement "if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }" { (expression_statement "FUN_001b1460(param_10,local_30,0);" (call_expression "FUN_001b1460(param_10,local_30,0)" identifier (argument_list "(param_10,local_30,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);" (call_expression "(**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10)" (parenthesized_expression "(**(code **)(*piVar2 + 0x2c))" ( (pointer_expression "**(code **)(*piVar2 + 0x2c)" * (pointer_expression "*(code **)(*piVar2 + 0x2c)" * (cast_expression "(code **)(*piVar2 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x2c)" ( (binary_expression "*piVar2 + 0x2c" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,local_34,local_34 + iVar1,*param_10)" ( identifier , identifier , (binary_expression "local_34 + iVar1" identifier + identifier) , (pointer_expression "*param_10" * 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_001ac470(local_34);\n  }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n    FUN_001ac470(local_34);\n  }" { (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(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 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = 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 (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 , (binary_expression IDENT + IDENT) , (pointer_expression * 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_0021f1b0(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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_0021f1b0(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_0021f1b0(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_0021f1b0") (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  int iVar1;\n  int *piVar2;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined1 *local_34;\n  int local_30;\n  undefined1 local_2c [28];\n  \n  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);\n  local_2c[0] = 0;\n  local_30 = 0;\n  local_34 = local_2c;\n  if (param_7 == '\0') {\n    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  iVar1 = local_30;\n  if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }\n  *param_1 = local_44;\n  param_1[1] = local_40;\n  if (local_34 != local_2c) {\n    FUN_001ac470(local_34);\n  }\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (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 "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined1 local_2c [28];" (type_identifier "undefined1") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (expression_statement "piVar2 = (int *)FUN_00201890(param_8 + 0x6c);" (assignment_expression "piVar2 = (int *)FUN_00201890(param_8 + 0x6c)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00201890(param_8 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00201890(param_8 + 0x6c)" (identifier "FUN_00201890") (argument_list "(param_8 + 0x6c)" (( "(") (binary_expression "param_8 + 0x6c" (identifier "param_8") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (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_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (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_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }\n  else {\n                    \n    FUN_0021cf90(&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_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" ({ "{") (expression_statement "FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (identifier "FUN_0021e020") (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_0021cf90(&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_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);\n  }" ({ "{") (expression_statement "FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);" (call_expression "FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34)" (identifier "FUN_0021cf90") (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 "iVar1 = local_30;" (assignment_expression "iVar1 = local_30" (identifier "iVar1") (= "=") (identifier "local_30")) (; ";")) (if_statement "if (local_30 != 0) {\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_001b1460(param_10,local_30,0);\n    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);\n  }" ({ "{") (expression_statement "FUN_001b1460(param_10,local_30,0);" (call_expression "FUN_001b1460(param_10,local_30,0)" (identifier "FUN_001b1460") (argument_list "(param_10,local_30,0)" (( "(") (identifier "param_10") (, ",") (identifier "local_30") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "(**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);" (call_expression "(**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10)" (parenthesized_expression "(**(code **)(*piVar2 + 0x2c))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x2c)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x2c)" (* "*") (cast_expression "(code **)(*piVar2 + 0x2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x2c)" (( "(") (binary_expression "*piVar2 + 0x2c" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (argument_list "(piVar2,local_34,local_34 + iVar1,*param_10)" (( "(") (identifier "piVar2") (, ",") (identifier "local_34") (, ",") (binary_expression "local_34 + iVar1" (identifier "local_34") (+ "+") (identifier "iVar1")) (, ",") (pointer_expression "*param_10" (* "*") (identifier "param_10")) () ")"))) (; ";")) (} "}"))) (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_001ac470(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_001ac470(local_34);\n  }" ({ "{") (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(local_34)" (identifier "FUN_001ac470") (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<wchar_t, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   >::do_get(std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >,
   std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,
   std::_Ios_Iostate&, std::wstring&) const */

var_4 *
var_9::money_get<var_2,std::istreambuf_iterator<var_2,var_9::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,char var_11,int var_10,var_4 param_9,
          var_6 *var_7)

{
  type_1 var_16;
  type_2 *pcVar2;
  var_4 local_44;
  var_4 local_40;
  type_3 *var_15;
  type_1 var_13;
  type_3 var_17 [28];
  
  pcVar2 = var_8<var_9::type_2<var_2>>((type_4 *)(var_10 + 0x6c));
  var_17[0] = 0;
  var_13 = 0;
  var_15 = var_17;
  if (var_11 == '\0') {
    var_12<false>(&local_44,param_2,param_3,param_4,param_5,param_6,var_10,param_9,&var_15);
  }
  else {
                    /* try { // try from 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */
    var_12<true>(&local_44,param_2,param_3,param_4,param_5,param_6,var_10,param_9,&var_15);
  }
  var_16 = var_13;
  if (var_13 != 0) {
    std::wstring::var_14(var_7,var_13,L'\0');
    (**(type_5 **)(*(int *)pcVar2 + 0x2c))(pcVar2,var_15,var_15 + var_16,*(var_4 *)var_7);
  }
  *var_5 = local_44;
  var_5[1] = local_40;
  if (var_15 != var_17) {
    var_18(var_15);
  }
  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: (identifier)) (declaration type: (primitive_type) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) 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 (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) (binary_expression left: (identifier) right: (identifier)) (pointer_expression argument: (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)

{
  int iVar1;
  int *piVar2;
  undefined4 local_44;
  undefined4 local_40;
  undefined1 *local_34;
  int local_30;
  undefined1 local_2c [28];
  
  piVar2 = (int *)FUN_00201890(param_8 + 0x6c);
  local_2c[0] = 0;
  local_30 = 0;
  local_34 = local_2c;
  if (param_7 == '\0') {
    FUN_0021e020(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  else {
                    /* try { // try from 0021f215 to 0021f2b7 has its CatchHandler @ 0021f2c0 */
    FUN_0021cf90(&local_44,param_2,param_3,param_4,param_5,param_6,param_8,param_9,&local_34);
  }
  iVar1 = local_30;
  if (local_30 != 0) {
    FUN_001b1460(param_10,local_30,0);
    (**(code **)(*piVar2 + 0x2c))(piVar2,local_34,local_34 + iVar1,*param_10);
  }
  *param_1 = local_44;
  param_1[1] = local_40;
  if (local_34 != local_2c) {
    FUN_001ac470(local_34);
  }
  return param_1;
}

