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

ssh_gss_liblist * ssh_gss_setup(Conf *conf)

{
  int iVar1;
  ssh_gss_liblist *psVar2;
  ssh_gss_library *psVar3;
  void *pvVar4;
  Filename *pFVar5;
  char *pcVar6;
  
  psVar2 = (ssh_gss_liblist *)safemalloc(1,8);
  psVar3 = (ssh_gss_library *)safemalloc(4,0x54);
  psVar2->nlibraries = 0;
  psVar2->libraries = psVar3;
  pvVar4 = (void *)dlopen("libgssapi.so.2",1);
  if (pvVar4 != (void *)0x0) {
    iVar1 = psVar2->nlibraries;
    psVar2->nlibraries = iVar1 + 1;
    gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2");
  }
  pvVar4 = (void *)dlopen("libgssapi_krb5.so.2",1);
  if (pvVar4 != (void *)0x0) {
    iVar1 = psVar2->nlibraries;
    psVar2->nlibraries = iVar1 + 1;
    gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2");
  }
  pvVar4 = (void *)dlopen("libgss.so.1",1);
  if (pvVar4 != (void *)0x0) {
    iVar1 = psVar2->nlibraries;
    psVar2->nlibraries = iVar1 + 1;
    gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1");
  }
  pFVar5 = conf_get_filename(conf,0x2a);
  pcVar6 = pFVar5->path;
  if (*pcVar6 != '\0') {
    pvVar4 = (void *)dlopen(pcVar6,1);
    if (pvVar4 != (void *)0x0) {
      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);
      iVar1 = psVar2->nlibraries;
      psVar2->nlibraries = iVar1 + 1;
      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);
      return psVar2;
    }
  }
  return psVar2;
}



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

undefined4 * FUN_000657e0(undefined4 param_1)

{
  char *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  
  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);
  uVar3 = FUN_0001a9b0(4,0x54);
  puVar2[1] = 0;
  *puVar2 = uVar3;
  iVar4 = dlopen("libgssapi.so.2",1);
  if (iVar4 != 0) {
    puVar2[1] = puVar2[1] + 1;
    FUN_00065720("Using GSSAPI from libgssapi.so.2");
  }
  iVar4 = dlopen("libgssapi_krb5.so.2",1);
  if (iVar4 != 0) {
    puVar2[1] = puVar2[1] + 1;
    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");
  }
  iVar4 = dlopen("libgss.so.1",1);
  if (iVar4 != 0) {
    puVar2[1] = puVar2[1] + 1;
    FUN_00065720("Using GSSAPI from libgss.so.1");
  }
  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);
  pcVar1 = (char *)*puVar5;
  if (*pcVar1 != '\0') {
    iVar4 = dlopen(pcVar1,1);
    if (iVar4 != 0) {
      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);
      puVar2[1] = puVar2[1] + 1;
      FUN_00065720(uVar3);
      return puVar2;
    }
  }
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x445a7
SUB ESP,0x14
PUSH 0x8
PUSH 0x1
CALL 0x0001a9b0
MOV ESI,EAX
POP EAX
POP EDX
PUSH 0x54
PUSH 0x4
CALL 0x0001a9b0
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI],EAX
LEA EAX,[EBX + 0xfffd7577]
POP ECX
POP EDI
PUSH 0x1
PUSH EAX
CALL 0x00014710
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00065850
MOV ECX,dword ptr [ESI + 0x4]
MOV EDI,dword ptr [ESI]
SUB ESP,0xc
LEA EDX,[ECX + 0x1]
IMUL ECX,ECX,0x54
MOV dword ptr [ESI + 0x4],EDX
LEA EDX,[EBX + 0xfffd763c]
PUSH EDX
MOV EDX,EAX
ADD EDI,ECX
XOR ECX,ECX
MOV EAX,EDI
CALL 0x00065720
ADD ESP,0x10
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd7586]
PUSH 0x1
PUSH EAX
CALL 0x00014710
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00065893
MOV ECX,dword ptr [ESI + 0x4]
MOV EDI,dword ptr [ESI]
SUB ESP,0xc
LEA EDX,[ECX + 0x1]
IMUL ECX,ECX,0x54
MOV dword ptr [ESI + 0x4],EDX
LEA EDX,[EBX + 0xfffd7660]
PUSH EDX
MOV EDX,EAX
ADD EDI,ECX
MOV ECX,0x1
MOV EAX,EDI
CALL 0x00065720
ADD ESP,0x10
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd75ac]
PUSH 0x1
PUSH EAX
CALL 0x00014710
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000658d6
MOV ECX,dword ptr [ESI + 0x4]
MOV EDI,dword ptr [ESI]
SUB ESP,0xc
LEA EDX,[ECX + 0x1]
IMUL ECX,ECX,0x54
MOV dword ptr [ESI + 0x4],EDX
LEA EDX,[EBX + 0xfffd759a]
PUSH EDX
MOV EDX,EAX
ADD EDI,ECX
MOV ECX,0x2
MOV EAX,EDI
CALL 0x00065720
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x2a
PUSH dword ptr [ESP + 0x2c]
CALL 0x000178f0
ADD ESP,0x10
MOV EDI,dword ptr [EAX]
CMP byte ptr [EDI],0x0
JNZ 0x00065900
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x1
PUSH EDI
CALL 0x00014710
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000658ee
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd7688]
PUSH EDI
PUSH EAX
CALL 0x0001b020
MOV EDX,dword ptr [ESI + 0x4]
LEA ECX,[EDX + 0x1]
MOV dword ptr [ESI + 0x4],ECX
IMUL EDX,EDX,0x54
ADD EDX,dword ptr [ESI]
MOV ECX,0x3
MOV EBX,EDX
MOV dword ptr [ESP],EAX
MOV EDX,EBP
MOV EAX,EBX
CALL 0x00065720
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0xc
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_000657e0(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}\n\n" comment (function_definition "undefined4 * FUN_000657e0(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_000657e0(undefined4 param_1)" * (function_declarator "FUN_000657e0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)FUN_0001a9b0(1,8);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001a9b0(1,8)" identifier = (cast_expression "(undefined4 *)FUN_0001a9b0(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar3 = FUN_0001a9b0(4,0x54);" (assignment_expression "uVar3 = FUN_0001a9b0(4,0x54)" identifier = (call_expression "FUN_0001a9b0(4,0x54)" identifier (argument_list "(4,0x54)" ( number_literal , number_literal )))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "iVar4 = dlopen("libgssapi.so.2",1);" (assignment_expression "iVar4 = dlopen("libgssapi.so.2",1)" identifier = (call_expression "dlopen("libgssapi.so.2",1)" identifier (argument_list "("libgssapi.so.2",1)" ( (string_literal ""libgssapi.so.2"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }" { (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720("Using GSSAPI from libgssapi.so.2");" (call_expression "FUN_00065720("Using GSSAPI from libgssapi.so.2")" identifier (argument_list "("Using GSSAPI from libgssapi.so.2")" ( (string_literal ""Using GSSAPI from libgssapi.so.2"" " string_content ") ))) ;) })) (expression_statement "iVar4 = dlopen("libgssapi_krb5.so.2",1);" (assignment_expression "iVar4 = dlopen("libgssapi_krb5.so.2",1)" identifier = (call_expression "dlopen("libgssapi_krb5.so.2",1)" identifier (argument_list "("libgssapi_krb5.so.2",1)" ( (string_literal ""libgssapi_krb5.so.2"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }" { (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");" (call_expression "FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2")" identifier (argument_list "("Using GSSAPI from libgssapi_krb5.so.2")" ( (string_literal ""Using GSSAPI from libgssapi_krb5.so.2"" " string_content ") ))) ;) })) (expression_statement "iVar4 = dlopen("libgss.so.1",1);" (assignment_expression "iVar4 = dlopen("libgss.so.1",1)" identifier = (call_expression "dlopen("libgss.so.1",1)" identifier (argument_list "("libgss.so.1",1)" ( (string_literal ""libgss.so.1"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }" { (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720("Using GSSAPI from libgss.so.1");" (call_expression "FUN_00065720("Using GSSAPI from libgss.so.1")" identifier (argument_list "("Using GSSAPI from libgss.so.1")" ( (string_literal ""Using GSSAPI from libgss.so.1"" " string_content ") ))) ;) })) (expression_statement "puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);" (assignment_expression "puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a)" identifier = (cast_expression "(undefined4 *)FUN_000178f0(param_1,0x2a)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000178f0(param_1,0x2a)" identifier (argument_list "(param_1,0x2a)" ( identifier , number_literal ))))) ;) (expression_statement "pcVar1 = (char *)*puVar5;" (assignment_expression "pcVar1 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (if_statement "if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }" { (expression_statement "iVar4 = dlopen(pcVar1,1);" (assignment_expression "iVar4 = dlopen(pcVar1,1)" identifier = (call_expression "dlopen(pcVar1,1)" identifier (argument_list "(pcVar1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }" { (expression_statement "uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);" (assignment_expression "uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1)" identifier = (call_expression "FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1)" identifier (argument_list "("Using GSSAPI from user-specified library \'%s\'",pcVar1)" ( (string_literal ""Using GSSAPI from user-specified library \'%s\'"" " string_content escape_sequence string_content escape_sequence ") , identifier )))) ;) (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720(uVar3);" (call_expression "FUN_00065720(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return puVar2;" return identifier ;) })) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nssh_gss_liblist * ssh_gss_setup(Conf *conf)\n\n{\n  int iVar1;\n  ssh_gss_liblist *psVar2;\n  ssh_gss_library *psVar3;\n  void *pvVar4;\n  Filename *pFVar5;\n  char *pcVar6;\n  \n  psVar2 = (ssh_gss_liblist *)safemalloc(1,8);\n  psVar3 = (ssh_gss_library *)safemalloc(4,0x54);\n  psVar2->nlibraries = 0;\n  psVar2->libraries = psVar3;\n  pvVar4 = (void *)dlopen("libgssapi.so.2",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2");\n  }\n  pvVar4 = (void *)dlopen("libgssapi_krb5.so.2",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  pvVar4 = (void *)dlopen("libgss.so.1",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1");\n  }\n  pFVar5 = conf_get_filename(conf,0x2a);\n  pcVar6 = pFVar5->path;\n  if (*pcVar6 != '\0') {\n    pvVar4 = (void *)dlopen(pcVar6,1);\n    if (pvVar4 != (void *)0x0) {\n      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);\n      iVar1 = psVar2->nlibraries;\n      psVar2->nlibraries = iVar1 + 1;\n      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);\n      return psVar2;\n    }\n  }\n  return psVar2;\n}\n\n" comment comment (function_definition "ssh_gss_liblist * ssh_gss_setup(Conf *conf)\n\n{\n  int iVar1;\n  ssh_gss_liblist *psVar2;\n  ssh_gss_library *psVar3;\n  void *pvVar4;\n  Filename *pFVar5;\n  char *pcVar6;\n  \n  psVar2 = (ssh_gss_liblist *)safemalloc(1,8);\n  psVar3 = (ssh_gss_library *)safemalloc(4,0x54);\n  psVar2->nlibraries = 0;\n  psVar2->libraries = psVar3;\n  pvVar4 = (void *)dlopen("libgssapi.so.2",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2");\n  }\n  pvVar4 = (void *)dlopen("libgssapi_krb5.so.2",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  pvVar4 = (void *)dlopen("libgss.so.1",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1");\n  }\n  pFVar5 = conf_get_filename(conf,0x2a);\n  pcVar6 = pFVar5->path;\n  if (*pcVar6 != '\0') {\n    pvVar4 = (void *)dlopen(pcVar6,1);\n    if (pvVar4 != (void *)0x0) {\n      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);\n      iVar1 = psVar2->nlibraries;\n      psVar2->nlibraries = iVar1 + 1;\n      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);\n      return psVar2;\n    }\n  }\n  return psVar2;\n}" type_identifier (pointer_declarator "* ssh_gss_setup(Conf *conf)" * (function_declarator "ssh_gss_setup(Conf *conf)" identifier (parameter_list "(Conf *conf)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  ssh_gss_liblist *psVar2;\n  ssh_gss_library *psVar3;\n  void *pvVar4;\n  Filename *pFVar5;\n  char *pcVar6;\n  \n  psVar2 = (ssh_gss_liblist *)safemalloc(1,8);\n  psVar3 = (ssh_gss_library *)safemalloc(4,0x54);\n  psVar2->nlibraries = 0;\n  psVar2->libraries = psVar3;\n  pvVar4 = (void *)dlopen("libgssapi.so.2",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2");\n  }\n  pvVar4 = (void *)dlopen("libgssapi_krb5.so.2",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  pvVar4 = (void *)dlopen("libgss.so.1",1);\n  if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1");\n  }\n  pFVar5 = conf_get_filename(conf,0x2a);\n  pcVar6 = pFVar5->path;\n  if (*pcVar6 != '\0') {\n    pvVar4 = (void *)dlopen(pcVar6,1);\n    if (pvVar4 != (void *)0x0) {\n      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);\n      iVar1 = psVar2->nlibraries;\n      psVar2->nlibraries = iVar1 + 1;\n      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);\n      return psVar2;\n    }\n  }\n  return psVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ssh_gss_liblist *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "ssh_gss_library *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "Filename *pFVar5;" type_identifier (pointer_declarator "*pFVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "psVar2 = (ssh_gss_liblist *)safemalloc(1,8);" (assignment_expression "psVar2 = (ssh_gss_liblist *)safemalloc(1,8)" identifier = (cast_expression "(ssh_gss_liblist *)safemalloc(1,8)" ( (type_descriptor "ssh_gss_liblist *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "psVar3 = (ssh_gss_library *)safemalloc(4,0x54);" (assignment_expression "psVar3 = (ssh_gss_library *)safemalloc(4,0x54)" identifier = (cast_expression "(ssh_gss_library *)safemalloc(4,0x54)" ( (type_descriptor "ssh_gss_library *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(4,0x54)" identifier (argument_list "(4,0x54)" ( number_literal , number_literal ))))) ;) (expression_statement "psVar2->nlibraries = 0;" (assignment_expression "psVar2->nlibraries = 0" (field_expression "psVar2->nlibraries" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar2->libraries = psVar3;" (assignment_expression "psVar2->libraries = psVar3" (field_expression "psVar2->libraries" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar4 = (void *)dlopen("libgssapi.so.2",1);" (assignment_expression "pvVar4 = (void *)dlopen("libgssapi.so.2",1)" identifier = (cast_expression "(void *)dlopen("libgssapi.so.2",1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dlopen("libgssapi.so.2",1)" identifier (argument_list "("libgssapi.so.2",1)" ( (string_literal ""libgssapi.so.2"" " string_content ") , number_literal ))))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2");\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2");\n  }" { (expression_statement "iVar1 = psVar2->nlibraries;" (assignment_expression "iVar1 = psVar2->nlibraries" identifier = (field_expression "psVar2->nlibraries" identifier -> field_identifier)) ;) (expression_statement "psVar2->nlibraries = iVar1 + 1;" (assignment_expression "psVar2->nlibraries = iVar1 + 1" (field_expression "psVar2->nlibraries" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2");" (call_expression "gss_init(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2")" identifier (argument_list "(psVar2->libraries + iVar1,pvVar4,0,"Using GSSAPI from libgssapi.so.2")" ( (binary_expression "psVar2->libraries + iVar1" (field_expression "psVar2->libraries" identifier -> field_identifier) + identifier) , identifier , number_literal , (string_literal ""Using GSSAPI from libgssapi.so.2"" " string_content ") ))) ;) })) (expression_statement "pvVar4 = (void *)dlopen("libgssapi_krb5.so.2",1);" (assignment_expression "pvVar4 = (void *)dlopen("libgssapi_krb5.so.2",1)" identifier = (cast_expression "(void *)dlopen("libgssapi_krb5.so.2",1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dlopen("libgssapi_krb5.so.2",1)" identifier (argument_list "("libgssapi_krb5.so.2",1)" ( (string_literal ""libgssapi_krb5.so.2"" " string_content ") , number_literal ))))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2");\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2");\n  }" { (expression_statement "iVar1 = psVar2->nlibraries;" (assignment_expression "iVar1 = psVar2->nlibraries" identifier = (field_expression "psVar2->nlibraries" identifier -> field_identifier)) ;) (expression_statement "psVar2->nlibraries = iVar1 + 1;" (assignment_expression "psVar2->nlibraries = iVar1 + 1" (field_expression "psVar2->nlibraries" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2");" (call_expression "gss_init(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2")" identifier (argument_list "(psVar2->libraries + iVar1,pvVar4,1,"Using GSSAPI from libgssapi_krb5.so.2")" ( (binary_expression "psVar2->libraries + iVar1" (field_expression "psVar2->libraries" identifier -> field_identifier) + identifier) , identifier , number_literal , (string_literal ""Using GSSAPI from libgssapi_krb5.so.2"" " string_content ") ))) ;) })) (expression_statement "pvVar4 = (void *)dlopen("libgss.so.1",1);" (assignment_expression "pvVar4 = (void *)dlopen("libgss.so.1",1)" identifier = (cast_expression "(void *)dlopen("libgss.so.1",1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dlopen("libgss.so.1",1)" identifier (argument_list "("libgss.so.1",1)" ( (string_literal ""libgss.so.1"" " string_content ") , number_literal ))))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1");\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = psVar2->nlibraries;\n    psVar2->nlibraries = iVar1 + 1;\n    gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1");\n  }" { (expression_statement "iVar1 = psVar2->nlibraries;" (assignment_expression "iVar1 = psVar2->nlibraries" identifier = (field_expression "psVar2->nlibraries" identifier -> field_identifier)) ;) (expression_statement "psVar2->nlibraries = iVar1 + 1;" (assignment_expression "psVar2->nlibraries = iVar1 + 1" (field_expression "psVar2->nlibraries" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1");" (call_expression "gss_init(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1")" identifier (argument_list "(psVar2->libraries + iVar1,pvVar4,2,"Using GSSAPI from libgss.so.1")" ( (binary_expression "psVar2->libraries + iVar1" (field_expression "psVar2->libraries" identifier -> field_identifier) + identifier) , identifier , number_literal , (string_literal ""Using GSSAPI from libgss.so.1"" " string_content ") ))) ;) })) (expression_statement "pFVar5 = conf_get_filename(conf,0x2a);" (assignment_expression "pFVar5 = conf_get_filename(conf,0x2a)" identifier = (call_expression "conf_get_filename(conf,0x2a)" identifier (argument_list "(conf,0x2a)" ( identifier , number_literal )))) ;) (expression_statement "pcVar6 = pFVar5->path;" (assignment_expression "pcVar6 = pFVar5->path" identifier = (field_expression "pFVar5->path" identifier -> field_identifier)) ;) (if_statement "if (*pcVar6 != '\0') {\n    pvVar4 = (void *)dlopen(pcVar6,1);\n    if (pvVar4 != (void *)0x0) {\n      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);\n      iVar1 = psVar2->nlibraries;\n      psVar2->nlibraries = iVar1 + 1;\n      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);\n      return psVar2;\n    }\n  }" if (parenthesized_expression "(*pcVar6 != '\0')" ( (binary_expression "*pcVar6 != '\0'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pvVar4 = (void *)dlopen(pcVar6,1);\n    if (pvVar4 != (void *)0x0) {\n      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);\n      iVar1 = psVar2->nlibraries;\n      psVar2->nlibraries = iVar1 + 1;\n      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);\n      return psVar2;\n    }\n  }" { (expression_statement "pvVar4 = (void *)dlopen(pcVar6,1);" (assignment_expression "pvVar4 = (void *)dlopen(pcVar6,1)" identifier = (cast_expression "(void *)dlopen(pcVar6,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dlopen(pcVar6,1)" identifier (argument_list "(pcVar6,1)" ( identifier , number_literal ))))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);\n      iVar1 = psVar2->nlibraries;\n      psVar2->nlibraries = iVar1 + 1;\n      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);\n      return psVar2;\n    }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);\n      iVar1 = psVar2->nlibraries;\n      psVar2->nlibraries = iVar1 + 1;\n      gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);\n      return psVar2;\n    }" { (expression_statement "pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6);" (assignment_expression "pcVar6 = dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6)" identifier = (call_expression "dupprintf("Using GSSAPI from user-specified library \'%s\'",pcVar6)" identifier (argument_list "("Using GSSAPI from user-specified library \'%s\'",pcVar6)" ( (string_literal ""Using GSSAPI from user-specified library \'%s\'"" " string_content escape_sequence string_content escape_sequence ") , identifier )))) ;) (expression_statement "iVar1 = psVar2->nlibraries;" (assignment_expression "iVar1 = psVar2->nlibraries" identifier = (field_expression "psVar2->nlibraries" identifier -> field_identifier)) ;) (expression_statement "psVar2->nlibraries = iVar1 + 1;" (assignment_expression "psVar2->nlibraries = iVar1 + 1" (field_expression "psVar2->nlibraries" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6);" (call_expression "gss_init(psVar2->libraries + iVar1,pvVar4,3,pcVar6)" identifier (argument_list "(psVar2->libraries + iVar1,pvVar4,3,pcVar6)" ( (binary_expression "psVar2->libraries + iVar1" (field_expression "psVar2->libraries" identifier -> field_identifier) + identifier) , identifier , number_literal , identifier ))) ;) (return_statement "return psVar2;" return identifier ;) })) })) (return_statement "return psVar2;" return identifier ;) })))
(translation_unit "undefined4 * FUN_000657e0(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined4 * FUN_000657e0(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_000657e0(undefined4 param_1)" * (function_declarator "FUN_000657e0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)FUN_0001a9b0(1,8);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001a9b0(1,8)" identifier = (cast_expression "(undefined4 *)FUN_0001a9b0(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar3 = FUN_0001a9b0(4,0x54);" (assignment_expression "uVar3 = FUN_0001a9b0(4,0x54)" identifier = (call_expression "FUN_0001a9b0(4,0x54)" identifier (argument_list "(4,0x54)" ( number_literal , number_literal )))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "iVar4 = dlopen("libgssapi.so.2",1);" (assignment_expression "iVar4 = dlopen("libgssapi.so.2",1)" identifier = (call_expression "dlopen("libgssapi.so.2",1)" identifier (argument_list "("libgssapi.so.2",1)" ( (string_literal ""libgssapi.so.2"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }" { (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720("Using GSSAPI from libgssapi.so.2");" (call_expression "FUN_00065720("Using GSSAPI from libgssapi.so.2")" identifier (argument_list "("Using GSSAPI from libgssapi.so.2")" ( (string_literal ""Using GSSAPI from libgssapi.so.2"" " string_content ") ))) ;) })) (expression_statement "iVar4 = dlopen("libgssapi_krb5.so.2",1);" (assignment_expression "iVar4 = dlopen("libgssapi_krb5.so.2",1)" identifier = (call_expression "dlopen("libgssapi_krb5.so.2",1)" identifier (argument_list "("libgssapi_krb5.so.2",1)" ( (string_literal ""libgssapi_krb5.so.2"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }" { (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");" (call_expression "FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2")" identifier (argument_list "("Using GSSAPI from libgssapi_krb5.so.2")" ( (string_literal ""Using GSSAPI from libgssapi_krb5.so.2"" " string_content ") ))) ;) })) (expression_statement "iVar4 = dlopen("libgss.so.1",1);" (assignment_expression "iVar4 = dlopen("libgss.so.1",1)" identifier = (call_expression "dlopen("libgss.so.1",1)" identifier (argument_list "("libgss.so.1",1)" ( (string_literal ""libgss.so.1"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }" { (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720("Using GSSAPI from libgss.so.1");" (call_expression "FUN_00065720("Using GSSAPI from libgss.so.1")" identifier (argument_list "("Using GSSAPI from libgss.so.1")" ( (string_literal ""Using GSSAPI from libgss.so.1"" " string_content ") ))) ;) })) (expression_statement "puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);" (assignment_expression "puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a)" identifier = (cast_expression "(undefined4 *)FUN_000178f0(param_1,0x2a)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000178f0(param_1,0x2a)" identifier (argument_list "(param_1,0x2a)" ( identifier , number_literal ))))) ;) (expression_statement "pcVar1 = (char *)*puVar5;" (assignment_expression "pcVar1 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (if_statement "if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }" { (expression_statement "iVar4 = dlopen(pcVar1,1);" (assignment_expression "iVar4 = dlopen(pcVar1,1)" identifier = (call_expression "dlopen(pcVar1,1)" identifier (argument_list "(pcVar1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }" { (expression_statement "uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);" (assignment_expression "uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1)" identifier = (call_expression "FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1)" identifier (argument_list "("Using GSSAPI from user-specified library \'%s\'",pcVar1)" ( (string_literal ""Using GSSAPI from user-specified library \'%s\'"" " string_content escape_sequence string_content escape_sequence ") , identifier )))) ;) (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_00065720(uVar3);" (call_expression "FUN_00065720(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return puVar2;" return identifier ;) })) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 ( LIT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence ") , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_000657e0(undefined4 param_1)\n\n{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_000657e0(undefined4 param_1)" (* "*") (function_declarator "FUN_000657e0(undefined4 param_1)" (identifier "FUN_000657e0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);\n  uVar3 = FUN_0001a9b0(4,0x54);\n  puVar2[1] = 0;\n  *puVar2 = uVar3;\n  iVar4 = dlopen("libgssapi.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }\n  iVar4 = dlopen("libgssapi_krb5.so.2",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }\n  iVar4 = dlopen("libgss.so.1",1);\n  if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }\n  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);\n  pcVar1 = (char *)*puVar5;\n  if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }\n  return puVar2;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar2 = (undefined4 *)FUN_0001a9b0(1,8);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001a9b0(1,8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0001a9b0(1,8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a9b0(1,8)" (identifier "FUN_0001a9b0") (argument_list "(1,8)" (( "(") (number_literal "1") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "uVar3 = FUN_0001a9b0(4,0x54);" (assignment_expression "uVar3 = FUN_0001a9b0(4,0x54)" (identifier "uVar3") (= "=") (call_expression "FUN_0001a9b0(4,0x54)" (identifier "FUN_0001a9b0") (argument_list "(4,0x54)" (( "(") (number_literal "4") (, ",") (number_literal "0x54") () ")")))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar4 = dlopen("libgssapi.so.2",1);" (assignment_expression "iVar4 = dlopen("libgssapi.so.2",1)" (identifier "iVar4") (= "=") (call_expression "dlopen("libgssapi.so.2",1)" (identifier "dlopen") (argument_list "("libgssapi.so.2",1)" (( "(") (string_literal ""libgssapi.so.2"" (" """) (string_content "libgssapi.so.2") (" """)) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi.so.2");\n  }" ({ "{") (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00065720("Using GSSAPI from libgssapi.so.2");" (call_expression "FUN_00065720("Using GSSAPI from libgssapi.so.2")" (identifier "FUN_00065720") (argument_list "("Using GSSAPI from libgssapi.so.2")" (( "(") (string_literal ""Using GSSAPI from libgssapi.so.2"" (" """) (string_content "Using GSSAPI from libgssapi.so.2") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = dlopen("libgssapi_krb5.so.2",1);" (assignment_expression "iVar4 = dlopen("libgssapi_krb5.so.2",1)" (identifier "iVar4") (= "=") (call_expression "dlopen("libgssapi_krb5.so.2",1)" (identifier "dlopen") (argument_list "("libgssapi_krb5.so.2",1)" (( "(") (string_literal ""libgssapi_krb5.so.2"" (" """) (string_content "libgssapi_krb5.so.2") (" """)) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");\n  }" ({ "{") (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");" (call_expression "FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2")" (identifier "FUN_00065720") (argument_list "("Using GSSAPI from libgssapi_krb5.so.2")" (( "(") (string_literal ""Using GSSAPI from libgssapi_krb5.so.2"" (" """) (string_content "Using GSSAPI from libgssapi_krb5.so.2") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = dlopen("libgss.so.1",1);" (assignment_expression "iVar4 = dlopen("libgss.so.1",1)" (identifier "iVar4") (= "=") (call_expression "dlopen("libgss.so.1",1)" (identifier "dlopen") (argument_list "("libgss.so.1",1)" (( "(") (string_literal ""libgss.so.1"" (" """) (string_content "libgss.so.1") (" """)) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2[1] = puVar2[1] + 1;\n    FUN_00065720("Using GSSAPI from libgss.so.1");\n  }" ({ "{") (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00065720("Using GSSAPI from libgss.so.1");" (call_expression "FUN_00065720("Using GSSAPI from libgss.so.1")" (identifier "FUN_00065720") (argument_list "("Using GSSAPI from libgss.so.1")" (( "(") (string_literal ""Using GSSAPI from libgss.so.1"" (" """) (string_content "Using GSSAPI from libgss.so.1") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);" (assignment_expression "puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)FUN_000178f0(param_1,0x2a)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000178f0(param_1,0x2a)" (identifier "FUN_000178f0") (argument_list "(param_1,0x2a)" (( "(") (identifier "param_1") (, ",") (number_literal "0x2a") () ")"))))) (; ";")) (expression_statement "pcVar1 = (char *)*puVar5;" (assignment_expression "pcVar1 = (char *)*puVar5" (identifier "pcVar1") (= "=") (cast_expression "(char *)*puVar5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (if_statement "if (*pcVar1 != '\0') {\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }" (if "if") (parenthesized_expression "(*pcVar1 != '\0')" (( "(") (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar4 = dlopen(pcVar1,1);\n    if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }\n  }" ({ "{") (expression_statement "iVar4 = dlopen(pcVar1,1);" (assignment_expression "iVar4 = dlopen(pcVar1,1)" (identifier "iVar4") (= "=") (call_expression "dlopen(pcVar1,1)" (identifier "dlopen") (argument_list "(pcVar1,1)" (( "(") (identifier "pcVar1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);\n      puVar2[1] = puVar2[1] + 1;\n      FUN_00065720(uVar3);\n      return puVar2;\n    }" ({ "{") (expression_statement "uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);" (assignment_expression "uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1)" (identifier "uVar3") (= "=") (call_expression "FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1)" (identifier "FUN_0001b020") (argument_list "("Using GSSAPI from user-specified library \'%s\'",pcVar1)" (( "(") (string_literal ""Using GSSAPI from user-specified library \'%s\'"" (" """) (string_content "Using GSSAPI from user-specified library ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """)) (, ",") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "puVar2[1] = puVar2[1] + 1;" (assignment_expression "puVar2[1] = puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar2[1] + 1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00065720(uVar3);" (call_expression "FUN_00065720(uVar3)" (identifier "FUN_00065720") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *conf)

{
  int var_4;
  type_1 *psVar2;
  type_3 *psVar3;
  void *var_3;
  type_4 *pFVar5;
  char *pcVar6;
  
  psVar2 = (type_1 *)var_1(1,8);
  psVar3 = (type_3 *)var_1(4,0x54);
  psVar2->nlibraries = 0;
  psVar2->libraries = psVar3;
  var_3 = (void *)var_2("libgssapi.so.2",1);
  if (var_3 != (void *)0x0) {
    var_4 = psVar2->nlibraries;
    psVar2->nlibraries = var_4 + 1;
    var_5(psVar2->libraries + var_4,var_3,0,"Using GSSAPI from libgssapi.so.2");
  }
  var_3 = (void *)var_2("libgssapi_krb5.so.2",1);
  if (var_3 != (void *)0x0) {
    var_4 = psVar2->nlibraries;
    psVar2->nlibraries = var_4 + 1;
    var_5(psVar2->libraries + var_4,var_3,1,"Using GSSAPI from libgssapi_krb5.so.2");
  }
  var_3 = (void *)var_2("libgss.so.1",1);
  if (var_3 != (void *)0x0) {
    var_4 = psVar2->nlibraries;
    psVar2->nlibraries = var_4 + 1;
    var_5(psVar2->libraries + var_4,var_3,2,"Using GSSAPI from libgss.so.1");
  }
  pFVar5 = var_6(conf,0x2a);
  pcVar6 = pFVar5->path;
  if (*pcVar6 != '\0') {
    var_3 = (void *)var_2(pcVar6,1);
    if (var_3 != (void *)0x0) {
      pcVar6 = var_7("Using GSSAPI from user-specified library \'%s\'",pcVar6);
      var_4 = psVar2->nlibraries;
      psVar2->nlibraries = var_4 + 1;
      var_5(psVar2->libraries + var_4,var_3,3,pcVar6);
      return psVar2;
    }
  }
  return psVar2;
}


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

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

undefined4 * MASKED(undefined4 param_1)

{
  char *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  
  puVar2 = (undefined4 *)FUN_0001a9b0(1,8);
  uVar3 = FUN_0001a9b0(4,0x54);
  puVar2[1] = 0;
  *puVar2 = uVar3;
  iVar4 = dlopen("libgssapi.so.2",1);
  if (iVar4 != 0) {
    puVar2[1] = puVar2[1] + 1;
    FUN_00065720("Using GSSAPI from libgssapi.so.2");
  }
  iVar4 = dlopen("libgssapi_krb5.so.2",1);
  if (iVar4 != 0) {
    puVar2[1] = puVar2[1] + 1;
    FUN_00065720("Using GSSAPI from libgssapi_krb5.so.2");
  }
  iVar4 = dlopen("libgss.so.1",1);
  if (iVar4 != 0) {
    puVar2[1] = puVar2[1] + 1;
    FUN_00065720("Using GSSAPI from libgss.so.1");
  }
  puVar5 = (undefined4 *)FUN_000178f0(param_1,0x2a);
  pcVar1 = (char *)*puVar5;
  if (*pcVar1 != '\0') {
    iVar4 = dlopen(pcVar1,1);
    if (iVar4 != 0) {
      uVar3 = FUN_0001b020("Using GSSAPI from user-specified library \'%s\'",pcVar1);
      puVar2[1] = puVar2[1] + 1;
      FUN_00065720(uVar3);
      return puVar2;
    }
  }
  return puVar2;
}

