
/* 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)

{
  int iVar1;
  undefined4 uVar2;
  Catalogs *this;
  int iVar3;
  undefined4 uVar4;
  char *__s;
  char *pcVar5;
  size_t sVar6;
  int *in_stack_00000018;
  
  if ((-1 < param_3) && (in_stack_00000018[1] != 0)) {
    this = (Catalogs *)get_catalogs();
    iVar3 = Catalogs::_M_get(this,param_3);
    if (iVar3 != 0) {
      iVar1 = *in_stack_00000018;
      uVar2 = *(undefined4 *)(iVar3 + 4);
      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));
      __s = (char *)dgettext(uVar2,iVar1);
      __uselocale(uVar4);
      pcVar5 = (char *)0xffffffff;
      *(int *)param_1 = param_1 + 8;
      if (__s != (char *)0x0) {
        sVar6 = strlen(__s);
        pcVar5 = __s + sVar6;
      }
      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
      _M_construct<char_const*>
                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,
                 pcVar5,0);
      return param_1;
    }
  }
  *(int *)param_1 = param_1 + 8;
  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>
            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,
             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0);
  return param_1;
}



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

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

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  char *__s;
  char *pcVar5;
  size_t sVar6;
  
  if ((-1 < param_3) && (param_6[1] != 0)) {
    uVar2 = FUN_0022f610();
    iVar3 = FUN_0022f510(uVar2,param_3);
    if (iVar3 != 0) {
      iVar1 = *param_6;
      uVar2 = *(undefined4 *)(iVar3 + 4);
      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));
      __s = (char *)dgettext(uVar2,iVar1);
      __uselocale(uVar4);
      pcVar5 = (char *)0xffffffff;
      *param_1 = (int)(param_1 + 2);
      if (__s != (char *)0x0) {
        sVar6 = strlen(__s);
        pcVar5 = __s + sVar6;
      }
      FUN_00050e40(param_1,__s,pcVar5,0);
      return param_1;
    }
  }
  *param_1 = (int)(param_1 + 2);
  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1144f7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [ESP + 0x44]
LEA EDX,[ESI + 0x8]
TEST EBP,EBP
JS 0x0027ab2c
MOV ECX,dword ptr [EDI + 0x4]
TEST ECX,ECX
JNZ 0x0027ab50
MOV dword ptr [ESI],EDX
MOV EAX,dword ptr [EDI]
PUSH 0x0
MOV EDX,dword ptr [EDI + 0x4]
ADD EDX,EAX
PUSH EDX
PUSH EAX
PUSH ESI
CALL 0x000513a0
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV dword ptr [ESP + 0x8],EDX
CALL 0x0022f610
SUB ESP,0x8
PUSH EBP
PUSH EAX
CALL 0x0022f510
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0027ab2c
MOV ECX,dword ptr [EDI]
SUB ESP,0xc
MOV EBP,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x18],EDX
MOV dword ptr [ESP + 0x14],ECX
MOV EAX,dword ptr [ESP + 0x40]
PUSH dword ptr [EAX + 0x8]
CALL 0x000297d0
MOV EDI,EAX
POP EAX
POP EDX
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
PUSH EBP
CALL 0x000292d0
MOV dword ptr [ESP],EDI
MOV EBP,EAX
CALL 0x000297d0
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,0xffffffff
ADD ESP,0x10
MOV dword ptr [ESI],EDX
TEST EBP,EBP
JZ 0x0027abc3
SUB ESP,0xc
PUSH EBP
CALL 0x000295f0
ADD ESP,0x10
ADD EAX,EBP
PUSH 0x0
PUSH EAX
PUSH EBP
PUSH ESI
CALL 0x00050e40
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x1c
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\nint * FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" * (function_declarator "FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * 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  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (if_statement "if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (param_6[1] != 0))" ( (binary_expression "(-1 < param_3) && (param_6[1] != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(param_6[1] != 0)" ( (binary_expression "param_6[1] != 0" (subscript_expression "param_6[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }" { (expression_statement "uVar2 = FUN_0022f610();" (assignment_expression "uVar2 = FUN_0022f610()" identifier = (call_expression "FUN_0022f610()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = FUN_0022f510(uVar2,param_3);" (assignment_expression "iVar3 = FUN_0022f510(uVar2,param_3)" identifier = (call_expression "FUN_0022f510(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }" { (expression_statement "iVar1 = *param_6;" (assignment_expression "iVar1 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar2 = *(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 "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 "__s = (char *)dgettext(uVar2,iVar1);" (assignment_expression "__s = (char *)dgettext(uVar2,iVar1)" identifier = (cast_expression "(char *)dgettext(uVar2,iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dgettext(uVar2,iVar1)" identifier (argument_list "(uVar2,iVar1)" ( identifier , identifier ))))) ;) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "pcVar5 = (char *)0xffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" { (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar5 = __s + sVar6;" (assignment_expression "pcVar5 = __s + sVar6" identifier = (binary_expression "__s + sVar6" identifier + identifier)) ;) })) (expression_statement "FUN_00050e40(param_1,__s,pcVar5,0);" (call_expression "FUN_00050e40(param_1,__s,pcVar5,0)" identifier (argument_list "(param_1,__s,pcVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);" (call_expression "FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0)" identifier (argument_list "(param_1,*param_6,param_6[1] + *param_6,0)" ( identifier , (pointer_expression "*param_6" * identifier) , (binary_expression "param_6[1] + *param_6" (subscript_expression "param_6[1]" identifier [ number_literal ]) + (pointer_expression "*param_6" * identifier)) , number_literal ))) ;) (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  int iVar1;\n  undefined4 uVar2;\n  Catalogs *this;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  int *in_stack_00000018;\n  \n  if ((-1 < param_3) && (in_stack_00000018[1] != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *in_stack_00000018;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *(int *)param_1 = param_1 + 8;\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);\n      return param_1;\n    }\n  }\n  *(int *)param_1 = param_1 + 8;\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0);\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  int iVar1;\n  undefined4 uVar2;\n  Catalogs *this;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  int *in_stack_00000018;\n  \n  if ((-1 < param_3) && (in_stack_00000018[1] != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *in_stack_00000018;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *(int *)param_1 = param_1 + 8;\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);\n      return param_1;\n    }\n  }\n  *(int *)param_1 = param_1 + 8;\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0);\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  int iVar1;\n  undefined4 uVar2;\n  Catalogs *this;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  int *in_stack_00000018;\n  \n  if ((-1 < param_3) && (in_stack_00000018[1] != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *in_stack_00000018;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *(int *)param_1 = param_1 + 8;\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);\n      return param_1;\n    }\n  }\n  *(int *)param_1 = param_1 + 8;\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::_M_construct<char*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type 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 *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int *in_stack_00000018;" primitive_type (pointer_declarator "*in_stack_00000018" * identifier) ;) (if_statement "if ((-1 < param_3) && (in_stack_00000018[1] != 0)) {\n    this = (Catalogs *)get_catalogs();\n    iVar3 = Catalogs::_M_get(this,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *in_stack_00000018;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *(int *)param_1 = param_1 + 8;\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (in_stack_00000018[1] != 0))" ( (binary_expression "(-1 < param_3) && (in_stack_00000018[1] != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(in_stack_00000018[1] != 0)" ( (binary_expression "in_stack_00000018[1] != 0" (subscript_expression "in_stack_00000018[1]" 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      iVar1 = *in_stack_00000018;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *(int *)param_1 = param_1 + 8;\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);\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      iVar1 = *in_stack_00000018;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *(int *)param_1 = param_1 + 8;\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = *in_stack_00000018;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *(int *)param_1 = param_1 + 8;\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);\n      return param_1;\n    }" { (expression_statement "iVar1 = *in_stack_00000018;" (assignment_expression "iVar1 = *in_stack_00000018" identifier = (pointer_expression "*in_stack_00000018" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar2 = *(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 "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 "__s = (char *)dgettext(uVar2,iVar1);" (assignment_expression "__s = (char *)dgettext(uVar2,iVar1)" identifier = (cast_expression "(char *)dgettext(uVar2,iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dgettext(uVar2,iVar1)" identifier (argument_list "(uVar2,iVar1)" ( identifier , identifier ))))) ;) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "pcVar5 = (char *)0xffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(int *)param_1 = param_1 + 8;" (assignment_expression "*(int *)param_1 = param_1 + 8" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" { (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar5 = __s + sVar6;" (assignment_expression "pcVar5 = __s + sVar6" identifier = (binary_expression "__s + sVar6" identifier + identifier)) ;) })) (ERROR "__cxx11::basic_string<char,_std::char_traits<char>,_std::" (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : :) (expression_statement "allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0);" (binary_expression "allocator<char>_>::\n      _M_construct<char_const*>\n                ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0)" (binary_expression "allocator<char>_>::\n      _M_construct<char_const" (binary_expression "allocator<char>_>::\n      _M_construct" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0)" ( (parenthesized_expression "(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,__s,\n                 pcVar5,0)" ( (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (comma_expression "allocator<char>_> *)param_1,__s,\n                 pcVar5,0" (binary_expression "allocator<char>_> *)param_1" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (pointer_expression "*)param_1" * (ERROR ")" )) identifier)) , (comma_expression "__s,\n                 pcVar5,0" identifier , (comma_expression "pcVar5,0" identifier , number_literal))) )) ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "*(int *)param_1 = param_1 + 8;" (assignment_expression "*(int *)param_1 = param_1 + 8" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (ERROR "__cxx11::basic_string<char,_std::char_traits<char>,_std::" (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : :) (expression_statement "allocator<char>_>::_M_construct<char*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0);" (binary_expression "allocator<char>_>::_M_construct<char*>\n            ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0)" (binary_expression "allocator<char>_>::_M_construct<char" (binary_expression "allocator<char>_>::_M_construct" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0)" ( (parenthesized_expression "(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0)" ( (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (comma_expression "allocator<char>_> *)param_1,\n             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0" (binary_expression "allocator<char>_> *)param_1" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (pointer_expression "*)param_1" * (ERROR ")" )) identifier)) , (comma_expression "*in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0" (pointer_expression "*in_stack_00000018" * identifier) , (comma_expression "in_stack_00000018[1] + *in_stack_00000018,0" (binary_expression "in_stack_00000018[1] + *in_stack_00000018" (subscript_expression "in_stack_00000018[1]" identifier [ number_literal ]) + (pointer_expression "*in_stack_00000018" * identifier)) , number_literal))) )) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int * FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}\n\n" (function_definition "int * FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" * (function_declarator "FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * 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  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (if_statement "if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (param_6[1] != 0))" ( (binary_expression "(-1 < param_3) && (param_6[1] != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(param_6[1] != 0)" ( (binary_expression "param_6[1] != 0" (subscript_expression "param_6[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }" { (expression_statement "uVar2 = FUN_0022f610();" (assignment_expression "uVar2 = FUN_0022f610()" identifier = (call_expression "FUN_0022f610()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = FUN_0022f510(uVar2,param_3);" (assignment_expression "iVar3 = FUN_0022f510(uVar2,param_3)" identifier = (call_expression "FUN_0022f510(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }" { (expression_statement "iVar1 = *param_6;" (assignment_expression "iVar1 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar2 = *(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 "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 "__s = (char *)dgettext(uVar2,iVar1);" (assignment_expression "__s = (char *)dgettext(uVar2,iVar1)" identifier = (cast_expression "(char *)dgettext(uVar2,iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dgettext(uVar2,iVar1)" identifier (argument_list "(uVar2,iVar1)" ( identifier , identifier ))))) ;) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "pcVar5 = (char *)0xffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" { (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar5 = __s + sVar6;" (assignment_expression "pcVar5 = __s + sVar6" identifier = (binary_expression "__s + sVar6" identifier + identifier)) ;) })) (expression_statement "FUN_00050e40(param_1,__s,pcVar5,0);" (call_expression "FUN_00050e40(param_1,__s,pcVar5,0)" identifier (argument_list "(param_1,__s,pcVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);" (call_expression "FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0)" identifier (argument_list "(param_1,*param_6,param_6[1] + *param_6,0)" ( identifier , (pointer_expression "*param_6" * identifier) , (binary_expression "param_6[1] + *param_6" (subscript_expression "param_6[1]" identifier [ number_literal ]) + (pointer_expression "*param_6" * identifier)) , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_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 * IDENT)) ;) (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 = (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (return_statement return 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 , (pointer_expression * IDENT) , (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)) , LIT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" (* "*") (function_declarator "FUN_0027ab00(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" (identifier "FUN_0027ab00") (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (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  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *__s;\n  char *pcVar5;\n  size_t sVar6;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }\n  *param_1 = (int)(param_1 + 2);\n  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (if_statement "if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "((-1 < param_3) && (param_6[1] != 0))" (( "(") (binary_expression "(-1 < param_3) && (param_6[1] != 0)" (parenthesized_expression "(-1 < param_3)" (( "(") (binary_expression "-1 < param_3" (number_literal "-1") (< "<") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(param_6[1] != 0)" (( "(") (binary_expression "param_6[1] != 0" (subscript_expression "param_6[1]" (identifier "param_6") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar2 = FUN_0022f610();\n    iVar3 = FUN_0022f510(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "uVar2 = FUN_0022f610();" (assignment_expression "uVar2 = FUN_0022f610()" (identifier "uVar2") (= "=") (call_expression "FUN_0022f610()" (identifier "FUN_0022f610") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_0022f510(uVar2,param_3);" (assignment_expression "iVar3 = FUN_0022f510(uVar2,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_0022f510(uVar2,param_3)" (identifier "FUN_0022f510") (argument_list "(uVar2,param_3)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = *param_6;\n      uVar2 = *(undefined4 *)(iVar3 + 4);\n      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));\n      __s = (char *)dgettext(uVar2,iVar1);\n      __uselocale(uVar4);\n      pcVar5 = (char *)0xffffffff;\n      *param_1 = (int)(param_1 + 2);\n      if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }\n      FUN_00050e40(param_1,__s,pcVar5,0);\n      return param_1;\n    }" ({ "{") (expression_statement "iVar1 = *param_6;" (assignment_expression "iVar1 = *param_6" (identifier "iVar1") (= "=") (pointer_expression "*param_6" (* "*") (identifier "param_6"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar2 = *(undefined4 *)(iVar3 + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar4 = __uselocale(*(undefined4 *)(param_2 + 8))" (identifier "uVar4") (= "=") (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 "__s = (char *)dgettext(uVar2,iVar1);" (assignment_expression "__s = (char *)dgettext(uVar2,iVar1)" (identifier "__s") (= "=") (cast_expression "(char *)dgettext(uVar2,iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dgettext(uVar2,iVar1)" (identifier "dgettext") (argument_list "(uVar2,iVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar1") () ")"))))) (; ";")) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" (identifier "__uselocale") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "pcVar5 = (char *)0xffffffff;" (assignment_expression "pcVar5 = (char *)0xffffffff" (identifier "pcVar5") (= "=") (cast_expression "(char *)0xffffffff" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (__s != (char *)0x0) {\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        sVar6 = strlen(__s);\n        pcVar5 = __s + sVar6;\n      }" ({ "{") (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" (identifier "sVar6") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "pcVar5 = __s + sVar6;" (assignment_expression "pcVar5 = __s + sVar6" (identifier "pcVar5") (= "=") (binary_expression "__s + sVar6" (identifier "__s") (+ "+") (identifier "sVar6"))) (; ";")) (} "}"))) (expression_statement "FUN_00050e40(param_1,__s,pcVar5,0);" (call_expression "FUN_00050e40(param_1,__s,pcVar5,0)" (identifier "FUN_00050e40") (argument_list "(param_1,__s,pcVar5,0)" (( "(") (identifier "param_1") (, ",") (identifier "__s") (, ",") (identifier "pcVar5") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);" (call_expression "FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0)" (identifier "FUN_000513a0") (argument_list "(param_1,*param_6,param_6[1] + *param_6,0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*param_6" (* "*") (identifier "param_6")) (, ",") (binary_expression "param_6[1] + *param_6" (subscript_expression "param_6[1]" (identifier "param_6") ([ "[") (number_literal "1") (] "]")) (+ "+") (pointer_expression "*param_6" (* "*") (identifier "param_6"))) (, ",") (number_literal "0") () ")"))) (; ";")) (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 var_8,int var_6,int var_1,type_1 *param_4)

{
  int iVar1;
  type_2 uVar2;
  type_3 *this;
  int var_4;
  type_2 uVar4;
  char *var_9;
  char *pcVar5;
  size_t var_11;
  int *in_stack_00000018;
  
  if ((-1 < var_1) && (in_stack_00000018[1] != 0)) {
    this = (type_3 *)var_2();
    var_4 = type_3::var_3(this,var_1);
    if (var_4 != 0) {
      iVar1 = *in_stack_00000018;
      uVar2 = *(type_2 *)(var_4 + 4);
      uVar4 = var_5(*(type_2 *)(var_6 + 8));
      var_9 = (char *)var_7(uVar2,iVar1);
      var_5(uVar4);
      pcVar5 = (char *)0xffffffff;
      *(int *)var_8 = var_8 + 8;
      if (var_9 != (char *)0x0) {
        var_11 = var_10(var_9);
        pcVar5 = var_9 + var_11;
      }
      __cxx11::basic_string<var_13,_std::char_traits<var_13>,_std::var_12<var_13>var_14>::
      var_15<var_16*>
                ((basic_string<var_13,_std::char_traits<var_13>,_std::var_12<var_13>var_14> *)var_8,var_9,
                 pcVar5,0);
      return var_8;
    }
  }
  *(int *)var_8 = var_8 + 8;
  __cxx11::basic_string<var_13,_std::char_traits<var_13>,_std::var_12<var_13>var_14>::var_15<var_13*>
            ((basic_string<var_13,_std::char_traits<var_13>,_std::var_12<var_13>var_14> *)var_8,
             *in_stack_00000018,in_stack_00000018[1] + *in_stack_00000018,0);
  return var_8;
}


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

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

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

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  char *__s;
  char *pcVar5;
  size_t sVar6;
  
  if ((-1 < param_3) && (param_6[1] != 0)) {
    uVar2 = FUN_0022f610();
    iVar3 = FUN_0022f510(uVar2,param_3);
    if (iVar3 != 0) {
      iVar1 = *param_6;
      uVar2 = *(undefined4 *)(iVar3 + 4);
      uVar4 = __uselocale(*(undefined4 *)(param_2 + 8));
      __s = (char *)dgettext(uVar2,iVar1);
      __uselocale(uVar4);
      pcVar5 = (char *)0xffffffff;
      *param_1 = (int)(param_1 + 2);
      if (__s != (char *)0x0) {
        sVar6 = strlen(__s);
        pcVar5 = __s + sVar6;
      }
      FUN_00050e40(param_1,__s,pcVar5,0);
      return param_1;
    }
  }
  *param_1 = (int)(param_1 + 2);
  FUN_000513a0(param_1,*param_6,param_6[1] + *param_6,0);
  return param_1;
}

