
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: string get_name(Read_script * this) */

string * __thiscall gold::Read_script::get_name(string *__return_storage_ptr__,Read_script *this)

{
  Input_file_type IVar1;
  char *__s;
  Input_argument *pIVar2;
  size_t sVar3;
  uint uVar4;
  int unaff_EDI;
  string *ret;
  
  __x86_get_pc_thunk_di();
  (ret->_M_dataplus)._M_p = (pointer)&ret->field_2;
  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>(ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);
  pIVar2 = this->input_argument_;
  if (pIVar2->is_file_ == false) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));
  }
  IVar1 = (pIVar2->file_).type_;
  uVar4 = 0x7fffffff - ret->_M_string_length;
  if (IVar1 == INPUT_FILE_TYPE_LIBRARY) {
    if (uVar4 < 2) {
                    /* WARNING: Subroutine does not return */
      std::__throw_length_error((char *)(unaff_EDI + 0x157375));
    }
    std::string::_M_append((char *)ret,unaff_EDI + 0x171cd8);
  }
  else {
    if (IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE) goto LAB_00314d4c;
    if (uVar4 < 3) {
                    /* WARNING: Subroutine does not return */
      std::__throw_length_error((char *)(unaff_EDI + 0x157375));
    }
    std::string::_M_append((char *)ret,unaff_EDI + 0x180589);
  }
  pIVar2 = this->input_argument_;
  if (pIVar2->is_file_ == false) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));
  }
  uVar4 = 0x7fffffff - ret->_M_string_length;
LAB_00314d4c:
  __s = (pIVar2->file_).name_._M_dataplus._M_p;
  sVar3 = strlen(__s);
  if (sVar3 <= uVar4) {
                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */
    std::string::_M_append((char *)ret,(uint)__s);
    return ret;
  }
                    /* WARNING: Subroutine does not return */
  std::__throw_length_error((char *)(unaff_EDI + 0x157375));
}



int * FUN_00314cf0(int *param_1,int param_2)

{
  char *pcVar1;
  size_t sVar2;
  undefined4 extraout_EDX;
  uint uVar3;
  int unaff_EDI;
  
  FUN_00074f0a();
  *param_1 = (int)(param_1 + 2);
  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);
  pcVar1 = *(char **)(param_2 + 0x40);
  if (*pcVar1 == '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);
  }
  uVar3 = 0x7fffffff - param_1[1];
  if (*(int *)(pcVar1 + 0x1c) == 1) {
    if (uVar3 < 2) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3a70(unaff_EDI + 0x157375);
    }
    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);
  }
  else {
    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;
    if (uVar3 < 3) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3a70(unaff_EDI + 0x157375);
    }
    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);
  }
  pcVar1 = *(char **)(param_2 + 0x40);
  if (*pcVar1 == '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);
  }
  uVar3 = 0x7fffffff - param_1[1];
LAB_00314d4c:
  pcVar1 = *(char **)(pcVar1 + 4);
  sVar2 = strlen(pcVar1);
  if (sVar2 <= uVar3) {
                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */
    FUN_003b7890(param_1,pcVar1,sVar2);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_003f3a70(unaff_EDI + 0x157375);
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x00074f0a
ADD EDI,0x2d5307
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [EBP + 0x8]
LEA EAX,[ESI + 0x8]
MOV dword ptr [ESI],EAX
MOV dword ptr [EBP + -0x24],EAX
LEA EAX,[EDI + 0xffeab281]
PUSH 0x0
PUSH EAX
LEA EAX,[EDI + 0xffeab275]
PUSH EAX
PUSH ESI
CALL 0x00072b90
MOV EAX,dword ptr [EBP + 0xc]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + 0x40]
CMP byte ptr [EAX],0x0
JZ 0x00314e0d
MOV ECX,dword ptr [EAX + 0x1c]
MOV EDX,0x7fffffff
SUB EDX,dword ptr [ESI + 0x4]
CMP ECX,0x1
JZ 0x00314d90
CMP ECX,0x2
JZ 0x00314dc8
MOV ECX,dword ptr [EAX + 0x4]
SUB ESP,0xc
MOV EBX,EDI
MOV dword ptr [EBP + -0x20],EDX
PUSH ECX
MOV dword ptr [EBP + -0x1c],ECX
CALL 0x00039330
MOV EDX,dword ptr [EBP + -0x20]
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x1c]
CMP EDX,EAX
JC 0x00314dfe
SUB ESP,0x4
PUSH EAX
PUSH ECX
PUSH ESI
CALL 0x003b7890
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
CMP EDX,0x1
JBE 0x00314e39
SUB ESP,0x4
LEA EAX,[EDI + 0xffe9c9d1]
MOV EBX,EDI
PUSH 0x2
PUSH EAX
PUSH ESI
CALL 0x003b7890
MOV EAX,dword ptr [EBP + 0xc]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + 0x40]
CMP byte ptr [EAX],0x0
JZ 0x00314de3
MOV EDX,0x7fffffff
SUB EDX,dword ptr [ESI + 0x4]
JMP 0x00314d4c
CMP EDX,0x2
JBE 0x00314e28
SUB ESP,0x4
LEA EAX,[EDI + 0xffeab282]
MOV EBX,EDI
PUSH 0x3
PUSH EAX
PUSH ESI
CALL 0x003b7890
JMP 0x00314dad
PUSH EAX
LEA EAX,[EDI + 0xffeab3dc]
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xffe9b410]
PUSH 0x828
PUSH EAX
CALL 0x002446e0
SUB ESP,0xc
LEA EAX,[EDI + 0xffe8206e]
PUSH EAX
CALL 0x003f3a70
LEA EAX,[EDI + 0xffeab3dc]
PUSH EDX
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xffe9b410]
PUSH 0x828
PUSH EAX
CALL 0x002446e0
SUB ESP,0xc
LEA EAX,[EDI + 0xffe8206e]
MOV EBX,EDI
PUSH EAX
CALL 0x003f3a70
SUB ESP,0xc
LEA EAX,[EDI + 0xffe8206e]
MOV EBX,EDI
PUSH EAX
CALL 0x003f3a70
(translation_unit "int * FUN_00314cf0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_003f3a70(unaff_EDI + 0x157375);\n}\n\n" (function_definition "int * FUN_00314cf0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_003f3a70(unaff_EDI + 0x157375);\n}" primitive_type (pointer_declarator "* FUN_00314cf0(int *param_1,int param_2)" * (function_declarator "FUN_00314cf0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_003f3a70(unaff_EDI + 0x157375);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00074f0a();" (call_expression "FUN_00074f0a()" identifier (argument_list "()" ( ))) ;) (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_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);" (call_expression "FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" identifier (argument_list "(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" ( identifier , (binary_expression "&UNK_0018057c + unaff_EDI" (pointer_expression "&UNK_0018057c" & identifier) + identifier) , (binary_expression "unaff_EDI + 0x180588" identifier + number_literal) , number_literal ))) ;) (expression_statement "pcVar1 = *(char **)(param_2 + 0x40);" (assignment_expression "pcVar1 = *(char **)(param_2 + 0x40)" identifier = (pointer_expression "*(char **)(param_2 + 0x40)" * (cast_expression "(char **)(param_2 + 0x40)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }" { comment (expression_statement "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);" (call_expression "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX)" identifier (argument_list "(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX)" ( (binary_expression "unaff_EDI + 0x170717" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x1806e3" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar3 = 0x7fffffff - param_1[1];" (assignment_expression "uVar3 = 0x7fffffff - param_1[1]" identifier = (binary_expression "0x7fffffff - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" if (parenthesized_expression "(*(int *)(pcVar1 + 0x1c) == 1)" ( (binary_expression "*(int *)(pcVar1 + 0x1c) == 1" (pointer_expression "*(int *)(pcVar1 + 0x1c)" * (cast_expression "(int *)(pcVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 0x1c)" ( (binary_expression "pcVar1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (uVar3 < 2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }" { (if_statement "if (uVar3 < 2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" if (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" { comment (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" identifier (argument_list "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ;) })) (expression_statement "FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);" (call_expression "FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2)" identifier (argument_list "(param_1,unaff_EDI + 0x171cd8,2)" ( identifier , (binary_expression "unaff_EDI + 0x171cd8" identifier + number_literal) , number_literal ))) ;) }) (else_clause "else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" else (compound_statement "{\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" { (if_statement "if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;" if (parenthesized_expression "(*(int *)(pcVar1 + 0x1c) != 2)" ( (binary_expression "*(int *)(pcVar1 + 0x1c) != 2" (pointer_expression "*(int *)(pcVar1 + 0x1c)" * (cast_expression "(int *)(pcVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 0x1c)" ( (binary_expression "pcVar1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00314d4c;" goto statement_identifier ;)) (if_statement "if (uVar3 < 3) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" if (parenthesized_expression "(uVar3 < 3)" ( (binary_expression "uVar3 < 3" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" { comment (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" identifier (argument_list "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ;) })) (expression_statement "FUN_003b7890(param_1,unaff_EDI + 0x180589,3);" (call_expression "FUN_003b7890(param_1,unaff_EDI + 0x180589,3)" identifier (argument_list "(param_1,unaff_EDI + 0x180589,3)" ( identifier , (binary_expression "unaff_EDI + 0x180589" identifier + number_literal) , number_literal ))) ;) }))) (expression_statement "pcVar1 = *(char **)(param_2 + 0x40);" (assignment_expression "pcVar1 = *(char **)(param_2 + 0x40)" identifier = (pointer_expression "*(char **)(param_2 + 0x40)" * (cast_expression "(char **)(param_2 + 0x40)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }" { comment (expression_statement "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);" (call_expression "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1)" identifier (argument_list "(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1)" ( (binary_expression "unaff_EDI + 0x170717" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x1806e3" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar3 = 0x7fffffff - param_1[1];" (assignment_expression "uVar3 = 0x7fffffff - param_1[1]" identifier = (binary_expression "0x7fffffff - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);" statement_identifier : (expression_statement "pcVar1 = *(char **)(pcVar1 + 4);" (assignment_expression "pcVar1 = *(char **)(pcVar1 + 4)" identifier = (pointer_expression "*(char **)(pcVar1 + 4)" * (cast_expression "(char **)(pcVar1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar1 + 4)" ( (binary_expression "pcVar1 + 4" identifier + number_literal) ))))) ;)) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (if_statement "if (sVar2 <= uVar3) {\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }" if (parenthesized_expression "(sVar2 <= uVar3)" ( (binary_expression "sVar2 <= uVar3" identifier <= identifier) )) (compound_statement "{\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }" { comment (expression_statement "FUN_003b7890(param_1,pcVar1,sVar2);" (call_expression "FUN_003b7890(param_1,pcVar1,sVar2)" identifier (argument_list "(param_1,pcVar1,sVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" identifier (argument_list "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: string get_name(Read_script * this) */\n\nstring * __thiscall gold::Read_script::get_name(string *__return_storage_ptr__,Read_script *this)\n\n{\n  Input_file_type IVar1;\n  char *__s;\n  Input_argument *pIVar2;\n  size_t sVar3;\n  uint uVar4;\n  int unaff_EDI;\n  string *ret;\n  \n  __x86_get_pc_thunk_di();\n  (ret->_M_dataplus)._M_p = (pointer)&ret->field_2;\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pIVar2 = this->input_argument_;\n  if (pIVar2->is_file_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }\n  IVar1 = (pIVar2->file_).type_;\n  uVar4 = 0x7fffffff - ret->_M_string_length;\n  if (IVar1 == INPUT_FILE_TYPE_LIBRARY) {\n    if (uVar4 < 2) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x171cd8);\n  }\n  else {\n    if (IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE) goto LAB_00314d4c;\n    if (uVar4 < 3) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x180589);\n  }\n  pIVar2 = this->input_argument_;\n  if (pIVar2->is_file_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }\n  uVar4 = 0x7fffffff - ret->_M_string_length;\nLAB_00314d4c:\n  __s = (pIVar2->file_).name_._M_dataplus._M_p;\n  sVar3 = strlen(__s);\n  if (sVar3 <= uVar4) {\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    std::string::_M_append((char *)ret,(uint)__s);\n    return ret;\n  }\n                    /* WARNING: Subroutine does not return */\n  std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n}\n\n" comment comment (ERROR "string * __thiscall gold::Read_script::get_name(string *__return_storage_ptr__,Read_script *this)" (binary_expression "string * __thiscall gold::Read_script::get_name(string *__return_storage_ptr__,Read_script *this" (binary_expression "string * __thiscall gold::Read_script::get_name(string *__return_storage_ptr__" (binary_expression "string * __thiscall" identifier * identifier) (ERROR "gold::Read_script::get_name(string" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",Read_script" , identifier) * identifier) )) (compound_statement "{\n  Input_file_type IVar1;\n  char *__s;\n  Input_argument *pIVar2;\n  size_t sVar3;\n  uint uVar4;\n  int unaff_EDI;\n  string *ret;\n  \n  __x86_get_pc_thunk_di();\n  (ret->_M_dataplus)._M_p = (pointer)&ret->field_2;\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pIVar2 = this->input_argument_;\n  if (pIVar2->is_file_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }\n  IVar1 = (pIVar2->file_).type_;\n  uVar4 = 0x7fffffff - ret->_M_string_length;\n  if (IVar1 == INPUT_FILE_TYPE_LIBRARY) {\n    if (uVar4 < 2) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x171cd8);\n  }\n  else {\n    if (IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE) goto LAB_00314d4c;\n    if (uVar4 < 3) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x180589);\n  }\n  pIVar2 = this->input_argument_;\n  if (pIVar2->is_file_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }\n  uVar4 = 0x7fffffff - ret->_M_string_length;\nLAB_00314d4c:\n  __s = (pIVar2->file_).name_._M_dataplus._M_p;\n  sVar3 = strlen(__s);\n  if (sVar3 <= uVar4) {\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    std::string::_M_append((char *)ret,(uint)__s);\n    return ret;\n  }\n                    /* WARNING: Subroutine does not return */\n  std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n}" { (declaration "Input_file_type IVar1;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "Input_argument *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "string *ret;" type_identifier (pointer_declarator "*ret" * identifier) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "(ret->_M_dataplus)._M_p = (pointer)&ret->field_2;" (assignment_expression "(ret->_M_dataplus)._M_p = (pointer)&ret->field_2" (field_expression "(ret->_M_dataplus)._M_p" (parenthesized_expression "(ret->_M_dataplus)" ( (field_expression "ret->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(pointer)&ret->field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "ret->field_2" identifier -> field_identifier))) ;) (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);" statement_identifier (ERROR "::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>:" : : (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) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > :) : (expression_statement "_M_construct<char_const*>(ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);" (binary_expression "_M_construct<char_const*>(ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" ( (comma_expression "ret,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0" identifier , (comma_expression "&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0" (binary_expression "&UNK_0018057c + unaff_EDI" (pointer_expression "&UNK_0018057c" & identifier) + identifier) , (comma_expression "unaff_EDI + 0x180588,0" (binary_expression "unaff_EDI + 0x180588" identifier + number_literal) , number_literal))) ))) ;)) (expression_statement "pIVar2 = this->input_argument_;" (assignment_expression "pIVar2 = this->input_argument_" identifier = (field_expression "this->input_argument_" identifier -> field_identifier)) ;) (if_statement "if (pIVar2->is_file_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }" if (parenthesized_expression "(pIVar2->is_file_ == false)" ( (binary_expression "pIVar2->is_file_ == false" (field_expression "pIVar2->is_file_" identifier -> field_identifier) == false) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }" { comment (expression_statement "do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));" (call_expression "do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3))" identifier (argument_list "(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3))" ( (binary_expression "&UNK_00170717 + unaff_EDI" (pointer_expression "&UNK_00170717" & identifier) + identifier) , number_literal , (cast_expression "(char *)(unaff_EDI + 0x1806e3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1806e3)" ( (binary_expression "unaff_EDI + 0x1806e3" identifier + number_literal) ))) ))) ;) })) (expression_statement "IVar1 = (pIVar2->file_).type_;" (assignment_expression "IVar1 = (pIVar2->file_).type_" identifier = (field_expression "(pIVar2->file_).type_" (parenthesized_expression "(pIVar2->file_)" ( (field_expression "pIVar2->file_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "uVar4 = 0x7fffffff - ret->_M_string_length;" (assignment_expression "uVar4 = 0x7fffffff - ret->_M_string_length" identifier = (binary_expression "0x7fffffff - ret->_M_string_length" number_literal - (field_expression "ret->_M_string_length" identifier -> field_identifier))) ;) (if_statement "if (IVar1 == INPUT_FILE_TYPE_LIBRARY) {\n    if (uVar4 < 2) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x171cd8);\n  }\n  else {\n    if (IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE) goto LAB_00314d4c;\n    if (uVar4 < 3) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x180589);\n  }" if (parenthesized_expression "(IVar1 == INPUT_FILE_TYPE_LIBRARY)" ( (binary_expression "IVar1 == INPUT_FILE_TYPE_LIBRARY" identifier == identifier) )) (compound_statement "{\n    if (uVar4 < 2) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x171cd8);\n  }" { (if_statement "if (uVar4 < 2) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }" if (parenthesized_expression "(uVar4 < 2)" ( (binary_expression "uVar4 < 2" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }" { comment (labeled_statement "std::__throw_length_error((char *)(unaff_EDI + 0x157375));" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error((char *)(unaff_EDI + 0x157375));" (call_expression "__throw_length_error((char *)(unaff_EDI + 0x157375))" identifier (argument_list "((char *)(unaff_EDI + 0x157375))" ( (cast_expression "(char *)(unaff_EDI + 0x157375)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ))) ;)) })) (labeled_statement "std::string::_M_append((char *)ret,unaff_EDI + 0x171cd8);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((char *)ret,unaff_EDI + 0x171cd8);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((char *)ret,unaff_EDI + 0x171cd8);" (call_expression "_M_append((char *)ret,unaff_EDI + 0x171cd8)" identifier (argument_list "((char *)ret,unaff_EDI + 0x171cd8)" ( (cast_expression "(char *)ret" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "unaff_EDI + 0x171cd8" identifier + number_literal) ))) ;))) }) (else_clause "else {\n    if (IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE) goto LAB_00314d4c;\n    if (uVar4 < 3) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x180589);\n  }" else (compound_statement "{\n    if (IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE) goto LAB_00314d4c;\n    if (uVar4 < 3) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }\n    std::string::_M_append((char *)ret,unaff_EDI + 0x180589);\n  }" { (if_statement "if (IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE) goto LAB_00314d4c;" if (parenthesized_expression "(IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE)" ( (binary_expression "IVar1 != INPUT_FILE_TYPE_SEARCHED_FILE" identifier != identifier) )) (goto_statement "goto LAB_00314d4c;" goto statement_identifier ;)) (if_statement "if (uVar4 < 3) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }" if (parenthesized_expression "(uVar4 < 3)" ( (binary_expression "uVar4 < 3" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error((char *)(unaff_EDI + 0x157375));\n    }" { comment (labeled_statement "std::__throw_length_error((char *)(unaff_EDI + 0x157375));" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error((char *)(unaff_EDI + 0x157375));" (call_expression "__throw_length_error((char *)(unaff_EDI + 0x157375))" identifier (argument_list "((char *)(unaff_EDI + 0x157375))" ( (cast_expression "(char *)(unaff_EDI + 0x157375)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ))) ;)) })) (labeled_statement "std::string::_M_append((char *)ret,unaff_EDI + 0x180589);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((char *)ret,unaff_EDI + 0x180589);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((char *)ret,unaff_EDI + 0x180589);" (call_expression "_M_append((char *)ret,unaff_EDI + 0x180589)" identifier (argument_list "((char *)ret,unaff_EDI + 0x180589)" ( (cast_expression "(char *)ret" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "unaff_EDI + 0x180589" identifier + number_literal) ))) ;))) }))) (expression_statement "pIVar2 = this->input_argument_;" (assignment_expression "pIVar2 = this->input_argument_" identifier = (field_expression "this->input_argument_" identifier -> field_identifier)) ;) (if_statement "if (pIVar2->is_file_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }" if (parenthesized_expression "(pIVar2->is_file_ == false)" ( (binary_expression "pIVar2->is_file_ == false" (field_expression "pIVar2->is_file_" identifier -> field_identifier) == false) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));\n  }" { comment (expression_statement "do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3));" (call_expression "do_gold_unreachable(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3))" identifier (argument_list "(&UNK_00170717 + unaff_EDI,0x828,(char *)(unaff_EDI + 0x1806e3))" ( (binary_expression "&UNK_00170717 + unaff_EDI" (pointer_expression "&UNK_00170717" & identifier) + identifier) , number_literal , (cast_expression "(char *)(unaff_EDI + 0x1806e3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1806e3)" ( (binary_expression "unaff_EDI + 0x1806e3" identifier + number_literal) ))) ))) ;) })) (expression_statement "uVar4 = 0x7fffffff - ret->_M_string_length;" (assignment_expression "uVar4 = 0x7fffffff - ret->_M_string_length" identifier = (binary_expression "0x7fffffff - ret->_M_string_length" number_literal - (field_expression "ret->_M_string_length" identifier -> field_identifier))) ;) (labeled_statement "LAB_00314d4c:\n  __s = (pIVar2->file_).name_._M_dataplus._M_p;" statement_identifier : (expression_statement "__s = (pIVar2->file_).name_._M_dataplus._M_p;" (assignment_expression "__s = (pIVar2->file_).name_._M_dataplus._M_p" identifier = (field_expression "(pIVar2->file_).name_._M_dataplus._M_p" (field_expression "(pIVar2->file_).name_._M_dataplus" (field_expression "(pIVar2->file_).name_" (parenthesized_expression "(pIVar2->file_)" ( (field_expression "pIVar2->file_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;)) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (sVar3 <= uVar4) {\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    std::string::_M_append((char *)ret,(uint)__s);\n    return ret;\n  }" if (parenthesized_expression "(sVar3 <= uVar4)" ( (binary_expression "sVar3 <= uVar4" identifier <= identifier) )) (compound_statement "{\n                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */\n    std::string::_M_append((char *)ret,(uint)__s);\n    return ret;\n  }" { comment (labeled_statement "std::string::_M_append((char *)ret,(uint)__s);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((char *)ret,(uint)__s);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((char *)ret,(uint)__s);" (call_expression "_M_append((char *)ret,(uint)__s)" identifier (argument_list "((char *)ret,(uint)__s)" ( (cast_expression "(char *)ret" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(uint)__s" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;))) (return_statement "return ret;" return identifier ;) })) comment (labeled_statement "std::__throw_length_error((char *)(unaff_EDI + 0x157375));" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error((char *)(unaff_EDI + 0x157375));" (call_expression "__throw_length_error((char *)(unaff_EDI + 0x157375))" identifier (argument_list "((char *)(unaff_EDI + 0x157375))" ( (cast_expression "(char *)(unaff_EDI + 0x157375)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ))) ;)) }))
(translation_unit "int * FUN_00314cf0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    \n  FUN_003f3a70(unaff_EDI + 0x157375);\n}\n\n" (function_definition "int * FUN_00314cf0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    \n  FUN_003f3a70(unaff_EDI + 0x157375);\n}" primitive_type (pointer_declarator "* FUN_00314cf0(int *param_1,int param_2)" * (function_declarator "FUN_00314cf0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    \n  FUN_003f3a70(unaff_EDI + 0x157375);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00074f0a();" (call_expression "FUN_00074f0a()" identifier (argument_list "()" ( ))) ;) (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_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);" (call_expression "FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" identifier (argument_list "(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" ( identifier , (binary_expression "&UNK_0018057c + unaff_EDI" (pointer_expression "&UNK_0018057c" & identifier) + identifier) , (binary_expression "unaff_EDI + 0x180588" identifier + number_literal) , number_literal ))) ;) (expression_statement "pcVar1 = *(char **)(param_2 + 0x40);" (assignment_expression "pcVar1 = *(char **)(param_2 + 0x40)" identifier = (pointer_expression "*(char **)(param_2 + 0x40)" * (cast_expression "(char **)(param_2 + 0x40)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }" { (expression_statement "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);" (call_expression "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX)" identifier (argument_list "(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX)" ( (binary_expression "unaff_EDI + 0x170717" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x1806e3" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar3 = 0x7fffffff - param_1[1];" (assignment_expression "uVar3 = 0x7fffffff - param_1[1]" identifier = (binary_expression "0x7fffffff - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" if (parenthesized_expression "(*(int *)(pcVar1 + 0x1c) == 1)" ( (binary_expression "*(int *)(pcVar1 + 0x1c) == 1" (pointer_expression "*(int *)(pcVar1 + 0x1c)" * (cast_expression "(int *)(pcVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 0x1c)" ( (binary_expression "pcVar1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }" { (if_statement "if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" if (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) (compound_statement "{\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" { (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" identifier (argument_list "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ;) })) (expression_statement "FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);" (call_expression "FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2)" identifier (argument_list "(param_1,unaff_EDI + 0x171cd8,2)" ( identifier , (binary_expression "unaff_EDI + 0x171cd8" identifier + number_literal) , number_literal ))) ;) }) (else_clause "else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" else (compound_statement "{\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" { (if_statement "if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;" if (parenthesized_expression "(*(int *)(pcVar1 + 0x1c) != 2)" ( (binary_expression "*(int *)(pcVar1 + 0x1c) != 2" (pointer_expression "*(int *)(pcVar1 + 0x1c)" * (cast_expression "(int *)(pcVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 0x1c)" ( (binary_expression "pcVar1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00314d4c;" goto statement_identifier ;)) (if_statement "if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" if (parenthesized_expression "(uVar3 < 3)" ( (binary_expression "uVar3 < 3" identifier < number_literal) )) (compound_statement "{\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" { (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" identifier (argument_list "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ;) })) (expression_statement "FUN_003b7890(param_1,unaff_EDI + 0x180589,3);" (call_expression "FUN_003b7890(param_1,unaff_EDI + 0x180589,3)" identifier (argument_list "(param_1,unaff_EDI + 0x180589,3)" ( identifier , (binary_expression "unaff_EDI + 0x180589" identifier + number_literal) , number_literal ))) ;) }))) (expression_statement "pcVar1 = *(char **)(param_2 + 0x40);" (assignment_expression "pcVar1 = *(char **)(param_2 + 0x40)" identifier = (pointer_expression "*(char **)(param_2 + 0x40)" * (cast_expression "(char **)(param_2 + 0x40)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }" { (expression_statement "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);" (call_expression "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1)" identifier (argument_list "(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1)" ( (binary_expression "unaff_EDI + 0x170717" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x1806e3" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar3 = 0x7fffffff - param_1[1];" (assignment_expression "uVar3 = 0x7fffffff - param_1[1]" identifier = (binary_expression "0x7fffffff - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);" statement_identifier : (expression_statement "pcVar1 = *(char **)(pcVar1 + 4);" (assignment_expression "pcVar1 = *(char **)(pcVar1 + 4)" identifier = (pointer_expression "*(char **)(pcVar1 + 4)" * (cast_expression "(char **)(pcVar1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar1 + 4)" ( (binary_expression "pcVar1 + 4" identifier + number_literal) ))))) ;)) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (if_statement "if (sVar2 <= uVar3) {\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }" if (parenthesized_expression "(sVar2 <= uVar3)" ( (binary_expression "sVar2 <= uVar3" identifier <= identifier) )) (compound_statement "{\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }" { (expression_statement "FUN_003b7890(param_1,pcVar1,sVar2);" (call_expression "FUN_003b7890(param_1,pcVar1,sVar2)" identifier (argument_list "(param_1,pcVar1,sVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" identifier (argument_list "(unaff_EDI + 0x157375)" ( (binary_expression "unaff_EDI + 0x157375" identifier + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 , (binary_expression (pointer_expression & IDENT) + IDENT) , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT - (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT - (subscript_expression IDENT [ LIT ]))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "int * FUN_00314cf0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    \n  FUN_003f3a70(unaff_EDI + 0x157375);\n}" (primitive_type "int") (pointer_declarator "* FUN_00314cf0(int *param_1,int param_2)" (* "*") (function_declarator "FUN_00314cf0(int *param_1,int param_2)" (identifier "FUN_00314cf0") (parameter_list "(int *param_1,int param_2)" (( "(") (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")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  undefined4 extraout_EDX;\n  uint uVar3;\n  int unaff_EDI;\n  \n  FUN_00074f0a();\n  *param_1 = (int)(param_1 + 2);\n  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\n  if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }\n  pcVar1 = *(char **)(param_2 + 0x40);\n  if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }\n  uVar3 = 0x7fffffff - param_1[1];\nLAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);\n  sVar2 = strlen(pcVar1);\n  if (sVar2 <= uVar3) {\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }\n                    \n  FUN_003f3a70(unaff_EDI + 0x157375);\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_00074f0a();" (call_expression "FUN_00074f0a()" (identifier "FUN_00074f0a") (argument_list "()" (( "(") () ")"))) (; ";")) (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_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);" (call_expression "FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" (identifier "FUN_00072b90") (argument_list "(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0)" (( "(") (identifier "param_1") (, ",") (binary_expression "&UNK_0018057c + unaff_EDI" (pointer_expression "&UNK_0018057c" (& "&") (identifier "UNK_0018057c")) (+ "+") (identifier "unaff_EDI")) (, ",") (binary_expression "unaff_EDI + 0x180588" (identifier "unaff_EDI") (+ "+") (number_literal "0x180588")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "pcVar1 = *(char **)(param_2 + 0x40);" (assignment_expression "pcVar1 = *(char **)(param_2 + 0x40)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_2 + 0x40)" (* "*") (cast_expression "(char **)(param_2 + 0x40)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x40)" (( "(") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (if_statement "if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }" (if "if") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);\n  }" ({ "{") (expression_statement "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);" (call_expression "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX)" (identifier "FUN_002446e0") (argument_list "(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX)" (( "(") (binary_expression "unaff_EDI + 0x170717" (identifier "unaff_EDI") (+ "+") (number_literal "0x170717")) (, ",") (number_literal "0x828") (, ",") (binary_expression "unaff_EDI + 0x1806e3" (identifier "unaff_EDI") (+ "+") (number_literal "0x1806e3")) (, ",") (identifier "extraout_EDX") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = 0x7fffffff - param_1[1];" (assignment_expression "uVar3 = 0x7fffffff - param_1[1]" (identifier "uVar3") (= "=") (binary_expression "0x7fffffff - param_1[1]" (number_literal "0x7fffffff") (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (*(int *)(pcVar1 + 0x1c) == 1) {\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }\n  else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" (if "if") (parenthesized_expression "(*(int *)(pcVar1 + 0x1c) == 1)" (( "(") (binary_expression "*(int *)(pcVar1 + 0x1c) == 1" (pointer_expression "*(int *)(pcVar1 + 0x1c)" (* "*") (cast_expression "(int *)(pcVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar1 + 0x1c)" (( "(") (binary_expression "pcVar1 + 0x1c" (identifier "pcVar1") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);\n  }" ({ "{") (if_statement "if (uVar3 < 2) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" (if "if") (parenthesized_expression "(uVar3 < 2)" (( "(") (binary_expression "uVar3 < 2" (identifier "uVar3") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" ({ "{") (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" (identifier "FUN_003f3a70") (argument_list "(unaff_EDI + 0x157375)" (( "(") (binary_expression "unaff_EDI + 0x157375" (identifier "unaff_EDI") (+ "+") (number_literal "0x157375")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);" (call_expression "FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2)" (identifier "FUN_003b7890") (argument_list "(param_1,unaff_EDI + 0x171cd8,2)" (( "(") (identifier "param_1") (, ",") (binary_expression "unaff_EDI + 0x171cd8" (identifier "unaff_EDI") (+ "+") (number_literal "0x171cd8")) (, ",") (number_literal "2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" (else "else") (compound_statement "{\n    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;\n    if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }\n    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);\n  }" ({ "{") (if_statement "if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;" (if "if") (parenthesized_expression "(*(int *)(pcVar1 + 0x1c) != 2)" (( "(") (binary_expression "*(int *)(pcVar1 + 0x1c) != 2" (pointer_expression "*(int *)(pcVar1 + 0x1c)" (* "*") (cast_expression "(int *)(pcVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar1 + 0x1c)" (( "(") (binary_expression "pcVar1 + 0x1c" (identifier "pcVar1") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "2")) () ")")) (goto_statement "goto LAB_00314d4c;" (goto "goto") (statement_identifier "LAB_00314d4c") (; ";"))) (if_statement "if (uVar3 < 3) {\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" (if "if") (parenthesized_expression "(uVar3 < 3)" (( "(") (binary_expression "uVar3 < 3" (identifier "uVar3") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n                    \n      FUN_003f3a70(unaff_EDI + 0x157375);\n    }" ({ "{") (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" (identifier "FUN_003f3a70") (argument_list "(unaff_EDI + 0x157375)" (( "(") (binary_expression "unaff_EDI + 0x157375" (identifier "unaff_EDI") (+ "+") (number_literal "0x157375")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_003b7890(param_1,unaff_EDI + 0x180589,3);" (call_expression "FUN_003b7890(param_1,unaff_EDI + 0x180589,3)" (identifier "FUN_003b7890") (argument_list "(param_1,unaff_EDI + 0x180589,3)" (( "(") (identifier "param_1") (, ",") (binary_expression "unaff_EDI + 0x180589" (identifier "unaff_EDI") (+ "+") (number_literal "0x180589")) (, ",") (number_literal "3") () ")"))) (; ";")) (} "}")))) (expression_statement "pcVar1 = *(char **)(param_2 + 0x40);" (assignment_expression "pcVar1 = *(char **)(param_2 + 0x40)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_2 + 0x40)" (* "*") (cast_expression "(char **)(param_2 + 0x40)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x40)" (( "(") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (if_statement "if (*pcVar1 == '\0') {\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }" (if "if") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);\n  }" ({ "{") (expression_statement "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);" (call_expression "FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1)" (identifier "FUN_002446e0") (argument_list "(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1)" (( "(") (binary_expression "unaff_EDI + 0x170717" (identifier "unaff_EDI") (+ "+") (number_literal "0x170717")) (, ",") (number_literal "0x828") (, ",") (binary_expression "unaff_EDI + 0x1806e3" (identifier "unaff_EDI") (+ "+") (number_literal "0x1806e3")) (, ",") (identifier "pcVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = 0x7fffffff - param_1[1];" (assignment_expression "uVar3 = 0x7fffffff - param_1[1]" (identifier "uVar3") (= "=") (binary_expression "0x7fffffff - param_1[1]" (number_literal "0x7fffffff") (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (labeled_statement "LAB_00314d4c:\n  pcVar1 = *(char **)(pcVar1 + 4);" (statement_identifier "LAB_00314d4c") (: ":") (expression_statement "pcVar1 = *(char **)(pcVar1 + 4);" (assignment_expression "pcVar1 = *(char **)(pcVar1 + 4)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(pcVar1 + 4)" (* "*") (cast_expression "(char **)(pcVar1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar1 + 4)" (( "(") (binary_expression "pcVar1 + 4" (identifier "pcVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";"))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" (identifier "sVar2") (= "=") (call_expression "strlen(pcVar1)" (identifier "strlen") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (if_statement "if (sVar2 <= uVar3) {\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(sVar2 <= uVar3)" (( "(") (binary_expression "sVar2 <= uVar3" (identifier "sVar2") (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n                    \n    FUN_003b7890(param_1,pcVar1,sVar2);\n    return param_1;\n  }" ({ "{") (expression_statement "FUN_003b7890(param_1,pcVar1,sVar2);" (call_expression "FUN_003b7890(param_1,pcVar1,sVar2)" (identifier "FUN_003b7890") (argument_list "(param_1,pcVar1,sVar2)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar1") (, ",") (identifier "sVar2") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_003f3a70(unaff_EDI + 0x157375);" (call_expression "FUN_003f3a70(unaff_EDI + 0x157375)" (identifier "FUN_003f3a70") (argument_list "(unaff_EDI + 0x157375)" (( "(") (binary_expression "unaff_EDI + 0x157375" (identifier "unaff_EDI") (+ "+") (number_literal "0x157375")) () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: string get_name(Read_script * this) */

type_4 * __thiscall gold::Read_script::get_name(type_4 *__return_storage_ptr__,Read_script *this)

{
  type_1 var_6;
  char *__s;
  type_2 *pIVar2;
  size_t var_13;
  type_3 var_8;
  int var_4;
  type_4 *ret;
  
  var_1();
  (ret->_M_dataplus)._M_p = (pointer)&ret->field_2;
  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  var_2<var_3*>(ret,&UNK_0018057c + var_4,var_4 + 0x180588,0);
  pIVar2 = this->input_argument_;
  if (pIVar2->is_file_ == false) {
                    /* WARNING: Subroutine does not return */
    var_5(&UNK_00170717 + var_4,0x828,(char *)(var_4 + 0x1806e3));
  }
  var_6 = (pIVar2->file_).type_;
  var_8 = 0x7fffffff - ret->_M_string_length;
  if (var_6 == var_7) {
    if (var_8 < 2) {
                    /* WARNING: Subroutine does not return */
      std::var_9((char *)(var_4 + 0x157375));
    }
    std::string::var_10((char *)ret,var_4 + 0x171cd8);
  }
  else {
    if (var_6 != var_11) goto LAB_00314d4c;
    if (var_8 < 3) {
                    /* WARNING: Subroutine does not return */
      std::var_9((char *)(var_4 + 0x157375));
    }
    std::string::var_10((char *)ret,var_4 + 0x180589);
  }
  pIVar2 = this->input_argument_;
  if (pIVar2->is_file_ == false) {
                    /* WARNING: Subroutine does not return */
    var_5(&UNK_00170717 + var_4,0x828,(char *)(var_4 + 0x1806e3));
  }
  var_8 = 0x7fffffff - ret->_M_string_length;
LAB_00314d4c:
  __s = (pIVar2->file_).name_._M_dataplus._M_p;
  var_13 = var_12(__s);
  if (var_13 <= var_8) {
                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */
    std::string::var_10((char *)ret,(type_3)__s);
    return ret;
  }
                    /* WARNING: Subroutine does not return */
  std::var_9((char *)(var_4 + 0x157375));
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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) (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (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: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (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: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))

int * MASKED(int *param_1,int param_2)

{
  char *pcVar1;
  size_t sVar2;
  undefined4 extraout_EDX;
  uint uVar3;
  int unaff_EDI;
  
  FUN_00074f0a();
  *param_1 = (int)(param_1 + 2);
  FUN_00072b90(param_1,&UNK_0018057c + unaff_EDI,unaff_EDI + 0x180588,0);
  pcVar1 = *(char **)(param_2 + 0x40);
  if (*pcVar1 == '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,extraout_EDX);
  }
  uVar3 = 0x7fffffff - param_1[1];
  if (*(int *)(pcVar1 + 0x1c) == 1) {
    if (uVar3 < 2) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3a70(unaff_EDI + 0x157375);
    }
    FUN_003b7890(param_1,unaff_EDI + 0x171cd8,2);
  }
  else {
    if (*(int *)(pcVar1 + 0x1c) != 2) goto LAB_00314d4c;
    if (uVar3 < 3) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3a70(unaff_EDI + 0x157375);
    }
    FUN_003b7890(param_1,unaff_EDI + 0x180589,3);
  }
  pcVar1 = *(char **)(param_2 + 0x40);
  if (*pcVar1 == '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0(unaff_EDI + 0x170717,0x828,unaff_EDI + 0x1806e3,pcVar1);
  }
  uVar3 = 0x7fffffff - param_1[1];
LAB_00314d4c:
  pcVar1 = *(char **)(pcVar1 + 4);
  sVar2 = strlen(pcVar1);
  if (sVar2 <= uVar3) {
                    /* try { // try from 00314d77 to 00314e49 has its CatchHandler @ 00314e4a */
    FUN_003b7890(param_1,pcVar1,sVar2);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_003f3a70(unaff_EDI + 0x157375);
}

