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

char __regparm3 get_cie_encoding(int param_1)

{
  size_t sVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  undefined4 local_10;
  
  local_10 = 0x243add;
  sVar1 = strlen((char *)(param_1 + 9));
  pcVar2 = (char *)(param_1 + 10 + sVar1);
  if (3 < *(byte *)(param_1 + 8)) {
    if (*pcVar2 != '\x04') {
      return -1;
    }
    if (pcVar2[1] != '\0') {
      return -1;
    }
    pcVar2 = pcVar2 + 2;
  }
  if (*(char *)(param_1 + 9) != 'z') {
    return '\0';
  }
  do {
    pcVar5 = pcVar2 + 1;
    if (-1 < *pcVar2) break;
    pcVar3 = pcVar2 + 1;
    pcVar5 = pcVar2 + 2;
    pcVar2 = pcVar2 + 2;
  } while (*pcVar3 < '\0');
  do {
    pcVar2 = pcVar5;
    pcVar5 = pcVar2 + 1;
  } while (*pcVar2 < '\0');
  if (*(byte *)(param_1 + 8) == 1) {
    pcVar2 = pcVar2 + 2;
  }
  else {
    do {
      pcVar2 = pcVar5 + 1;
      cVar4 = *pcVar5;
      pcVar5 = pcVar2;
    } while (cVar4 < '\0');
  }
  pcVar5 = (char *)(param_1 + 10);
  do {
    pcVar3 = pcVar2 + 1;
    cVar4 = *pcVar2;
    pcVar2 = pcVar3;
  } while (cVar4 < '\0');
  cVar4 = *(char *)(param_1 + 10);
  while (cVar4 != 'R') {
    while (cVar4 != 'P') {
      if (cVar4 != 'L') {
        return '\0';
      }
      pcVar5 = pcVar5 + 1;
      cVar4 = *pcVar5;
      pcVar3 = pcVar3 + 1;
      if (cVar4 == 'R') goto LAB_00243baa;
    }
    pcVar5 = pcVar5 + 1;
    pcVar3 = (char *)read_encoded_value_with_base(&local_10);
    cVar4 = *pcVar5;
  }
LAB_00243baa:
  return *pcVar3;
}



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

char __regparm3 FUN_00243ad0(int param_1)

{
  size_t sVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  undefined4 local_10;
  
  local_10 = 0x243add;
  sVar1 = strlen((char *)(param_1 + 9));
  pcVar2 = (char *)(param_1 + 10 + sVar1);
  if (3 < *(byte *)(param_1 + 8)) {
    if (*pcVar2 != '\x04') {
      return -1;
    }
    if (pcVar2[1] != '\0') {
      return -1;
    }
    pcVar2 = pcVar2 + 2;
  }
  if (*(char *)(param_1 + 9) != 'z') {
    return '\0';
  }
  do {
    pcVar5 = pcVar2 + 1;
    if (-1 < *pcVar2) break;
    pcVar3 = pcVar2 + 1;
    pcVar5 = pcVar2 + 2;
    pcVar2 = pcVar2 + 2;
  } while (*pcVar3 < '\0');
  do {
    pcVar2 = pcVar5;
    pcVar5 = pcVar2 + 1;
  } while (*pcVar2 < '\0');
  if (*(byte *)(param_1 + 8) == 1) {
    pcVar2 = pcVar2 + 2;
  }
  else {
    do {
      pcVar2 = pcVar5 + 1;
      cVar4 = *pcVar5;
      pcVar5 = pcVar2;
    } while (cVar4 < '\0');
  }
  pcVar5 = (char *)(param_1 + 10);
  do {
    pcVar3 = pcVar2 + 1;
    cVar4 = *pcVar2;
    pcVar2 = pcVar3;
  } while (cVar4 < '\0');
  cVar4 = *(char *)(param_1 + 10);
  while (cVar4 != 'R') {
    while (cVar4 != 'P') {
      if (cVar4 != 'L') {
        return '\0';
      }
      pcVar5 = pcVar5 + 1;
      cVar4 = *pcVar5;
      pcVar3 = pcVar3 + 1;
      if (cVar4 == 'R') goto LAB_00243baa;
    }
    pcVar5 = pcVar5 + 1;
    pcVar3 = (char *)FUN_00243900(&local_10);
    cVar4 = *pcVar5;
  }
LAB_00243baa:
  return *pcVar3;
}


PUSH EDI
LEA EDI,[EAX + 0x9]
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00035680
ADD EBX,0xfb523
SUB ESP,0x1c
PUSH EDI
CALL 0x000285f0
MOVZX ECX,byte ptr [ESI + 0x8]
ADD ESP,0x10
LEA EDX,[EDI + EAX*0x1 + 0x1]
CMP CL,0x3
JA 0x00243bc0
CMP byte ptr [ESI + 0x9],0x7a
JZ 0x00243b10
XOR EAX,EAX
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
ADD EDX,0x1
CMP byte ptr [EDX + -0x1],0x0
JNS 0x00243b2a
ADD EDX,0x1
CMP byte ptr [EDX + -0x1],0x0
JS 0x00243b10
JMP 0x00243b2a
MOV EDX,EAX
LEA EAX,[EDX + 0x1]
CMP byte ptr [EAX + -0x1],0x0
JS 0x00243b28
CMP CL,0x1
JZ 0x00243bb8
LEA ESI,[ESI]
ADD EAX,0x1
CMP byte ptr [EAX + -0x1],0x0
JS 0x00243b40
LEA EBX,[ESI + 0xa]
LEA ESI,[ESI]
ADD EAX,0x1
CMP byte ptr [EAX + -0x1],0x0
JS 0x00243b50
MOVZX EDX,byte ptr [ESI + 0xa]
LEA ESI,[ESP + 0xc]
CMP DL,0x52
JNZ 0x00243b83
JMP 0x00243baa
CMP DL,0x4c
JNZ 0x00243b06
ADD EBX,0x1
MOVZX EDX,byte ptr [EBX]
ADD EAX,0x1
CMP DL,0x52
JZ 0x00243baa
CMP DL,0x50
JNZ 0x00243b70
SUB ESP,0xc
LEA ECX,[EAX + 0x1]
MOVZX EAX,byte ptr [EAX]
XOR EDX,EDX
PUSH ESI
ADD EBX,0x1
AND EAX,0x7f
CALL 0x00243900
MOVZX EDX,byte ptr [EBX]
ADD ESP,0x10
CMP DL,0x52
JNZ 0x00243b83
MOVZX EAX,byte ptr [EAX]
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EDX + 0x2]
JMP 0x00243b49
CMP byte ptr [EDX],0x4
MOV EAX,0xff
JNZ 0x00243b08
CMP byte ptr [EDX + 0x1],0x0
JNZ 0x00243b08
ADD EDX,0x2
JMP 0x00243b00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar __regparm3 FUN_00243ad0(int param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}\n\n" comment (function_definition "char __regparm3 FUN_00243ad0(int param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00243ad0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (expression_statement "local_10 = 0x243add;" (assignment_expression "local_10 = 0x243add" identifier = number_literal) ;) (expression_statement "sVar1 = strlen((char *)(param_1 + 9));" (assignment_expression "sVar1 = strlen((char *)(param_1 + 9))" identifier = (call_expression "strlen((char *)(param_1 + 9))" identifier (argument_list "((char *)(param_1 + 9))" ( (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))) )))) ;) (expression_statement "pcVar2 = (char *)(param_1 + 10 + sVar1);" (assignment_expression "pcVar2 = (char *)(param_1 + 10 + sVar1)" identifier = (cast_expression "(char *)(param_1 + 10 + sVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10 + sVar1)" ( (binary_expression "param_1 + 10 + sVar1" (binary_expression "param_1 + 10" identifier + number_literal) + identifier) )))) ;) (if_statement "if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" if (parenthesized_expression "(3 < *(byte *)(param_1 + 8))" ( (binary_expression "3 < *(byte *)(param_1 + 8)" number_literal < (pointer_expression "*(byte *)(param_1 + 8)" * (cast_expression "(byte *)(param_1 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" { (if_statement "if (*pcVar2 != '\x04') {\n      return -1;\n    }" if (parenthesized_expression "(*pcVar2 != '\x04')" ( (binary_expression "*pcVar2 != '\x04'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (pcVar2[1] != '\0') {\n      return -1;\n    }" if (parenthesized_expression "(pcVar2[1] != '\0')" ( (binary_expression "pcVar2[1] != '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) })) (if_statement "if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != 'z')" ( (binary_expression "*(char *)(param_1 + 9) != 'z'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'z'" ' character ')) )) (compound_statement "{\n    return '\0';\n  }" { (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (do_statement "do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');" do (compound_statement "{\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  }" { (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if (-1 < *pcVar2) break;" if (parenthesized_expression "(-1 < *pcVar2)" ( (binary_expression "-1 < *pcVar2" number_literal < (pointer_expression "*pcVar2" * identifier)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar2 + 2;" (assignment_expression "pcVar5 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar3 < '\0')" ( (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (do_statement "do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');" do (compound_statement "{\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar2 < '\0')" ( (binary_expression "*pcVar2 < '\0'" (pointer_expression "*pcVar2" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" if (parenthesized_expression "(*(byte *)(param_1 + 8) == 1)" ( (binary_expression "*(byte *)(param_1 + 8) == 1" (pointer_expression "*(byte *)(param_1 + 8)" * (cast_expression "(byte *)(param_1 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    pcVar2 = pcVar2 + 2;\n  }" { (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" else (compound_statement "{\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" { (do_statement "do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');" do (compound_statement "{\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar5 + 1;" (assignment_expression "pcVar2 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(cVar4 < '\0')" ( (binary_expression "cVar4 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (expression_statement "pcVar5 = (char *)(param_1 + 10);" (assignment_expression "pcVar5 = (char *)(param_1 + 10)" identifier = (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) ;) (do_statement "do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');" do (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  }" { (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "(cVar4 < '\0')" ( (binary_expression "cVar4 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "cVar4 = *(char *)(param_1 + 10);" (assignment_expression "cVar4 = *(char *)(param_1 + 10)" identifier = (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) ))))) ;) (while_statement "while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }" while (parenthesized_expression "(cVar4 != 'R')" ( (binary_expression "cVar4 != 'R'" identifier != (char_literal "'R'" ' character ')) )) (compound_statement "{\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }" { (while_statement "while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" while (parenthesized_expression "(cVar4 != 'P')" ( (binary_expression "cVar4 != 'P'" identifier != (char_literal "'P'" ' character ')) )) (compound_statement "{\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" { (if_statement "if (cVar4 != 'L') {\n        return '\0';\n      }" if (parenthesized_expression "(cVar4 != 'L')" ( (binary_expression "cVar4 != 'L'" identifier != (char_literal "'L'" ' character ')) )) (compound_statement "{\n        return '\0';\n      }" { (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (cVar4 == 'R') goto LAB_00243baa;" if (parenthesized_expression "(cVar4 == 'R')" ( (binary_expression "cVar4 == 'R'" identifier == (char_literal "'R'" ' character ')) )) (goto_statement "goto LAB_00243baa;" goto statement_identifier ;)) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = (char *)FUN_00243900(&local_10);" (assignment_expression "pcVar3 = (char *)FUN_00243900(&local_10)" identifier = (cast_expression "(char *)FUN_00243900(&local_10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00243900(&local_10)" identifier (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))))) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) })) (labeled_statement "LAB_00243baa:\n  return *pcVar3;" statement_identifier : (return_statement "return *pcVar3;" return (pointer_expression "*pcVar3" * identifier) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar __regparm3 get_cie_encoding(int param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)read_encoded_value_with_base(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}\n\n" comment (function_definition "char __regparm3 get_cie_encoding(int param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)read_encoded_value_with_base(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "get_cie_encoding(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)read_encoded_value_with_base(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (expression_statement "local_10 = 0x243add;" (assignment_expression "local_10 = 0x243add" identifier = number_literal) ;) (expression_statement "sVar1 = strlen((char *)(param_1 + 9));" (assignment_expression "sVar1 = strlen((char *)(param_1 + 9))" identifier = (call_expression "strlen((char *)(param_1 + 9))" identifier (argument_list "((char *)(param_1 + 9))" ( (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))) )))) ;) (expression_statement "pcVar2 = (char *)(param_1 + 10 + sVar1);" (assignment_expression "pcVar2 = (char *)(param_1 + 10 + sVar1)" identifier = (cast_expression "(char *)(param_1 + 10 + sVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10 + sVar1)" ( (binary_expression "param_1 + 10 + sVar1" (binary_expression "param_1 + 10" identifier + number_literal) + identifier) )))) ;) (if_statement "if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" if (parenthesized_expression "(3 < *(byte *)(param_1 + 8))" ( (binary_expression "3 < *(byte *)(param_1 + 8)" number_literal < (pointer_expression "*(byte *)(param_1 + 8)" * (cast_expression "(byte *)(param_1 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" { (if_statement "if (*pcVar2 != '\x04') {\n      return -1;\n    }" if (parenthesized_expression "(*pcVar2 != '\x04')" ( (binary_expression "*pcVar2 != '\x04'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (pcVar2[1] != '\0') {\n      return -1;\n    }" if (parenthesized_expression "(pcVar2[1] != '\0')" ( (binary_expression "pcVar2[1] != '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) })) (if_statement "if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != 'z')" ( (binary_expression "*(char *)(param_1 + 9) != 'z'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'z'" ' character ')) )) (compound_statement "{\n    return '\0';\n  }" { (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (do_statement "do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');" do (compound_statement "{\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  }" { (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if (-1 < *pcVar2) break;" if (parenthesized_expression "(-1 < *pcVar2)" ( (binary_expression "-1 < *pcVar2" number_literal < (pointer_expression "*pcVar2" * identifier)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar2 + 2;" (assignment_expression "pcVar5 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar3 < '\0')" ( (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (do_statement "do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');" do (compound_statement "{\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar2 < '\0')" ( (binary_expression "*pcVar2 < '\0'" (pointer_expression "*pcVar2" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" if (parenthesized_expression "(*(byte *)(param_1 + 8) == 1)" ( (binary_expression "*(byte *)(param_1 + 8) == 1" (pointer_expression "*(byte *)(param_1 + 8)" * (cast_expression "(byte *)(param_1 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    pcVar2 = pcVar2 + 2;\n  }" { (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" else (compound_statement "{\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" { (do_statement "do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');" do (compound_statement "{\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar5 + 1;" (assignment_expression "pcVar2 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(cVar4 < '\0')" ( (binary_expression "cVar4 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (expression_statement "pcVar5 = (char *)(param_1 + 10);" (assignment_expression "pcVar5 = (char *)(param_1 + 10)" identifier = (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) ;) (do_statement "do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');" do (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  }" { (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "(cVar4 < '\0')" ( (binary_expression "cVar4 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "cVar4 = *(char *)(param_1 + 10);" (assignment_expression "cVar4 = *(char *)(param_1 + 10)" identifier = (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) ))))) ;) (while_statement "while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)read_encoded_value_with_base(&local_10);\n    cVar4 = *pcVar5;\n  }" while (parenthesized_expression "(cVar4 != 'R')" ( (binary_expression "cVar4 != 'R'" identifier != (char_literal "'R'" ' character ')) )) (compound_statement "{\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)read_encoded_value_with_base(&local_10);\n    cVar4 = *pcVar5;\n  }" { (while_statement "while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" while (parenthesized_expression "(cVar4 != 'P')" ( (binary_expression "cVar4 != 'P'" identifier != (char_literal "'P'" ' character ')) )) (compound_statement "{\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" { (if_statement "if (cVar4 != 'L') {\n        return '\0';\n      }" if (parenthesized_expression "(cVar4 != 'L')" ( (binary_expression "cVar4 != 'L'" identifier != (char_literal "'L'" ' character ')) )) (compound_statement "{\n        return '\0';\n      }" { (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (cVar4 == 'R') goto LAB_00243baa;" if (parenthesized_expression "(cVar4 == 'R')" ( (binary_expression "cVar4 == 'R'" identifier == (char_literal "'R'" ' character ')) )) (goto_statement "goto LAB_00243baa;" goto statement_identifier ;)) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = (char *)read_encoded_value_with_base(&local_10);" (assignment_expression "pcVar3 = (char *)read_encoded_value_with_base(&local_10)" identifier = (cast_expression "(char *)read_encoded_value_with_base(&local_10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "read_encoded_value_with_base(&local_10)" identifier (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))))) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) })) (labeled_statement "LAB_00243baa:\n  return *pcVar3;" statement_identifier : (return_statement "return *pcVar3;" return (pointer_expression "*pcVar3" * identifier) ;)) })))
(translation_unit "char __regparm3 FUN_00243ad0(int param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}\n\n" (function_definition "char __regparm3 FUN_00243ad0(int param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00243ad0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (expression_statement "local_10 = 0x243add;" (assignment_expression "local_10 = 0x243add" identifier = number_literal) ;) (expression_statement "sVar1 = strlen((char *)(param_1 + 9));" (assignment_expression "sVar1 = strlen((char *)(param_1 + 9))" identifier = (call_expression "strlen((char *)(param_1 + 9))" identifier (argument_list "((char *)(param_1 + 9))" ( (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))) )))) ;) (expression_statement "pcVar2 = (char *)(param_1 + 10 + sVar1);" (assignment_expression "pcVar2 = (char *)(param_1 + 10 + sVar1)" identifier = (cast_expression "(char *)(param_1 + 10 + sVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10 + sVar1)" ( (binary_expression "param_1 + 10 + sVar1" (binary_expression "param_1 + 10" identifier + number_literal) + identifier) )))) ;) (if_statement "if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" if (parenthesized_expression "(3 < *(byte *)(param_1 + 8))" ( (binary_expression "3 < *(byte *)(param_1 + 8)" number_literal < (pointer_expression "*(byte *)(param_1 + 8)" * (cast_expression "(byte *)(param_1 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" { (if_statement "if (*pcVar2 != '\x04') {\n      return -1;\n    }" if (parenthesized_expression "(*pcVar2 != '\x04')" ( (binary_expression "*pcVar2 != '\x04'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (pcVar2[1] != '\0') {\n      return -1;\n    }" if (parenthesized_expression "(pcVar2[1] != '\0')" ( (binary_expression "pcVar2[1] != '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) })) (if_statement "if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != 'z')" ( (binary_expression "*(char *)(param_1 + 9) != 'z'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'z'" ' character ')) )) (compound_statement "{\n    return '\0';\n  }" { (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (do_statement "do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');" do (compound_statement "{\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  }" { (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if (-1 < *pcVar2) break;" if (parenthesized_expression "(-1 < *pcVar2)" ( (binary_expression "-1 < *pcVar2" number_literal < (pointer_expression "*pcVar2" * identifier)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar2 + 2;" (assignment_expression "pcVar5 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar3 < '\0')" ( (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (do_statement "do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');" do (compound_statement "{\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pcVar2 < '\0')" ( (binary_expression "*pcVar2 < '\0'" (pointer_expression "*pcVar2" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" if (parenthesized_expression "(*(byte *)(param_1 + 8) == 1)" ( (binary_expression "*(byte *)(param_1 + 8) == 1" (pointer_expression "*(byte *)(param_1 + 8)" * (cast_expression "(byte *)(param_1 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    pcVar2 = pcVar2 + 2;\n  }" { (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" else (compound_statement "{\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" { (do_statement "do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');" do (compound_statement "{\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar5 + 1;" (assignment_expression "pcVar2 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(cVar4 < '\0')" ( (binary_expression "cVar4 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (expression_statement "pcVar5 = (char *)(param_1 + 10);" (assignment_expression "pcVar5 = (char *)(param_1 + 10)" identifier = (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) ;) (do_statement "do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');" do (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  }" { (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "(cVar4 < '\0')" ( (binary_expression "cVar4 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "cVar4 = *(char *)(param_1 + 10);" (assignment_expression "cVar4 = *(char *)(param_1 + 10)" identifier = (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) ))))) ;) (while_statement "while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }" while (parenthesized_expression "(cVar4 != 'R')" ( (binary_expression "cVar4 != 'R'" identifier != (char_literal "'R'" ' character ')) )) (compound_statement "{\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }" { (while_statement "while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" while (parenthesized_expression "(cVar4 != 'P')" ( (binary_expression "cVar4 != 'P'" identifier != (char_literal "'P'" ' character ')) )) (compound_statement "{\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" { (if_statement "if (cVar4 != 'L') {\n        return '\0';\n      }" if (parenthesized_expression "(cVar4 != 'L')" ( (binary_expression "cVar4 != 'L'" identifier != (char_literal "'L'" ' character ')) )) (compound_statement "{\n        return '\0';\n      }" { (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (cVar4 == 'R') goto LAB_00243baa;" if (parenthesized_expression "(cVar4 == 'R')" ( (binary_expression "cVar4 == 'R'" identifier == (char_literal "'R'" ' character ')) )) (goto_statement "goto LAB_00243baa;" goto statement_identifier ;)) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = (char *)FUN_00243900(&local_10);" (assignment_expression "pcVar3 = (char *)FUN_00243900(&local_10)" identifier = (cast_expression "(char *)FUN_00243900(&local_10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00243900(&local_10)" identifier (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))))) ;) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) })) (labeled_statement "LAB_00243baa:\n  return *pcVar3;" statement_identifier : (return_statement "return *pcVar3;" return (pointer_expression "*pcVar3" * identifier) ;)) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_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) )))) != (char_literal ' character ')) )) (compound_statement { (return_statement return (char_literal ' escape_sequence ') ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) )) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) )) ;) (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (char_literal ' escape_sequence ')) )) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (return_statement return (char_literal ' escape_sequence ') ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (labeled_statement statement_identifier : (return_statement return (pointer_expression * IDENT) ;)) })))
(function_definition "char __regparm3 FUN_00243ad0(int param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" (primitive_type "char") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00243ad0(int param_1)" (identifier "FUN_00243ad0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  undefined4 local_10;\n  \n  local_10 = 0x243add;\n  sVar1 = strlen((char *)(param_1 + 9));\n  pcVar2 = (char *)(param_1 + 10 + sVar1);\n  if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }\n  if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');\n  do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');\n  if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }\n  pcVar5 = (char *)(param_1 + 10);\n  do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');\n  cVar4 = *(char *)(param_1 + 10);\n  while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }\nLAB_00243baa:\n  return *pcVar3;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 local_10;" (type_identifier "undefined4") (identifier "local_10") (; ";")) (expression_statement "local_10 = 0x243add;" (assignment_expression "local_10 = 0x243add" (identifier "local_10") (= "=") (number_literal "0x243add")) (; ";")) (expression_statement "sVar1 = strlen((char *)(param_1 + 9));" (assignment_expression "sVar1 = strlen((char *)(param_1 + 9))" (identifier "sVar1") (= "=") (call_expression "strlen((char *)(param_1 + 9))" (identifier "strlen") (argument_list "((char *)(param_1 + 9))" (( "(") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")"))) () ")")))) (; ";")) (expression_statement "pcVar2 = (char *)(param_1 + 10 + sVar1);" (assignment_expression "pcVar2 = (char *)(param_1 + 10 + sVar1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(param_1 + 10 + sVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10 + sVar1)" (( "(") (binary_expression "param_1 + 10 + sVar1" (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) (+ "+") (identifier "sVar1")) () ")")))) (; ";")) (if_statement "if (3 < *(byte *)(param_1 + 8)) {\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" (if "if") (parenthesized_expression "(3 < *(byte *)(param_1 + 8))" (( "(") (binary_expression "3 < *(byte *)(param_1 + 8)" (number_literal "3") (< "<") (pointer_expression "*(byte *)(param_1 + 8)" (* "*") (cast_expression "(byte *)(param_1 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    if (*pcVar2 != '\x04') {\n      return -1;\n    }\n    if (pcVar2[1] != '\0') {\n      return -1;\n    }\n    pcVar2 = pcVar2 + 2;\n  }" ({ "{") (if_statement "if (*pcVar2 != '\x04') {\n      return -1;\n    }" (if "if") (parenthesized_expression "(*pcVar2 != '\x04')" (( "(") (binary_expression "*pcVar2 != '\x04'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")")) (compound_statement "{\n      return -1;\n    }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (if_statement "if (pcVar2[1] != '\0') {\n      return -1;\n    }" (if "if") (parenthesized_expression "(pcVar2[1] != '\0')" (( "(") (binary_expression "pcVar2[1] != '\0'" (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return -1;\n    }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + 9) != 'z') {\n    return '\0';\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 9) != 'z')" (( "(") (binary_expression "*(char *)(param_1 + 9) != 'z'" (pointer_expression "*(char *)(param_1 + 9)" (* "*") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'z'" (' "'") (character "z") (' "'"))) () ")")) (compound_statement "{\n    return '\0';\n  }" ({ "{") (return_statement "return '\0';" (return "return") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")) (; ";")) (} "}"))) (do_statement "do {\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  } while (*pcVar3 < '\0');" (do "do") (compound_statement "{\n    pcVar5 = pcVar2 + 1;\n    if (-1 < *pcVar2) break;\n    pcVar3 = pcVar2 + 1;\n    pcVar5 = pcVar2 + 2;\n    pcVar2 = pcVar2 + 2;\n  }" ({ "{") (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (-1 < *pcVar2) break;" (if "if") (parenthesized_expression "(-1 < *pcVar2)" (( "(") (binary_expression "-1 < *pcVar2" (number_literal "-1") (< "<") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar5 = pcVar2 + 2;" (assignment_expression "pcVar5 = pcVar2 + 2" (identifier "pcVar5") (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pcVar3 < '\0')" (( "(") (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (do_statement "do {\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  } while (*pcVar2 < '\0');" (do "do") (compound_statement "{\n    pcVar2 = pcVar5;\n    pcVar5 = pcVar2 + 1;\n  }" ({ "{") (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" (identifier "pcVar2") (= "=") (identifier "pcVar5")) (; ";")) (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pcVar2 < '\0')" (( "(") (binary_expression "*pcVar2 < '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (if_statement "if (*(byte *)(param_1 + 8) == 1) {\n    pcVar2 = pcVar2 + 2;\n  }\n  else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" (if "if") (parenthesized_expression "(*(byte *)(param_1 + 8) == 1)" (( "(") (binary_expression "*(byte *)(param_1 + 8) == 1" (pointer_expression "*(byte *)(param_1 + 8)" (* "*") (cast_expression "(byte *)(param_1 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    pcVar2 = pcVar2 + 2;\n  }" ({ "{") (expression_statement "pcVar2 = pcVar2 + 2;" (assignment_expression "pcVar2 = pcVar2 + 2" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" (else "else") (compound_statement "{\n    do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');\n  }" ({ "{") (do_statement "do {\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    } while (cVar4 < '\0');" (do "do") (compound_statement "{\n      pcVar2 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar5 = pcVar2;\n    }" ({ "{") (expression_statement "pcVar2 = pcVar5 + 1;" (assignment_expression "pcVar2 = pcVar5 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" (identifier "cVar4") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" (identifier "pcVar5") (= "=") (identifier "pcVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar4 < '\0')" (( "(") (binary_expression "cVar4 < '\0'" (identifier "cVar4") (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}")))) (expression_statement "pcVar5 = (char *)(param_1 + 10);" (assignment_expression "pcVar5 = (char *)(param_1 + 10)" (identifier "pcVar5") (= "=") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (; ";")) (do_statement "do {\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  } while (cVar4 < '\0');" (do "do") (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar3;\n  }" ({ "{") (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" (identifier "cVar4") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" (identifier "pcVar2") (= "=") (identifier "pcVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar4 < '\0')" (( "(") (binary_expression "cVar4 < '\0'" (identifier "cVar4") (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "cVar4 = *(char *)(param_1 + 10);" (assignment_expression "cVar4 = *(char *)(param_1 + 10)" (identifier "cVar4") (= "=") (pointer_expression "*(char *)(param_1 + 10)" (* "*") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")"))))) (; ";")) (while_statement "while (cVar4 != 'R') {\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }" (while "while") (parenthesized_expression "(cVar4 != 'R')" (( "(") (binary_expression "cVar4 != 'R'" (identifier "cVar4") (!= "!=") (char_literal "'R'" (' "'") (character "R") (' "'"))) () ")")) (compound_statement "{\n    while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }\n    pcVar5 = pcVar5 + 1;\n    pcVar3 = (char *)FUN_00243900(&local_10);\n    cVar4 = *pcVar5;\n  }" ({ "{") (while_statement "while (cVar4 != 'P') {\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" (while "while") (parenthesized_expression "(cVar4 != 'P')" (( "(") (binary_expression "cVar4 != 'P'" (identifier "cVar4") (!= "!=") (char_literal "'P'" (' "'") (character "P") (' "'"))) () ")")) (compound_statement "{\n      if (cVar4 != 'L') {\n        return '\0';\n      }\n      pcVar5 = pcVar5 + 1;\n      cVar4 = *pcVar5;\n      pcVar3 = pcVar3 + 1;\n      if (cVar4 == 'R') goto LAB_00243baa;\n    }" ({ "{") (if_statement "if (cVar4 != 'L') {\n        return '\0';\n      }" (if "if") (parenthesized_expression "(cVar4 != 'L')" (( "(") (binary_expression "cVar4 != 'L'" (identifier "cVar4") (!= "!=") (char_literal "'L'" (' "'") (character "L") (' "'"))) () ")")) (compound_statement "{\n        return '\0';\n      }" ({ "{") (return_statement "return '\0';" (return "return") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")) (; ";")) (} "}"))) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" (identifier "cVar4") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar4 == 'R') goto LAB_00243baa;" (if "if") (parenthesized_expression "(cVar4 == 'R')" (( "(") (binary_expression "cVar4 == 'R'" (identifier "cVar4") (== "==") (char_literal "'R'" (' "'") (character "R") (' "'"))) () ")")) (goto_statement "goto LAB_00243baa;" (goto "goto") (statement_identifier "LAB_00243baa") (; ";"))) (} "}"))) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar3 = (char *)FUN_00243900(&local_10);" (assignment_expression "pcVar3 = (char *)FUN_00243900(&local_10)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_00243900(&local_10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00243900(&local_10)" (identifier "FUN_00243900") (argument_list "(&local_10)" (( "(") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")"))))) (; ";")) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" (identifier "cVar4") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (} "}"))) (labeled_statement "LAB_00243baa:\n  return *pcVar3;" (statement_identifier "LAB_00243baa") (: ":") (return_statement "return *pcVar3;" (return "return") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (; ";"))) (} "}")))

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

char __regparm3 function_1(int var_2)

{
  size_t var_3;
  char *var_4;
  char *var_7;
  char var_6;
  char *var_5;
  type_1 local_10;
  
  local_10 = 0x243add;
  var_3 = var_1((char *)(var_2 + 9));
  var_4 = (char *)(var_2 + 10 + var_3);
  if (3 < *(type_2 *)(var_2 + 8)) {
    if (*var_4 != '\x04') {
      return -1;
    }
    if (var_4[1] != '\0') {
      return -1;
    }
    var_4 = var_4 + 2;
  }
  if (*(char *)(var_2 + 9) != 'z') {
    return '\0';
  }
  do {
    var_5 = var_4 + 1;
    if (-1 < *var_4) break;
    var_7 = var_4 + 1;
    var_5 = var_4 + 2;
    var_4 = var_4 + 2;
  } while (*var_7 < '\0');
  do {
    var_4 = var_5;
    var_5 = var_4 + 1;
  } while (*var_4 < '\0');
  if (*(type_2 *)(var_2 + 8) == 1) {
    var_4 = var_4 + 2;
  }
  else {
    do {
      var_4 = var_5 + 1;
      var_6 = *var_5;
      var_5 = var_4;
    } while (var_6 < '\0');
  }
  var_5 = (char *)(var_2 + 10);
  do {
    var_7 = var_4 + 1;
    var_6 = *var_4;
    var_4 = var_7;
  } while (var_6 < '\0');
  var_6 = *(char *)(var_2 + 10);
  while (var_6 != 'R') {
    while (var_6 != 'P') {
      if (var_6 != 'L') {
        return '\0';
      }
      var_5 = var_5 + 1;
      var_6 = *var_5;
      var_7 = var_7 + 1;
      if (var_6 == 'R') goto LAB_00243baa;
    }
    var_5 = var_5 + 1;
    var_7 = (char *)var_8(&local_10);
    var_6 = *var_5;
  }
LAB_00243baa:
  return *var_7;
}


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

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

char __regparm3 MASKED(int param_1)

{
  size_t sVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  undefined4 local_10;
  
  local_10 = 0x243add;
  sVar1 = strlen((char *)(param_1 + 9));
  pcVar2 = (char *)(param_1 + 10 + sVar1);
  if (3 < *(byte *)(param_1 + 8)) {
    if (*pcVar2 != '\x04') {
      return -1;
    }
    if (pcVar2[1] != '\0') {
      return -1;
    }
    pcVar2 = pcVar2 + 2;
  }
  if (*(char *)(param_1 + 9) != 'z') {
    return '\0';
  }
  do {
    pcVar5 = pcVar2 + 1;
    if (-1 < *pcVar2) break;
    pcVar3 = pcVar2 + 1;
    pcVar5 = pcVar2 + 2;
    pcVar2 = pcVar2 + 2;
  } while (*pcVar3 < '\0');
  do {
    pcVar2 = pcVar5;
    pcVar5 = pcVar2 + 1;
  } while (*pcVar2 < '\0');
  if (*(byte *)(param_1 + 8) == 1) {
    pcVar2 = pcVar2 + 2;
  }
  else {
    do {
      pcVar2 = pcVar5 + 1;
      cVar4 = *pcVar5;
      pcVar5 = pcVar2;
    } while (cVar4 < '\0');
  }
  pcVar5 = (char *)(param_1 + 10);
  do {
    pcVar3 = pcVar2 + 1;
    cVar4 = *pcVar2;
    pcVar2 = pcVar3;
  } while (cVar4 < '\0');
  cVar4 = *(char *)(param_1 + 10);
  while (cVar4 != 'R') {
    while (cVar4 != 'P') {
      if (cVar4 != 'L') {
        return '\0';
      }
      pcVar5 = pcVar5 + 1;
      cVar4 = *pcVar5;
      pcVar3 = pcVar3 + 1;
      if (cVar4 == 'R') goto LAB_00243baa;
    }
    pcVar5 = pcVar5 + 1;
    pcVar3 = (char *)FUN_00243900(&local_10);
    cVar4 = *pcVar5;
  }
LAB_00243baa:
  return *pcVar3;
}

