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

void * open_settings_r(char *sessionname)

{
  char *pcVar1;
  FILE *__stream;
  tree234 *t;
  char *pcVar2;
  size_t sVar3;
  undefined4 *e;
  char *pcVar4;
  
  pcVar1 = make_filename(5,sessionname);
  __stream = fopen64(pcVar1,"r");
  safefree(pcVar1);
  if (__stream != (FILE *)0x0) {
    t = newtree234(keycmp);
    while( true ) {
      pcVar1 = fgetline((FILE *)__stream);
      if (pcVar1 == (char *)0x0) break;
      pcVar2 = strchr(pcVar1,0x3d);
      if (pcVar2 == (char *)0x0) {
        safefree(pcVar1);
      }
      else {
        *pcVar2 = '\0';
        sVar3 = strcspn(pcVar2 + 1,"\r\n");
        pcVar2[sVar3 + 1] = '\0';
        e = (undefined4 *)safemalloc(1,8);
        pcVar4 = dupstr(pcVar1);
        *e = pcVar4;
        pcVar2 = dupstr(pcVar2 + 1);
        e[1] = pcVar2;
        add234(t,e);
        safefree(pcVar1);
      }
    }
    fclose(__stream);
    return t;
  }
  return (void *)0x0;
}



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

undefined4 FUN_000755a0(void)

{
  char *pcVar1;
  FILE *__stream;
  undefined4 uVar2;
  char *pcVar3;
  size_t sVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  
  pcVar1 = (char *)FUN_00074a80();
  __stream = fopen64(pcVar1,"r");
  FUN_00031580(pcVar1);
  if (__stream != (FILE *)0x0) {
    uVar2 = FUN_00050700(FUN_00075100);
    while( true ) {
      pcVar1 = (char *)FUN_00030ac0(__stream);
      if (pcVar1 == (char *)0x0) break;
      pcVar3 = strchr(pcVar1,0x3d);
      if (pcVar3 == (char *)0x0) {
        FUN_00031580(pcVar1);
      }
      else {
        *pcVar3 = '\0';
        sVar4 = strcspn(pcVar3 + 1,"\r\n");
        pcVar3[sVar4 + 1] = '\0';
        puVar5 = (undefined4 *)FUN_000313e0(1,8);
        uVar6 = FUN_00030420(pcVar1);
        *puVar5 = uVar6;
        uVar6 = FUN_00030420(pcVar3 + 1);
        puVar5[1] = uVar6;
        FUN_00053fe0(uVar2,puVar5);
        FUN_00031580(pcVar1);
      }
    }
    fclose(__stream);
    return uVar2;
  }
  return 0;
}


PUSH EBP
MOV EAX,0x5
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x501f6
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x30]
CALL 0x00074a80
SUB ESP,0x8
MOV ESI,EAX
LEA EAX,[EBX + 0xfffc44d6]
PUSH EAX
PUSH ESI
CALL 0x000198c0
MOV dword ptr [ESP],ESI
MOV EDI,EAX
MOV dword ptr [ESP + 0x14],EAX
CALL 0x00031580
ADD ESP,0x10
TEST EDI,EDI
JZ 0x000756c8
SUB ESP,0xc
LEA EAX,[EBX + 0xfffaf95c]
PUSH EAX
CALL 0x00050700
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
LEA EAX,[EBX + 0xfffc7ce7]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
NOP
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x00030ac0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000756a8
SUB ESP,0x8
PUSH 0x3d
PUSH ESI
CALL 0x00019fa0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00075690
SUB ESP,0x8
LEA EBP,[EAX + 0x1]
MOV byte ptr [EAX],0x0
PUSH dword ptr [ESP + 0x14]
PUSH EBP
CALL 0x0001a600
POP EDX
POP ECX
MOV byte ptr [EDI + EAX*0x1 + 0x1],0x0
PUSH 0x8
PUSH 0x1
CALL 0x000313e0
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00030420
MOV dword ptr [EDI],EAX
MOV dword ptr [ESP],EBP
CALL 0x00030420
MOV dword ptr [EDI + 0x4],EAX
POP EBP
POP EAX
PUSH EDI
PUSH dword ptr [ESP + 0x14]
CALL 0x00053fe0
MOV dword ptr [ESP],ESI
CALL 0x00031580
ADD ESP,0x10
JMP 0x00075610
SUB ESP,0xc
PUSH ESI
CALL 0x00031580
ADD ESP,0x10
JMP 0x00075610
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x0001acd0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],0x0
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000755a0(void)\n\n{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_000755a0(void)\n\n{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000755a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)FUN_00074a80();" (assignment_expression "pcVar1 = (char *)FUN_00074a80()" identifier = (cast_expression "(char *)FUN_00074a80()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074a80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "__stream = fopen64(pcVar1,"r");" (assignment_expression "__stream = fopen64(pcVar1,"r")" identifier = (call_expression "fopen64(pcVar1,"r")" identifier (argument_list "(pcVar1,"r")" ( identifier , (string_literal ""r"" " string_content ") )))) ;) (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00050700(FUN_00075100);" (assignment_expression "uVar2 = FUN_00050700(FUN_00075100)" identifier = (call_expression "FUN_00050700(FUN_00075100)" identifier (argument_list "(FUN_00075100)" ( identifier )))) ;) (while_statement "while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }" { (expression_statement "pcVar1 = (char *)FUN_00030ac0(__stream);" (assignment_expression "pcVar1 = (char *)FUN_00030ac0(__stream)" identifier = (cast_expression "(char *)FUN_00030ac0(__stream)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00030ac0(__stream)" identifier (argument_list "(__stream)" ( identifier ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) break;" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar3 = strchr(pcVar1,0x3d)" identifier = (call_expression "strchr(pcVar1,0x3d)" identifier (argument_list "(pcVar1,0x3d)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_00031580(pcVar1);\n      }" { (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) }) (else_clause "else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" else (compound_statement "{\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sVar4 = strcspn(pcVar3 + 1,"\r\n");" (assignment_expression "sVar4 = strcspn(pcVar3 + 1,"\r\n")" identifier = (call_expression "strcspn(pcVar3 + 1,"\r\n")" identifier (argument_list "(pcVar3 + 1,"\r\n")" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , (string_literal ""\r\n"" " escape_sequence escape_sequence ") )))) ;) (expression_statement "pcVar3[sVar4 + 1] = '\0';" (assignment_expression "pcVar3[sVar4 + 1] = '\0'" (subscript_expression "pcVar3[sVar4 + 1]" identifier [ (binary_expression "sVar4 + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "puVar5 = (undefined4 *)FUN_000313e0(1,8);" (assignment_expression "puVar5 = (undefined4 *)FUN_000313e0(1,8)" identifier = (cast_expression "(undefined4 *)FUN_000313e0(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000313e0(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar6 = FUN_00030420(pcVar1);" (assignment_expression "uVar6 = FUN_00030420(pcVar1)" identifier = (call_expression "FUN_00030420(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "*puVar5 = uVar6;" (assignment_expression "*puVar5 = uVar6" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "uVar6 = FUN_00030420(pcVar3 + 1);" (assignment_expression "uVar6 = FUN_00030420(pcVar3 + 1)" identifier = (call_expression "FUN_00030420(pcVar3 + 1)" identifier (argument_list "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "puVar5[1] = uVar6;" (assignment_expression "puVar5[1] = uVar6" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00053fe0(uVar2,puVar5);" (call_expression "FUN_00053fe0(uVar2,puVar5)" identifier (argument_list "(uVar2,puVar5)" ( identifier , identifier ))) ;) (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) }))) })) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid * open_settings_r(char *sessionname)\n\n{\n  char *pcVar1;\n  FILE *__stream;\n  tree234 *t;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 *e;\n  char *pcVar4;\n  \n  pcVar1 = make_filename(5,sessionname);\n  __stream = fopen64(pcVar1,"r");\n  safefree(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    t = newtree234(keycmp);\n    while( true ) {\n      pcVar1 = fgetline((FILE *)__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar2 = strchr(pcVar1,0x3d);\n      if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return t;\n  }\n  return (void *)0x0;\n}\n\n" comment comment (function_definition "void * open_settings_r(char *sessionname)\n\n{\n  char *pcVar1;\n  FILE *__stream;\n  tree234 *t;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 *e;\n  char *pcVar4;\n  \n  pcVar1 = make_filename(5,sessionname);\n  __stream = fopen64(pcVar1,"r");\n  safefree(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    t = newtree234(keycmp);\n    while( true ) {\n      pcVar1 = fgetline((FILE *)__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar2 = strchr(pcVar1,0x3d);\n      if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return t;\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* open_settings_r(char *sessionname)" * (function_declarator "open_settings_r(char *sessionname)" identifier (parameter_list "(char *sessionname)" ( (parameter_declaration "char *sessionname" primitive_type (pointer_declarator "*sessionname" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  FILE *__stream;\n  tree234 *t;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 *e;\n  char *pcVar4;\n  \n  pcVar1 = make_filename(5,sessionname);\n  __stream = fopen64(pcVar1,"r");\n  safefree(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    t = newtree234(keycmp);\n    while( true ) {\n      pcVar1 = fgetline((FILE *)__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar2 = strchr(pcVar1,0x3d);\n      if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return t;\n  }\n  return (void *)0x0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "tree234 *t;" type_identifier (pointer_declarator "*t" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 *e;" type_identifier (pointer_declarator "*e" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "pcVar1 = make_filename(5,sessionname);" (assignment_expression "pcVar1 = make_filename(5,sessionname)" identifier = (call_expression "make_filename(5,sessionname)" identifier (argument_list "(5,sessionname)" ( number_literal , identifier )))) ;) (expression_statement "__stream = fopen64(pcVar1,"r");" (assignment_expression "__stream = fopen64(pcVar1,"r")" identifier = (call_expression "fopen64(pcVar1,"r")" identifier (argument_list "(pcVar1,"r")" ( identifier , (string_literal ""r"" " string_content ") )))) ;) (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n    t = newtree234(keycmp);\n    while( true ) {\n      pcVar1 = fgetline((FILE *)__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar2 = strchr(pcVar1,0x3d);\n      if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return t;\n  }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    t = newtree234(keycmp);\n    while( true ) {\n      pcVar1 = fgetline((FILE *)__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar2 = strchr(pcVar1,0x3d);\n      if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return t;\n  }" { (expression_statement "t = newtree234(keycmp);" (assignment_expression "t = newtree234(keycmp)" identifier = (call_expression "newtree234(keycmp)" identifier (argument_list "(keycmp)" ( identifier )))) ;) (while_statement "while( true ) {\n      pcVar1 = fgetline((FILE *)__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar2 = strchr(pcVar1,0x3d);\n      if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar1 = fgetline((FILE *)__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar2 = strchr(pcVar1,0x3d);\n      if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }\n    }" { (expression_statement "pcVar1 = fgetline((FILE *)__stream);" (assignment_expression "pcVar1 = fgetline((FILE *)__stream)" identifier = (call_expression "fgetline((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (pcVar1 == (char *)0x0) break;" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar2 = strchr(pcVar1,0x3d)" identifier = (call_expression "strchr(pcVar1,0x3d)" identifier (argument_list "(pcVar1,0x3d)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n        safefree(pcVar1);\n      }\n      else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        safefree(pcVar1);\n      }" { (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) }) (else_clause "else {\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }" else (compound_statement "{\n        *pcVar2 = '\0';\n        sVar3 = strcspn(pcVar2 + 1,"\r\n");\n        pcVar2[sVar3 + 1] = '\0';\n        e = (undefined4 *)safemalloc(1,8);\n        pcVar4 = dupstr(pcVar1);\n        *e = pcVar4;\n        pcVar2 = dupstr(pcVar2 + 1);\n        e[1] = pcVar2;\n        add234(t,e);\n        safefree(pcVar1);\n      }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sVar3 = strcspn(pcVar2 + 1,"\r\n");" (assignment_expression "sVar3 = strcspn(pcVar2 + 1,"\r\n")" identifier = (call_expression "strcspn(pcVar2 + 1,"\r\n")" identifier (argument_list "(pcVar2 + 1,"\r\n")" ( (binary_expression "pcVar2 + 1" identifier + number_literal) , (string_literal ""\r\n"" " escape_sequence escape_sequence ") )))) ;) (expression_statement "pcVar2[sVar3 + 1] = '\0';" (assignment_expression "pcVar2[sVar3 + 1] = '\0'" (subscript_expression "pcVar2[sVar3 + 1]" identifier [ (binary_expression "sVar3 + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "e = (undefined4 *)safemalloc(1,8);" (assignment_expression "e = (undefined4 *)safemalloc(1,8)" identifier = (cast_expression "(undefined4 *)safemalloc(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "pcVar4 = dupstr(pcVar1);" (assignment_expression "pcVar4 = dupstr(pcVar1)" identifier = (call_expression "dupstr(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "*e = pcVar4;" (assignment_expression "*e = pcVar4" (pointer_expression "*e" * identifier) = identifier) ;) (expression_statement "pcVar2 = dupstr(pcVar2 + 1);" (assignment_expression "pcVar2 = dupstr(pcVar2 + 1)" identifier = (call_expression "dupstr(pcVar2 + 1)" identifier (argument_list "(pcVar2 + 1)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "e[1] = pcVar2;" (assignment_expression "e[1] = pcVar2" (subscript_expression "e[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "add234(t,e);" (call_expression "add234(t,e)" identifier (argument_list "(t,e)" ( identifier , identifier ))) ;) (expression_statement "safefree(pcVar1);" (call_expression "safefree(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) }))) })) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (return_statement "return t;" return identifier ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_000755a0(void)\n\n{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000755a0(void)\n\n{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000755a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)FUN_00074a80();" (assignment_expression "pcVar1 = (char *)FUN_00074a80()" identifier = (cast_expression "(char *)FUN_00074a80()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074a80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "__stream = fopen64(pcVar1,"r");" (assignment_expression "__stream = fopen64(pcVar1,"r")" identifier = (call_expression "fopen64(pcVar1,"r")" identifier (argument_list "(pcVar1,"r")" ( identifier , (string_literal ""r"" " string_content ") )))) ;) (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00050700(FUN_00075100);" (assignment_expression "uVar2 = FUN_00050700(FUN_00075100)" identifier = (call_expression "FUN_00050700(FUN_00075100)" identifier (argument_list "(FUN_00075100)" ( identifier )))) ;) (while_statement "while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }" { (expression_statement "pcVar1 = (char *)FUN_00030ac0(__stream);" (assignment_expression "pcVar1 = (char *)FUN_00030ac0(__stream)" identifier = (cast_expression "(char *)FUN_00030ac0(__stream)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00030ac0(__stream)" identifier (argument_list "(__stream)" ( identifier ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) break;" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar3 = strchr(pcVar1,0x3d)" identifier = (call_expression "strchr(pcVar1,0x3d)" identifier (argument_list "(pcVar1,0x3d)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_00031580(pcVar1);\n      }" { (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) }) (else_clause "else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" else (compound_statement "{\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sVar4 = strcspn(pcVar3 + 1,"\r\n");" (assignment_expression "sVar4 = strcspn(pcVar3 + 1,"\r\n")" identifier = (call_expression "strcspn(pcVar3 + 1,"\r\n")" identifier (argument_list "(pcVar3 + 1,"\r\n")" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , (string_literal ""\r\n"" " escape_sequence escape_sequence ") )))) ;) (expression_statement "pcVar3[sVar4 + 1] = '\0';" (assignment_expression "pcVar3[sVar4 + 1] = '\0'" (subscript_expression "pcVar3[sVar4 + 1]" identifier [ (binary_expression "sVar4 + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "puVar5 = (undefined4 *)FUN_000313e0(1,8);" (assignment_expression "puVar5 = (undefined4 *)FUN_000313e0(1,8)" identifier = (cast_expression "(undefined4 *)FUN_000313e0(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000313e0(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar6 = FUN_00030420(pcVar1);" (assignment_expression "uVar6 = FUN_00030420(pcVar1)" identifier = (call_expression "FUN_00030420(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "*puVar5 = uVar6;" (assignment_expression "*puVar5 = uVar6" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "uVar6 = FUN_00030420(pcVar3 + 1);" (assignment_expression "uVar6 = FUN_00030420(pcVar3 + 1)" identifier = (call_expression "FUN_00030420(pcVar3 + 1)" identifier (argument_list "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "puVar5[1] = uVar6;" (assignment_expression "puVar5[1] = uVar6" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00053fe0(uVar2,puVar5);" (call_expression "FUN_00053fe0(uVar2,puVar5)" identifier (argument_list "(uVar2,puVar5)" ( identifier , identifier ))) ;) (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) }))) })) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (string_literal " escape_sequence escape_sequence ") )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000755a0(void)\n\n{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000755a0(void)" (identifier "FUN_000755a0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  FILE *__stream;\n  undefined4 uVar2;\n  char *pcVar3;\n  size_t sVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  pcVar1 = (char *)FUN_00074a80();\n  __stream = fopen64(pcVar1,"r");\n  FUN_00031580(pcVar1);\n  if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "pcVar1 = (char *)FUN_00074a80();" (assignment_expression "pcVar1 = (char *)FUN_00074a80()" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_00074a80()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00074a80()" (identifier "FUN_00074a80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "__stream = fopen64(pcVar1,"r");" (assignment_expression "__stream = fopen64(pcVar1,"r")" (identifier "__stream") (= "=") (call_expression "fopen64(pcVar1,"r")" (identifier "fopen64") (argument_list "(pcVar1,"r")" (( "(") (identifier "pcVar1") (, ",") (string_literal ""r"" (" """) (string_content "r") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" (identifier "FUN_00031580") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (if_statement "if (__stream != (FILE *)0x0) {\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(__stream != (FILE *)0x0)" (( "(") (binary_expression "__stream != (FILE *)0x0" (identifier "__stream") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = FUN_00050700(FUN_00075100);\n    while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }\n    fclose(__stream);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_00050700(FUN_00075100);" (assignment_expression "uVar2 = FUN_00050700(FUN_00075100)" (identifier "uVar2") (= "=") (call_expression "FUN_00050700(FUN_00075100)" (identifier "FUN_00050700") (argument_list "(FUN_00075100)" (( "(") (identifier "FUN_00075100") () ")")))) (; ";")) (while_statement "while( true ) {\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      pcVar1 = (char *)FUN_00030ac0(__stream);\n      if (pcVar1 == (char *)0x0) break;\n      pcVar3 = strchr(pcVar1,0x3d);\n      if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }\n    }" ({ "{") (expression_statement "pcVar1 = (char *)FUN_00030ac0(__stream);" (assignment_expression "pcVar1 = (char *)FUN_00030ac0(__stream)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_00030ac0(__stream)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00030ac0(__stream)" (identifier "FUN_00030ac0") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) break;" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar3 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar3 = strchr(pcVar1,0x3d)" (identifier "pcVar3") (= "=") (call_expression "strchr(pcVar1,0x3d)" (identifier "strchr") (argument_list "(pcVar1,0x3d)" (( "(") (identifier "pcVar1") (, ",") (number_literal "0x3d") () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n        FUN_00031580(pcVar1);\n      }\n      else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        FUN_00031580(pcVar1);\n      }" ({ "{") (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" (identifier "FUN_00031580") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" (else "else") (compound_statement "{\n        *pcVar3 = '\0';\n        sVar4 = strcspn(pcVar3 + 1,"\r\n");\n        pcVar3[sVar4 + 1] = '\0';\n        puVar5 = (undefined4 *)FUN_000313e0(1,8);\n        uVar6 = FUN_00030420(pcVar1);\n        *puVar5 = uVar6;\n        uVar6 = FUN_00030420(pcVar3 + 1);\n        puVar5[1] = uVar6;\n        FUN_00053fe0(uVar2,puVar5);\n        FUN_00031580(pcVar1);\n      }" ({ "{") (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "sVar4 = strcspn(pcVar3 + 1,"\r\n");" (assignment_expression "sVar4 = strcspn(pcVar3 + 1,"\r\n")" (identifier "sVar4") (= "=") (call_expression "strcspn(pcVar3 + 1,"\r\n")" (identifier "strcspn") (argument_list "(pcVar3 + 1,"\r\n")" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) (, ",") (string_literal ""\r\n"" (" """) (escape_sequence "\r") (escape_sequence "\n") (" """)) () ")")))) (; ";")) (expression_statement "pcVar3[sVar4 + 1] = '\0';" (assignment_expression "pcVar3[sVar4 + 1] = '\0'" (subscript_expression "pcVar3[sVar4 + 1]" (identifier "pcVar3") ([ "[") (binary_expression "sVar4 + 1" (identifier "sVar4") (+ "+") (number_literal "1")) (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)FUN_000313e0(1,8);" (assignment_expression "puVar5 = (undefined4 *)FUN_000313e0(1,8)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)FUN_000313e0(1,8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000313e0(1,8)" (identifier "FUN_000313e0") (argument_list "(1,8)" (( "(") (number_literal "1") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "uVar6 = FUN_00030420(pcVar1);" (assignment_expression "uVar6 = FUN_00030420(pcVar1)" (identifier "uVar6") (= "=") (call_expression "FUN_00030420(pcVar1)" (identifier "FUN_00030420") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "*puVar5 = uVar6;" (assignment_expression "*puVar5 = uVar6" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "uVar6 = FUN_00030420(pcVar3 + 1);" (assignment_expression "uVar6 = FUN_00030420(pcVar3 + 1)" (identifier "uVar6") (= "=") (call_expression "FUN_00030420(pcVar3 + 1)" (identifier "FUN_00030420") (argument_list "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "puVar5[1] = uVar6;" (assignment_expression "puVar5[1] = uVar6" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "FUN_00053fe0(uVar2,puVar5);" (call_expression "FUN_00053fe0(uVar2,puVar5)" (identifier "FUN_00053fe0") (argument_list "(uVar2,puVar5)" (( "(") (identifier "uVar2") (, ",") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "FUN_00031580(pcVar1);" (call_expression "FUN_00031580(pcVar1)" (identifier "FUN_00031580") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

void * function_1(char *sessionname)

{
  char *var_7;
  type_1 *var_4;
  type_2 *t;
  char *var_9;
  size_t var_11;
  type_3 *e;
  char *pcVar4;
  
  var_7 = var_1(5,sessionname);
  var_4 = var_2(var_7,"r");
  var_3(var_7);
  if (var_4 != (type_1 *)0x0) {
    t = var_5(keycmp);
    while( true ) {
      var_7 = var_6((type_1 *)var_4);
      if (var_7 == (char *)0x0) break;
      var_9 = var_8(var_7,0x3d);
      if (var_9 == (char *)0x0) {
        var_3(var_7);
      }
      else {
        *var_9 = '\0';
        var_11 = var_10(var_9 + 1,"\r\n");
        var_9[var_11 + 1] = '\0';
        e = (type_3 *)var_12(1,8);
        pcVar4 = var_13(var_7);
        *e = pcVar4;
        var_9 = var_13(var_9 + 1);
        e[1] = var_9;
        var_14(t,e);
        var_3(var_7);
      }
    }
    var_15(var_4);
    return t;
  }
  return (void *)0x0;
}


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

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

undefined4 MASKED(void)

{
  char *pcVar1;
  FILE *__stream;
  undefined4 uVar2;
  char *pcVar3;
  size_t sVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  
  pcVar1 = (char *)FUN_00074a80();
  __stream = fopen64(pcVar1,"r");
  FUN_00031580(pcVar1);
  if (__stream != (FILE *)0x0) {
    uVar2 = FUN_00050700(FUN_00075100);
    while( true ) {
      pcVar1 = (char *)FUN_00030ac0(__stream);
      if (pcVar1 == (char *)0x0) break;
      pcVar3 = strchr(pcVar1,0x3d);
      if (pcVar3 == (char *)0x0) {
        FUN_00031580(pcVar1);
      }
      else {
        *pcVar3 = '\0';
        sVar4 = strcspn(pcVar3 + 1,"\r\n");
        pcVar3[sVar4 + 1] = '\0';
        puVar5 = (undefined4 *)FUN_000313e0(1,8);
        uVar6 = FUN_00030420(pcVar1);
        *puVar5 = uVar6;
        uVar6 = FUN_00030420(pcVar3 + 1);
        puVar5[1] = uVar6;
        FUN_00053fe0(uVar2,puVar5);
        FUN_00031580(pcVar1);
      }
    }
    fclose(__stream);
    return uVar2;
  }
  return 0;
}

