
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* 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*) */

undefined4 *
std::__facet_shims::__money_get<wchar_t>
          (undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5
          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10
          ,int param_11,int *param_12)

{
  undefined4 local_44;
  undefined4 local_40;
  undefined4 *local_34;
  int local_30;
  undefined4 local_2c [7];
  
  if (param_11 == 0) {
    local_30 = 0;
    local_2c[0] = 0;
                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */
    local_34 = local_2c;
    (**(code **)(*param_3 + 0xc))
              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)
    ;
    if (*param_10 == 0) {
      if ((code *)param_12[6] != (code *)0x0) {
        (*(code *)param_12[6])(param_12);
      }
      *param_12 = (int)(param_12 + 2);
      std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);
      param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;
    }
    *param_1 = local_44;
    param_1[1] = local_40;
    if (local_34 != local_2c) {
      operator_delete(local_34);
      return param_1;
    }
  }
  else {
    (**(code **)(*param_3 + 8))
              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);
  }
  return param_1;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 *
FUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,
            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,
            undefined4 param_9,int *param_10,int param_11,int *param_12)

{
  undefined4 local_44;
  undefined4 local_40;
  undefined4 *local_34;
  int local_30;
  undefined4 local_2c [7];
  
  if (param_11 == 0) {
    local_30 = 0;
    local_2c[0] = 0;
                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */
    local_34 = local_2c;
    (**(code **)(*param_3 + 0xc))
              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)
    ;
    if (*param_10 == 0) {
      if ((code *)param_12[6] != (code *)0x0) {
        (*(code *)param_12[6])(param_12);
      }
      *param_12 = (int)(param_12 + 2);
      FUN_001edf30(param_12,local_34,local_34 + local_30,0);
      param_12[6] = (int)FUN_00221c30;
    }
    *param_1 = local_44;
    param_1[1] = local_40;
    if (local_34 != local_2c) {
      FUN_001e6db0(local_34);
      return param_1;
    }
  }
  else {
    (**(code **)(*param_3 + 8))
              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);
  }
  return param_1;
}


CALL 0x000559e6
ADD EAX,0x169d8b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV ESI,dword ptr [EBP + 0x30]
MOV EBX,dword ptr [EBP + 0x2c]
MOV dword ptr [EBP + -0x44],EAX
MOV EAX,dword ptr [EBP + 0x10]
MOVZX ECX,byte ptr [EBP + 0x24]
MOV EDX,dword ptr [EAX]
TEST ESI,ESI
JZ 0x002252c8
SUB ESP,0x8
PUSH ESI
PUSH EBX
PUSH dword ptr [EBP + 0x28]
PUSH ECX
PUSH dword ptr [EBP + 0x20]
PUSH dword ptr [EBP + 0x1c]
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [EBP + 0x14]
PUSH EAX
PUSH dword ptr [EBP + 0x8]
CALL dword ptr [EDX + 0x8]
ADD ESP,0x2c
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
LEA ESI,[EBP + -0x28]
SUB ESP,0x8
LEA EDI,[EBP + -0x30]
MOV dword ptr [EBP + -0x2c],0x0
MOV dword ptr [EBP + -0x48],ESI
MOV dword ptr [EBP + -0x30],ESI
LEA ESI,[EBP + -0x40]
PUSH EDI
MOV dword ptr [EBP + -0x28],0x0
PUSH EBX
PUSH dword ptr [EBP + 0x28]
PUSH ECX
PUSH dword ptr [EBP + 0x20]
PUSH dword ptr [EBP + 0x1c]
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [EBP + 0x14]
PUSH EAX
PUSH ESI
CALL dword ptr [EDX + 0xc]
MOV EAX,dword ptr [EBX]
MOV ESI,dword ptr [EBP + -0x40]
ADD ESP,0x2c
MOV EDI,dword ptr [EBP + -0x3c]
TEST EAX,EAX
JZ 0x00225340
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [EAX],ESI
MOV dword ptr [EAX + 0x4],EDI
MOV EAX,dword ptr [EBP + -0x30]
CMP EAX,dword ptr [EBP + -0x48]
JZ 0x002252b8
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x44]
PUSH EAX
CALL 0x001e6db0
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV EAX,dword ptr [EBP + 0x34]
MOV EAX,dword ptr [EAX + 0x18]
TEST EAX,EAX
JZ 0x00225355
SUB ESP,0xc
PUSH dword ptr [EBP + 0x34]
CALL EAX
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x34]
MOV ECX,dword ptr [EBP + 0x34]
MOV EDX,dword ptr [EBP + -0x2c]
MOV EBX,dword ptr [EBP + -0x44]
ADD EAX,0x8
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [EBP + -0x30]
PUSH 0x0
LEA EDX,[EAX + EDX*0x4]
PUSH EDX
PUSH EAX
PUSH ECX
CALL 0x001edf30
MOV EAX,dword ptr [EBP + -0x44]
MOV ECX,dword ptr [EBP + 0x34]
ADD ESP,0x10
LEA EAX,[EAX + 0xffe92c30]
MOV dword ptr [ECX + 0x18],EAX
JMP 0x0022530e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nundefined4 *\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)\n\n{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}\n\n" comment (function_definition "undefined4 *\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)\n\n{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" * (function_declarator "FUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * 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 "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined1 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) , (parameter_declaration "int *param_10" primitive_type (pointer_declarator "*param_10" * identifier)) , (parameter_declaration "int param_11" primitive_type identifier) , (parameter_declaration "int *param_12" primitive_type (pointer_declarator "*param_12" * identifier)) )))) (compound_statement "{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}" { (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (if_statement "if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" if (parenthesized_expression "(param_11 == 0)" ( (binary_expression "param_11 == 0" identifier == number_literal) )) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;" (call_expression "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" (parenthesized_expression "(**(code **)(*param_3 + 0xc))" ( (pointer_expression "**(code **)(*param_3 + 0xc)" * (pointer_expression "*(code **)(*param_3 + 0xc)" * (cast_expression "(code **)(*param_3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 0xc)" ( (binary_expression "*param_3 + 0xc" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" ( (pointer_expression "&local_44" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_34" & identifier) ))) ;) (if_statement "if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }" if (parenthesized_expression "(*param_10 == 0)" ( (binary_expression "*param_10 == 0" (pointer_expression "*param_10" * identifier) == number_literal) )) (compound_statement "{\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }" { (if_statement "if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }" if (parenthesized_expression "((code *)param_12[6] != (code *)0x0)" ( (binary_expression "(code *)param_12[6] != (code *)0x0" (cast_expression "(code *)param_12[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_12[6]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)param_12[6])(param_12);\n      }" { (expression_statement "(*(code *)param_12[6])(param_12);" (call_expression "(*(code *)param_12[6])(param_12)" (parenthesized_expression "(*(code *)param_12[6])" ( (pointer_expression "*(code *)param_12[6]" * (cast_expression "(code *)param_12[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_12[6]" identifier [ number_literal ]))) )) (argument_list "(param_12)" ( identifier ))) ;) })) (expression_statement "*param_12 = (int)(param_12 + 2);" (assignment_expression "*param_12 = (int)(param_12 + 2)" (pointer_expression "*param_12" * identifier) = (cast_expression "(int)(param_12 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_12 + 2)" ( (binary_expression "param_12 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_001edf30(param_12,local_34,local_34 + local_30,0);" (call_expression "FUN_001edf30(param_12,local_34,local_34 + local_30,0)" identifier (argument_list "(param_12,local_34,local_34 + local_30,0)" ( identifier , identifier , (binary_expression "local_34 + local_30" identifier + identifier) , number_literal ))) ;) (expression_statement "param_12[6] = (int)FUN_00221c30;" (assignment_expression "param_12[6] = (int)FUN_00221c30" (subscript_expression "param_12[6]" identifier [ number_literal ]) = (cast_expression "(int)FUN_00221c30" ( (type_descriptor "int" primitive_type) ) 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_001e6db0(local_34);\n      return param_1;\n    }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n      FUN_001e6db0(local_34);\n      return param_1;\n    }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) }) (else_clause "else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" else (compound_statement "{\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" { (expression_statement "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);" (call_expression "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" (parenthesized_expression "(**(code **)(*param_3 + 8))" ( (pointer_expression "**(code **)(*param_3 + 8)" * (pointer_expression "*(code **)(*param_3 + 8)" * (cast_expression "(code **)(*param_3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 8)" ( (binary_expression "*param_3 + 8" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* 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\nundefined4 *\nstd::__facet_shims::__money_get<wchar_t>\n          (undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12)\n\n{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      operator_delete(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}\n\n" comment comment (ERROR "undefined4 *\nstd::" (binary_expression "undefined4 *\nstd" identifier * identifier) : :) (labeled_statement "__facet_shims::__money_get<wchar_t>\n          (undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12)" statement_identifier : (ERROR ":" :) (expression_statement "__money_get<wchar_t>\n          (undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12)" (binary_expression "__money_get<wchar_t>\n          (undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12)" (binary_expression "__money_get<wchar_t" identifier < identifier) > (parenthesized_expression "(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12)" ( (comma_expression "undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" (binary_expression "undefined4 *param_1" identifier * identifier) , (comma_expression "undefined4 param_2,int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" identifier (ERROR "param_2" identifier) , (comma_expression "int *param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" (binary_expression "int *param_3" identifier * identifier) , (comma_expression "undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" identifier (ERROR "param_4" identifier) , (comma_expression "undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" identifier (ERROR "param_5" identifier) , (comma_expression "undefined4 param_6,undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" identifier (ERROR "param_6" identifier) , (comma_expression "undefined4 param_7,undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" identifier (ERROR "param_7" identifier) , (comma_expression "undefined1 param_8,undefined4 param_9,int *param_10\n          ,int param_11,int *param_12" identifier (ERROR "param_8" identifier) , (ERROR "undefined4" identifier) (comma_expression "param_9,int *param_10\n          ,int param_11,int *param_12" identifier , (comma_expression "int *param_10\n          ,int param_11,int *param_12" (binary_expression "int *param_10" identifier * identifier) , (ERROR "int" identifier) (comma_expression "param_11,int *param_12" identifier , (binary_expression "int *param_12" identifier * identifier)))))))))))) ))) ;)) (compound_statement "{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      operator_delete(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}" { (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (if_statement "if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      operator_delete(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" if (parenthesized_expression "(param_11 == 0)" ( (binary_expression "param_11 == 0" identifier == number_literal) )) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = 0;\n                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */\n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      operator_delete(local_34);\n      return param_1;\n    }\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;" (call_expression "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" (parenthesized_expression "(**(code **)(*param_3 + 0xc))" ( (pointer_expression "**(code **)(*param_3 + 0xc)" * (pointer_expression "*(code **)(*param_3 + 0xc)" * (cast_expression "(code **)(*param_3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 0xc)" ( (binary_expression "*param_3 + 0xc" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" ( (pointer_expression "&local_44" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_34" & identifier) ))) ;) (if_statement "if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }" if (parenthesized_expression "(*param_10 == 0)" ( (binary_expression "*param_10 == 0" (pointer_expression "*param_10" * identifier) == number_literal) )) (compound_statement "{\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;\n    }" { (if_statement "if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }" if (parenthesized_expression "((code *)param_12[6] != (code *)0x0)" ( (binary_expression "(code *)param_12[6] != (code *)0x0" (cast_expression "(code *)param_12[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_12[6]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)param_12[6])(param_12);\n      }" { (expression_statement "(*(code *)param_12[6])(param_12);" (call_expression "(*(code *)param_12[6])(param_12)" (parenthesized_expression "(*(code *)param_12[6])" ( (pointer_expression "*(code *)param_12[6]" * (cast_expression "(code *)param_12[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_12[6]" identifier [ number_literal ]))) )) (argument_list "(param_12)" ( identifier ))) ;) })) (expression_statement "*param_12 = (int)(param_12 + 2);" (assignment_expression "*param_12 = (int)(param_12 + 2)" (pointer_expression "*param_12" * identifier) = (cast_expression "(int)(param_12 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_12 + 2)" ( (binary_expression "param_12 + 2" identifier + number_literal) )))) ;) (labeled_statement "std::wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);" statement_identifier : (ERROR ":" :) (expression_statement "_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0);" (binary_expression "_M_construct<wchar_t*>(param_12,local_34,local_34 + local_30,0)" (binary_expression "_M_construct<wchar_t" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_12,local_34,local_34 + local_30,0)" ( (comma_expression "param_12,local_34,local_34 + local_30,0" identifier , (comma_expression "local_34,local_34 + local_30,0" identifier , (comma_expression "local_34 + local_30,0" (binary_expression "local_34 + local_30" identifier + identifier) , number_literal))) ))) ;))) (expression_statement "param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>;" (binary_expression "param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t>" (binary_expression "param_12[6] = (int)(anonymous_namespace)::__destroy_string<wchar_t" (assignment_expression "param_12[6] = (int)(anonymous_namespace)" (subscript_expression "param_12[6]" identifier [ number_literal ]) = (cast_expression "(int)(anonymous_namespace)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(anonymous_namespace)" ( identifier )))) (ERROR "::__destroy_string" : : identifier) < identifier) > identifier) ;) })) (expression_statement "*param_1 = local_44;" (assignment_expression "*param_1 = local_44" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_40;" (assignment_expression "param_1[1] = local_40" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_34 != local_2c) {\n      operator_delete(local_34);\n      return param_1;\n    }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n      operator_delete(local_34);\n      return param_1;\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 ;) })) }) (else_clause "else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" else (compound_statement "{\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" { (expression_statement "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);" (call_expression "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" (parenthesized_expression "(**(code **)(*param_3 + 8))" ( (pointer_expression "**(code **)(*param_3 + 8)" * (pointer_expression "*(code **)(*param_3 + 8)" * (cast_expression "(code **)(*param_3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 8)" ( (binary_expression "*param_3 + 8" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) }))
(translation_unit "undefined4 *\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)\n\n{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}\n\n" (function_definition "undefined4 *\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)\n\n{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" * (function_declarator "FUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * 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 "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined1 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) , (parameter_declaration "int *param_10" primitive_type (pointer_declarator "*param_10" * identifier)) , (parameter_declaration "int param_11" primitive_type identifier) , (parameter_declaration "int *param_12" primitive_type (pointer_declarator "*param_12" * identifier)) )))) (compound_statement "{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}" { (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (if_statement "if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" if (parenthesized_expression "(param_11 == 0)" ( (binary_expression "param_11 == 0" identifier == number_literal) )) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;" (call_expression "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" (parenthesized_expression "(**(code **)(*param_3 + 0xc))" ( (pointer_expression "**(code **)(*param_3 + 0xc)" * (pointer_expression "*(code **)(*param_3 + 0xc)" * (cast_expression "(code **)(*param_3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 0xc)" ( (binary_expression "*param_3 + 0xc" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" ( (pointer_expression "&local_44" & identifier) , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_34" & identifier) ))) ;) (if_statement "if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }" if (parenthesized_expression "(*param_10 == 0)" ( (binary_expression "*param_10 == 0" (pointer_expression "*param_10" * identifier) == number_literal) )) (compound_statement "{\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }" { (if_statement "if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }" if (parenthesized_expression "((code *)param_12[6] != (code *)0x0)" ( (binary_expression "(code *)param_12[6] != (code *)0x0" (cast_expression "(code *)param_12[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_12[6]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)param_12[6])(param_12);\n      }" { (expression_statement "(*(code *)param_12[6])(param_12);" (call_expression "(*(code *)param_12[6])(param_12)" (parenthesized_expression "(*(code *)param_12[6])" ( (pointer_expression "*(code *)param_12[6]" * (cast_expression "(code *)param_12[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_12[6]" identifier [ number_literal ]))) )) (argument_list "(param_12)" ( identifier ))) ;) })) (expression_statement "*param_12 = (int)(param_12 + 2);" (assignment_expression "*param_12 = (int)(param_12 + 2)" (pointer_expression "*param_12" * identifier) = (cast_expression "(int)(param_12 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_12 + 2)" ( (binary_expression "param_12 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_001edf30(param_12,local_34,local_34 + local_30,0);" (call_expression "FUN_001edf30(param_12,local_34,local_34 + local_30,0)" identifier (argument_list "(param_12,local_34,local_34 + local_30,0)" ( identifier , identifier , (binary_expression "local_34 + local_30" identifier + identifier) , number_literal ))) ;) (expression_statement "param_12[6] = (int)FUN_00221c30;" (assignment_expression "param_12[6] = (int)FUN_00221c30" (subscript_expression "param_12[6]" identifier [ number_literal ]) = (cast_expression "(int)FUN_00221c30" ( (type_descriptor "int" primitive_type) ) 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_001e6db0(local_34);\n      return param_1;\n    }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n      FUN_001e6db0(local_34);\n      return param_1;\n    }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) }) (else_clause "else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" else (compound_statement "{\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" { (expression_statement "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);" (call_expression "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" (parenthesized_expression "(**(code **)(*param_3 + 8))" ( (pointer_expression "**(code **)(*param_3 + 8)" * (pointer_expression "*(code **)(*param_3 + 8)" * (cast_expression "(code **)(*param_3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 8)" ( (binary_expression "*param_3 + 8" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , 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 (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 TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 ( (pointer_expression & IDENT) , 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 TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) 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 ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)\n\n{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" (* "*") (function_declarator "FUN_00225270(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" (identifier "FUN_00225270") (parameter_list "(undefined4 *param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined1 param_8,\n            undefined4 param_9,int *param_10,int param_11,int *param_12)" (( "(") (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 "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (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 "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined1 param_8" (type_identifier "undefined1") (identifier "param_8")) (, ",") (parameter_declaration "undefined4 param_9" (type_identifier "undefined4") (identifier "param_9")) (, ",") (parameter_declaration "int *param_10" (primitive_type "int") (pointer_declarator "*param_10" (* "*") (identifier "param_10"))) (, ",") (parameter_declaration "int param_11" (primitive_type "int") (identifier "param_11")) (, ",") (parameter_declaration "int *param_12" (primitive_type "int") (pointer_declarator "*param_12" (* "*") (identifier "param_12"))) () ")")))) (compound_statement "{\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 *local_34;\n  int local_30;\n  undefined4 local_2c [7];\n  \n  if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }\n  return param_1;\n}" ({ "{") (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined4 *local_34;" (type_identifier "undefined4") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c [7];" (type_identifier "undefined4") (array_declarator "local_2c [7]" (identifier "local_2c") ([ "[") (number_literal "7") (] "]")) (; ";")) (if_statement "if (param_11 == 0) {\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }\n  else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" (if "if") (parenthesized_expression "(param_11 == 0)" (( "(") (binary_expression "param_11 == 0" (identifier "param_11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = 0;\n                    \n    local_34 = local_2c;\n    (**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;\n    if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }\n    *param_1 = local_44;\n    param_1[1] = local_40;\n    if (local_34 != local_2c) {\n      FUN_001e6db0(local_34);\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c[0] = 0;" (assignment_expression "local_2c[0] = 0" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" (identifier "local_34") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)\n    ;" (call_expression "(**(code **)(*param_3 + 0xc))\n              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" (parenthesized_expression "(**(code **)(*param_3 + 0xc))" (( "(") (pointer_expression "**(code **)(*param_3 + 0xc)" (* "*") (pointer_expression "*(code **)(*param_3 + 0xc)" (* "*") (cast_expression "(code **)(*param_3 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_3 + 0xc)" (( "(") (binary_expression "*param_3 + 0xc" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)" (( "(") (pointer_expression "&local_44" (& "&") (identifier "local_44")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (identifier "param_10") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")"))) (; ";")) (if_statement "if (*param_10 == 0) {\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }" (if "if") (parenthesized_expression "(*param_10 == 0)" (( "(") (binary_expression "*param_10 == 0" (pointer_expression "*param_10" (* "*") (identifier "param_10")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }\n      *param_12 = (int)(param_12 + 2);\n      FUN_001edf30(param_12,local_34,local_34 + local_30,0);\n      param_12[6] = (int)FUN_00221c30;\n    }" ({ "{") (if_statement "if ((code *)param_12[6] != (code *)0x0) {\n        (*(code *)param_12[6])(param_12);\n      }" (if "if") (parenthesized_expression "((code *)param_12[6] != (code *)0x0)" (( "(") (binary_expression "(code *)param_12[6] != (code *)0x0" (cast_expression "(code *)param_12[6]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_12[6]" (identifier "param_12") ([ "[") (number_literal "6") (] "]"))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (*(code *)param_12[6])(param_12);\n      }" ({ "{") (expression_statement "(*(code *)param_12[6])(param_12);" (call_expression "(*(code *)param_12[6])(param_12)" (parenthesized_expression "(*(code *)param_12[6])" (( "(") (pointer_expression "*(code *)param_12[6]" (* "*") (cast_expression "(code *)param_12[6]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_12[6]" (identifier "param_12") ([ "[") (number_literal "6") (] "]")))) () ")")) (argument_list "(param_12)" (( "(") (identifier "param_12") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_12 = (int)(param_12 + 2);" (assignment_expression "*param_12 = (int)(param_12 + 2)" (pointer_expression "*param_12" (* "*") (identifier "param_12")) (= "=") (cast_expression "(int)(param_12 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_12 + 2)" (( "(") (binary_expression "param_12 + 2" (identifier "param_12") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_001edf30(param_12,local_34,local_34 + local_30,0);" (call_expression "FUN_001edf30(param_12,local_34,local_34 + local_30,0)" (identifier "FUN_001edf30") (argument_list "(param_12,local_34,local_34 + local_30,0)" (( "(") (identifier "param_12") (, ",") (identifier "local_34") (, ",") (binary_expression "local_34 + local_30" (identifier "local_34") (+ "+") (identifier "local_30")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "param_12[6] = (int)FUN_00221c30;" (assignment_expression "param_12[6] = (int)FUN_00221c30" (subscript_expression "param_12[6]" (identifier "param_12") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(int)FUN_00221c30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "FUN_00221c30"))) (; ";")) (} "}"))) (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_001e6db0(local_34);\n      return param_1;\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_001e6db0(local_34);\n      return param_1;\n    }" ({ "{") (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" (identifier "FUN_001e6db0") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" (else "else") (compound_statement "{\n    (**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);\n  }" ({ "{") (expression_statement "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);" (call_expression "(**(code **)(*param_3 + 8))\n              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" (parenthesized_expression "(**(code **)(*param_3 + 8))" (( "(") (pointer_expression "**(code **)(*param_3 + 8)" (* "*") (pointer_expression "*(code **)(*param_3 + 8)" (* "*") (cast_expression "(code **)(*param_3 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_3 + 8)" (( "(") (binary_expression "*param_3 + 8" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (identifier "param_10") (, ",") (identifier "param_11") () ")"))) (; ";")) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* 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*) */

var_3 *
std::__facet_shims::var_1<var_2>
          (var_3 *var_4,var_3 param_2,var_5 *var_6,var_3 param_4,var_3 param_5
          ,var_3 param_6,var_3 param_7,undefined1 param_8,var_3 param_9,var_5 *var_7
          ,var_5 var_9,var_5 *var_8)

{
  var_3 local_44;
  var_3 local_40;
  var_3 *var_11;
  int var_12;
  var_3 var_14 [7];
  
  if (var_9 == 0) {
    var_12 = 0;
    var_14[0] = 0;
                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */
    var_11 = var_14;
    (**(type_1 **)(*var_6 + 0xc))
              (&local_44,var_6,param_4,param_5,param_6,param_7,param_8,param_9,var_7,&var_11)
    ;
    if (*var_7 == 0) {
      if ((type_1 *)var_8[6] != (type_1 *)0x0) {
        (*(type_1 *)var_8[6])(var_8);
      }
      *var_8 = (int)(var_8 + 2);
      std::wstring::var_10<var_2*>(var_8,var_11,var_11 + var_12,0);
      var_8[6] = (int)(anonymous_namespace)::__destroy_string<var_2>var_13;
    }
    *var_4 = local_44;
    var_4[1] = local_40;
    if (var_11 != var_14) {
      var_15(var_11);
      return var_4;
    }
  }
  else {
    (**(type_1 **)(*var_6 + 8))
              (var_4,var_6,param_4,param_5,param_6,param_7,param_8,param_9,var_7,var_9);
  }
  return var_4;
}


(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: (primitive_type) 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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (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))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (pointer_expression argument: (identifier)) (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: (primitive_type)) 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)) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

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

{
  undefined4 local_44;
  undefined4 local_40;
  undefined4 *local_34;
  int local_30;
  undefined4 local_2c [7];
  
  if (param_11 == 0) {
    local_30 = 0;
    local_2c[0] = 0;
                    /* try { // try from 002252fc to 00225375 has its CatchHandler @ 0022538a */
    local_34 = local_2c;
    (**(code **)(*param_3 + 0xc))
              (&local_44,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,&local_34)
    ;
    if (*param_10 == 0) {
      if ((code *)param_12[6] != (code *)0x0) {
        (*(code *)param_12[6])(param_12);
      }
      *param_12 = (int)(param_12 + 2);
      FUN_001edf30(param_12,local_34,local_34 + local_30,0);
      param_12[6] = (int)FUN_00221c30;
    }
    *param_1 = local_44;
    param_1[1] = local_40;
    if (local_34 != local_2c) {
      FUN_001e6db0(local_34);
      return param_1;
    }
  }
  else {
    (**(code **)(*param_3 + 8))
              (param_1,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11);
  }
  return param_1;
}

