
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::messages<char>::do_get(int, int, int, std::string const&) const */

int std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)

{
  undefined4 uVar1;
  undefined4 uVar2;
  Catalogs *this;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  string *in_stack_00000018;
  allocator local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x235199;
  if ((-1 < param_3) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)) {
    this = (Catalogs *)get_catalogs();
    iVar3 = Catalogs::_M_get(this,param_3);
    if (iVar3 != 0) {
      uVar1 = *(undefined4 *)(iVar3 + 4);
      uVar2 = *(undefined4 *)in_stack_00000018;
      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));
      pcVar5 = (char *)dgettext(uVar1,uVar2);
      __uselocale(uVar4);
      std::string::string((string *)param_1,pcVar5,local_1d);
      return param_1;
    }
  }
  std::string::string((string *)param_1,in_stack_00000018);
  return param_1;
}



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

undefined4
FUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,
            int *param_6)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x235199;
  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {
    uVar1 = FUN_0022f610();
    iVar2 = FUN_0022f510(uVar1,param_3);
    if (iVar2 != 0) {
      uVar1 = *(undefined4 *)(iVar2 + 4);
      iVar2 = *param_6;
      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));
      uVar1 = dgettext(uVar1,iVar2);
      __uselocale(uVar3);
      FUN_00220d30(param_1,uVar1,local_1d);
      return param_1;
    }
  }
  FUN_002201f0(param_1,param_6);
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x159e67
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x48]
MOV ESI,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x54]
TEST EDI,EDI
JS 0x002351bc
MOV EAX,dword ptr [EBP]
MOV ECX,dword ptr [EAX + -0xc]
TEST ECX,ECX
JNZ 0x002351d8
SUB ESP,0x8
PUSH EBP
PUSH ESI
CALL 0x002201f0
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
CALL 0x0022f610
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x0022f510
ADD ESP,0x10
TEST EAX,EAX
JZ 0x002351bc
MOV EDX,dword ptr [EAX + 0x4]
SUB ESP,0xc
MOV EDI,dword ptr [EBP]
MOV dword ptr [ESP + 0x18],EDX
MOV EAX,dword ptr [ESP + 0x50]
PUSH dword ptr [EAX + 0x8]
CALL 0x000297d0
MOV EBP,EAX
POP EAX
POP EDX
PUSH EDI
MOV EDX,dword ptr [ESP + 0x18]
PUSH EDX
CALL 0x000292d0
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x000297d0
ADD ESP,0xc
LEA EAX,[ESP + 0x23]
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x00220d30
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}\n\n" comment (function_definition "undefined4\nFUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}" type_identifier (function_declarator "FUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x235199;" (assignment_expression "uStack_14 = 0x235199" identifier = number_literal) ;) (if_statement "if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0))" ( (binary_expression "(-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(*(int *)(*param_6 + -0xc) != 0)" ( (binary_expression "*(int *)(*param_6 + -0xc) != 0" (pointer_expression "*(int *)(*param_6 + -0xc)" * (cast_expression "(int *)(*param_6 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + -0xc)" ( (binary_expression "*param_6 + -0xc" (pointer_expression "*param_6" * identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }" { (expression_statement "uVar1 = FUN_0022f610();" (assignment_expression "uVar1 = FUN_0022f610()" identifier = (call_expression "FUN_0022f610()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0022f510(uVar1,param_3);" (assignment_expression "iVar2 = FUN_0022f510(uVar1,param_3)" identifier = (call_expression "FUN_0022f510(uVar1,param_3)" identifier (argument_list "(uVar1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *param_6;" (assignment_expression "iVar2 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar3 = __uselocale(*(undefined4 *)(param_2 + 8))" identifier = (call_expression "__uselocale(*(undefined4 *)(param_2 + 8))" identifier (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "uVar1 = dgettext(uVar1,iVar2);" (assignment_expression "uVar1 = dgettext(uVar1,iVar2)" identifier = (call_expression "dgettext(uVar1,iVar2)" identifier (argument_list "(uVar1,iVar2)" ( identifier , identifier )))) ;) (expression_statement "__uselocale(uVar3);" (call_expression "__uselocale(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "FUN_00220d30(param_1,uVar1,local_1d);" (call_expression "FUN_00220d30(param_1,uVar1,local_1d)" identifier (argument_list "(param_1,uVar1,local_1d)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "FUN_002201f0(param_1,param_6);" (call_expression "FUN_002201f0(param_1,param_6)" identifier (argument_list "(param_1,param_6)" ( identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::messages<char>::do_get(int, int, int, std::string const&) const */\n\nint std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  Catalogs *this;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  string *in_stack_00000018;\n  allocator local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = *(undefined4 *)in_stack_00000018;\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      pcVar5 = (char *)dgettext(uVar1,uVar2);\n      __uselocale(uVar4);\n      std::string::string((string *)param_1,pcVar5,local_1d);\n      return param_1;\n    }\n  }\n  std::string::string((string *)param_1,in_stack_00000018);\n  return param_1;\n}\n\n" comment comment (function_definition "int std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  Catalogs *this;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  string *in_stack_00000018;\n  allocator local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = *(undefined4 *)in_stack_00000018;\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      pcVar5 = (char *)dgettext(uVar1,uVar2);\n      __uselocale(uVar4);\n      std::string::string((string *)param_1,pcVar5,local_1d);\n      return param_1;\n    }\n  }\n  std::string::string((string *)param_1,in_stack_00000018);\n  return param_1;\n}" primitive_type (ERROR "std::messages<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_get(int param_1,int param_2,int param_3,string *param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,string *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "string *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  Catalogs *this;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  string *in_stack_00000018;\n  allocator local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = *(undefined4 *)in_stack_00000018;\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      pcVar5 = (char *)dgettext(uVar1,uVar2);\n      __uselocale(uVar4);\n      std::string::string((string *)param_1,pcVar5,local_1d);\n      return param_1;\n    }\n  }\n  std::string::string((string *)param_1,in_stack_00000018);\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "Catalogs *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "string *in_stack_00000018;" type_identifier (pointer_declarator "*in_stack_00000018" * identifier) ;) (declaration "allocator local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x235199;" (assignment_expression "uStack_14 = 0x235199" identifier = number_literal) ;) (if_statement "if ((-1 < param_3) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = *(undefined4 *)in_stack_00000018;\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      pcVar5 = (char *)dgettext(uVar1,uVar2);\n      __uselocale(uVar4);\n      std::string::string((string *)param_1,pcVar5,local_1d);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0))" ( (binary_expression "(-1 < param_3) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)" ( (binary_expression "*(int *)(*(int *)in_stack_00000018 + -0xc) != 0" (pointer_expression "*(int *)(*(int *)in_stack_00000018 + -0xc)" * (cast_expression "(int *)(*(int *)in_stack_00000018 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)in_stack_00000018 + -0xc)" ( (binary_expression "*(int *)in_stack_00000018 + -0xc" (pointer_expression "*(int *)in_stack_00000018" * (cast_expression "(int *)in_stack_00000018" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = *(undefined4 *)in_stack_00000018;\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      pcVar5 = (char *)dgettext(uVar1,uVar2);\n      __uselocale(uVar4);\n      std::string::string((string *)param_1,pcVar5,local_1d);\n      return param_1;\n    }\n  }" { (expression_statement "this = (Catalogs *)get_catalogs();" (assignment_expression "this = (Catalogs *)get_catalogs()" identifier = (cast_expression "(Catalogs *)get_catalogs()" ( (type_descriptor "Catalogs *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "get_catalogs()" identifier (argument_list "()" ( ))))) ;) (ERROR "iVar3 = Catalogs::" (assignment_expression "iVar3 = Catalogs" identifier = identifier) : :) (expression_statement "_M_get(this,param_3);" (call_expression "_M_get(this,param_3)" identifier (argument_list "(this,param_3)" ( identifier , identifier ))) ;) (if_statement "if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = *(undefined4 *)in_stack_00000018;\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      pcVar5 = (char *)dgettext(uVar1,uVar2);\n      __uselocale(uVar4);\n      std::string::string((string *)param_1,pcVar5,local_1d);\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = *(undefined4 *)in_stack_00000018;\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      pcVar5 = (char *)dgettext(uVar1,uVar2);\n      __uselocale(uVar4);\n      std::string::string((string *)param_1,pcVar5,local_1d);\n      return param_1;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar3 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)in_stack_00000018;" (assignment_expression "uVar2 = *(undefined4 *)in_stack_00000018" identifier = (pointer_expression "*(undefined4 *)in_stack_00000018" * (cast_expression "(undefined4 *)in_stack_00000018" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar4 = __uselocale(*(undefined4 *)(param_2 + 8))" identifier = (call_expression "__uselocale(*(undefined4 *)(param_2 + 8))" identifier (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "pcVar5 = (char *)dgettext(uVar1,uVar2);" (assignment_expression "pcVar5 = (char *)dgettext(uVar1,uVar2)" identifier = (cast_expression "(char *)dgettext(uVar1,uVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dgettext(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))))) ;) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (labeled_statement "std::string::string((string *)param_1,pcVar5,local_1d);" statement_identifier : (ERROR ":" :) (labeled_statement "string::string((string *)param_1,pcVar5,local_1d);" statement_identifier : (ERROR ":" :) (expression_statement "string((string *)param_1,pcVar5,local_1d);" (call_expression "string((string *)param_1,pcVar5,local_1d)" identifier (argument_list "((string *)param_1,pcVar5,local_1d)" ( (cast_expression "(string *)param_1" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;))) (return_statement "return param_1;" return identifier ;) })) })) (labeled_statement "std::string::string((string *)param_1,in_stack_00000018);" statement_identifier : (ERROR ":" :) (labeled_statement "string::string((string *)param_1,in_stack_00000018);" statement_identifier : (ERROR ":" :) (expression_statement "string((string *)param_1,in_stack_00000018);" (call_expression "string((string *)param_1,in_stack_00000018)" identifier (argument_list "((string *)param_1,in_stack_00000018)" ( (cast_expression "(string *)param_1" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "undefined4\nFUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}\n\n" (function_definition "undefined4\nFUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}" type_identifier (function_declarator "FUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x235199;" (assignment_expression "uStack_14 = 0x235199" identifier = number_literal) ;) (if_statement "if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0))" ( (binary_expression "(-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(*(int *)(*param_6 + -0xc) != 0)" ( (binary_expression "*(int *)(*param_6 + -0xc) != 0" (pointer_expression "*(int *)(*param_6 + -0xc)" * (cast_expression "(int *)(*param_6 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + -0xc)" ( (binary_expression "*param_6 + -0xc" (pointer_expression "*param_6" * identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }" { (expression_statement "uVar1 = FUN_0022f610();" (assignment_expression "uVar1 = FUN_0022f610()" identifier = (call_expression "FUN_0022f610()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0022f510(uVar1,param_3);" (assignment_expression "iVar2 = FUN_0022f510(uVar1,param_3)" identifier = (call_expression "FUN_0022f510(uVar1,param_3)" identifier (argument_list "(uVar1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *param_6;" (assignment_expression "iVar2 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar3 = __uselocale(*(undefined4 *)(param_2 + 8))" identifier = (call_expression "__uselocale(*(undefined4 *)(param_2 + 8))" identifier (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "uVar1 = dgettext(uVar1,iVar2);" (assignment_expression "uVar1 = dgettext(uVar1,iVar2)" identifier = (call_expression "dgettext(uVar1,iVar2)" identifier (argument_list "(uVar1,iVar2)" ( identifier , identifier )))) ;) (expression_statement "__uselocale(uVar3);" (call_expression "__uselocale(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "FUN_00220d30(param_1,uVar1,local_1d);" (call_expression "FUN_00220d30(param_1,uVar1,local_1d)" identifier (argument_list "(param_1,uVar1,local_1d)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "FUN_002201f0(param_1,param_6);" (call_expression "FUN_002201f0(param_1,param_6)" identifier (argument_list "(param_1,param_6)" ( identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4\nFUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00235190(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)" (identifier "FUN_00235190") (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            int *param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (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 "int *param_6" (primitive_type "int") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x235199;\n  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }\n  FUN_002201f0(param_1,param_6);\n  return param_1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined1 local_1d [9];" (type_identifier "undefined1") (array_declarator "local_1d [9]" (identifier "local_1d") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x235199;" (assignment_expression "uStack_14 = 0x235199" (identifier "uStack_14") (= "=") (number_literal "0x235199")) (; ";")) (if_statement "if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0))" (( "(") (binary_expression "(-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)" (parenthesized_expression "(-1 < param_3)" (( "(") (binary_expression "-1 < param_3" (number_literal "-1") (< "<") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(*param_6 + -0xc) != 0)" (( "(") (binary_expression "*(int *)(*param_6 + -0xc) != 0" (pointer_expression "*(int *)(*param_6 + -0xc)" (* "*") (cast_expression "(int *)(*param_6 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_6 + -0xc)" (( "(") (binary_expression "*param_6 + -0xc" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (+ "+") (number_literal "-0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = FUN_0022f610();\n    iVar2 = FUN_0022f510(uVar1,param_3);\n    if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "uVar1 = FUN_0022f610();" (assignment_expression "uVar1 = FUN_0022f610()" (identifier "uVar1") (= "=") (call_expression "FUN_0022f610()" (identifier "FUN_0022f610") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0022f510(uVar1,param_3);" (assignment_expression "iVar2 = FUN_0022f510(uVar1,param_3)" (identifier "iVar2") (= "=") (call_expression "FUN_0022f510(uVar1,param_3)" (identifier "FUN_0022f510") (argument_list "(uVar1,param_3)" (( "(") (identifier "uVar1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      iVar2 = *param_6;\n      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));\n      uVar1 = dgettext(uVar1,iVar2);\n      __uselocale(uVar3);\n      FUN_00220d30(param_1,uVar1,local_1d);\n      return param_1;\n    }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar2 = *param_6;" (assignment_expression "iVar2 = *param_6" (identifier "iVar2") (= "=") (pointer_expression "*param_6" (* "*") (identifier "param_6"))) (; ";")) (expression_statement "uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar3 = __uselocale(*(undefined4 *)(param_2 + 8))" (identifier "uVar3") (= "=") (call_expression "__uselocale(*(undefined4 *)(param_2 + 8))" (identifier "__uselocale") (argument_list "(*(undefined4 *)(param_2 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar1 = dgettext(uVar1,iVar2);" (assignment_expression "uVar1 = dgettext(uVar1,iVar2)" (identifier "uVar1") (= "=") (call_expression "dgettext(uVar1,iVar2)" (identifier "dgettext") (argument_list "(uVar1,iVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "__uselocale(uVar3);" (call_expression "__uselocale(uVar3)" (identifier "__uselocale") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_00220d30(param_1,uVar1,local_1d);" (call_expression "FUN_00220d30(param_1,uVar1,local_1d)" (identifier "FUN_00220d30") (argument_list "(param_1,uVar1,local_1d)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (identifier "local_1d") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_002201f0(param_1,param_6);" (call_expression "FUN_002201f0(param_1,param_6)" (identifier "FUN_002201f0") (argument_list "(param_1,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_6") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::messages<char>::do_get(int, int, int, std::string const&) const */

int std::messages<char>::function_1(int param_1,int var_6,int var_1,type_1 *param_4)

{
  type_2 uVar1;
  type_2 uVar2;
  type_3 *this;
  int var_4;
  type_2 uVar4;
  char *pcVar5;
  type_1 *in_stack_00000018;
  type_4 local_1d [9];
  type_2 uStack_14;
  
  uStack_14 = 0x235199;
  if ((-1 < var_1) && (*(int *)(*(int *)in_stack_00000018 + -0xc) != 0)) {
    this = (type_3 *)var_2();
    var_4 = type_3::var_3(this,var_1);
    if (var_4 != 0) {
      uVar1 = *(type_2 *)(var_4 + 4);
      uVar2 = *(type_2 *)in_stack_00000018;
      uVar4 = var_5(*(type_2 *)(var_6 + 8));
      pcVar5 = (char *)var_7(uVar1,uVar2);
      var_5(uVar4);
      std::string::type_1((type_1 *)param_1,pcVar5,local_1d);
      return param_1;
    }
  }
  std::string::type_1((type_1 *)param_1,in_stack_00000018);
  return param_1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (identifier)))))

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

undefined4
MASKED(undefined4 param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,
            int *param_6)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x235199;
  if ((-1 < param_3) && (*(int *)(*param_6 + -0xc) != 0)) {
    uVar1 = FUN_0022f610();
    iVar2 = FUN_0022f510(uVar1,param_3);
    if (iVar2 != 0) {
      uVar1 = *(undefined4 *)(iVar2 + 4);
      iVar2 = *param_6;
      uVar3 = __uselocale(*(undefined4 *)(param_2 + 8));
      uVar1 = dgettext(uVar1,iVar2);
      __uselocale(uVar3);
      FUN_00220d30(param_1,uVar1,local_1d);
      return param_1;
    }
  }
  FUN_002201f0(param_1,param_6);
  return param_1;
}

