
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void ssh_reconfig(void *handle,Conf *conf)

{
  int iVar1;
  int iVar2;
  char *bs;
  ulong uVar3;
  int iVar4;
  Conf *pCVar5;
  ulong uVar6;
  char *vin;
  bool bVar7;
  
  pinger_reconfig(*(Pinger *)((int)handle + 0x680),*(Conf **)((int)handle + 0x248),conf);
  if (*(int *)((int)handle + 0x140) != 0) {
    ssh_setup_portfwd((Ssh_conflict)handle,conf);
  }
  iVar1 = conf_get_int(conf,0x1a);
  iVar2 = conf_get_int(*(Conf **)((int)handle + 0x248),0x1a);
  if ((iVar1 == 0) || (iVar2 == iVar1)) {
    vin = (char *)0x0;
  }
  else {
    iVar2 = *(int *)((int)handle + 0x69c);
    vin = "timeout shortened";
    uVar6 = getticks();
    if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {
      vin = (char *)0x0;
      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);
      *(ulong *)((int)handle + 0x698) = uVar6;
    }
  }
  uVar6 = *(ulong *)((int)handle + 0x690);
  bs = conf_get_str(*(Conf **)((int)handle + 0x248),0x1b);
  uVar3 = parse_blocksize(bs);
  *(ulong *)((int)handle + 0x690) = uVar3;
  if (((uVar3 != 0) && (uVar3 != uVar6)) &&
     ((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))))) {
    vin = "data limit lowered";
  }
  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x17);
  iVar2 = conf_get_int(conf,0x17);
  bVar7 = iVar1 != iVar2;
  if (bVar7) {
    vin = "compression setting changed";
  }
  iVar1 = 0;
  do {
    iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1);
    iVar4 = conf_get_int_int(conf,0x1f,iVar1);
    if (iVar2 != iVar4) {
      vin = "cipher settings changed";
      bVar7 = true;
    }
    iVar1 = iVar1 + 1;
  } while (iVar1 != 7);
  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x22);
  iVar2 = conf_get_int(conf,0x22);
  if (iVar1 == iVar2) {
    conf_free(*(Conf **)((int)handle + 0x248));
    pCVar5 = conf_copy(conf);
    *(Conf **)((int)handle + 0x248) = pCVar5;
    iVar1 = conf_get_int(pCVar5,0x7c);
    *(int *)((int)handle + 0x24c) = iVar1;
    if (*(int *)((int)handle + 0xec) != 0) {
      return;
    }
    if (vin == (char *)0x0) {
      return;
    }
    if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;
    if (!bVar7) {
      return;
    }
  }
  else {
    conf_free(*(Conf **)((int)handle + 0x248));
    pCVar5 = conf_copy(conf);
    *(Conf **)((int)handle + 0x248) = pCVar5;
    iVar1 = conf_get_int(pCVar5,0x7c);
    *(int *)((int)handle + 0x24c) = iVar1;
    if (*(int *)((int)handle + 0xec) != 0) {
      return;
    }
    vin = "cipher settings changed";
    if (*(int *)((int)handle + 0x694) == 0) {
LAB_000465e8:
      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);
      return;
    }
  }
  *(char **)((int)handle + 0x6a0) = vin;
  return;
}



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

void FUN_00046320(int param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  uint uVar4;
  int iVar5;
  char *pcVar6;
  uint uVar7;
  
  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);
  if (*(int *)(param_1 + 0x140) != 0) {
    FUN_00040710();
  }
  iVar1 = FUN_0001a000(param_2,0x1a);
  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);
  if ((iVar1 == 0) || (iVar2 == iVar1)) {
    pcVar6 = (char *)0x0;
  }
  else {
    iVar2 = *(int *)(param_1 + 0x69c);
    pcVar6 = "timeout shortened";
    iVar5 = FUN_0007d020(iVar2);
    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {
      pcVar6 = (char *)0x0;
      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);
      *(undefined4 *)(param_1 + 0x698) = uVar3;
    }
  }
  uVar7 = *(uint *)(param_1 + 0x690);
  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);
  uVar4 = FUN_0001e500(uVar3);
  *(uint *)(param_1 + 0x690) = uVar4;
  if (((uVar4 != 0) && (uVar4 != uVar7)) &&
     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {
    pcVar6 = "data limit lowered";
  }
  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);
  iVar2 = FUN_0001a000(param_2,0x17);
  if (iVar1 != iVar2) {
    pcVar6 = "compression setting changed";
  }
  uVar7 = (uint)(iVar1 != iVar2);
  iVar1 = 0;
  do {
    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);
    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);
    if (iVar2 != iVar5) {
      pcVar6 = "cipher settings changed";
      uVar7 = 1;
    }
    iVar1 = iVar1 + 1;
  } while (iVar1 != 7);
  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);
  iVar2 = FUN_0001a000(param_2,0x22);
  if (iVar1 == iVar2) {
    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));
    uVar3 = FUN_00019fc0(param_2);
    *(undefined4 *)(param_1 + 0x248) = uVar3;
    uVar3 = FUN_0001a000(uVar3,0x7c);
    *(undefined4 *)(param_1 + 0x24c) = uVar3;
    if (*(int *)(param_1 + 0xec) != 0) {
      return;
    }
    if (pcVar6 == (char *)0x0) {
      return;
    }
    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;
    if (uVar7 == 0) {
      return;
    }
  }
  else {
    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));
    uVar3 = FUN_00019fc0(param_2);
    *(undefined4 *)(param_1 + 0x248) = uVar3;
    uVar3 = FUN_0001a000(uVar3,0x7c);
    *(undefined4 *)(param_1 + 0x24c) = uVar3;
    if (*(int *)(param_1 + 0xec) != 0) {
      return;
    }
    pcVar6 = "cipher settings changed";
    if (*(int *)(param_1 + 0x694) == 0) {
LAB_000465e8:
      FUN_00036f20();
      return;
    }
  }
  *(char **)(param_1 + 0x6a0) = pcVar6;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015ff0
ADD EBX,0x80a47
SUB ESP,0x20
MOV EAX,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x8],EAX
MOV ESI,EAX
PUSH EAX
PUSH dword ptr [EDI + 0x248]
PUSH dword ptr [EDI + 0x680]
CALL 0x00020a60
MOV ECX,dword ptr [EDI + 0x140]
ADD ESP,0x10
TEST ECX,ECX
JZ 0x00046368
MOV EDX,ESI
MOV EAX,EDI
CALL 0x00040710
SUB ESP,0x8
PUSH 0x1a
PUSH dword ptr [ESP + 0x10]
CALL 0x0001a000
MOV ESI,EAX
POP EAX
POP EDX
PUSH 0x1a
PUSH dword ptr [EDI + 0x248]
CALL 0x0001a000
ADD ESP,0x10
TEST ESI,ESI
JZ 0x00046396
CMP EAX,ESI
JNZ 0x00046510
XOR EBP,EBP
SUB ESP,0x8
MOV ESI,dword ptr [EDI + 0x690]
PUSH 0x1b
PUSH dword ptr [EDI + 0x248]
CALL 0x0001a1b0
MOV dword ptr [ESP],EAX
CALL 0x0001e500
ADD ESP,0x10
MOV dword ptr [EDI + 0x690],EAX
TEST EAX,EAX
JZ 0x000463cb
CMP EAX,ESI
JNZ 0x000464f0
SUB ESP,0x8
PUSH 0x17
PUSH dword ptr [EDI + 0x248]
CALL 0x0001a000
POP ECX
MOV ESI,EAX
POP EAX
PUSH 0x17
PUSH dword ptr [ESP + 0x10]
CALL 0x0001a000
ADD ESP,0x10
MOV dword ptr [ESP],0x0
CMP ESI,EAX
JZ 0x00046405
MOV dword ptr [ESP],0x1
LEA EBP,[EBX + 0xfffc7326]
LEA EAX,[EBX + 0xfffc7342]
XOR ESI,ESI
MOV dword ptr [ESP + 0x8],EDI
MOV dword ptr [ESP + 0xc],EAX
MOV EDI,ESI
LEA ESI,[ESI]
NOP
SUB ESP,0x4
PUSH EDI
PUSH 0x1f
MOV EAX,dword ptr [ESP + 0x14]
PUSH dword ptr [EAX + 0x248]
CALL 0x0001a0d0
ADD ESP,0xc
PUSH EDI
MOV ESI,EAX
PUSH 0x1f
PUSH dword ptr [ESP + 0x10]
CALL 0x0001a0d0
ADD ESP,0x10
CMP ESI,EAX
MOV EAX,0x1
CMOVZ EAX,dword ptr [ESP]
CMOVNZ EBP,dword ptr [ESP + 0xc]
ADD EDI,0x1
MOV dword ptr [ESP],EAX
CMP EDI,0x7
JNZ 0x00046420
MOV EDI,dword ptr [ESP + 0x8]
SUB ESP,0x8
PUSH 0x22
PUSH dword ptr [EDI + 0x248]
CALL 0x0001a000
MOV ESI,EAX
POP EAX
POP EDX
PUSH 0x22
PUSH dword ptr [ESP + 0x10]
CALL 0x0001a000
ADD ESP,0x10
CMP ESI,EAX
JZ 0x00046568
SUB ESP,0xc
PUSH dword ptr [EDI + 0x248]
CALL 0x00019cf0
POP EDX
PUSH dword ptr [ESP + 0x10]
CALL 0x00019fc0
MOV dword ptr [EDI + 0x248],EAX
POP ECX
POP ESI
PUSH 0x7c
PUSH EAX
CALL 0x0001a000
MOV EBP,dword ptr [EDI + 0xec]
ADD ESP,0x10
MOV dword ptr [EDI + 0x24c],EAX
TEST EBP,EBP
JNZ 0x000464e7
MOV EAX,dword ptr [EDI + 0x694]
LEA EBP,[EBX + 0xfffc7342]
TEST EAX,EAX
JZ 0x000465e8
MOV dword ptr [EDI + 0x6a0],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,dword ptr [EDI + 0x688]
JNC 0x000465d0
LEA EBP,[EBX + 0xfffc7313]
JMP 0x000463cb
MOV EAX,dword ptr [EDI + 0x69c]
IMUL ESI,ESI,0xea60
LEA EBP,[EBX + 0xfffc7301]
MOV dword ptr [ESP],EAX
CALL 0x0007d020
MOV ECX,EAX
SUB ECX,dword ptr [EDI + 0x69c]
CMP ESI,ECX
JC 0x00046398
SUB ESP,0x4
LEA ECX,[EBX + 0xfff7f050]
XOR EBP,EBP
PUSH EDI
PUSH ECX
ADD ESI,dword ptr [ESP + 0xc]
SUB ESI,EAX
PUSH ESI
CALL 0x00076360
ADD ESP,0x10
MOV dword ptr [EDI + 0x698],EAX
JMP 0x00046398
SUB ESP,0xc
PUSH dword ptr [EDI + 0x248]
CALL 0x00019cf0
POP EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x00019fc0
MOV dword ptr [EDI + 0x248],EAX
POP EDX
POP ECX
PUSH 0x7c
PUSH EAX
CALL 0x0001a000
MOV EBX,dword ptr [EDI + 0xec]
ADD ESP,0x10
MOV dword ptr [EDI + 0x24c],EAX
TEST EBX,EBX
JNZ 0x000464e7
TEST EBP,EBP
JZ 0x000464e7
MOV EAX,dword ptr [EDI + 0x694]
TEST EAX,EAX
JZ 0x000465e8
MOV EAX,dword ptr [ESP]
TEST EAX,EAX
JZ 0x000464e7
JMP 0x000464e1
CMP EAX,dword ptr [EDI + 0x684]
JC 0x000464fc
JMP 0x000463cb
MOV dword ptr [ESP + 0x30],0x0
ADD ESP,0x1c
MOV EDX,EBP
MOV EAX,EDI
POP EBX
MOV ECX,0xffffffff
POP ESI
POP EDI
POP EBP
JMP 0x00036f20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00046320(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}\n\n" comment (function_definition "void FUN_00046320(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}" primitive_type (function_declarator "FUN_00046320(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);" (call_expression "FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x680)" * (cast_expression "(undefined4 *)(param_1 + 0x680)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x680)" ( (binary_expression "param_1 + 0x680" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x140) != 0)" ( (binary_expression "*(int *)(param_1 + 0x140) != 0" (pointer_expression "*(int *)(param_1 + 0x140)" * (cast_expression "(int *)(param_1 + 0x140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00040710();\n  }" { (expression_statement "FUN_00040710();" (call_expression "FUN_00040710()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = FUN_0001a000(param_2,0x1a);" (assignment_expression "iVar1 = FUN_0001a000(param_2,0x1a)" identifier = (call_expression "FUN_0001a000(param_2,0x1a)" identifier (argument_list "(param_2,0x1a)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);" (assignment_expression "iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a)" identifier = (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1a)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) || (iVar2 == iVar1))" ( (binary_expression "(iVar1 == 0) || (iVar2 == iVar1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 == iVar1)" ( (binary_expression "iVar2 == iVar1" identifier == identifier) ))) )) (compound_statement "{\n    pcVar6 = (char *)0x0;\n  }" { (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x69c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x69c)" identifier = (pointer_expression "*(int *)(param_1 + 0x69c)" * (cast_expression "(int *)(param_1 + 0x69c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x69c)" ( (binary_expression "param_1 + 0x69c" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = "timeout shortened";" (assignment_expression "pcVar6 = "timeout shortened"" identifier = (string_literal ""timeout shortened"" " string_content ")) ;) (expression_statement "iVar5 = FUN_0007d020(iVar2);" (assignment_expression "iVar5 = FUN_0007d020(iVar2)" identifier = (call_expression "FUN_0007d020(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }" if (parenthesized_expression "((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000))" ( (binary_expression "(uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)" (call_expression "(uint)(iVar5 - *(int *)(param_1 + 0x69c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 - *(int *)(param_1 + 0x69c))" ( (binary_expression "iVar5 - *(int *)(param_1 + 0x69c)" identifier - (pointer_expression "*(int *)(param_1 + 0x69c)" * (cast_expression "(int *)(param_1 + 0x69c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x69c)" ( (binary_expression "param_1 + 0x69c" identifier + number_literal) ))))) ))) <= (call_expression "(uint)(iVar1 * 60000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 * 60000)" ( (binary_expression "iVar1 * 60000" identifier * number_literal) )))) )) (compound_statement "{\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }" { (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);" (assignment_expression "uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" identifier = (call_expression "FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" identifier (argument_list "((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" ( (binary_expression "(iVar1 * 60000 + iVar2) - iVar5" (parenthesized_expression "(iVar1 * 60000 + iVar2)" ( (binary_expression "iVar1 * 60000 + iVar2" (binary_expression "iVar1 * 60000" identifier * number_literal) + identifier) )) - identifier) , identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x698) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x698) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x698)" * (cast_expression "(undefined4 *)(param_1 + 0x698)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x698)" ( (binary_expression "param_1 + 0x698" identifier + number_literal) )))) = identifier) ;) })) }))) (expression_statement "uVar7 = *(uint *)(param_1 + 0x690);" (assignment_expression "uVar7 = *(uint *)(param_1 + 0x690)" identifier = (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);" (assignment_expression "uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b)" identifier = (call_expression "FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1b)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar4 = FUN_0001e500(uVar3);" (assignment_expression "uVar4 = FUN_0001e500(uVar3)" identifier = (call_expression "FUN_0001e500(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "*(uint *)(param_1 + 0x690) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x690) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }" if (parenthesized_expression "(((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684)))))" ( (binary_expression "((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))" (parenthesized_expression "((uVar4 != 0) && (uVar4 != uVar7))" ( (binary_expression "(uVar4 != 0) && (uVar4 != uVar7)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar4 != uVar7)" ( (binary_expression "uVar4 != uVar7" identifier != identifier) ))) )) && (parenthesized_expression "((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))" ( (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684)))" ( (binary_expression "uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))" (binary_expression "uVar4 < *(uint *)(param_1 + 0x688)" identifier < (pointer_expression "*(uint *)(param_1 + 0x688)" * (cast_expression "(uint *)(param_1 + 0x688)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) ))))) || (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x684))" ( (binary_expression "uVar4 < *(uint *)(param_1 + 0x684)" identifier < (pointer_expression "*(uint *)(param_1 + 0x684)" * (cast_expression "(uint *)(param_1 + 0x684)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x684)" ( (binary_expression "param_1 + 0x684" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n    pcVar6 = "data limit lowered";\n  }" { (expression_statement "pcVar6 = "data limit lowered";" (assignment_expression "pcVar6 = "data limit lowered"" identifier = (string_literal ""data limit lowered"" " string_content ")) ;) })) (expression_statement "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);" (assignment_expression "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17)" identifier = (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x17)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = FUN_0001a000(param_2,0x17);" (assignment_expression "iVar2 = FUN_0001a000(param_2,0x17)" identifier = (call_expression "FUN_0001a000(param_2,0x17)" identifier (argument_list "(param_2,0x17)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }" if (parenthesized_expression "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) )) (compound_statement "{\n    pcVar6 = "compression setting changed";\n  }" { (expression_statement "pcVar6 = "compression setting changed";" (assignment_expression "pcVar6 = "compression setting changed"" identifier = (string_literal ""compression setting changed"" " string_content ")) ;) })) (expression_statement "uVar7 = (uint)(iVar1 != iVar2);" (assignment_expression "uVar7 = (uint)(iVar1 != iVar2)" identifier = (call_expression "(uint)(iVar1 != iVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);" do (compound_statement "{\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);" (assignment_expression "iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" identifier = (call_expression "FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal , identifier )))) ;) (expression_statement "iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);" (assignment_expression "iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1)" identifier = (call_expression "FUN_0001a0d0(param_2,0x1f,iVar1)" identifier (argument_list "(param_2,0x1f,iVar1)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }" if (parenthesized_expression "(iVar2 != iVar5)" ( (binary_expression "iVar2 != iVar5" identifier != identifier) )) (compound_statement "{\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }" { (expression_statement "pcVar6 = "cipher settings changed";" (assignment_expression "pcVar6 = "cipher settings changed"" identifier = (string_literal ""cipher settings changed"" " string_content ")) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 7)" ( (binary_expression "iVar1 != 7" identifier != number_literal) )) ;) (expression_statement "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);" (assignment_expression "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22)" identifier = (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x22)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = FUN_0001a000(param_2,0x22);" (assignment_expression "iVar2 = FUN_0001a000(param_2,0x22)" identifier = (call_expression "FUN_0001a000(param_2,0x22)" identifier (argument_list "(param_2,0x22)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == iVar2)" ( (binary_expression "iVar1 == iVar2" identifier == identifier) )) (compound_statement "{\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }" { (expression_statement "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));" (call_expression "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = FUN_00019fc0(param_2);" (assignment_expression "uVar3 = FUN_00019fc0(param_2)" identifier = (call_expression "FUN_00019fc0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x248) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x248) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0001a000(uVar3,0x7c);" (assignment_expression "uVar3 = FUN_0001a000(uVar3,0x7c)" identifier = (call_expression "FUN_0001a000(uVar3,0x7c)" identifier (argument_list "(uVar3,0x7c)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x24c)" * (cast_expression "(undefined4 *)(param_1 + 0x24c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xec) != 0)" ( (binary_expression "*(int *)(param_1 + 0xec) != 0" (pointer_expression "*(int *)(param_1 + 0xec)" * (cast_expression "(int *)(param_1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (pcVar6 == (char *)0x0) {\n      return;\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;" if (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" ( (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" * (cast_expression "(int *)(param_1 + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x694)" ( (binary_expression "param_1 + 0x694" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000465e8;" goto statement_identifier ;)) (if_statement "if (uVar7 == 0) {\n      return;\n    }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" else (compound_statement "{\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" { (expression_statement "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));" (call_expression "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = FUN_00019fc0(param_2);" (assignment_expression "uVar3 = FUN_00019fc0(param_2)" identifier = (call_expression "FUN_00019fc0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x248) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x248) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0001a000(uVar3,0x7c);" (assignment_expression "uVar3 = FUN_0001a000(uVar3,0x7c)" identifier = (call_expression "FUN_0001a000(uVar3,0x7c)" identifier (argument_list "(uVar3,0x7c)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x24c)" * (cast_expression "(undefined4 *)(param_1 + 0x24c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xec) != 0)" ( (binary_expression "*(int *)(param_1 + 0xec) != 0" (pointer_expression "*(int *)(param_1 + 0xec)" * (cast_expression "(int *)(param_1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar6 = "cipher settings changed";" (assignment_expression "pcVar6 = "cipher settings changed"" identifier = (string_literal ""cipher settings changed"" " string_content ")) ;) (if_statement "if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" ( (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" * (cast_expression "(int *)(param_1 + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x694)" ( (binary_expression "param_1 + 0x694" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }" { (labeled_statement "LAB_000465e8:\n      FUN_00036f20();" statement_identifier : (expression_statement "FUN_00036f20();" (call_expression "FUN_00036f20()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })) }))) (expression_statement "*(char **)(param_1 + 0x6a0) = pcVar6;" (assignment_expression "*(char **)(param_1 + 0x6a0) = pcVar6" (pointer_expression "*(char **)(param_1 + 0x6a0)" * (cast_expression "(char **)(param_1 + 0x6a0)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6a0)" ( (binary_expression "param_1 + 0x6a0" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_reconfig(void *handle,Conf *conf)\n\n{\n  int iVar1;\n  int iVar2;\n  char *bs;\n  ulong uVar3;\n  int iVar4;\n  Conf *pCVar5;\n  ulong uVar6;\n  char *vin;\n  bool bVar7;\n  \n  pinger_reconfig(*(Pinger *)((int)handle + 0x680),*(Conf **)((int)handle + 0x248),conf);\n  if (*(int *)((int)handle + 0x140) != 0) {\n    ssh_setup_portfwd((Ssh_conflict)handle,conf);\n  }\n  iVar1 = conf_get_int(conf,0x1a);\n  iVar2 = conf_get_int(*(Conf **)((int)handle + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    vin = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)((int)handle + 0x69c);\n    vin = "timeout shortened";\n    uVar6 = getticks();\n    if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }\n  }\n  uVar6 = *(ulong *)((int)handle + 0x690);\n  bs = conf_get_str(*(Conf **)((int)handle + 0x248),0x1b);\n  uVar3 = parse_blocksize(bs);\n  *(ulong *)((int)handle + 0x690) = uVar3;\n  if (((uVar3 != 0) && (uVar3 != uVar6)) &&\n     ((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))))) {\n    vin = "data limit lowered";\n  }\n  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x17);\n  iVar2 = conf_get_int(conf,0x17);\n  bVar7 = iVar1 != iVar2;\n  if (bVar7) {\n    vin = "compression setting changed";\n  }\n  iVar1 = 0;\n  do {\n    iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1);\n    iVar4 = conf_get_int_int(conf,0x1f,iVar1);\n    if (iVar2 != iVar4) {\n      vin = "cipher settings changed";\n      bVar7 = true;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x22);\n  iVar2 = conf_get_int(conf,0x22);\n  if (iVar1 == iVar2) {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    if (vin == (char *)0x0) {\n      return;\n    }\n    if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;\n    if (!bVar7) {\n      return;\n    }\n  }\n  else {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    vin = "cipher settings changed";\n    if (*(int *)((int)handle + 0x694) == 0) {\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }\n  }\n  *(char **)((int)handle + 0x6a0) = vin;\n  return;\n}\n\n" comment comment (function_definition "void ssh_reconfig(void *handle,Conf *conf)\n\n{\n  int iVar1;\n  int iVar2;\n  char *bs;\n  ulong uVar3;\n  int iVar4;\n  Conf *pCVar5;\n  ulong uVar6;\n  char *vin;\n  bool bVar7;\n  \n  pinger_reconfig(*(Pinger *)((int)handle + 0x680),*(Conf **)((int)handle + 0x248),conf);\n  if (*(int *)((int)handle + 0x140) != 0) {\n    ssh_setup_portfwd((Ssh_conflict)handle,conf);\n  }\n  iVar1 = conf_get_int(conf,0x1a);\n  iVar2 = conf_get_int(*(Conf **)((int)handle + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    vin = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)((int)handle + 0x69c);\n    vin = "timeout shortened";\n    uVar6 = getticks();\n    if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }\n  }\n  uVar6 = *(ulong *)((int)handle + 0x690);\n  bs = conf_get_str(*(Conf **)((int)handle + 0x248),0x1b);\n  uVar3 = parse_blocksize(bs);\n  *(ulong *)((int)handle + 0x690) = uVar3;\n  if (((uVar3 != 0) && (uVar3 != uVar6)) &&\n     ((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))))) {\n    vin = "data limit lowered";\n  }\n  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x17);\n  iVar2 = conf_get_int(conf,0x17);\n  bVar7 = iVar1 != iVar2;\n  if (bVar7) {\n    vin = "compression setting changed";\n  }\n  iVar1 = 0;\n  do {\n    iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1);\n    iVar4 = conf_get_int_int(conf,0x1f,iVar1);\n    if (iVar2 != iVar4) {\n      vin = "cipher settings changed";\n      bVar7 = true;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x22);\n  iVar2 = conf_get_int(conf,0x22);\n  if (iVar1 == iVar2) {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    if (vin == (char *)0x0) {\n      return;\n    }\n    if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;\n    if (!bVar7) {\n      return;\n    }\n  }\n  else {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    vin = "cipher settings changed";\n    if (*(int *)((int)handle + 0x694) == 0) {\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }\n  }\n  *(char **)((int)handle + 0x6a0) = vin;\n  return;\n}" primitive_type (function_declarator "ssh_reconfig(void *handle,Conf *conf)" identifier (parameter_list "(void *handle,Conf *conf)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *bs;\n  ulong uVar3;\n  int iVar4;\n  Conf *pCVar5;\n  ulong uVar6;\n  char *vin;\n  bool bVar7;\n  \n  pinger_reconfig(*(Pinger *)((int)handle + 0x680),*(Conf **)((int)handle + 0x248),conf);\n  if (*(int *)((int)handle + 0x140) != 0) {\n    ssh_setup_portfwd((Ssh_conflict)handle,conf);\n  }\n  iVar1 = conf_get_int(conf,0x1a);\n  iVar2 = conf_get_int(*(Conf **)((int)handle + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    vin = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)((int)handle + 0x69c);\n    vin = "timeout shortened";\n    uVar6 = getticks();\n    if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }\n  }\n  uVar6 = *(ulong *)((int)handle + 0x690);\n  bs = conf_get_str(*(Conf **)((int)handle + 0x248),0x1b);\n  uVar3 = parse_blocksize(bs);\n  *(ulong *)((int)handle + 0x690) = uVar3;\n  if (((uVar3 != 0) && (uVar3 != uVar6)) &&\n     ((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))))) {\n    vin = "data limit lowered";\n  }\n  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x17);\n  iVar2 = conf_get_int(conf,0x17);\n  bVar7 = iVar1 != iVar2;\n  if (bVar7) {\n    vin = "compression setting changed";\n  }\n  iVar1 = 0;\n  do {\n    iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1);\n    iVar4 = conf_get_int_int(conf,0x1f,iVar1);\n    if (iVar2 != iVar4) {\n      vin = "cipher settings changed";\n      bVar7 = true;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x22);\n  iVar2 = conf_get_int(conf,0x22);\n  if (iVar1 == iVar2) {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    if (vin == (char *)0x0) {\n      return;\n    }\n    if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;\n    if (!bVar7) {\n      return;\n    }\n  }\n  else {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    vin = "cipher settings changed";\n    if (*(int *)((int)handle + 0x694) == 0) {\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }\n  }\n  *(char **)((int)handle + 0x6a0) = vin;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *bs;" primitive_type (pointer_declarator "*bs" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Conf *pCVar5;" type_identifier (pointer_declarator "*pCVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "char *vin;" primitive_type (pointer_declarator "*vin" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "pinger_reconfig(*(Pinger *)((int)handle + 0x680),*(Conf **)((int)handle + 0x248),conf);" (call_expression "pinger_reconfig(*(Pinger *)((int)handle + 0x680),*(Conf **)((int)handle + 0x248),conf)" identifier (argument_list "(*(Pinger *)((int)handle + 0x680),*(Conf **)((int)handle + 0x248),conf)" ( (pointer_expression "*(Pinger *)((int)handle + 0x680)" * (cast_expression "(Pinger *)((int)handle + 0x680)" ( (type_descriptor "Pinger *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x680)" ( (binary_expression "(int)handle + 0x680" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)((int)handle + 0x140) != 0) {\n    ssh_setup_portfwd((Ssh_conflict)handle,conf);\n  }" if (parenthesized_expression "(*(int *)((int)handle + 0x140) != 0)" ( (binary_expression "*(int *)((int)handle + 0x140) != 0" (pointer_expression "*(int *)((int)handle + 0x140)" * (cast_expression "(int *)((int)handle + 0x140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x140)" ( (binary_expression "(int)handle + 0x140" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    ssh_setup_portfwd((Ssh_conflict)handle,conf);\n  }" { (expression_statement "ssh_setup_portfwd((Ssh_conflict)handle,conf);" (call_expression "ssh_setup_portfwd((Ssh_conflict)handle,conf)" identifier (argument_list "((Ssh_conflict)handle,conf)" ( (cast_expression "(Ssh_conflict)handle" ( (type_descriptor "Ssh_conflict" type_identifier) ) identifier) , identifier ))) ;) })) (expression_statement "iVar1 = conf_get_int(conf,0x1a);" (assignment_expression "iVar1 = conf_get_int(conf,0x1a)" identifier = (call_expression "conf_get_int(conf,0x1a)" identifier (argument_list "(conf,0x1a)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = conf_get_int(*(Conf **)((int)handle + 0x248),0x1a);" (assignment_expression "iVar2 = conf_get_int(*(Conf **)((int)handle + 0x248),0x1a)" identifier = (call_expression "conf_get_int(*(Conf **)((int)handle + 0x248),0x1a)" identifier (argument_list "(*(Conf **)((int)handle + 0x248),0x1a)" ( (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    vin = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)((int)handle + 0x69c);\n    vin = "timeout shortened";\n    uVar6 = getticks();\n    if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) || (iVar2 == iVar1))" ( (binary_expression "(iVar1 == 0) || (iVar2 == iVar1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 == iVar1)" ( (binary_expression "iVar2 == iVar1" identifier == identifier) ))) )) (compound_statement "{\n    vin = (char *)0x0;\n  }" { (expression_statement "vin = (char *)0x0;" (assignment_expression "vin = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar2 = *(int *)((int)handle + 0x69c);\n    vin = "timeout shortened";\n    uVar6 = getticks();\n    if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)((int)handle + 0x69c);\n    vin = "timeout shortened";\n    uVar6 = getticks();\n    if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }\n  }" { (expression_statement "iVar2 = *(int *)((int)handle + 0x69c);" (assignment_expression "iVar2 = *(int *)((int)handle + 0x69c)" identifier = (pointer_expression "*(int *)((int)handle + 0x69c)" * (cast_expression "(int *)((int)handle + 0x69c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x69c)" ( (binary_expression "(int)handle + 0x69c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "vin = "timeout shortened";" (assignment_expression "vin = "timeout shortened"" identifier = (string_literal ""timeout shortened"" " string_content ")) ;) (expression_statement "uVar6 = getticks();" (assignment_expression "uVar6 = getticks()" identifier = (call_expression "getticks()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)) {\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }" if (parenthesized_expression "(uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000))" ( (binary_expression "uVar6 - *(int *)((int)handle + 0x69c) <= (uint)(iVar1 * 60000)" (binary_expression "uVar6 - *(int *)((int)handle + 0x69c)" identifier - (pointer_expression "*(int *)((int)handle + 0x69c)" * (cast_expression "(int *)((int)handle + 0x69c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x69c)" ( (binary_expression "(int)handle + 0x69c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) <= (call_expression "(uint)(iVar1 * 60000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 * 60000)" ( (binary_expression "iVar1 * 60000" identifier * number_literal) )))) )) (compound_statement "{\n      vin = (char *)0x0;\n      uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);\n      *(ulong *)((int)handle + 0x698) = uVar6;\n    }" { (expression_statement "vin = (char *)0x0;" (assignment_expression "vin = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle);" (assignment_expression "uVar6 = schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle)" identifier = (call_expression "schedule_timer((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle)" identifier (argument_list "((iVar1 * 60000 + iVar2) - uVar6,ssh2_timer,handle)" ( (binary_expression "(iVar1 * 60000 + iVar2) - uVar6" (parenthesized_expression "(iVar1 * 60000 + iVar2)" ( (binary_expression "iVar1 * 60000 + iVar2" (binary_expression "iVar1 * 60000" identifier * number_literal) + identifier) )) - identifier) , identifier , identifier )))) ;) (expression_statement "*(ulong *)((int)handle + 0x698) = uVar6;" (assignment_expression "*(ulong *)((int)handle + 0x698) = uVar6" (pointer_expression "*(ulong *)((int)handle + 0x698)" * (cast_expression "(ulong *)((int)handle + 0x698)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x698)" ( (binary_expression "(int)handle + 0x698" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })) }))) (expression_statement "uVar6 = *(ulong *)((int)handle + 0x690);" (assignment_expression "uVar6 = *(ulong *)((int)handle + 0x690)" identifier = (pointer_expression "*(ulong *)((int)handle + 0x690)" * (cast_expression "(ulong *)((int)handle + 0x690)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x690)" ( (binary_expression "(int)handle + 0x690" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "bs = conf_get_str(*(Conf **)((int)handle + 0x248),0x1b);" (assignment_expression "bs = conf_get_str(*(Conf **)((int)handle + 0x248),0x1b)" identifier = (call_expression "conf_get_str(*(Conf **)((int)handle + 0x248),0x1b)" identifier (argument_list "(*(Conf **)((int)handle + 0x248),0x1b)" ( (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar3 = parse_blocksize(bs);" (assignment_expression "uVar3 = parse_blocksize(bs)" identifier = (call_expression "parse_blocksize(bs)" identifier (argument_list "(bs)" ( identifier )))) ;) (expression_statement "*(ulong *)((int)handle + 0x690) = uVar3;" (assignment_expression "*(ulong *)((int)handle + 0x690) = uVar3" (pointer_expression "*(ulong *)((int)handle + 0x690)" * (cast_expression "(ulong *)((int)handle + 0x690)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x690)" ( (binary_expression "(int)handle + 0x690" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (((uVar3 != 0) && (uVar3 != uVar6)) &&\n     ((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))))) {\n    vin = "data limit lowered";\n  }" if (parenthesized_expression "(((uVar3 != 0) && (uVar3 != uVar6)) &&\n     ((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684)))))" ( (binary_expression "((uVar3 != 0) && (uVar3 != uVar6)) &&\n     ((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))))" (parenthesized_expression "((uVar3 != 0) && (uVar3 != uVar6))" ( (binary_expression "(uVar3 != 0) && (uVar3 != uVar6)" (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar3 != uVar6)" ( (binary_expression "uVar3 != uVar6" identifier != identifier) ))) )) && (parenthesized_expression "((uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))))" ( (parenthesized_expression "(uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684)))" ( (binary_expression "uVar3 < *(uint *)((int)handle + 0x688) || (uVar3 < *(uint *)((int)handle + 0x684))" (binary_expression "uVar3 < *(uint *)((int)handle + 0x688)" identifier < (pointer_expression "*(uint *)((int)handle + 0x688)" * (cast_expression "(uint *)((int)handle + 0x688)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x688)" ( (binary_expression "(int)handle + 0x688" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) || (parenthesized_expression "(uVar3 < *(uint *)((int)handle + 0x684))" ( (binary_expression "uVar3 < *(uint *)((int)handle + 0x684)" identifier < (pointer_expression "*(uint *)((int)handle + 0x684)" * (cast_expression "(uint *)((int)handle + 0x684)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x684)" ( (binary_expression "(int)handle + 0x684" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n    vin = "data limit lowered";\n  }" { (expression_statement "vin = "data limit lowered";" (assignment_expression "vin = "data limit lowered"" identifier = (string_literal ""data limit lowered"" " string_content ")) ;) })) (expression_statement "iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x17);" (assignment_expression "iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x17)" identifier = (call_expression "conf_get_int(*(Conf **)((int)handle + 0x248),0x17)" identifier (argument_list "(*(Conf **)((int)handle + 0x248),0x17)" ( (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = conf_get_int(conf,0x17);" (assignment_expression "iVar2 = conf_get_int(conf,0x17)" identifier = (call_expression "conf_get_int(conf,0x17)" identifier (argument_list "(conf,0x17)" ( identifier , number_literal )))) ;) (expression_statement "bVar7 = iVar1 != iVar2;" (assignment_expression "bVar7 = iVar1 != iVar2" identifier = (binary_expression "iVar1 != iVar2" identifier != identifier)) ;) (if_statement "if (bVar7) {\n    vin = "compression setting changed";\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    vin = "compression setting changed";\n  }" { (expression_statement "vin = "compression setting changed";" (assignment_expression "vin = "compression setting changed"" identifier = (string_literal ""compression setting changed"" " string_content ")) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1);\n    iVar4 = conf_get_int_int(conf,0x1f,iVar1);\n    if (iVar2 != iVar4) {\n      vin = "cipher settings changed";\n      bVar7 = true;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);" do (compound_statement "{\n    iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1);\n    iVar4 = conf_get_int_int(conf,0x1f,iVar1);\n    if (iVar2 != iVar4) {\n      vin = "cipher settings changed";\n      bVar7 = true;\n    }\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1);" (assignment_expression "iVar2 = conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1)" identifier = (call_expression "conf_get_int_int(*(Conf **)((int)handle + 0x248),0x1f,iVar1)" identifier (argument_list "(*(Conf **)((int)handle + 0x248),0x1f,iVar1)" ( (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , identifier )))) ;) (expression_statement "iVar4 = conf_get_int_int(conf,0x1f,iVar1);" (assignment_expression "iVar4 = conf_get_int_int(conf,0x1f,iVar1)" identifier = (call_expression "conf_get_int_int(conf,0x1f,iVar1)" identifier (argument_list "(conf,0x1f,iVar1)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 != iVar4) {\n      vin = "cipher settings changed";\n      bVar7 = true;\n    }" if (parenthesized_expression "(iVar2 != iVar4)" ( (binary_expression "iVar2 != iVar4" identifier != identifier) )) (compound_statement "{\n      vin = "cipher settings changed";\n      bVar7 = true;\n    }" { (expression_statement "vin = "cipher settings changed";" (assignment_expression "vin = "cipher settings changed"" identifier = (string_literal ""cipher settings changed"" " string_content ")) ;) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 7)" ( (binary_expression "iVar1 != 7" identifier != number_literal) )) ;) (expression_statement "iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x22);" (assignment_expression "iVar1 = conf_get_int(*(Conf **)((int)handle + 0x248),0x22)" identifier = (call_expression "conf_get_int(*(Conf **)((int)handle + 0x248),0x22)" identifier (argument_list "(*(Conf **)((int)handle + 0x248),0x22)" ( (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = conf_get_int(conf,0x22);" (assignment_expression "iVar2 = conf_get_int(conf,0x22)" identifier = (call_expression "conf_get_int(conf,0x22)" identifier (argument_list "(conf,0x22)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == iVar2) {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    if (vin == (char *)0x0) {\n      return;\n    }\n    if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;\n    if (!bVar7) {\n      return;\n    }\n  }\n  else {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    vin = "cipher settings changed";\n    if (*(int *)((int)handle + 0x694) == 0) {\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == iVar2)" ( (binary_expression "iVar1 == iVar2" identifier == identifier) )) (compound_statement "{\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    if (vin == (char *)0x0) {\n      return;\n    }\n    if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;\n    if (!bVar7) {\n      return;\n    }\n  }" { (expression_statement "conf_free(*(Conf **)((int)handle + 0x248));" (call_expression "conf_free(*(Conf **)((int)handle + 0x248))" identifier (argument_list "(*(Conf **)((int)handle + 0x248))" ( (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "pCVar5 = conf_copy(conf);" (assignment_expression "pCVar5 = conf_copy(conf)" identifier = (call_expression "conf_copy(conf)" identifier (argument_list "(conf)" ( identifier )))) ;) (expression_statement "*(Conf **)((int)handle + 0x248) = pCVar5;" (assignment_expression "*(Conf **)((int)handle + 0x248) = pCVar5" (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = conf_get_int(pCVar5,0x7c);" (assignment_expression "iVar1 = conf_get_int(pCVar5,0x7c)" identifier = (call_expression "conf_get_int(pCVar5,0x7c)" identifier (argument_list "(pCVar5,0x7c)" ( identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x24c) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x24c) = iVar1" (pointer_expression "*(int *)((int)handle + 0x24c)" * (cast_expression "(int *)((int)handle + 0x24c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x24c)" ( (binary_expression "(int)handle + 0x24c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)((int)handle + 0xec) != 0)" ( (binary_expression "*(int *)((int)handle + 0xec) != 0" (pointer_expression "*(int *)((int)handle + 0xec)" * (cast_expression "(int *)((int)handle + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0xec)" ( (binary_expression "(int)handle + 0xec" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (vin == (char *)0x0) {\n      return;\n    }" if (parenthesized_expression "(vin == (char *)0x0)" ( (binary_expression "vin == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;" if (parenthesized_expression "(*(int *)((int)handle + 0x694) == 0)" ( (binary_expression "*(int *)((int)handle + 0x694) == 0" (pointer_expression "*(int *)((int)handle + 0x694)" * (cast_expression "(int *)((int)handle + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x694)" ( (binary_expression "(int)handle + 0x694" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000465e8;" goto statement_identifier ;)) (if_statement "if (!bVar7) {\n      return;\n    }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    vin = "cipher settings changed";\n    if (*(int *)((int)handle + 0x694) == 0) {\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }\n  }" else (compound_statement "{\n    conf_free(*(Conf **)((int)handle + 0x248));\n    pCVar5 = conf_copy(conf);\n    *(Conf **)((int)handle + 0x248) = pCVar5;\n    iVar1 = conf_get_int(pCVar5,0x7c);\n    *(int *)((int)handle + 0x24c) = iVar1;\n    if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }\n    vin = "cipher settings changed";\n    if (*(int *)((int)handle + 0x694) == 0) {\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }\n  }" { (expression_statement "conf_free(*(Conf **)((int)handle + 0x248));" (call_expression "conf_free(*(Conf **)((int)handle + 0x248))" identifier (argument_list "(*(Conf **)((int)handle + 0x248))" ( (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "pCVar5 = conf_copy(conf);" (assignment_expression "pCVar5 = conf_copy(conf)" identifier = (call_expression "conf_copy(conf)" identifier (argument_list "(conf)" ( identifier )))) ;) (expression_statement "*(Conf **)((int)handle + 0x248) = pCVar5;" (assignment_expression "*(Conf **)((int)handle + 0x248) = pCVar5" (pointer_expression "*(Conf **)((int)handle + 0x248)" * (cast_expression "(Conf **)((int)handle + 0x248)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x248)" ( (binary_expression "(int)handle + 0x248" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = conf_get_int(pCVar5,0x7c);" (assignment_expression "iVar1 = conf_get_int(pCVar5,0x7c)" identifier = (call_expression "conf_get_int(pCVar5,0x7c)" identifier (argument_list "(pCVar5,0x7c)" ( identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x24c) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x24c) = iVar1" (pointer_expression "*(int *)((int)handle + 0x24c)" * (cast_expression "(int *)((int)handle + 0x24c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x24c)" ( (binary_expression "(int)handle + 0x24c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)((int)handle + 0xec) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)((int)handle + 0xec) != 0)" ( (binary_expression "*(int *)((int)handle + 0xec) != 0" (pointer_expression "*(int *)((int)handle + 0xec)" * (cast_expression "(int *)((int)handle + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0xec)" ( (binary_expression "(int)handle + 0xec" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "vin = "cipher settings changed";" (assignment_expression "vin = "cipher settings changed"" identifier = (string_literal ""cipher settings changed"" " string_content ")) ;) (if_statement "if (*(int *)((int)handle + 0x694) == 0) {\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }" if (parenthesized_expression "(*(int *)((int)handle + 0x694) == 0)" ( (binary_expression "*(int *)((int)handle + 0x694) == 0" (pointer_expression "*(int *)((int)handle + 0x694)" * (cast_expression "(int *)((int)handle + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x694)" ( (binary_expression "(int)handle + 0x694" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);\n      return;\n    }" { (labeled_statement "LAB_000465e8:\n      do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);" statement_identifier : (expression_statement "do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0);" (call_expression "do_ssh2_transport((Ssh_conflict)handle,vin,-1,(Packet *)0x0)" identifier (argument_list "((Ssh_conflict)handle,vin,-1,(Packet *)0x0)" ( (cast_expression "(Ssh_conflict)handle" ( (type_descriptor "Ssh_conflict" type_identifier) ) identifier) , identifier , number_literal , (cast_expression "(Packet *)0x0" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (return_statement "return;" return ;) })) }))) (expression_statement "*(char **)((int)handle + 0x6a0) = vin;" (assignment_expression "*(char **)((int)handle + 0x6a0) = vin" (pointer_expression "*(char **)((int)handle + 0x6a0)" * (cast_expression "(char **)((int)handle + 0x6a0)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x6a0)" ( (binary_expression "(int)handle + 0x6a0" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00046320(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}\n\n" (function_definition "void FUN_00046320(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}" primitive_type (function_declarator "FUN_00046320(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);" (call_expression "FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x680)" * (cast_expression "(undefined4 *)(param_1 + 0x680)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x680)" ( (binary_expression "param_1 + 0x680" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x140) != 0)" ( (binary_expression "*(int *)(param_1 + 0x140) != 0" (pointer_expression "*(int *)(param_1 + 0x140)" * (cast_expression "(int *)(param_1 + 0x140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00040710();\n  }" { (expression_statement "FUN_00040710();" (call_expression "FUN_00040710()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = FUN_0001a000(param_2,0x1a);" (assignment_expression "iVar1 = FUN_0001a000(param_2,0x1a)" identifier = (call_expression "FUN_0001a000(param_2,0x1a)" identifier (argument_list "(param_2,0x1a)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);" (assignment_expression "iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a)" identifier = (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1a)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) || (iVar2 == iVar1))" ( (binary_expression "(iVar1 == 0) || (iVar2 == iVar1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 == iVar1)" ( (binary_expression "iVar2 == iVar1" identifier == identifier) ))) )) (compound_statement "{\n    pcVar6 = (char *)0x0;\n  }" { (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x69c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x69c)" identifier = (pointer_expression "*(int *)(param_1 + 0x69c)" * (cast_expression "(int *)(param_1 + 0x69c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x69c)" ( (binary_expression "param_1 + 0x69c" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = "timeout shortened";" (assignment_expression "pcVar6 = "timeout shortened"" identifier = (string_literal ""timeout shortened"" " string_content ")) ;) (expression_statement "iVar5 = FUN_0007d020(iVar2);" (assignment_expression "iVar5 = FUN_0007d020(iVar2)" identifier = (call_expression "FUN_0007d020(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }" if (parenthesized_expression "((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000))" ( (binary_expression "(uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)" (call_expression "(uint)(iVar5 - *(int *)(param_1 + 0x69c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 - *(int *)(param_1 + 0x69c))" ( (binary_expression "iVar5 - *(int *)(param_1 + 0x69c)" identifier - (pointer_expression "*(int *)(param_1 + 0x69c)" * (cast_expression "(int *)(param_1 + 0x69c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x69c)" ( (binary_expression "param_1 + 0x69c" identifier + number_literal) ))))) ))) <= (call_expression "(uint)(iVar1 * 60000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 * 60000)" ( (binary_expression "iVar1 * 60000" identifier * number_literal) )))) )) (compound_statement "{\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }" { (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);" (assignment_expression "uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" identifier = (call_expression "FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" identifier (argument_list "((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" ( (binary_expression "(iVar1 * 60000 + iVar2) - iVar5" (parenthesized_expression "(iVar1 * 60000 + iVar2)" ( (binary_expression "iVar1 * 60000 + iVar2" (binary_expression "iVar1 * 60000" identifier * number_literal) + identifier) )) - identifier) , identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x698) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x698) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x698)" * (cast_expression "(undefined4 *)(param_1 + 0x698)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x698)" ( (binary_expression "param_1 + 0x698" identifier + number_literal) )))) = identifier) ;) })) }))) (expression_statement "uVar7 = *(uint *)(param_1 + 0x690);" (assignment_expression "uVar7 = *(uint *)(param_1 + 0x690)" identifier = (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);" (assignment_expression "uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b)" identifier = (call_expression "FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1b)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar4 = FUN_0001e500(uVar3);" (assignment_expression "uVar4 = FUN_0001e500(uVar3)" identifier = (call_expression "FUN_0001e500(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "*(uint *)(param_1 + 0x690) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x690) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }" if (parenthesized_expression "(((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684)))))" ( (binary_expression "((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))" (parenthesized_expression "((uVar4 != 0) && (uVar4 != uVar7))" ( (binary_expression "(uVar4 != 0) && (uVar4 != uVar7)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar4 != uVar7)" ( (binary_expression "uVar4 != uVar7" identifier != identifier) ))) )) && (parenthesized_expression "((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))" ( (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684)))" ( (binary_expression "uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))" (binary_expression "uVar4 < *(uint *)(param_1 + 0x688)" identifier < (pointer_expression "*(uint *)(param_1 + 0x688)" * (cast_expression "(uint *)(param_1 + 0x688)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) ))))) || (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x684))" ( (binary_expression "uVar4 < *(uint *)(param_1 + 0x684)" identifier < (pointer_expression "*(uint *)(param_1 + 0x684)" * (cast_expression "(uint *)(param_1 + 0x684)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x684)" ( (binary_expression "param_1 + 0x684" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n    pcVar6 = "data limit lowered";\n  }" { (expression_statement "pcVar6 = "data limit lowered";" (assignment_expression "pcVar6 = "data limit lowered"" identifier = (string_literal ""data limit lowered"" " string_content ")) ;) })) (expression_statement "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);" (assignment_expression "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17)" identifier = (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x17)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = FUN_0001a000(param_2,0x17);" (assignment_expression "iVar2 = FUN_0001a000(param_2,0x17)" identifier = (call_expression "FUN_0001a000(param_2,0x17)" identifier (argument_list "(param_2,0x17)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }" if (parenthesized_expression "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) )) (compound_statement "{\n    pcVar6 = "compression setting changed";\n  }" { (expression_statement "pcVar6 = "compression setting changed";" (assignment_expression "pcVar6 = "compression setting changed"" identifier = (string_literal ""compression setting changed"" " string_content ")) ;) })) (expression_statement "uVar7 = (uint)(iVar1 != iVar2);" (assignment_expression "uVar7 = (uint)(iVar1 != iVar2)" identifier = (call_expression "(uint)(iVar1 != iVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);" do (compound_statement "{\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);" (assignment_expression "iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" identifier = (call_expression "FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal , identifier )))) ;) (expression_statement "iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);" (assignment_expression "iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1)" identifier = (call_expression "FUN_0001a0d0(param_2,0x1f,iVar1)" identifier (argument_list "(param_2,0x1f,iVar1)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }" if (parenthesized_expression "(iVar2 != iVar5)" ( (binary_expression "iVar2 != iVar5" identifier != identifier) )) (compound_statement "{\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }" { (expression_statement "pcVar6 = "cipher settings changed";" (assignment_expression "pcVar6 = "cipher settings changed"" identifier = (string_literal ""cipher settings changed"" " string_content ")) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 7)" ( (binary_expression "iVar1 != 7" identifier != number_literal) )) ;) (expression_statement "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);" (assignment_expression "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22)" identifier = (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248),0x22)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = FUN_0001a000(param_2,0x22);" (assignment_expression "iVar2 = FUN_0001a000(param_2,0x22)" identifier = (call_expression "FUN_0001a000(param_2,0x22)" identifier (argument_list "(param_2,0x22)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == iVar2)" ( (binary_expression "iVar1 == iVar2" identifier == identifier) )) (compound_statement "{\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }" { (expression_statement "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));" (call_expression "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = FUN_00019fc0(param_2);" (assignment_expression "uVar3 = FUN_00019fc0(param_2)" identifier = (call_expression "FUN_00019fc0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x248) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x248) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0001a000(uVar3,0x7c);" (assignment_expression "uVar3 = FUN_0001a000(uVar3,0x7c)" identifier = (call_expression "FUN_0001a000(uVar3,0x7c)" identifier (argument_list "(uVar3,0x7c)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x24c)" * (cast_expression "(undefined4 *)(param_1 + 0x24c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xec) != 0)" ( (binary_expression "*(int *)(param_1 + 0xec) != 0" (pointer_expression "*(int *)(param_1 + 0xec)" * (cast_expression "(int *)(param_1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (pcVar6 == (char *)0x0) {\n      return;\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;" if (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" ( (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" * (cast_expression "(int *)(param_1 + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x694)" ( (binary_expression "param_1 + 0x694" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000465e8;" goto statement_identifier ;)) (if_statement "if (uVar7 == 0) {\n      return;\n    }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" else (compound_statement "{\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" { (expression_statement "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));" (call_expression "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x248))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = FUN_00019fc0(param_2);" (assignment_expression "uVar3 = FUN_00019fc0(param_2)" identifier = (call_expression "FUN_00019fc0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x248) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x248) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0001a000(uVar3,0x7c);" (assignment_expression "uVar3 = FUN_0001a000(uVar3,0x7c)" identifier = (call_expression "FUN_0001a000(uVar3,0x7c)" identifier (argument_list "(uVar3,0x7c)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x24c)" * (cast_expression "(undefined4 *)(param_1 + 0x24c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xec) != 0)" ( (binary_expression "*(int *)(param_1 + 0xec) != 0" (pointer_expression "*(int *)(param_1 + 0xec)" * (cast_expression "(int *)(param_1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar6 = "cipher settings changed";" (assignment_expression "pcVar6 = "cipher settings changed"" identifier = (string_literal ""cipher settings changed"" " string_content ")) ;) (if_statement "if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" ( (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" * (cast_expression "(int *)(param_1 + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x694)" ( (binary_expression "param_1 + 0x694" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }" { (labeled_statement "LAB_000465e8:\n      FUN_00036f20();" statement_identifier : (expression_statement "FUN_00036f20();" (call_expression "FUN_00036f20()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })) }))) (expression_statement "*(char **)(param_1 + 0x6a0) = pcVar6;" (assignment_expression "*(char **)(param_1 + 0x6a0) = pcVar6" (pointer_expression "*(char **)(param_1 + 0x6a0)" * (cast_expression "(char **)(param_1 + 0x6a0)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6a0)" ( (binary_expression "param_1 + 0x6a0" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT * LIT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + IDENT) )) - IDENT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) || (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != IDENT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00046320(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00046320(int param_1,undefined4 param_2)" (identifier "FUN_00046320") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  uint uVar7;\n  \n  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);\n  if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }\n  iVar1 = FUN_0001a000(param_2,0x1a);\n  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);\n  if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }\n  uVar7 = *(uint *)(param_1 + 0x690);\n  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);\n  uVar4 = FUN_0001e500(uVar3);\n  *(uint *)(param_1 + 0x690) = uVar4;\n  if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);\n  iVar2 = FUN_0001a000(param_2,0x17);\n  if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }\n  uVar7 = (uint)(iVar1 != iVar2);\n  iVar1 = 0;\n  do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);\n  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);\n  iVar2 = FUN_0001a000(param_2,0x22);\n  if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }\n  *(char **)(param_1 + 0x6a0) = pcVar6;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);" (call_expression "FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2)" (identifier "FUN_00020a60") (argument_list "(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x680)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x680)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x680)" (( "(") (binary_expression "param_1 + 0x680" (identifier "param_1") (+ "+") (number_literal "0x680")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x140) != 0) {\n    FUN_00040710();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x140) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x140) != 0" (pointer_expression "*(int *)(param_1 + 0x140)" (* "*") (cast_expression "(int *)(param_1 + 0x140)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x140)" (( "(") (binary_expression "param_1 + 0x140" (identifier "param_1") (+ "+") (number_literal "0x140")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00040710();\n  }" ({ "{") (expression_statement "FUN_00040710();" (call_expression "FUN_00040710()" (identifier "FUN_00040710") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0001a000(param_2,0x1a);" (assignment_expression "iVar1 = FUN_0001a000(param_2,0x1a)" (identifier "iVar1") (= "=") (call_expression "FUN_0001a000(param_2,0x1a)" (identifier "FUN_0001a000") (argument_list "(param_2,0x1a)" (( "(") (identifier "param_2") (, ",") (number_literal "0x1a") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);" (assignment_expression "iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a)" (identifier "iVar2") (= "=") (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a)" (identifier "FUN_0001a000") (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1a)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0x1a") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) || (iVar2 == iVar1)) {\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) || (iVar2 == iVar1))" (( "(") (binary_expression "(iVar1 == 0) || (iVar2 == iVar1)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 == iVar1)" (( "(") (binary_expression "iVar2 == iVar1" (identifier "iVar2") (== "==") (identifier "iVar1")) () ")"))) () ")")) (compound_statement "{\n    pcVar6 = (char *)0x0;\n  }" ({ "{") (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" (identifier "pcVar6") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x69c);\n    pcVar6 = "timeout shortened";\n    iVar5 = FUN_0007d020(iVar2);\n    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x69c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x69c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x69c)" (* "*") (cast_expression "(int *)(param_1 + 0x69c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x69c)" (( "(") (binary_expression "param_1 + 0x69c" (identifier "param_1") (+ "+") (number_literal "0x69c")) () ")"))))) (; ";")) (expression_statement "pcVar6 = "timeout shortened";" (assignment_expression "pcVar6 = "timeout shortened"" (identifier "pcVar6") (= "=") (string_literal ""timeout shortened"" (" """) (string_content "timeout shortened") (" """))) (; ";")) (expression_statement "iVar5 = FUN_0007d020(iVar2);" (assignment_expression "iVar5 = FUN_0007d020(iVar2)" (identifier "iVar5") (= "=") (call_expression "FUN_0007d020(iVar2)" (identifier "FUN_0007d020") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }" (if "if") (parenthesized_expression "((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000))" (( "(") (binary_expression "(uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)" (call_expression "(uint)(iVar5 - *(int *)(param_1 + 0x69c))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar5 - *(int *)(param_1 + 0x69c))" (( "(") (binary_expression "iVar5 - *(int *)(param_1 + 0x69c)" (identifier "iVar5") (- "-") (pointer_expression "*(int *)(param_1 + 0x69c)" (* "*") (cast_expression "(int *)(param_1 + 0x69c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x69c)" (( "(") (binary_expression "param_1 + 0x69c" (identifier "param_1") (+ "+") (number_literal "0x69c")) () ")"))))) () ")"))) (<= "<=") (call_expression "(uint)(iVar1 * 60000)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 * 60000)" (( "(") (binary_expression "iVar1 * 60000" (identifier "iVar1") (* "*") (number_literal "60000")) () ")")))) () ")")) (compound_statement "{\n      pcVar6 = (char *)0x0;\n      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);\n      *(undefined4 *)(param_1 + 0x698) = uVar3;\n    }" ({ "{") (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" (identifier "pcVar6") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);" (assignment_expression "uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" (identifier "FUN_00076360") (argument_list "((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1)" (( "(") (binary_expression "(iVar1 * 60000 + iVar2) - iVar5" (parenthesized_expression "(iVar1 * 60000 + iVar2)" (( "(") (binary_expression "iVar1 * 60000 + iVar2" (binary_expression "iVar1 * 60000" (identifier "iVar1") (* "*") (number_literal "60000")) (+ "+") (identifier "iVar2")) () ")")) (- "-") (identifier "iVar5")) (, ",") (identifier "FUN_00045dc0") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x698) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x698) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x698)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x698)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x698)" (( "(") (binary_expression "param_1 + 0x698" (identifier "param_1") (+ "+") (number_literal "0x698")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar7 = *(uint *)(param_1 + 0x690);" (assignment_expression "uVar7 = *(uint *)(param_1 + 0x690)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(param_1 + 0x690)" (* "*") (cast_expression "(uint *)(param_1 + 0x690)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x690)" (( "(") (binary_expression "param_1 + 0x690" (identifier "param_1") (+ "+") (number_literal "0x690")) () ")"))))) (; ";")) (expression_statement "uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);" (assignment_expression "uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b)" (identifier "uVar3") (= "=") (call_expression "FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b)" (identifier "FUN_0001a1b0") (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1b)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0x1b") () ")")))) (; ";")) (expression_statement "uVar4 = FUN_0001e500(uVar3);" (assignment_expression "uVar4 = FUN_0001e500(uVar3)" (identifier "uVar4") (= "=") (call_expression "FUN_0001e500(uVar3)" (identifier "FUN_0001e500") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x690) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x690) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x690)" (* "*") (cast_expression "(uint *)(param_1 + 0x690)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x690)" (( "(") (binary_expression "param_1 + 0x690" (identifier "param_1") (+ "+") (number_literal "0x690")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {\n    pcVar6 = "data limit lowered";\n  }" (if "if") (parenthesized_expression "(((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684)))))" (( "(") (binary_expression "((uVar4 != 0) && (uVar4 != uVar7)) &&\n     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))" (parenthesized_expression "((uVar4 != 0) && (uVar4 != uVar7))" (( "(") (binary_expression "(uVar4 != 0) && (uVar4 != uVar7)" (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar4 != uVar7)" (( "(") (binary_expression "uVar4 != uVar7" (identifier "uVar4") (!= "!=") (identifier "uVar7")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))" (( "(") (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684)))" (( "(") (binary_expression "uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))" (binary_expression "uVar4 < *(uint *)(param_1 + 0x688)" (identifier "uVar4") (< "<") (pointer_expression "*(uint *)(param_1 + 0x688)" (* "*") (cast_expression "(uint *)(param_1 + 0x688)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x688)" (( "(") (binary_expression "param_1 + 0x688" (identifier "param_1") (+ "+") (number_literal "0x688")) () ")"))))) (|| "||") (parenthesized_expression "(uVar4 < *(uint *)(param_1 + 0x684))" (( "(") (binary_expression "uVar4 < *(uint *)(param_1 + 0x684)" (identifier "uVar4") (< "<") (pointer_expression "*(uint *)(param_1 + 0x684)" (* "*") (cast_expression "(uint *)(param_1 + 0x684)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x684)" (( "(") (binary_expression "param_1 + 0x684" (identifier "param_1") (+ "+") (number_literal "0x684")) () ")"))))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    pcVar6 = "data limit lowered";\n  }" ({ "{") (expression_statement "pcVar6 = "data limit lowered";" (assignment_expression "pcVar6 = "data limit lowered"" (identifier "pcVar6") (= "=") (string_literal ""data limit lowered"" (" """) (string_content "data limit lowered") (" """))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);" (assignment_expression "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17)" (identifier "iVar1") (= "=") (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17)" (identifier "FUN_0001a000") (argument_list "(*(undefined4 *)(param_1 + 0x248),0x17)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0x17") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0001a000(param_2,0x17);" (assignment_expression "iVar2 = FUN_0001a000(param_2,0x17)" (identifier "iVar2") (= "=") (call_expression "FUN_0001a000(param_2,0x17)" (identifier "FUN_0001a000") (argument_list "(param_2,0x17)" (( "(") (identifier "param_2") (, ",") (number_literal "0x17") () ")")))) (; ";")) (if_statement "if (iVar1 != iVar2) {\n    pcVar6 = "compression setting changed";\n  }" (if "if") (parenthesized_expression "(iVar1 != iVar2)" (( "(") (binary_expression "iVar1 != iVar2" (identifier "iVar1") (!= "!=") (identifier "iVar2")) () ")")) (compound_statement "{\n    pcVar6 = "compression setting changed";\n  }" ({ "{") (expression_statement "pcVar6 = "compression setting changed";" (assignment_expression "pcVar6 = "compression setting changed"" (identifier "pcVar6") (= "=") (string_literal ""compression setting changed"" (" """) (string_content "compression setting changed") (" """))) (; ";")) (} "}"))) (expression_statement "uVar7 = (uint)(iVar1 != iVar2);" (assignment_expression "uVar7 = (uint)(iVar1 != iVar2)" (identifier "uVar7") (= "=") (call_expression "(uint)(iVar1 != iVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 != iVar2)" (( "(") (binary_expression "iVar1 != iVar2" (identifier "iVar1") (!= "!=") (identifier "iVar2")) () ")")))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 7);" (do "do") (compound_statement "{\n    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);\n    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);\n    if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }\n    iVar1 = iVar1 + 1;\n  }" ({ "{") (expression_statement "iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);" (assignment_expression "iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" (identifier "FUN_0001a0d0") (argument_list "(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0x1f") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);" (assignment_expression "iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1)" (identifier "iVar5") (= "=") (call_expression "FUN_0001a0d0(param_2,0x1f,iVar1)" (identifier "FUN_0001a0d0") (argument_list "(param_2,0x1f,iVar1)" (( "(") (identifier "param_2") (, ",") (number_literal "0x1f") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar2 != iVar5) {\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }" (if "if") (parenthesized_expression "(iVar2 != iVar5)" (( "(") (binary_expression "iVar2 != iVar5" (identifier "iVar2") (!= "!=") (identifier "iVar5")) () ")")) (compound_statement "{\n      pcVar6 = "cipher settings changed";\n      uVar7 = 1;\n    }" ({ "{") (expression_statement "pcVar6 = "cipher settings changed";" (assignment_expression "pcVar6 = "cipher settings changed"" (identifier "pcVar6") (= "=") (string_literal ""cipher settings changed"" (" """) (string_content "cipher settings changed") (" """))) (; ";")) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 7)" (( "(") (binary_expression "iVar1 != 7" (identifier "iVar1") (!= "!=") (number_literal "7")) () ")")) (; ";")) (expression_statement "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);" (assignment_expression "iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22)" (identifier "iVar1") (= "=") (call_expression "FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22)" (identifier "FUN_0001a000") (argument_list "(*(undefined4 *)(param_1 + 0x248),0x22)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0x22") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0001a000(param_2,0x22);" (assignment_expression "iVar2 = FUN_0001a000(param_2,0x22)" (identifier "iVar2") (= "=") (call_expression "FUN_0001a000(param_2,0x22)" (identifier "FUN_0001a000") (argument_list "(param_2,0x22)" (( "(") (identifier "param_2") (, ",") (number_literal "0x22") () ")")))) (; ";")) (if_statement "if (iVar1 == iVar2) {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }\n  else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == iVar2)" (( "(") (binary_expression "iVar1 == iVar2" (identifier "iVar1") (== "==") (identifier "iVar2")) () ")")) (compound_statement "{\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    if (pcVar6 == (char *)0x0) {\n      return;\n    }\n    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;\n    if (uVar7 == 0) {\n      return;\n    }\n  }" ({ "{") (expression_statement "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));" (call_expression "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248))" (identifier "FUN_00019cf0") (argument_list "(*(undefined4 *)(param_1 + 0x248))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00019fc0(param_2);" (assignment_expression "uVar3 = FUN_00019fc0(param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_00019fc0(param_2)" (identifier "FUN_00019fc0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x248) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x248) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_0001a000(uVar3,0x7c);" (assignment_expression "uVar3 = FUN_0001a000(uVar3,0x7c)" (identifier "uVar3") (= "=") (call_expression "FUN_0001a000(uVar3,0x7c)" (identifier "FUN_0001a000") (argument_list "(uVar3,0x7c)" (( "(") (identifier "uVar3") (, ",") (number_literal "0x7c") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x24c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x24c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24c)" (( "(") (binary_expression "param_1 + 0x24c" (identifier "param_1") (+ "+") (number_literal "0x24c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xec) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xec) != 0" (pointer_expression "*(int *)(param_1 + 0xec)" (* "*") (cast_expression "(int *)(param_1 + 0xec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec)" (( "(") (binary_expression "param_1 + 0xec" (identifier "param_1") (+ "+") (number_literal "0xec")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (pcVar6 == (char *)0x0) {\n      return;\n    }" (if "if") (parenthesized_expression "(pcVar6 == (char *)0x0)" (( "(") (binary_expression "pcVar6 == (char *)0x0" (identifier "pcVar6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" (* "*") (cast_expression "(int *)(param_1 + 0x694)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x694)" (( "(") (binary_expression "param_1 + 0x694" (identifier "param_1") (+ "+") (number_literal "0x694")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000465e8;" (goto "goto") (statement_identifier "LAB_000465e8") (; ";"))) (if_statement "if (uVar7 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(uVar7 == 0)" (( "(") (binary_expression "uVar7 == 0" (identifier "uVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));\n    uVar3 = FUN_00019fc0(param_2);\n    *(undefined4 *)(param_1 + 0x248) = uVar3;\n    uVar3 = FUN_0001a000(uVar3,0x7c);\n    *(undefined4 *)(param_1 + 0x24c) = uVar3;\n    if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }\n    pcVar6 = "cipher settings changed";\n    if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }\n  }" ({ "{") (expression_statement "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));" (call_expression "FUN_00019cf0(*(undefined4 *)(param_1 + 0x248))" (identifier "FUN_00019cf0") (argument_list "(*(undefined4 *)(param_1 + 0x248))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00019fc0(param_2);" (assignment_expression "uVar3 = FUN_00019fc0(param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_00019fc0(param_2)" (identifier "FUN_00019fc0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x248) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x248) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_0001a000(uVar3,0x7c);" (assignment_expression "uVar3 = FUN_0001a000(uVar3,0x7c)" (identifier "uVar3") (= "=") (call_expression "FUN_0001a000(uVar3,0x7c)" (identifier "FUN_0001a000") (argument_list "(uVar3,0x7c)" (( "(") (identifier "uVar3") (, ",") (number_literal "0x7c") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x24c) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x24c) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x24c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24c)" (( "(") (binary_expression "param_1 + 0x24c" (identifier "param_1") (+ "+") (number_literal "0x24c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (*(int *)(param_1 + 0xec) != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xec) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xec) != 0" (pointer_expression "*(int *)(param_1 + 0xec)" (* "*") (cast_expression "(int *)(param_1 + 0xec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec)" (( "(") (binary_expression "param_1 + 0xec" (identifier "param_1") (+ "+") (number_literal "0xec")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar6 = "cipher settings changed";" (assignment_expression "pcVar6 = "cipher settings changed"" (identifier "pcVar6") (= "=") (string_literal ""cipher settings changed"" (" """) (string_content "cipher settings changed") (" """))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x694) == 0) {\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" (* "*") (cast_expression "(int *)(param_1 + 0x694)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x694)" (( "(") (binary_expression "param_1 + 0x694" (identifier "param_1") (+ "+") (number_literal "0x694")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000465e8:\n      FUN_00036f20();\n      return;\n    }" ({ "{") (labeled_statement "LAB_000465e8:\n      FUN_00036f20();" (statement_identifier "LAB_000465e8") (: ":") (expression_statement "FUN_00036f20();" (call_expression "FUN_00036f20()" (identifier "FUN_00036f20") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(char **)(param_1 + 0x6a0) = pcVar6;" (assignment_expression "*(char **)(param_1 + 0x6a0) = pcVar6" (pointer_expression "*(char **)(param_1 + 0x6a0)" (* "*") (cast_expression "(char **)(param_1 + 0x6a0)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x6a0)" (( "(") (binary_expression "param_1 + 0x6a0" (identifier "param_1") (+ "+") (number_literal "0x6a0")) () ")")))) (= "=") (identifier "pcVar6")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(void *handle,type_1 *conf)

{
  int var_4;
  int var_5;
  char *bs;
  type_2 var_11;
  int var_13;
  type_1 *pCVar5;
  type_2 var_7;
  char *var_16;
  bool bVar7;
  
  var_1(*(type_3 *)((int)handle + 0x680),*(type_1 **)((int)handle + 0x248),conf);
  if (*(int *)((int)handle + 0x140) != 0) {
    var_2((type_4)handle,conf);
  }
  var_4 = var_3(conf,0x1a);
  var_5 = var_3(*(type_1 **)((int)handle + 0x248),0x1a);
  if ((var_4 == 0) || (var_5 == var_4)) {
    var_16 = (char *)0x0;
  }
  else {
    var_5 = *(int *)((int)handle + 0x69c);
    var_16 = "timeout shortened";
    var_7 = var_6();
    if (var_7 - *(int *)((int)handle + 0x69c) <= (type_5)(var_4 * 60000)) {
      var_16 = (char *)0x0;
      var_7 = var_8((var_4 * 60000 + var_5) - var_7,ssh2_timer,handle);
      *(type_2 *)((int)handle + 0x698) = var_7;
    }
  }
  var_7 = *(type_2 *)((int)handle + 0x690);
  bs = var_9(*(type_1 **)((int)handle + 0x248),0x1b);
  var_11 = var_10(bs);
  *(type_2 *)((int)handle + 0x690) = var_11;
  if (((var_11 != 0) && (var_11 != var_7)) &&
     ((var_11 < *(type_5 *)((int)handle + 0x688) || (var_11 < *(type_5 *)((int)handle + 0x684))))) {
    var_16 = "data limit lowered";
  }
  var_4 = var_3(*(type_1 **)((int)handle + 0x248),0x17);
  var_5 = var_3(conf,0x17);
  bVar7 = var_4 != var_5;
  if (bVar7) {
    var_16 = "compression setting changed";
  }
  var_4 = 0;
  do {
    var_5 = var_12(*(type_1 **)((int)handle + 0x248),0x1f,var_4);
    var_13 = var_12(conf,0x1f,var_4);
    if (var_5 != var_13) {
      var_16 = "cipher settings changed";
      bVar7 = true;
    }
    var_4 = var_4 + 1;
  } while (var_4 != 7);
  var_4 = var_3(*(type_1 **)((int)handle + 0x248),0x22);
  var_5 = var_3(conf,0x22);
  if (var_4 == var_5) {
    var_14(*(type_1 **)((int)handle + 0x248));
    pCVar5 = var_15(conf);
    *(type_1 **)((int)handle + 0x248) = pCVar5;
    var_4 = var_3(pCVar5,0x7c);
    *(int *)((int)handle + 0x24c) = var_4;
    if (*(int *)((int)handle + 0xec) != 0) {
      return;
    }
    if (var_16 == (char *)0x0) {
      return;
    }
    if (*(int *)((int)handle + 0x694) == 0) goto LAB_000465e8;
    if (!bVar7) {
      return;
    }
  }
  else {
    var_14(*(type_1 **)((int)handle + 0x248));
    pCVar5 = var_15(conf);
    *(type_1 **)((int)handle + 0x248) = pCVar5;
    var_4 = var_3(pCVar5,0x7c);
    *(int *)((int)handle + 0x24c) = var_4;
    if (*(int *)((int)handle + 0xec) != 0) {
      return;
    }
    var_16 = "cipher settings changed";
    if (*(int *)((int)handle + 0x694) == 0) {
LAB_000465e8:
      var_17((type_4)handle,var_16,-1,(type_6 *)0x0);
      return;
    }
  }
  *(char **)((int)handle + 0x6a0) = var_16;
  return;
}


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

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

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  uint uVar4;
  int iVar5;
  char *pcVar6;
  uint uVar7;
  
  FUN_00020a60(*(undefined4 *)(param_1 + 0x680),*(undefined4 *)(param_1 + 0x248),param_2);
  if (*(int *)(param_1 + 0x140) != 0) {
    FUN_00040710();
  }
  iVar1 = FUN_0001a000(param_2,0x1a);
  iVar2 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x1a);
  if ((iVar1 == 0) || (iVar2 == iVar1)) {
    pcVar6 = (char *)0x0;
  }
  else {
    iVar2 = *(int *)(param_1 + 0x69c);
    pcVar6 = "timeout shortened";
    iVar5 = FUN_0007d020(iVar2);
    if ((uint)(iVar5 - *(int *)(param_1 + 0x69c)) <= (uint)(iVar1 * 60000)) {
      pcVar6 = (char *)0x0;
      uVar3 = FUN_00076360((iVar1 * 60000 + iVar2) - iVar5,FUN_00045dc0,param_1);
      *(undefined4 *)(param_1 + 0x698) = uVar3;
    }
  }
  uVar7 = *(uint *)(param_1 + 0x690);
  uVar3 = FUN_0001a1b0(*(undefined4 *)(param_1 + 0x248),0x1b);
  uVar4 = FUN_0001e500(uVar3);
  *(uint *)(param_1 + 0x690) = uVar4;
  if (((uVar4 != 0) && (uVar4 != uVar7)) &&
     ((uVar4 < *(uint *)(param_1 + 0x688) || (uVar4 < *(uint *)(param_1 + 0x684))))) {
    pcVar6 = "data limit lowered";
  }
  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x17);
  iVar2 = FUN_0001a000(param_2,0x17);
  if (iVar1 != iVar2) {
    pcVar6 = "compression setting changed";
  }
  uVar7 = (uint)(iVar1 != iVar2);
  iVar1 = 0;
  do {
    iVar2 = FUN_0001a0d0(*(undefined4 *)(param_1 + 0x248),0x1f,iVar1);
    iVar5 = FUN_0001a0d0(param_2,0x1f,iVar1);
    if (iVar2 != iVar5) {
      pcVar6 = "cipher settings changed";
      uVar7 = 1;
    }
    iVar1 = iVar1 + 1;
  } while (iVar1 != 7);
  iVar1 = FUN_0001a000(*(undefined4 *)(param_1 + 0x248),0x22);
  iVar2 = FUN_0001a000(param_2,0x22);
  if (iVar1 == iVar2) {
    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));
    uVar3 = FUN_00019fc0(param_2);
    *(undefined4 *)(param_1 + 0x248) = uVar3;
    uVar3 = FUN_0001a000(uVar3,0x7c);
    *(undefined4 *)(param_1 + 0x24c) = uVar3;
    if (*(int *)(param_1 + 0xec) != 0) {
      return;
    }
    if (pcVar6 == (char *)0x0) {
      return;
    }
    if (*(int *)(param_1 + 0x694) == 0) goto LAB_000465e8;
    if (uVar7 == 0) {
      return;
    }
  }
  else {
    FUN_00019cf0(*(undefined4 *)(param_1 + 0x248));
    uVar3 = FUN_00019fc0(param_2);
    *(undefined4 *)(param_1 + 0x248) = uVar3;
    uVar3 = FUN_0001a000(uVar3,0x7c);
    *(undefined4 *)(param_1 + 0x24c) = uVar3;
    if (*(int *)(param_1 + 0xec) != 0) {
      return;
    }
    pcVar6 = "cipher settings changed";
    if (*(int *)(param_1 + 0x694) == 0) {
LAB_000465e8:
      FUN_00036f20();
      return;
    }
  }
  *(char **)(param_1 + 0x6a0) = pcVar6;
  return;
}

