
/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   std::__facet_shims::__money_get<wchar_t>(std::integral_constant<bool, true>, std::locale::facet
   const*, 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&, long double*, std::__facet_shims::__any_string*) */

undefined8 __thiscall
std::__facet_shims::__money_get<wchar_t>
          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined8 param_4,
          undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,
          long *param_10)

{
  undefined8 uVar1;
  undefined4 *local_48;
  long local_40;
  undefined4 local_38 [4];
  
  if (param_9 == 0) {
    local_40 = 0;
    local_48 = local_38;
    local_38[0] = 0;
                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */
    uVar1 = (**(code **)(*(long *)this + 0x18))
                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);
    if (*param_8 == 0) {
      if ((code *)param_10[4] != (code *)0x0) {
        (*(code *)param_10[4])(param_10);
      }
      *param_10 = (long)(param_10 + 2);
      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);
      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;
    }
    if (local_48 != local_38) {
      operator_delete(local_48);
      return uVar1;
    }
  }
  else {
    uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);
  }
  return uVar1;
}



undefined8
FUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,
            long *param_10)

{
  undefined8 uVar1;
  undefined4 *local_48;
  long local_40;
  undefined4 local_38 [4];
  
  if (param_9 == 0) {
    local_40 = 0;
    local_48 = local_38;
    local_38[0] = 0;
                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */
    uVar1 = (**(code **)(*param_1 + 0x18))
                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);
    if (*param_8 == 0) {
      if ((code *)param_10[4] != (code *)0x0) {
        (*(code *)param_10[4])(param_10);
      }
      *param_10 = (long)(param_10 + 2);
      FUN_002e1160(param_10,local_48,local_48 + local_40);
      param_10[4] = (long)FUN_00310270;
    }
    if (local_48 != local_38) {
      FUN_002dac60();
      return uVar1;
    }
  }
  else {
    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);
  }
  return uVar1;
}


PUSH RBP
MOVZX R9D,R9B
MOV RBP,RSP
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RBX,RDX
SUB RSP,0x40
MOV RAX,qword ptr [RBP + 0x20]
MOV RDX,qword ptr [RBP + 0x10]
MOV R13,qword ptr [RBP + 0x18]
MOV R10,qword ptr [RDI]
TEST RAX,RAX
JZ 0x00312d80
SUB RSP,0x8
PUSH RAX
PUSH R13
PUSH RDX
MOV RDX,RBX
CALL qword ptr [R10 + 0x10]
ADD RSP,0x20
LEA RSP,[RBP + -0x20]
POP RBX
POP R12
POP R13
POP R14
POP RBP
RET
LEA R11,[RBP + -0x40]
SUB RSP,0x8
MOV qword ptr [RBP + -0x38],0x0
LEA RAX,[R11 + 0x10]
PUSH R11
MOV R14,R11
PUSH R13
MOV qword ptr [RBP + -0x40],RAX
PUSH RDX
MOV RDX,RBX
MOV dword ptr [RBP + -0x30],0x0
CALL qword ptr [R10 + 0x18]
MOV R12,RAX
MOV EDX,EDX
ADD RSP,0x20
MOV RAX,-0x100000000
AND RBX,RAX
MOV qword ptr [RBP + -0x50],R12
MOV qword ptr [RBP + -0x48],RDX
MOV EAX,dword ptr [R13]
OR RBX,RDX
TEST EAX,EAX
JZ 0x00312e10
MOV RDX,RBX
MOV RDI,qword ptr [RBP + -0x40]
MOV RBX,R14
MOV RAX,R12
ADD RBX,0x10
CMP RDI,RBX
JZ 0x00312d6d
MOV qword ptr [RBP + -0x60],RDX
MOV qword ptr [RBP + -0x58],R12
CALL 0x002dac60
MOV RAX,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x60]
LEA RSP,[RBP + -0x20]
POP RBX
POP R12
POP R13
POP R14
POP RBP
RET
MOV RAX,qword ptr [RBP + 0x28]
MOV RAX,qword ptr [RAX + 0x20]
TEST RAX,RAX
JZ 0x00312e23
MOV RDI,qword ptr [RBP + 0x28]
CALL RAX
MOV RAX,qword ptr [RBP + 0x28]
MOV RCX,qword ptr [RBP + 0x28]
MOV RSI,qword ptr [RBP + -0x40]
ADD RAX,0x10
MOV RDI,RCX
MOV qword ptr [RCX],RAX
MOV RAX,qword ptr [RBP + -0x38]
LEA RDX,[RSI + RAX*0x4]
CALL 0x002e1160
MOV RAX,qword ptr [RBP + 0x28]
LEA RCX,[0x310270]
MOV qword ptr [RAX + 0x20],RCX
JMP 0x00312dd7
(translation_unit "undefined8\nFUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)\n\n{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined8\nFUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)\n\n{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined1 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "long param_9" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_10" (sized_type_specifier "long" long) (pointer_declarator "*param_10" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined4 *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_38 [4];" type_identifier (array_declarator "local_38 [4]" identifier [ number_literal ]) ;) (if_statement "if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" if (parenthesized_expression "(param_9 == 0)" ( (binary_expression "param_9 == 0" identifier == number_literal) )) (compound_statement "{\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_48 = local_38;" (assignment_expression "local_48 = local_38" identifier = identifier) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier = (call_expression "(**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" ( (pointer_expression "**(code **)(*param_1 + 0x18)" * (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }" if (parenthesized_expression "(*param_8 == 0)" ( (binary_expression "*param_8 == 0" (pointer_expression "*param_8" * identifier) == number_literal) )) (compound_statement "{\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }" { (if_statement "if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }" if (parenthesized_expression "((code *)param_10[4] != (code *)0x0)" ( (binary_expression "(code *)param_10[4] != (code *)0x0" (cast_expression "(code *)param_10[4]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_10[4]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)param_10[4])(param_10);\n      }" { (expression_statement "(*(code *)param_10[4])(param_10);" (call_expression "(*(code *)param_10[4])(param_10)" (parenthesized_expression "(*(code *)param_10[4])" ( (pointer_expression "*(code *)param_10[4]" * (cast_expression "(code *)param_10[4]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_10[4]" identifier [ number_literal ]))) )) (argument_list "(param_10)" ( identifier ))) ;) })) (expression_statement "*param_10 = (long)(param_10 + 2);" (assignment_expression "*param_10 = (long)(param_10 + 2)" (pointer_expression "*param_10" * identifier) = (cast_expression "(long)(param_10 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_10 + 2)" ( (binary_expression "param_10 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_002e1160(param_10,local_48,local_48 + local_40);" (call_expression "FUN_002e1160(param_10,local_48,local_48 + local_40)" identifier (argument_list "(param_10,local_48,local_48 + local_40)" ( identifier , identifier , (binary_expression "local_48 + local_40" identifier + identifier) ))) ;) (expression_statement "param_10[4] = (long)FUN_00310270;" (assignment_expression "param_10[4] = (long)FUN_00310270" (subscript_expression "param_10[4]" identifier [ number_literal ]) = (cast_expression "(long)FUN_00310270" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) })) (if_statement "if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }" if (parenthesized_expression "(local_48 != local_38)" ( (binary_expression "local_48 != local_38" identifier != identifier) )) (compound_statement "{\n      FUN_002dac60();\n      return uVar1;\n    }" { (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" { (expression_statement "uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" identifier = (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >\n   std::__facet_shims::__money_get<wchar_t>(std::integral_constant<bool, true>, std::locale::facet\n   const*, 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&, long double*, std::__facet_shims::__any_string*) */\n\nundefined8 __thiscall\nstd::__facet_shims::__money_get<wchar_t>\n          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n          undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n          long *param_10)\n\n{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    if (local_48 != local_38) {\n      operator_delete(local_48);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);\n  }\n  return uVar1;\n}\n\n" comment (function_definition "undefined8 __thiscall\nstd::__facet_shims::__money_get<wchar_t>\n          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n          undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n          long *param_10)\n\n{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    if (local_48 != local_38) {\n      operator_delete(local_48);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);\n  }\n  return uVar1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__facet_shims::__money_get<" identifier : : identifier : : identifier <) (function_declarator "wchar_t>\n          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n          undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n          long *param_10)" identifier (ERROR ">" >) (parameter_list "(__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n          undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n          long *param_10)" ( (parameter_declaration "__facet_shims *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined1 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "long param_9" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_10" (sized_type_specifier "long" long) (pointer_declarator "*param_10" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    if (local_48 != local_38) {\n      operator_delete(local_48);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);\n  }\n  return uVar1;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined4 *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_38 [4];" type_identifier (array_declarator "local_38 [4]" identifier [ number_literal ]) ;) (if_statement "if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    if (local_48 != local_38) {\n      operator_delete(local_48);\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);\n  }" if (parenthesized_expression "(param_9 == 0)" ( (binary_expression "param_9 == 0" identifier == number_literal) )) (compound_statement "{\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */\n    uVar1 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    if (local_48 != local_38) {\n      operator_delete(local_48);\n      return uVar1;\n    }\n  }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_48 = local_38;" (assignment_expression "local_48 = local_38" identifier = identifier) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "uVar1 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);" (assignment_expression "uVar1 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier = (call_expression "(**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (parenthesized_expression "(**(code **)(*(long *)this + 0x18))" ( (pointer_expression "**(code **)(*(long *)this + 0x18)" * (pointer_expression "*(code **)(*(long *)this + 0x18)" * (cast_expression "(code **)(*(long *)this + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x18)" ( (binary_expression "*(long *)this + 0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }" if (parenthesized_expression "(*param_8 == 0)" ( (binary_expression "*param_8 == 0" (pointer_expression "*param_8" * identifier) == number_literal) )) (compound_statement "{\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }" { (if_statement "if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }" if (parenthesized_expression "((code *)param_10[4] != (code *)0x0)" ( (binary_expression "(code *)param_10[4] != (code *)0x0" (cast_expression "(code *)param_10[4]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_10[4]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)param_10[4])(param_10);\n      }" { (expression_statement "(*(code *)param_10[4])(param_10);" (call_expression "(*(code *)param_10[4])(param_10)" (parenthesized_expression "(*(code *)param_10[4])" ( (pointer_expression "*(code *)param_10[4]" * (cast_expression "(code *)param_10[4]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_10[4]" identifier [ number_literal ]))) )) (argument_list "(param_10)" ( identifier ))) ;) })) (expression_statement "*param_10 = (long)(param_10 + 2);" (assignment_expression "*param_10 = (long)(param_10 + 2)" (pointer_expression "*param_10" * identifier) = (cast_expression "(long)(param_10 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_10 + 2)" ( (binary_expression "param_10 + 2" identifier + number_literal) )))) ;) (labeled_statement "std::wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);" statement_identifier : (ERROR ":" :) (expression_statement "_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40);" (binary_expression "_M_construct<wchar_t*>(param_10,local_48,local_48 + local_40)" (binary_expression "_M_construct<wchar_t" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_10,local_48,local_48 + local_40)" ( (comma_expression "param_10,local_48,local_48 + local_40" identifier , (comma_expression "local_48,local_48 + local_40" identifier , (binary_expression "local_48 + local_40" identifier + identifier))) ))) ;))) (expression_statement "param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>;" (binary_expression "param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t>" (binary_expression "param_10[4] = (long)(anonymous_namespace)::__destroy_string<wchar_t" (assignment_expression "param_10[4] = (long)(anonymous_namespace)" (subscript_expression "param_10[4]" identifier [ number_literal ]) = (cast_expression "(long)(anonymous_namespace)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(anonymous_namespace)" ( identifier )))) (ERROR "::__destroy_string" : : identifier) < identifier) > identifier) ;) })) (if_statement "if (local_48 != local_38) {\n      operator_delete(local_48);\n      return uVar1;\n    }" if (parenthesized_expression "(local_48 != local_38)" ( (binary_expression "local_48 != local_38" identifier != identifier) )) (compound_statement "{\n      operator_delete(local_48);\n      return uVar1;\n    }" { (expression_statement "operator_delete(local_48);" (call_expression "operator_delete(local_48)" identifier (argument_list "(local_48)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);\n  }" { (expression_statement "uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3);" (assignment_expression "uVar1 = (**(code **)(*(long *)this + 0x10))(this,param_2,param_3)" identifier = (call_expression "(**(code **)(*(long *)this + 0x10))(this,param_2,param_3)" (parenthesized_expression "(**(code **)(*(long *)this + 0x10))" ( (pointer_expression "**(code **)(*(long *)this + 0x10)" * (pointer_expression "*(code **)(*(long *)this + 0x10)" * (cast_expression "(code **)(*(long *)this + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x10)" ( (binary_expression "*(long *)this + 0x10" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,param_2,param_3)" ( identifier , identifier , identifier )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "undefined8\nFUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)\n\n{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined8\nFUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)\n\n{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined1 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "long param_9" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_10" (sized_type_specifier "long" long) (pointer_declarator "*param_10" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined4 *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_38 [4];" type_identifier (array_declarator "local_38 [4]" identifier [ number_literal ]) ;) (if_statement "if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" if (parenthesized_expression "(param_9 == 0)" ( (binary_expression "param_9 == 0" identifier == number_literal) )) (compound_statement "{\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }" { (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_48 = local_38;" (assignment_expression "local_48 = local_38" identifier = identifier) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" identifier = (call_expression "(**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" ( (pointer_expression "**(code **)(*param_1 + 0x18)" * (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }" if (parenthesized_expression "(*param_8 == 0)" ( (binary_expression "*param_8 == 0" (pointer_expression "*param_8" * identifier) == number_literal) )) (compound_statement "{\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }" { (if_statement "if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }" if (parenthesized_expression "((code *)param_10[4] != (code *)0x0)" ( (binary_expression "(code *)param_10[4] != (code *)0x0" (cast_expression "(code *)param_10[4]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_10[4]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)param_10[4])(param_10);\n      }" { (expression_statement "(*(code *)param_10[4])(param_10);" (call_expression "(*(code *)param_10[4])(param_10)" (parenthesized_expression "(*(code *)param_10[4])" ( (pointer_expression "*(code *)param_10[4]" * (cast_expression "(code *)param_10[4]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_10[4]" identifier [ number_literal ]))) )) (argument_list "(param_10)" ( identifier ))) ;) })) (expression_statement "*param_10 = (long)(param_10 + 2);" (assignment_expression "*param_10 = (long)(param_10 + 2)" (pointer_expression "*param_10" * identifier) = (cast_expression "(long)(param_10 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_10 + 2)" ( (binary_expression "param_10 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_002e1160(param_10,local_48,local_48 + local_40);" (call_expression "FUN_002e1160(param_10,local_48,local_48 + local_40)" identifier (argument_list "(param_10,local_48,local_48 + local_40)" ( identifier , identifier , (binary_expression "local_48 + local_40" identifier + identifier) ))) ;) (expression_statement "param_10[4] = (long)FUN_00310270;" (assignment_expression "param_10[4] = (long)FUN_00310270" (subscript_expression "param_10[4]" identifier [ number_literal ]) = (cast_expression "(long)FUN_00310270" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) })) (if_statement "if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }" if (parenthesized_expression "(local_48 != local_38)" ( (binary_expression "local_48 != local_38" identifier != identifier) )) (compound_statement "{\n      FUN_002dac60();\n      return uVar1;\n    }" { (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" { (expression_statement "uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" identifier = (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (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 (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined8\nFUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)\n\n{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}" (type_identifier "undefined8") (function_declarator "FUN_00312d30(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)" (identifier "FUN_00312d30") (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,\n            long *param_10)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined1 param_6" (type_identifier "undefined1") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "int *param_8" (primitive_type "int") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) (, ",") (parameter_declaration "long param_9" (sized_type_specifier "long" (long "long")) (identifier "param_9")) (, ",") (parameter_declaration "long *param_10" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_10" (* "*") (identifier "param_10"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  undefined4 *local_48;\n  long local_40;\n  undefined4 local_38 [4];\n  \n  if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "undefined4 *local_48;" (type_identifier "undefined4") (pointer_declarator "*local_48" (* "*") (identifier "local_48")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (declaration "undefined4 local_38 [4];" (type_identifier "undefined4") (array_declarator "local_38 [4]" (identifier "local_38") ([ "[") (number_literal "4") (] "]")) (; ";")) (if_statement "if (param_9 == 0) {\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }\n  else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" (if "if") (parenthesized_expression "(param_9 == 0)" (( "(") (binary_expression "param_9 == 0" (identifier "param_9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_40 = 0;\n    local_48 = local_38;\n    local_38[0] = 0;\n                    \n    uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);\n    if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }\n    if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }\n  }" ({ "{") (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = local_38;" (assignment_expression "local_48 = local_38" (identifier "local_48") (= "=") (identifier "local_38")) (; ";")) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x18))\n                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x18)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x18)" (* "*") (cast_expression "(code **)(*param_1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x18)" (( "(") (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")")))) (; ";")) (if_statement "if (*param_8 == 0) {\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }" (if "if") (parenthesized_expression "(*param_8 == 0)" (( "(") (binary_expression "*param_8 == 0" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }\n      *param_10 = (long)(param_10 + 2);\n      FUN_002e1160(param_10,local_48,local_48 + local_40);\n      param_10[4] = (long)FUN_00310270;\n    }" ({ "{") (if_statement "if ((code *)param_10[4] != (code *)0x0) {\n        (*(code *)param_10[4])(param_10);\n      }" (if "if") (parenthesized_expression "((code *)param_10[4] != (code *)0x0)" (( "(") (binary_expression "(code *)param_10[4] != (code *)0x0" (cast_expression "(code *)param_10[4]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_10[4]" (identifier "param_10") ([ "[") (number_literal "4") (] "]"))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (*(code *)param_10[4])(param_10);\n      }" ({ "{") (expression_statement "(*(code *)param_10[4])(param_10);" (call_expression "(*(code *)param_10[4])(param_10)" (parenthesized_expression "(*(code *)param_10[4])" (( "(") (pointer_expression "*(code *)param_10[4]" (* "*") (cast_expression "(code *)param_10[4]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_10[4]" (identifier "param_10") ([ "[") (number_literal "4") (] "]")))) () ")")) (argument_list "(param_10)" (( "(") (identifier "param_10") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_10 = (long)(param_10 + 2);" (assignment_expression "*param_10 = (long)(param_10 + 2)" (pointer_expression "*param_10" (* "*") (identifier "param_10")) (= "=") (cast_expression "(long)(param_10 + 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(param_10 + 2)" (( "(") (binary_expression "param_10 + 2" (identifier "param_10") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_002e1160(param_10,local_48,local_48 + local_40);" (call_expression "FUN_002e1160(param_10,local_48,local_48 + local_40)" (identifier "FUN_002e1160") (argument_list "(param_10,local_48,local_48 + local_40)" (( "(") (identifier "param_10") (, ",") (identifier "local_48") (, ",") (binary_expression "local_48 + local_40" (identifier "local_48") (+ "+") (identifier "local_40")) () ")"))) (; ";")) (expression_statement "param_10[4] = (long)FUN_00310270;" (assignment_expression "param_10[4] = (long)FUN_00310270" (subscript_expression "param_10[4]" (identifier "param_10") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(long)FUN_00310270" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "FUN_00310270"))) (; ";")) (} "}"))) (if_statement "if (local_48 != local_38) {\n      FUN_002dac60();\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(local_48 != local_38)" (( "(") (binary_expression "local_48 != local_38" (identifier "local_48") (!= "!=") (identifier "local_38")) () ")")) (compound_statement "{\n      FUN_002dac60();\n      return uVar1;\n    }" ({ "{") (expression_statement "FUN_002dac60();" (call_expression "FUN_002dac60()" (identifier "FUN_002dac60") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" (else "else") (compound_statement "{\n    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);" (assignment_expression "uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x10))(param_1,param_2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x10)" (* "*") (cast_expression "(code **)(*param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   std::__facet_shims::__money_get<wchar_t>(std::integral_constant<bool, true>, std::locale::facet
   const*, 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&, long double*, std::__facet_shims::__any_string*) */

type_1 __thiscall
std::type_2::__money_get<function_1>
          (type_2 *this,type_1 param_2,type_1 param_3,type_1 param_4,
          type_1 param_5,type_3 param_6,type_1 param_7,int *param_8,long var_1,
          long *var_2)

{
  type_1 uVar1;
  type_4 *var_4;
  long var_5;
  type_4 var_7 [4];
  
  if (var_1 == 0) {
    var_5 = 0;
    var_4 = var_7;
    var_7[0] = 0;
                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */
    uVar1 = (**(type_5 **)(*(long *)this + 0x18))
                      (this,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&var_4);
    if (*param_8 == 0) {
      if ((type_5 *)var_2[4] != (type_5 *)0x0) {
        (*(type_5 *)var_2[4])(var_2);
      }
      *var_2 = (long)(var_2 + 2);
      std::wstring::var_3<function_1*>(var_2,var_4,var_4 + var_5);
      var_2[4] = (long)(anonymous_namespace)::__destroy_string<function_1>var_6;
    }
    if (var_4 != var_7) {
      var_8(var_4);
      return uVar1;
    }
  }
  else {
    uVar1 = (**(type_5 **)(*(long *)this + 0x10))(this,param_2,param_3);
  }
  return uVar1;
}


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

undefined8
MASKED(long *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
            undefined8 param_5,undefined1 param_6,undefined8 param_7,int *param_8,long param_9,
            long *param_10)

{
  undefined8 uVar1;
  undefined4 *local_48;
  long local_40;
  undefined4 local_38 [4];
  
  if (param_9 == 0) {
    local_40 = 0;
    local_48 = local_38;
    local_38[0] = 0;
                    /* try { // try from 00312daa to 00312e45 has its CatchHandler @ 00312e57 */
    uVar1 = (**(code **)(*param_1 + 0x18))
                      (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,&local_48);
    if (*param_8 == 0) {
      if ((code *)param_10[4] != (code *)0x0) {
        (*(code *)param_10[4])(param_10);
      }
      *param_10 = (long)(param_10 + 2);
      FUN_002e1160(param_10,local_48,local_48 + local_40);
      param_10[4] = (long)FUN_00310270;
    }
    if (local_48 != local_38) {
      FUN_002dac60();
      return uVar1;
    }
  }
  else {
    uVar1 = (**(code **)(*param_1 + 0x10))(param_1,param_2,param_3);
  }
  return uVar1;
}

