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

CURLcode Curl_is_connected(connectdata *conn,int sockindex,_Bool *connected)

{
  uint uVar1;
  int iVar2;
  Curl_addrinfo *pCVar3;
  curltime newer;
  curltime newer_00;
  _Bool _Var4;
  timediff_t tVar5;
  uint uVar6;
  char *pcVar7;
  timediff_t tVar8;
  int *piVar9;
  char *pcVar10;
  int iVar11;
  uint uVar12;
  CURLcode tempindex;
  int iVar13;
  int in_GS_OFFSET;
  connectdata *in_stack_ffffff74;
  Curl_easy *data;
  CURLcode tempindex_00;
  time_t local_64;
  int local_60;
  int error;
  curltime now;
  char ipaddress [46];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  data = conn->data;
  *connected = false;
  error = 0;
  if ((conn->bits).tcpconnect[sockindex] == false) {
    Curl_now();
    now.tv_sec = local_64;
    now.tv_usec = local_60;
    tVar5 = Curl_timeleft(data,&now,true);
    if (-1 < tVar5) {
      iVar13 = 1;
      tempindex_00 = CURLE_OK;
      do {
        uVar1 = iVar13 - 1;
        tempindex = tempindex_00;
        if (conn->sock[iVar13 + 1] == -1) {
LAB_00041025:
          tempindex_00 = tempindex;
          if (iVar13 == 2) goto code_r0x0004102e;
        }
        else {
          uVar12 = uVar1 ^ 1;
          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);
          if (uVar6 != 0) {
            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {
              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);
              if (_Var4) {
                conn->sock[sockindex] = conn->sock[iVar13 + 1];
                pCVar3 = conn->tempaddr[iVar13 + -1];
                conn->ip_addr = pCVar3;
                iVar11 = pCVar3->ai_family;
                conn->sock[iVar13 + 1] = -1;
                (conn->bits).ipv6 = iVar11 == 10;
                if (conn->tempsock[uVar12] != -1) {
                  Curl_closesocket(conn,conn->tempsock[uVar12]);
                  conn->tempsock[uVar12] = -1;
                }
                tempindex = Curl_connected_proxy(conn,sockindex);
                if (tempindex == CURLE_OK) {
                  (conn->bits).tcpconnect[sockindex] = true;
                  *connected = true;
                  if (sockindex == 0) {
                    Curl_pgrsTime(data,TIMER_CONNECT);
                  }
                  Curl_updateconninfo(conn,conn->sock[sockindex]);
                  Curl_verboseconnect(conn);
                }
                goto LAB_00040f28;
              }
              Curl_infof(data,"Connection failed\n");
            }
            else if ((uVar6 & 4) != 0) {
              verifyconnect(conn->sock[iVar13 + 1],&error);
            }
LAB_00041019:
            tempindex = tempindex_00;
            if (error != 0) goto LAB_00041150;
            goto LAB_00041025;
          }
          error = 0;
          newer.tv_usec = now.tv_usec;
          newer.tv_sec = now.tv_sec;
          tVar8 = Curl_timediff(newer,conn->connecttime);
          if (tVar8 < conn->timeoutms_per_addr) {
            if (uVar1 != 0) goto LAB_00041019;
          }
          else {
            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);
            error = 0x6e;
            if (uVar1 != 0) goto LAB_00041150;
          }
          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&
             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,
             tVar8 = Curl_timediff(newer_00,conn->connecttime),
             (data->set).happy_eyeballs_timeout <= tVar8)) {
            trynextip(in_stack_ffffff74,(int)data,tempindex_00);
          }
          if (error != 0) {
LAB_00041150:
            iVar11 = error;
            (data->state).os_errno = error;
            piVar9 = __errno_location();
            *piVar9 = iVar11;
            tempindex = tempindex_00;
            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {
              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);
              pcVar10 = Curl_strerror(conn,error);
              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);
              iVar11 = tVar5 >> 1;
              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {
                iVar11 = tVar5;
              }
              conn->timeoutms_per_addr = iVar11;
              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);
              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {
                tempindex = tempindex_00;
              }
            }
            goto LAB_00041025;
          }
        }
        iVar13 = iVar13 + 1;
      } while( true );
    }
    tempindex = CURLE_OPERATION_TIMEDOUT;
    Curl_failf(data,"Connection time-out");
  }
  else {
    *connected = true;
    tempindex = CURLE_OK;
  }
LAB_00040f28:
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return tempindex;
code_r0x0004102e:
  if ((tempindex == CURLE_OK) ||
     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&
      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))) {
    tempindex = CURLE_OK;
  }
  else {
    if ((conn->bits).socksproxy == false) {
      if ((conn->bits).httpproxy == false) {
        if ((conn->bits).conn_to_host == false) {
          pcVar10 = (conn->host).name;
        }
        else {
          pcVar10 = (conn->conn_to_host).name;
        }
      }
      else {
        pcVar10 = (conn->http_proxy).host.name;
      }
    }
    else {
      pcVar10 = (conn->socks_proxy).host.name;
    }
    pcVar7 = Curl_strerror(conn,error);
    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);
  }
  goto LAB_00040f28;
}



int FUN_00040ed0(int param_1,undefined1 *param_2)

{
  uint uVar1;
  char cVar2;
  uint uVar3;
  undefined4 uVar4;
  int *piVar5;
  int iVar6;
  int unaff_EBX;
  int iVar7;
  int in_GS_OFFSET;
  int *unaff_retaddr;
  undefined1 auStack_94 [4];
  int local_90;
  int local_8c;
  undefined1 *local_88;
  undefined1 *local_84;
  int local_80;
  uint local_7c;
  int local_78;
  int local_74;
  int local_70;
  undefined4 local_6c;
  undefined4 local_68;
  int local_64;
  undefined4 local_60;
  undefined4 local_5c;
  undefined1 local_56 [50];
  undefined4 local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x40ed9;
  entry();
  local_84 = param_2;
  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  local_8c = *unaff_retaddr;
  *param_2 = 0;
  local_60 = 0;
  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {
    FUN_0001ab40(&local_68);
    local_60 = local_6c;
    local_5c = local_68;
    local_80 = FUN_0003f980(local_90,&local_60,1);
    if (-1 < local_80) {
      local_78 = local_80 >> 1;
      iVar7 = 1;
      local_84 = local_56;
      local_74 = unaff_EBX + 0x409db;
      local_8c = 0;
      do {
        uVar1 = iVar7 - 1;
        iVar6 = local_8c;
        if (unaff_retaddr[iVar7 + 0x65] == -1) {
LAB_00041025:
          local_8c = iVar6;
          if (iVar7 == 2) goto code_r0x0004102e;
        }
        else {
          local_7c = uVar1 ^ 1;
          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);
          if (uVar3 != 0) {
            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {
              cVar2 = FUN_0003f900();
              uVar1 = local_7c;
              if (cVar2 != '\0') {
                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];
                iVar6 = unaff_retaddr[iVar7 + 0x12];
                unaff_retaddr[0x12] = iVar6;
                iVar6 = *(int *)(iVar6 + 4);
                unaff_retaddr[iVar7 + 0x65] = -1;
                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;
                if (unaff_retaddr[local_7c + 0x66] != -1) {
                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);
                  unaff_retaddr[uVar1 + 0x66] = -1;
                }
                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);
                piVar5 = (int *)auStack_94;
                if (iVar7 == 0) {
                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;
                  *local_88 = 1;
                  if (unaff_retaddr == (int *)0x0) {
                    FUN_0001c710(local_90,4);
                  }
                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));
                  FUN_0002ede0(unaff_retaddr);
                  piVar5 = (int *)auStack_94;
                }
                goto LAB_00040f28;
              }
              FUN_00027140(local_90,unaff_EBX + 0x4072d);
            }
            else if ((uVar3 & 4) != 0) {
              FUN_0003f900();
            }
LAB_00041019:
            iVar6 = local_8c;
            if (local_64 != 0) goto LAB_00041150;
            goto LAB_00041025;
          }
          local_64 = 0;
          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);
          if (iVar6 < unaff_retaddr[0x9e]) {
            if (uVar1 != 0) goto LAB_00041019;
          }
          else {
            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);
            local_64 = 0x6e;
            if (uVar1 != 0) goto LAB_00041150;
          }
          if ((unaff_retaddr[0x14] == 0) &&
             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),
             *(int *)(local_90 + 0x640) <= iVar6)) {
            FUN_00040dc0();
          }
          if (local_64 != 0) {
LAB_00041150:
            *(int *)(local_90 + 0xcbc) = local_64;
            local_70 = local_64;
            piVar5 = __errno_location();
            *piVar5 = local_70;
            iVar6 = local_8c;
            if (unaff_retaddr[iVar7 + 0x12] != 0) {
              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);
              uVar4 = FUN_00048500(unaff_retaddr,local_64);
              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);
              iVar6 = local_78;
              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {
                iVar6 = local_80;
              }
              unaff_retaddr[0x9e] = iVar6;
              iVar6 = FUN_00040dc0();
              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {
                iVar6 = local_8c;
              }
            }
            goto LAB_00041025;
          }
        }
        iVar7 = iVar7 + 1;
      } while( true );
    }
    iVar7 = 0x1c;
    FUN_00027240(local_90,unaff_EBX + 0x40719);
    piVar5 = (int *)auStack_94;
  }
  else {
    *param_2 = 1;
    iVar7 = 0;
    piVar5 = &local_90;
  }
LAB_00040f28:
  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;
    FUN_0007c1a0();
  }
  return iVar7;
code_r0x0004102e:
  if ((local_8c == 0) ||
     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {
    iVar7 = 0;
    piVar5 = (int *)auStack_94;
  }
  else {
    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {
      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {
        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {
          iVar6 = unaff_retaddr[0x25];
        }
        else {
          iVar6 = unaff_retaddr[0x2b];
        }
      }
      else {
        iVar6 = unaff_retaddr[0x37];
      }
    }
    else {
      iVar6 = unaff_retaddr[0x2f];
    }
    uVar4 = FUN_00048500(unaff_retaddr,local_64);
    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);
    piVar5 = (int *)auStack_94;
  }
  goto LAB_00040f28;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x6f907
SUB ESP,0x7c
MOV EAX,dword ptr [ESP + 0x98]
MOV ESI,dword ptr [ESP + 0x90]
MOV dword ptr [ESP + 0xc],EAX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x6c],ECX
XOR ECX,ECX
MOV ECX,dword ptr [ESI]
MOV byte ptr [EAX],0x0
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x4],ECX
MOV ECX,dword ptr [ESP + 0x94]
CMP byte ptr [ESI + ECX*0x1 + 0x255],0x0
JZ 0x00040f48
MOV byte ptr [EAX],0x1
XOR EBP,EBP
MOV ECX,dword ptr [ESP + 0x6c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x00041381
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESP + 0x28]
SUB ESP,0xc
PUSH EAX
CALL 0x0001ab40
MOV EAX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESP + 0x38]
SUB ESP,0x8
MOV dword ptr [ESP + 0x48],EAX
MOV dword ptr [ESP + 0x4c],EDX
PUSH 0x1
LEA EAX,[ESP + 0x4c]
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x0003f980
MOV dword ptr [ESP + 0x34],EAX
ADD ESP,0x20
TEST EAX,EAX
JS 0x00041250
SAR EAX,0x1
XOR EBP,EBP
MOV EDI,0x1
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[ESP + 0x3e]
MOV dword ptr [ESP + 0x10],EAX
LEA EAX,[EBX + 0xfffd10d4]
MOV dword ptr [ESP + 0x20],EAX
MOV dword ptr [ESP + 0x8],EBP
MOV EAX,dword ptr [ESI + EDI*0x4 + 0x194]
LEA EBP,[EDI + -0x1]
CMP EAX,-0x1
JZ 0x00041025
MOV EDX,EBP
XOR EDX,0x1
MOV dword ptr [ESP + 0x18],EDX
PUSH 0x0
PUSH EAX
PUSH -0x1
PUSH -0x1
CALL 0x00049010
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000410c0
CMP EAX,0x2
JZ 0x00040feb
CMP byte ptr [ESI + 0x266],0x0
JZ 0x000411f8
MOV EAX,dword ptr [ESI + EDI*0x4 + 0x194]
LEA EDX,[ESP + 0x30]
CALL 0x0003f900
TEST AL,AL
JNZ 0x00041270
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd0e26]
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x00027140
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x30]
TEST EDX,EDX
JNZ 0x00041150
CMP EDI,0x2
JNZ 0x00041110
MOV EBP,dword ptr [ESP + 0x8]
TEST EBP,EBP
JZ 0x000410b0
MOV EAX,dword ptr [ESI + 0x50]
TEST EAX,EAX
JZ 0x00041090
CMP byte ptr [ESI + 0x24f],0x0
JNZ 0x00041218
CMP byte ptr [ESI + 0x24e],0x0
JZ 0x00041228
MOV EDI,dword ptr [ESI + 0xdc]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x38]
PUSH ESI
CALL 0x00048500
MOV dword ptr [ESP],EAX
LEA EAX,[EBX + 0xfffd10f8]
PUSH dword ptr [ESI + 0xf4]
PUSH EDI
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x00027240
ADD ESP,0x20
JMP 0x00040f28
MOV EDX,dword ptr [ESP + 0x94]
MOV ECX,0x1
MOV EAX,ESI
CALL 0x00040dc0
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0004103d
LEA ESI,[ESI]
XOR EBP,EBP
JMP 0x00040f28
MOV dword ptr [ESP + 0x30],0x0
PUSH dword ptr [ESI + 0x270]
PUSH dword ptr [ESI + 0x26c]
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
CALL 0x0001abe0
MOV EDX,dword ptr [ESI + 0x278]
ADD ESP,0x10
CMP EAX,EDX
JGE 0x00041120
TEST EBP,EBP
JNZ 0x00041019
MOV EAX,dword ptr [ESI + 0x50]
TEST EAX,EAX
JZ 0x0004132a
MOV EDX,dword ptr [ESP + 0x30]
TEST EDX,EDX
JNZ 0x00041150
LEA ESI,[ESI]
ADD EDI,0x1
JMP 0x00040faa
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd10b0]
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x00027140
MOV dword ptr [ESP + 0x40],0x6e
MOV EDX,0x6e
ADD ESP,0x10
TEST EBP,EBP
JZ 0x000410f6
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x24],EDX
MOV dword ptr [EAX + 0xcbc],EDX
CALL 0x00018bd0
MOV EDX,dword ptr [ESP + 0x24]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESI + EDI*0x4 + 0x48]
TEST EAX,EAX
JZ 0x00041025
SUB ESP,0x4
PUSH 0x2e
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x0001b540
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x38]
PUSH ESI
CALL 0x00048500
MOV dword ptr [ESP],EAX
PUSH dword ptr [ESI + 0xf4]
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x38]
PUSH dword ptr [ESP + 0x20]
CALL 0x00027140
MOV EAX,dword ptr [ESI + EDI*0x4 + 0x48]
ADD ESP,0x20
MOV ECX,EBP
MOV EDX,dword ptr [ESP + 0x94]
MOV EAX,dword ptr [EAX + 0x1c]
TEST EAX,EAX
MOV EAX,dword ptr [ESP + 0x1c]
CMOVZ EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x278],EAX
MOV EAX,ESI
CALL 0x00040dc0
CMP EAX,0x7
JNZ 0x000411eb
MOV EDX,dword ptr [ESP + 0x18]
CMP dword ptr [ESI + EDX*0x4 + 0x198],-0x1
CMOVNZ EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x8],EAX
JMP 0x00041025
TEST AL,0x4
JZ 0x00041019
MOV EAX,dword ptr [ESI + EDI*0x4 + 0x194]
LEA EDX,[ESP + 0x30]
CALL 0x0003f900
JMP 0x00041019
MOV EDI,dword ptr [ESI + 0xbc]
JMP 0x0004105d
CMP byte ptr [ESI + 0x24b],0x0
JZ 0x00041240
MOV EDI,dword ptr [ESI + 0xac]
JMP 0x0004105d
MOV EDI,dword ptr [ESI + 0x94]
JMP 0x0004105d
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd0e12]
MOV EBP,0x1c
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x00027240
ADD ESP,0x10
JMP 0x00040f28
LEA EAX,[ESI + EBP*0x4]
MOV EDI,dword ptr [ESP + 0x94]
MOV EDX,dword ptr [EAX + 0x198]
LEA EDI,[ESI + EDI*0x4]
MOV dword ptr [EDI + 0x190],EDX
MOV EDX,dword ptr [EAX + 0x4c]
MOV dword ptr [ESI + 0x48],EDX
CMP dword ptr [EDX + 0x4],0xa
MOV dword ptr [EAX + 0x198],0xffffffff
MOV EAX,dword ptr [ESP + 0x18]
SETZ byte ptr [ESI + 0x253]
LEA EBP,[ESI + EAX*0x4]
MOV EAX,dword ptr [EBP + 0x198]
CMP EAX,-0x1
JZ 0x000412cd
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x000400c0
ADD ESP,0x10
MOV dword ptr [EBP + 0x198],0xffffffff
SUB ESP,0x8
PUSH dword ptr [ESP + 0x9c]
PUSH ESI
CALL 0x0002eca0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x00040f28
MOV EAX,dword ptr [ESP + 0x94]
MOV byte ptr [ESI + EAX*0x1 + 0x255],0x1
MOV EAX,dword ptr [ESP + 0xc]
MOV byte ptr [EAX],0x1
MOV EAX,dword ptr [ESP + 0x94]
TEST EAX,EAX
JZ 0x0004136e
SUB ESP,0x8
PUSH dword ptr [EDI + 0x190]
PUSH ESI
CALL 0x0003fc90
MOV dword ptr [ESP],ESI
CALL 0x0002ede0
ADD ESP,0x10
JMP 0x00040f28
PUSH dword ptr [ESI + 0x270]
PUSH dword ptr [ESI + 0x26c]
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
CALL 0x0001abe0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x4]
CMP EAX,dword ptr [EDX + 0x640]
JL 0x00041101
MOV EDX,dword ptr [ESP + 0x94]
MOV ECX,0x1
MOV EAX,ESI
CALL 0x00040dc0
JMP 0x00041101
SUB ESP,0x8
PUSH 0x4
PUSH dword ptr [ESP + 0x10]
CALL 0x0001c710
ADD ESP,0x10
JMP 0x0004130b
CALL 0x0007c1a0
(translation_unit "int FUN_00040ed0(int param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}\n\n" (function_definition "int FUN_00040ed0(int param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}" primitive_type (function_declarator "FUN_00040ed0(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 auStack_94 [4];" type_identifier (array_declarator "auStack_94 [4]" identifier [ number_literal ]) ;) (declaration "int local_90;" primitive_type identifier ;) (declaration "int local_8c;" primitive_type identifier ;) (declaration "undefined1 *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "undefined1 *local_84;" type_identifier (pointer_declarator "*local_84" * identifier) ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "uint local_7c;" type_identifier identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "int local_74;" primitive_type identifier ;) (declaration "int local_70;" primitive_type identifier ;) (declaration "undefined4 local_6c;" type_identifier identifier ;) (declaration "undefined4 local_68;" type_identifier identifier ;) (declaration "int local_64;" primitive_type identifier ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined1 local_56 [50];" type_identifier (array_declarator "local_56 [50]" identifier [ number_literal ]) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x40ed9;" (assignment_expression "uStack_14 = 0x40ed9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_84 = param_2;" (assignment_expression "local_84 = param_2" identifier = identifier) ;) (expression_statement "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_8c = *unaff_retaddr;" (assignment_expression "local_8c = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + param_1 + 0x255)" * (cast_expression "(char *)((int)unaff_retaddr + param_1 + 0x255)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + param_1 + 0x255)" ( (binary_expression "(int)unaff_retaddr + param_1 + 0x255" (binary_expression "(int)unaff_retaddr + param_1" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }" { (expression_statement "FUN_0001ab40(&local_68);" (call_expression "FUN_0001ab40(&local_68)" identifier (argument_list "(&local_68)" ( (pointer_expression "&local_68" & identifier) ))) ;) (expression_statement "local_60 = local_6c;" (assignment_expression "local_60 = local_6c" identifier = identifier) ;) (expression_statement "local_5c = local_68;" (assignment_expression "local_5c = local_68" identifier = identifier) ;) (expression_statement "local_80 = FUN_0003f980(local_90,&local_60,1);" (assignment_expression "local_80 = FUN_0003f980(local_90,&local_60,1)" identifier = (call_expression "FUN_0003f980(local_90,&local_60,1)" identifier (argument_list "(local_90,&local_60,1)" ( identifier , (pointer_expression "&local_60" & identifier) , number_literal )))) ;) (if_statement "if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }" if (parenthesized_expression "(-1 < local_80)" ( (binary_expression "-1 < local_80" number_literal < identifier) )) (compound_statement "{\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }" { (expression_statement "local_78 = local_80 >> 1;" (assignment_expression "local_78 = local_80 >> 1" identifier = (binary_expression "local_80 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) (expression_statement "local_84 = local_56;" (assignment_expression "local_84 = local_56" identifier = identifier) ;) (expression_statement "local_74 = unaff_EBX + 0x409db;" (assignment_expression "local_74 = unaff_EBX + 0x409db" identifier = (binary_expression "unaff_EBX + 0x409db" identifier + number_literal)) ;) (expression_statement "local_8c = 0;" (assignment_expression "local_8c = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );" do (compound_statement "{\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      }" { (expression_statement "uVar1 = iVar7 - 1;" (assignment_expression "uVar1 = iVar7 - 1" identifier = (binary_expression "iVar7 - 1" identifier - number_literal)) ;) (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;) (if_statement "if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" if (parenthesized_expression "(unaff_retaddr[iVar7 + 0x65] == -1)" ( (binary_expression "unaff_retaddr[iVar7 + 0x65] == -1" (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }" { (labeled_statement "LAB_00041025:\n          local_8c = iVar6;" statement_identifier : (expression_statement "local_8c = iVar6;" (assignment_expression "local_8c = iVar6" identifier = identifier) ;)) (if_statement "if (iVar7 == 2) goto code_r0x0004102e;" if (parenthesized_expression "(iVar7 == 2)" ( (binary_expression "iVar7 == 2" identifier == number_literal) )) (goto_statement "goto code_r0x0004102e;" goto statement_identifier ;)) }) (else_clause "else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" else (compound_statement "{\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" { (expression_statement "local_7c = uVar1 ^ 1;" (assignment_expression "local_7c = uVar1 ^ 1" identifier = (binary_expression "uVar1 ^ 1" identifier ^ number_literal)) ;) (expression_statement "uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);" (assignment_expression "uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" identifier = (call_expression "FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" identifier (argument_list "(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" ( number_literal , number_literal , (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ]) , number_literal )))) ;) (if_statement "if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" { (if_statement "if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" if (parenthesized_expression "((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0'))" ( (binary_expression "(uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')" (parenthesized_expression "(uVar3 == 2)" ( (binary_expression "uVar3 == 2" identifier == number_literal) )) || (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x266) != '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x266) != '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x266)" * (cast_expression "(char *)((int)unaff_retaddr + 0x266)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x266)" ( (binary_expression "(int)unaff_retaddr + 0x266" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }" { (expression_statement "cVar2 = FUN_0003f900();" (assignment_expression "cVar2 = FUN_0003f900()" identifier = (call_expression "FUN_0003f900()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = local_7c;" (assignment_expression "uVar1 = local_7c" identifier = identifier) ;) (if_statement "if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }" { (expression_statement "*(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];" (assignment_expression "*(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65]" (pointer_expression "*(int *)((int)unaff_retaddr * 5 + 400)" * (cast_expression "(int *)((int)unaff_retaddr * 5 + 400)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr * 5 + 400)" ( (binary_expression "(int)unaff_retaddr * 5 + 400" (binary_expression "(int)unaff_retaddr * 5" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) )))) = (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ])) ;) (expression_statement "iVar6 = unaff_retaddr[iVar7 + 0x12];" (assignment_expression "iVar6 = unaff_retaddr[iVar7 + 0x12]" identifier = (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ])) ;) (expression_statement "unaff_retaddr[0x12] = iVar6;" (assignment_expression "unaff_retaddr[0x12] = iVar6" (subscript_expression "unaff_retaddr[0x12]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = *(int *)(iVar6 + 4);" (assignment_expression "iVar6 = *(int *)(iVar6 + 4)" identifier = (pointer_expression "*(int *)(iVar6 + 4)" * (cast_expression "(int *)(iVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) ))))) ;) (expression_statement "unaff_retaddr[iVar7 + 0x65] = -1;" (assignment_expression "unaff_retaddr[iVar7 + 0x65] = -1" (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ]) = number_literal) ;) (expression_statement "*(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;" (assignment_expression "*(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10" (pointer_expression "*(bool *)((int)unaff_retaddr + 0x253)" * (cast_expression "(bool *)((int)unaff_retaddr + 0x253)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x253)" ( (binary_expression "(int)unaff_retaddr + 0x253" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar6 == 10" identifier == number_literal)) ;) (if_statement "if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }" if (parenthesized_expression "(unaff_retaddr[local_7c + 0x66] != -1)" ( (binary_expression "unaff_retaddr[local_7c + 0x66] != -1" (subscript_expression "unaff_retaddr[local_7c + 0x66]" identifier [ (binary_expression "local_7c + 0x66" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }" { (expression_statement "FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);" (call_expression "FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66])" identifier (argument_list "(unaff_retaddr,unaff_retaddr[local_7c + 0x66])" ( identifier , (subscript_expression "unaff_retaddr[local_7c + 0x66]" identifier [ (binary_expression "local_7c + 0x66" identifier + number_literal) ]) ))) ;) (expression_statement "unaff_retaddr[uVar1 + 0x66] = -1;" (assignment_expression "unaff_retaddr[uVar1 + 0x66] = -1" (subscript_expression "unaff_retaddr[uVar1 + 0x66]" identifier [ (binary_expression "uVar1 + 0x66" identifier + number_literal) ]) = number_literal) ;) })) (expression_statement "iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);" (assignment_expression "iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr)" identifier = (call_expression "FUN_0002eca0(unaff_retaddr,unaff_retaddr)" identifier (argument_list "(unaff_retaddr,unaff_retaddr)" ( identifier , identifier )))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }" { (expression_statement "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;" (assignment_expression "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1" (pointer_expression "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255)" * (cast_expression "(undefined1 *)((int)unaff_retaddr * 2 + 0x255)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr * 2 + 0x255)" ( (binary_expression "(int)unaff_retaddr * 2 + 0x255" (binary_expression "(int)unaff_retaddr * 2" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) )))) = number_literal) ;) (expression_statement "*local_88 = 1;" (assignment_expression "*local_88 = 1" (pointer_expression "*local_88" * identifier) = number_literal) ;) (if_statement "if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }" if (parenthesized_expression "(unaff_retaddr == (int *)0x0)" ( (binary_expression "unaff_retaddr == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    FUN_0001c710(local_90,4);\n                  }" { (expression_statement "FUN_0001c710(local_90,4);" (call_expression "FUN_0001c710(local_90,4)" identifier (argument_list "(local_90,4)" ( identifier , number_literal ))) ;) })) (expression_statement "FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));" (call_expression "FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400))" identifier (argument_list "(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400))" ( identifier , (pointer_expression "*(undefined4 *)((int)unaff_retaddr * 5 + 400)" * (cast_expression "(undefined4 *)((int)unaff_retaddr * 5 + 400)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr * 5 + 400)" ( (binary_expression "(int)unaff_retaddr * 5 + 400" (binary_expression "(int)unaff_retaddr * 5" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) )))) ))) ;) (expression_statement "FUN_0002ede0(unaff_retaddr);" (call_expression "FUN_0002ede0(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier ))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (goto_statement "goto LAB_00040f28;" goto statement_identifier ;) })) (expression_statement "FUN_00027140(local_90,unaff_EBX + 0x4072d);" (call_expression "FUN_00027140(local_90,unaff_EBX + 0x4072d)" identifier (argument_list "(local_90,unaff_EBX + 0x4072d)" ( identifier , (binary_expression "unaff_EBX + 0x4072d" identifier + number_literal) ))) ;) }) (else_clause "else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" else (if_statement "if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" if (parenthesized_expression "((uVar3 & 4) != 0)" ( (binary_expression "(uVar3 & 4) != 0" (parenthesized_expression "(uVar3 & 4)" ( (binary_expression "uVar3 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              FUN_0003f900();\n            }" { (expression_statement "FUN_0003f900();" (call_expression "FUN_0003f900()" identifier (argument_list "()" ( ))) ;) })))) (labeled_statement "LAB_00041019:\n            iVar6 = local_8c;" statement_identifier : (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;)) (if_statement "if (local_64 != 0) goto LAB_00041150;" if (parenthesized_expression "(local_64 != 0)" ( (binary_expression "local_64 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041150;" goto statement_identifier ;)) (goto_statement "goto LAB_00041025;" goto statement_identifier ;) })) (expression_statement "local_64 = 0;" (assignment_expression "local_64 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);" (assignment_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier = (call_expression "FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier (argument_list "(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" ( identifier , identifier , (subscript_expression "unaff_retaddr[0x9b]" identifier [ number_literal ]) , (subscript_expression "unaff_retaddr[0x9c]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" if (parenthesized_expression "(iVar6 < unaff_retaddr[0x9e])" ( (binary_expression "iVar6 < unaff_retaddr[0x9e]" identifier < (subscript_expression "unaff_retaddr[0x9e]" identifier [ number_literal ])) )) (compound_statement "{\n            if (uVar1 != 0) goto LAB_00041019;\n          }" { (if_statement "if (uVar1 != 0) goto LAB_00041019;" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041019;" goto statement_identifier ;)) }) (else_clause "else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" else (compound_statement "{\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" { (expression_statement "FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);" (call_expression "FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e])" identifier (argument_list "(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e])" ( identifier , (binary_expression "unaff_EBX + 0x409b7" identifier + number_literal) , (subscript_expression "unaff_retaddr[0x9e]" identifier [ number_literal ]) ))) ;) (expression_statement "local_64 = 0x6e;" (assignment_expression "local_64 = 0x6e" identifier = number_literal) ;) (if_statement "if (uVar1 != 0) goto LAB_00041150;" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041150;" goto statement_identifier ;)) }))) (if_statement "if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }" if (parenthesized_expression "((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6))" ( (binary_expression "(unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)" (parenthesized_expression "(unaff_retaddr[0x14] == 0)" ( (binary_expression "unaff_retaddr[0x14] == 0" (subscript_expression "unaff_retaddr[0x14]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)" ( (comma_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6" (assignment_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier = (call_expression "FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier (argument_list "(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" ( identifier , identifier , (subscript_expression "unaff_retaddr[0x9b]" identifier [ number_literal ]) , (subscript_expression "unaff_retaddr[0x9c]" identifier [ number_literal ]) )))) , (binary_expression "*(int *)(local_90 + 0x640) <= iVar6" (pointer_expression "*(int *)(local_90 + 0x640)" * (cast_expression "(int *)(local_90 + 0x640)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_90 + 0x640)" ( (binary_expression "local_90 + 0x640" identifier + number_literal) )))) <= identifier)) ))) )) (compound_statement "{\n            FUN_00040dc0();\n          }" { (expression_statement "FUN_00040dc0();" (call_expression "FUN_00040dc0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }" if (parenthesized_expression "(local_64 != 0)" ( (binary_expression "local_64 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }" { (labeled_statement "LAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;" statement_identifier : (expression_statement "*(int *)(local_90 + 0xcbc) = local_64;" (assignment_expression "*(int *)(local_90 + 0xcbc) = local_64" (pointer_expression "*(int *)(local_90 + 0xcbc)" * (cast_expression "(int *)(local_90 + 0xcbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_90 + 0xcbc)" ( (binary_expression "local_90 + 0xcbc" identifier + number_literal) )))) = identifier) ;)) (expression_statement "local_70 = local_64;" (assignment_expression "local_70 = local_64" identifier = identifier) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar5 = local_70;" (assignment_expression "*piVar5 = local_70" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;) (if_statement "if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }" if (parenthesized_expression "(unaff_retaddr[iVar7 + 0x12] != 0)" ( (binary_expression "unaff_retaddr[iVar7 + 0x12] != 0" (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }" { (expression_statement "FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);" (call_expression "FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e)" identifier (argument_list "(unaff_retaddr[iVar7 + 0x12],local_84,0x2e)" ( (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ]) , identifier , number_literal ))) ;) (expression_statement "uVar4 = FUN_00048500(unaff_retaddr,local_64);" (assignment_expression "uVar4 = FUN_00048500(unaff_retaddr,local_64)" identifier = (call_expression "FUN_00048500(unaff_retaddr,local_64)" identifier (argument_list "(unaff_retaddr,local_64)" ( identifier , identifier )))) ;) (expression_statement "FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);" (call_expression "FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4)" identifier (argument_list "(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4)" ( identifier , identifier , identifier , (subscript_expression "unaff_retaddr[0x3d]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "iVar6 = local_78;" (assignment_expression "iVar6 = local_78" identifier = identifier) ;) (if_statement "if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }" if (parenthesized_expression "(*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0)" ( (binary_expression "*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0" (pointer_expression "*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c)" * (cast_expression "(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr[iVar7 + 0x12] + 0x1c)" ( (binary_expression "unaff_retaddr[iVar7 + 0x12] + 0x1c" (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ]) + number_literal) )))) == number_literal) )) (compound_statement "{\n                iVar6 = local_80;\n              }" { (expression_statement "iVar6 = local_80;" (assignment_expression "iVar6 = local_80" identifier = identifier) ;) })) (expression_statement "unaff_retaddr[0x9e] = iVar6;" (assignment_expression "unaff_retaddr[0x9e] = iVar6" (subscript_expression "unaff_retaddr[0x9e]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = FUN_00040dc0();" (assignment_expression "iVar6 = FUN_00040dc0()" identifier = (call_expression "FUN_00040dc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }" if (parenthesized_expression "((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1))" ( (binary_expression "(iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)" (parenthesized_expression "(iVar6 == 7)" ( (binary_expression "iVar6 == 7" identifier == number_literal) )) && (parenthesized_expression "(unaff_retaddr[local_7c + 0x66] != -1)" ( (binary_expression "unaff_retaddr[local_7c + 0x66] != -1" (subscript_expression "unaff_retaddr[local_7c + 0x66]" identifier [ (binary_expression "local_7c + 0x66" identifier + number_literal) ]) != number_literal) ))) )) (compound_statement "{\n                iVar6 = local_8c;\n              }" { (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;) })) })) (goto_statement "goto LAB_00041025;" goto statement_identifier ;) })) }))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar7 = 0x1c;" (assignment_expression "iVar7 = 0x1c" identifier = number_literal) ;) (expression_statement "FUN_00027240(local_90,unaff_EBX + 0x40719);" (call_expression "FUN_00027240(local_90,unaff_EBX + 0x40719)" identifier (argument_list "(local_90,unaff_EBX + 0x40719)" ( identifier , (binary_expression "unaff_EBX + 0x40719" identifier + number_literal) ))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" else (compound_statement "{\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" { (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = &local_90;" (assignment_expression "piVar5 = &local_90" identifier = (pointer_expression "&local_90" & identifier)) ;) }))) (labeled_statement "LAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" statement_identifier : (if_statement "if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" if (parenthesized_expression "(*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)((int)piVar5 + 0x6c)" * (cast_expression "(int *)((int)piVar5 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x6c)" ( (binary_expression "(int)piVar5 + 0x6c" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" { comment (expression_statement "*(undefined **)((int)piVar5 + -4) = &UNK_00041386;" (assignment_expression "*(undefined **)((int)piVar5 + -4) = &UNK_00041386" (pointer_expression "*(undefined **)((int)piVar5 + -4)" * (cast_expression "(undefined **)((int)piVar5 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)piVar5 + -4)" ( (binary_expression "(int)piVar5 + -4" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "&UNK_00041386" & identifier)) ;) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar7;" return identifier ;) (labeled_statement "code_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" statement_identifier : (if_statement "if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" if (parenthesized_expression "((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0))))" ( (binary_expression "(local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))" (parenthesized_expression "(local_8c == 0)" ( (binary_expression "local_8c == 0" identifier == number_literal) )) || (parenthesized_expression "((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))" ( (parenthesized_expression "(iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0))" ( (comma_expression "iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)" (assignment_expression "iVar7 = local_8c" identifier = identifier) , (binary_expression "unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)" (binary_expression "unaff_retaddr[0x14] == 0" (subscript_expression "unaff_retaddr[0x14]" identifier [ number_literal ]) == number_literal) && (parenthesized_expression "(iVar7 = FUN_00040dc0(), iVar7 == 0)" ( (comma_expression "iVar7 = FUN_00040dc0(), iVar7 == 0" (assignment_expression "iVar7 = FUN_00040dc0()" identifier = (call_expression "FUN_00040dc0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar7 == 0" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" else (compound_statement "{\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" { (if_statement "if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24f) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x24f) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24f)" * (cast_expression "(char *)((int)unaff_retaddr + 0x24f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x24f)" ( (binary_expression "(int)unaff_retaddr + 0x24f" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }" { (if_statement "if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24e) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x24e) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24e)" * (cast_expression "(char *)((int)unaff_retaddr + 0x24e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x24e)" ( (binary_expression "(int)unaff_retaddr + 0x24e" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }" { (if_statement "if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24b) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x24b) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24b)" * (cast_expression "(char *)((int)unaff_retaddr + 0x24b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x24b)" ( (binary_expression "(int)unaff_retaddr + 0x24b" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar6 = unaff_retaddr[0x25];\n        }" { (expression_statement "iVar6 = unaff_retaddr[0x25];" (assignment_expression "iVar6 = unaff_retaddr[0x25]" identifier = (subscript_expression "unaff_retaddr[0x25]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          iVar6 = unaff_retaddr[0x2b];\n        }" else (compound_statement "{\n          iVar6 = unaff_retaddr[0x2b];\n        }" { (expression_statement "iVar6 = unaff_retaddr[0x2b];" (assignment_expression "iVar6 = unaff_retaddr[0x2b]" identifier = (subscript_expression "unaff_retaddr[0x2b]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n        iVar6 = unaff_retaddr[0x37];\n      }" else (compound_statement "{\n        iVar6 = unaff_retaddr[0x37];\n      }" { (expression_statement "iVar6 = unaff_retaddr[0x37];" (assignment_expression "iVar6 = unaff_retaddr[0x37]" identifier = (subscript_expression "unaff_retaddr[0x37]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n      iVar6 = unaff_retaddr[0x2f];\n    }" else (compound_statement "{\n      iVar6 = unaff_retaddr[0x2f];\n    }" { (expression_statement "iVar6 = unaff_retaddr[0x2f];" (assignment_expression "iVar6 = unaff_retaddr[0x2f]" identifier = (subscript_expression "unaff_retaddr[0x2f]" identifier [ number_literal ])) ;) }))) (expression_statement "uVar4 = FUN_00048500(unaff_retaddr,local_64);" (assignment_expression "uVar4 = FUN_00048500(unaff_retaddr,local_64)" identifier = (call_expression "FUN_00048500(unaff_retaddr,local_64)" identifier (argument_list "(unaff_retaddr,local_64)" ( identifier , identifier )))) ;) (expression_statement "FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);" (call_expression "FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4)" identifier (argument_list "(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4)" ( identifier , (binary_expression "&UNK_000409ff + unaff_EBX" (pointer_expression "&UNK_000409ff" & identifier) + identifier) , identifier , (subscript_expression "unaff_retaddr[0x3d]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))) (goto_statement "goto LAB_00040f28;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_is_connected(connectdata *conn,int sockindex,_Bool *connected)\n\n{\n  uint uVar1;\n  int iVar2;\n  Curl_addrinfo *pCVar3;\n  curltime newer;\n  curltime newer_00;\n  _Bool _Var4;\n  timediff_t tVar5;\n  uint uVar6;\n  char *pcVar7;\n  timediff_t tVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  uint uVar12;\n  CURLcode tempindex;\n  int iVar13;\n  int in_GS_OFFSET;\n  connectdata *in_stack_ffffff74;\n  Curl_easy *data;\n  CURLcode tempindex_00;\n  time_t local_64;\n  int local_60;\n  int error;\n  curltime now;\n  char ipaddress [46];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  data = conn->data;\n  *connected = false;\n  error = 0;\n  if ((conn->bits).tcpconnect[sockindex] == false) {\n    Curl_now();\n    now.tv_sec = local_64;\n    now.tv_usec = local_60;\n    tVar5 = Curl_timeleft(data,&now,true);\n    if (-1 < tVar5) {\n      iVar13 = 1;\n      tempindex_00 = CURLE_OK;\n      do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );\n    }\n    tempindex = CURLE_OPERATION_TIMEDOUT;\n    Curl_failf(data,"Connection time-out");\n  }\n  else {\n    *connected = true;\n    tempindex = CURLE_OK;\n  }\nLAB_00040f28:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return tempindex;\ncode_r0x0004102e:\n  if ((tempindex == CURLE_OK) ||\n     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))) {\n    tempindex = CURLE_OK;\n  }\n  else {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }\n    pcVar7 = Curl_strerror(conn,error);\n    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);\n  }\n  goto LAB_00040f28;\n}\n\n" comment comment comment (function_definition "CURLcode Curl_is_connected(connectdata *conn,int sockindex,_Bool *connected)\n\n{\n  uint uVar1;\n  int iVar2;\n  Curl_addrinfo *pCVar3;\n  curltime newer;\n  curltime newer_00;\n  _Bool _Var4;\n  timediff_t tVar5;\n  uint uVar6;\n  char *pcVar7;\n  timediff_t tVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  uint uVar12;\n  CURLcode tempindex;\n  int iVar13;\n  int in_GS_OFFSET;\n  connectdata *in_stack_ffffff74;\n  Curl_easy *data;\n  CURLcode tempindex_00;\n  time_t local_64;\n  int local_60;\n  int error;\n  curltime now;\n  char ipaddress [46];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  data = conn->data;\n  *connected = false;\n  error = 0;\n  if ((conn->bits).tcpconnect[sockindex] == false) {\n    Curl_now();\n    now.tv_sec = local_64;\n    now.tv_usec = local_60;\n    tVar5 = Curl_timeleft(data,&now,true);\n    if (-1 < tVar5) {\n      iVar13 = 1;\n      tempindex_00 = CURLE_OK;\n      do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );\n    }\n    tempindex = CURLE_OPERATION_TIMEDOUT;\n    Curl_failf(data,"Connection time-out");\n  }\n  else {\n    *connected = true;\n    tempindex = CURLE_OK;\n  }\nLAB_00040f28:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return tempindex;\ncode_r0x0004102e:\n  if ((tempindex == CURLE_OK) ||\n     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))) {\n    tempindex = CURLE_OK;\n  }\n  else {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }\n    pcVar7 = Curl_strerror(conn,error);\n    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);\n  }\n  goto LAB_00040f28;\n}" type_identifier (function_declarator "Curl_is_connected(connectdata *conn,int sockindex,_Bool *connected)" identifier (parameter_list "(connectdata *conn,int sockindex,_Bool *connected)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "int sockindex" primitive_type identifier) , (parameter_declaration "_Bool *connected" type_identifier (pointer_declarator "*connected" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  Curl_addrinfo *pCVar3;\n  curltime newer;\n  curltime newer_00;\n  _Bool _Var4;\n  timediff_t tVar5;\n  uint uVar6;\n  char *pcVar7;\n  timediff_t tVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  uint uVar12;\n  CURLcode tempindex;\n  int iVar13;\n  int in_GS_OFFSET;\n  connectdata *in_stack_ffffff74;\n  Curl_easy *data;\n  CURLcode tempindex_00;\n  time_t local_64;\n  int local_60;\n  int error;\n  curltime now;\n  char ipaddress [46];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  data = conn->data;\n  *connected = false;\n  error = 0;\n  if ((conn->bits).tcpconnect[sockindex] == false) {\n    Curl_now();\n    now.tv_sec = local_64;\n    now.tv_usec = local_60;\n    tVar5 = Curl_timeleft(data,&now,true);\n    if (-1 < tVar5) {\n      iVar13 = 1;\n      tempindex_00 = CURLE_OK;\n      do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );\n    }\n    tempindex = CURLE_OPERATION_TIMEDOUT;\n    Curl_failf(data,"Connection time-out");\n  }\n  else {\n    *connected = true;\n    tempindex = CURLE_OK;\n  }\nLAB_00040f28:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return tempindex;\ncode_r0x0004102e:\n  if ((tempindex == CURLE_OK) ||\n     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))) {\n    tempindex = CURLE_OK;\n  }\n  else {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }\n    pcVar7 = Curl_strerror(conn,error);\n    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);\n  }\n  goto LAB_00040f28;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Curl_addrinfo *pCVar3;" type_identifier (pointer_declarator "*pCVar3" * identifier) ;) (declaration "curltime newer;" type_identifier identifier ;) (declaration "curltime newer_00;" type_identifier identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "timediff_t tVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "timediff_t tVar8;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "CURLcode tempindex;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "connectdata *in_stack_ffffff74;" type_identifier (pointer_declarator "*in_stack_ffffff74" * identifier) ;) (declaration "Curl_easy *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "CURLcode tempindex_00;" type_identifier identifier ;) (declaration "time_t local_64;" type_identifier identifier ;) (declaration "int local_60;" primitive_type identifier ;) (declaration "int error;" primitive_type identifier ;) (declaration "curltime now;" type_identifier identifier ;) (declaration "char ipaddress [46];" primitive_type (array_declarator "ipaddress [46]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "data = conn->data;" (assignment_expression "data = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "*connected = false;" (assignment_expression "*connected = false" (pointer_expression "*connected" * identifier) = false) ;) (expression_statement "error = 0;" (assignment_expression "error = 0" identifier = number_literal) ;) (if_statement "if ((conn->bits).tcpconnect[sockindex] == false) {\n    Curl_now();\n    now.tv_sec = local_64;\n    now.tv_usec = local_60;\n    tVar5 = Curl_timeleft(data,&now,true);\n    if (-1 < tVar5) {\n      iVar13 = 1;\n      tempindex_00 = CURLE_OK;\n      do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );\n    }\n    tempindex = CURLE_OPERATION_TIMEDOUT;\n    Curl_failf(data,"Connection time-out");\n  }\n  else {\n    *connected = true;\n    tempindex = CURLE_OK;\n  }" if (parenthesized_expression "((conn->bits).tcpconnect[sockindex] == false)" ( (binary_expression "(conn->bits).tcpconnect[sockindex] == false" (subscript_expression "(conn->bits).tcpconnect[sockindex]" (field_expression "(conn->bits).tcpconnect" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) [ identifier ]) == false) )) (compound_statement "{\n    Curl_now();\n    now.tv_sec = local_64;\n    now.tv_usec = local_60;\n    tVar5 = Curl_timeleft(data,&now,true);\n    if (-1 < tVar5) {\n      iVar13 = 1;\n      tempindex_00 = CURLE_OK;\n      do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );\n    }\n    tempindex = CURLE_OPERATION_TIMEDOUT;\n    Curl_failf(data,"Connection time-out");\n  }" { (expression_statement "Curl_now();" (call_expression "Curl_now()" identifier (argument_list "()" ( ))) ;) (expression_statement "now.tv_sec = local_64;" (assignment_expression "now.tv_sec = local_64" (field_expression "now.tv_sec" identifier . field_identifier) = identifier) ;) (expression_statement "now.tv_usec = local_60;" (assignment_expression "now.tv_usec = local_60" (field_expression "now.tv_usec" identifier . field_identifier) = identifier) ;) (expression_statement "tVar5 = Curl_timeleft(data,&now,true);" (assignment_expression "tVar5 = Curl_timeleft(data,&now,true)" identifier = (call_expression "Curl_timeleft(data,&now,true)" identifier (argument_list "(data,&now,true)" ( identifier , (pointer_expression "&now" & identifier) , true )))) ;) (if_statement "if (-1 < tVar5) {\n      iVar13 = 1;\n      tempindex_00 = CURLE_OK;\n      do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );\n    }" if (parenthesized_expression "(-1 < tVar5)" ( (binary_expression "-1 < tVar5" number_literal < identifier) )) (compound_statement "{\n      iVar13 = 1;\n      tempindex_00 = CURLE_OK;\n      do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );\n    }" { (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) (expression_statement "tempindex_00 = CURLE_OK;" (assignment_expression "tempindex_00 = CURLE_OK" identifier = identifier) ;) (do_statement "do {\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      } while( true );" do (compound_statement "{\n        uVar1 = iVar13 - 1;\n        tempindex = tempindex_00;\n        if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar13 = iVar13 + 1;\n      }" { (expression_statement "uVar1 = iVar13 - 1;" (assignment_expression "uVar1 = iVar13 - 1" identifier = (binary_expression "iVar13 - 1" identifier - number_literal)) ;) (expression_statement "tempindex = tempindex_00;" (assignment_expression "tempindex = tempindex_00" identifier = identifier) ;) (if_statement "if (conn->sock[iVar13 + 1] == -1) {\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }\n        else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" if (parenthesized_expression "(conn->sock[iVar13 + 1] == -1)" ( (binary_expression "conn->sock[iVar13 + 1] == -1" (subscript_expression "conn->sock[iVar13 + 1]" (field_expression "conn->sock" identifier -> field_identifier) [ (binary_expression "iVar13 + 1" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\nLAB_00041025:\n          tempindex_00 = tempindex;\n          if (iVar13 == 2) goto code_r0x0004102e;\n        }" { (labeled_statement "LAB_00041025:\n          tempindex_00 = tempindex;" statement_identifier : (expression_statement "tempindex_00 = tempindex;" (assignment_expression "tempindex_00 = tempindex" identifier = identifier) ;)) (if_statement "if (iVar13 == 2) goto code_r0x0004102e;" if (parenthesized_expression "(iVar13 == 2)" ( (binary_expression "iVar13 == 2" identifier == number_literal) )) (goto_statement "goto code_r0x0004102e;" goto statement_identifier ;)) }) (else_clause "else {\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" else (compound_statement "{\n          uVar12 = uVar1 ^ 1;\n          uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);\n          if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          error = 0;\n          newer.tv_usec = now.tv_usec;\n          newer.tv_sec = now.tv_sec;\n          tVar8 = Curl_timediff(newer,conn->connecttime);\n          if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }\n          if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" { (expression_statement "uVar12 = uVar1 ^ 1;" (assignment_expression "uVar12 = uVar1 ^ 1" identifier = (binary_expression "uVar1 ^ 1" identifier ^ number_literal)) ;) (expression_statement "uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0);" (assignment_expression "uVar6 = Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0)" identifier = (call_expression "Curl_socket_check(-1,-1,conn->sock[iVar13 + 1],0)" identifier (argument_list "(-1,-1,conn->sock[iVar13 + 1],0)" ( number_literal , number_literal , (subscript_expression "conn->sock[iVar13 + 1]" (field_expression "conn->sock" identifier -> field_identifier) [ (binary_expression "iVar13 + 1" identifier + number_literal) ]) , number_literal )))) ;) (if_statement "if (uVar6 != 0) {\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (compound_statement "{\n            if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }\nLAB_00041019:\n            tempindex = tempindex_00;\n            if (error != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" { (if_statement "if ((uVar6 == 2) || ((conn->bits).tcp_fastopen != false)) {\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }\n            else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }" if (parenthesized_expression "((uVar6 == 2) || ((conn->bits).tcp_fastopen != false))" ( (binary_expression "(uVar6 == 2) || ((conn->bits).tcp_fastopen != false)" (parenthesized_expression "(uVar6 == 2)" ( (binary_expression "uVar6 == 2" identifier == number_literal) )) || (parenthesized_expression "((conn->bits).tcp_fastopen != false)" ( (binary_expression "(conn->bits).tcp_fastopen != false" (field_expression "(conn->bits).tcp_fastopen" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) != false) ))) )) (compound_statement "{\n              _Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);\n              if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }\n              Curl_infof(data,"Connection failed\n");\n            }" { (expression_statement "_Var4 = verifyconnect(conn->sock[iVar13 + 1],&error);" (assignment_expression "_Var4 = verifyconnect(conn->sock[iVar13 + 1],&error)" identifier = (call_expression "verifyconnect(conn->sock[iVar13 + 1],&error)" identifier (argument_list "(conn->sock[iVar13 + 1],&error)" ( (subscript_expression "conn->sock[iVar13 + 1]" (field_expression "conn->sock" identifier -> field_identifier) [ (binary_expression "iVar13 + 1" identifier + number_literal) ]) , (pointer_expression "&error" & identifier) )))) ;) (if_statement "if (_Var4) {\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }" if (parenthesized_expression "(_Var4)" ( identifier )) (compound_statement "{\n                conn->sock[sockindex] = conn->sock[iVar13 + 1];\n                pCVar3 = conn->tempaddr[iVar13 + -1];\n                conn->ip_addr = pCVar3;\n                iVar11 = pCVar3->ai_family;\n                conn->sock[iVar13 + 1] = -1;\n                (conn->bits).ipv6 = iVar11 == 10;\n                if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }\n                tempindex = Curl_connected_proxy(conn,sockindex);\n                if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }\n                goto LAB_00040f28;\n              }" { (expression_statement "conn->sock[sockindex] = conn->sock[iVar13 + 1];" (assignment_expression "conn->sock[sockindex] = conn->sock[iVar13 + 1]" (subscript_expression "conn->sock[sockindex]" (field_expression "conn->sock" identifier -> field_identifier) [ identifier ]) = (subscript_expression "conn->sock[iVar13 + 1]" (field_expression "conn->sock" identifier -> field_identifier) [ (binary_expression "iVar13 + 1" identifier + number_literal) ])) ;) (expression_statement "pCVar3 = conn->tempaddr[iVar13 + -1];" (assignment_expression "pCVar3 = conn->tempaddr[iVar13 + -1]" identifier = (subscript_expression "conn->tempaddr[iVar13 + -1]" (field_expression "conn->tempaddr" identifier -> field_identifier) [ (binary_expression "iVar13 + -1" identifier + number_literal) ])) ;) (expression_statement "conn->ip_addr = pCVar3;" (assignment_expression "conn->ip_addr = pCVar3" (field_expression "conn->ip_addr" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar11 = pCVar3->ai_family;" (assignment_expression "iVar11 = pCVar3->ai_family" identifier = (field_expression "pCVar3->ai_family" identifier -> field_identifier)) ;) (expression_statement "conn->sock[iVar13 + 1] = -1;" (assignment_expression "conn->sock[iVar13 + 1] = -1" (subscript_expression "conn->sock[iVar13 + 1]" (field_expression "conn->sock" identifier -> field_identifier) [ (binary_expression "iVar13 + 1" identifier + number_literal) ]) = number_literal) ;) (expression_statement "(conn->bits).ipv6 = iVar11 == 10;" (assignment_expression "(conn->bits).ipv6 = iVar11 == 10" (field_expression "(conn->bits).ipv6" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) = (binary_expression "iVar11 == 10" identifier == number_literal)) ;) (if_statement "if (conn->tempsock[uVar12] != -1) {\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }" if (parenthesized_expression "(conn->tempsock[uVar12] != -1)" ( (binary_expression "conn->tempsock[uVar12] != -1" (subscript_expression "conn->tempsock[uVar12]" (field_expression "conn->tempsock" identifier -> field_identifier) [ identifier ]) != number_literal) )) (compound_statement "{\n                  Curl_closesocket(conn,conn->tempsock[uVar12]);\n                  conn->tempsock[uVar12] = -1;\n                }" { (expression_statement "Curl_closesocket(conn,conn->tempsock[uVar12]);" (call_expression "Curl_closesocket(conn,conn->tempsock[uVar12])" identifier (argument_list "(conn,conn->tempsock[uVar12])" ( identifier , (subscript_expression "conn->tempsock[uVar12]" (field_expression "conn->tempsock" identifier -> field_identifier) [ identifier ]) ))) ;) (expression_statement "conn->tempsock[uVar12] = -1;" (assignment_expression "conn->tempsock[uVar12] = -1" (subscript_expression "conn->tempsock[uVar12]" (field_expression "conn->tempsock" identifier -> field_identifier) [ identifier ]) = number_literal) ;) })) (expression_statement "tempindex = Curl_connected_proxy(conn,sockindex);" (assignment_expression "tempindex = Curl_connected_proxy(conn,sockindex)" identifier = (call_expression "Curl_connected_proxy(conn,sockindex)" identifier (argument_list "(conn,sockindex)" ( identifier , identifier )))) ;) (if_statement "if (tempindex == CURLE_OK) {\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }" if (parenthesized_expression "(tempindex == CURLE_OK)" ( (binary_expression "tempindex == CURLE_OK" identifier == identifier) )) (compound_statement "{\n                  (conn->bits).tcpconnect[sockindex] = true;\n                  *connected = true;\n                  if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }\n                  Curl_updateconninfo(conn,conn->sock[sockindex]);\n                  Curl_verboseconnect(conn);\n                }" { (expression_statement "(conn->bits).tcpconnect[sockindex] = true;" (assignment_expression "(conn->bits).tcpconnect[sockindex] = true" (subscript_expression "(conn->bits).tcpconnect[sockindex]" (field_expression "(conn->bits).tcpconnect" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) [ identifier ]) = true) ;) (expression_statement "*connected = true;" (assignment_expression "*connected = true" (pointer_expression "*connected" * identifier) = true) ;) (if_statement "if (sockindex == 0) {\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }" if (parenthesized_expression "(sockindex == 0)" ( (binary_expression "sockindex == 0" identifier == number_literal) )) (compound_statement "{\n                    Curl_pgrsTime(data,TIMER_CONNECT);\n                  }" { (expression_statement "Curl_pgrsTime(data,TIMER_CONNECT);" (call_expression "Curl_pgrsTime(data,TIMER_CONNECT)" identifier (argument_list "(data,TIMER_CONNECT)" ( identifier , identifier ))) ;) })) (expression_statement "Curl_updateconninfo(conn,conn->sock[sockindex]);" (call_expression "Curl_updateconninfo(conn,conn->sock[sockindex])" identifier (argument_list "(conn,conn->sock[sockindex])" ( identifier , (subscript_expression "conn->sock[sockindex]" (field_expression "conn->sock" identifier -> field_identifier) [ identifier ]) ))) ;) (expression_statement "Curl_verboseconnect(conn);" (call_expression "Curl_verboseconnect(conn)" identifier (argument_list "(conn)" ( identifier ))) ;) })) (goto_statement "goto LAB_00040f28;" goto statement_identifier ;) })) (expression_statement "Curl_infof(data,"Connection failed\n");" (call_expression "Curl_infof(data,"Connection failed\n")" identifier (argument_list "(data,"Connection failed\n")" ( identifier , (string_literal ""Connection failed\n"" " string_content escape_sequence ") ))) ;) }) (else_clause "else if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }" else (if_statement "if ((uVar6 & 4) != 0) {\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }" if (parenthesized_expression "((uVar6 & 4) != 0)" ( (binary_expression "(uVar6 & 4) != 0" (parenthesized_expression "(uVar6 & 4)" ( (binary_expression "uVar6 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              verifyconnect(conn->sock[iVar13 + 1],&error);\n            }" { (expression_statement "verifyconnect(conn->sock[iVar13 + 1],&error);" (call_expression "verifyconnect(conn->sock[iVar13 + 1],&error)" identifier (argument_list "(conn->sock[iVar13 + 1],&error)" ( (subscript_expression "conn->sock[iVar13 + 1]" (field_expression "conn->sock" identifier -> field_identifier) [ (binary_expression "iVar13 + 1" identifier + number_literal) ]) , (pointer_expression "&error" & identifier) ))) ;) })))) (labeled_statement "LAB_00041019:\n            tempindex = tempindex_00;" statement_identifier : (expression_statement "tempindex = tempindex_00;" (assignment_expression "tempindex = tempindex_00" identifier = identifier) ;)) (if_statement "if (error != 0) goto LAB_00041150;" if (parenthesized_expression "(error != 0)" ( (binary_expression "error != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041150;" goto statement_identifier ;)) (goto_statement "goto LAB_00041025;" goto statement_identifier ;) })) (expression_statement "error = 0;" (assignment_expression "error = 0" identifier = number_literal) ;) (expression_statement "newer.tv_usec = now.tv_usec;" (assignment_expression "newer.tv_usec = now.tv_usec" (field_expression "newer.tv_usec" identifier . field_identifier) = (field_expression "now.tv_usec" identifier . field_identifier)) ;) (expression_statement "newer.tv_sec = now.tv_sec;" (assignment_expression "newer.tv_sec = now.tv_sec" (field_expression "newer.tv_sec" identifier . field_identifier) = (field_expression "now.tv_sec" identifier . field_identifier)) ;) (expression_statement "tVar8 = Curl_timediff(newer,conn->connecttime);" (assignment_expression "tVar8 = Curl_timediff(newer,conn->connecttime)" identifier = (call_expression "Curl_timediff(newer,conn->connecttime)" identifier (argument_list "(newer,conn->connecttime)" ( identifier , (field_expression "conn->connecttime" identifier -> field_identifier) )))) ;) (if_statement "if (tVar8 < conn->timeoutms_per_addr) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" if (parenthesized_expression "(tVar8 < conn->timeoutms_per_addr)" ( (binary_expression "tVar8 < conn->timeoutms_per_addr" identifier < (field_expression "conn->timeoutms_per_addr" identifier -> field_identifier)) )) (compound_statement "{\n            if (uVar1 != 0) goto LAB_00041019;\n          }" { (if_statement "if (uVar1 != 0) goto LAB_00041019;" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041019;" goto statement_identifier ;)) }) (else_clause "else {\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" else (compound_statement "{\n            Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);\n            error = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" { (expression_statement "Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);" (call_expression "Curl_infof(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr)" identifier (argument_list "(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr)" ( identifier , (string_literal ""After %ldms connect time, move on!\n"" " string_content escape_sequence ") , (field_expression "conn->timeoutms_per_addr" identifier -> field_identifier) ))) ;) (expression_statement "error = 0x6e;" (assignment_expression "error = 0x6e" identifier = number_literal) ;) (if_statement "if (uVar1 != 0) goto LAB_00041150;" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041150;" goto statement_identifier ;)) }))) (if_statement "if ((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)) {\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }" if (parenthesized_expression "((conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8))" ( (binary_expression "(conn->tempaddr[1] == (Curl_addrinfo *)0x0) &&\n             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)" (parenthesized_expression "(conn->tempaddr[1] == (Curl_addrinfo *)0x0)" ( (binary_expression "conn->tempaddr[1] == (Curl_addrinfo *)0x0" (subscript_expression "conn->tempaddr[1]" (field_expression "conn->tempaddr" identifier -> field_identifier) [ number_literal ]) == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8)" ( (comma_expression "newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8" (assignment_expression "newer_00.tv_usec = now.tv_usec" (field_expression "newer_00.tv_usec" identifier . field_identifier) = (field_expression "now.tv_usec" identifier . field_identifier)) , (comma_expression "newer_00.tv_sec = now.tv_sec,\n             tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8" (assignment_expression "newer_00.tv_sec = now.tv_sec" (field_expression "newer_00.tv_sec" identifier . field_identifier) = (field_expression "now.tv_sec" identifier . field_identifier)) , (comma_expression "tVar8 = Curl_timediff(newer_00,conn->connecttime),\n             (data->set).happy_eyeballs_timeout <= tVar8" (assignment_expression "tVar8 = Curl_timediff(newer_00,conn->connecttime)" identifier = (call_expression "Curl_timediff(newer_00,conn->connecttime)" identifier (argument_list "(newer_00,conn->connecttime)" ( identifier , (field_expression "conn->connecttime" identifier -> field_identifier) )))) , (binary_expression "(data->set).happy_eyeballs_timeout <= tVar8" (field_expression "(data->set).happy_eyeballs_timeout" (parenthesized_expression "(data->set)" ( (field_expression "data->set" identifier -> field_identifier) )) . field_identifier) <= identifier)))) ))) )) (compound_statement "{\n            trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n          }" { (expression_statement "trynextip(in_stack_ffffff74,(int)data,tempindex_00);" (call_expression "trynextip(in_stack_ffffff74,(int)data,tempindex_00)" identifier (argument_list "(in_stack_ffffff74,(int)data,tempindex_00)" ( identifier , (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) })) (if_statement "if (error != 0) {\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }" if (parenthesized_expression "(error != 0)" ( (binary_expression "error != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00041150:\n            iVar11 = error;\n            (data->state).os_errno = error;\n            piVar9 = __errno_location();\n            *piVar9 = iVar11;\n            tempindex = tempindex_00;\n            if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }\n            goto LAB_00041025;\n          }" { (labeled_statement "LAB_00041150:\n            iVar11 = error;" statement_identifier : (expression_statement "iVar11 = error;" (assignment_expression "iVar11 = error" identifier = identifier) ;)) (expression_statement "(data->state).os_errno = error;" (assignment_expression "(data->state).os_errno = error" (field_expression "(data->state).os_errno" (parenthesized_expression "(data->state)" ( (field_expression "data->state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "piVar9 = __errno_location();" (assignment_expression "piVar9 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar9 = iVar11;" (assignment_expression "*piVar9 = iVar11" (pointer_expression "*piVar9" * identifier) = identifier) ;) (expression_statement "tempindex = tempindex_00;" (assignment_expression "tempindex = tempindex_00" identifier = identifier) ;) (if_statement "if (conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0) {\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }" if (parenthesized_expression "(conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0)" ( (binary_expression "conn->tempaddr[iVar13 + -1] != (Curl_addrinfo *)0x0" (subscript_expression "conn->tempaddr[iVar13 + -1]" (field_expression "conn->tempaddr" identifier -> field_identifier) [ (binary_expression "iVar13 + -1" identifier + number_literal) ]) != (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);\n              pcVar10 = Curl_strerror(conn,error);\n              Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);\n              iVar11 = tVar5 >> 1;\n              if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }\n              conn->timeoutms_per_addr = iVar11;\n              tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);\n              if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }\n            }" { (expression_statement "Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e);" (call_expression "Curl_printable_address(conn->tempaddr[iVar13 + -1],ipaddress,0x2e)" identifier (argument_list "(conn->tempaddr[iVar13 + -1],ipaddress,0x2e)" ( (subscript_expression "conn->tempaddr[iVar13 + -1]" (field_expression "conn->tempaddr" identifier -> field_identifier) [ (binary_expression "iVar13 + -1" identifier + number_literal) ]) , identifier , number_literal ))) ;) (expression_statement "pcVar10 = Curl_strerror(conn,error);" (assignment_expression "pcVar10 = Curl_strerror(conn,error)" identifier = (call_expression "Curl_strerror(conn,error)" identifier (argument_list "(conn,error)" ( identifier , identifier )))) ;) (expression_statement "Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);" (call_expression "Curl_infof(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10)" identifier (argument_list "(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10)" ( identifier , (string_literal ""connect to %s port %ld failed: %s\n"" " string_content escape_sequence ") , identifier , (field_expression "conn->port" identifier -> field_identifier) , identifier ))) ;) (expression_statement "iVar11 = tVar5 >> 1;" (assignment_expression "iVar11 = tVar5 >> 1" identifier = (binary_expression "tVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if (conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0) {\n                iVar11 = tVar5;\n              }" if (parenthesized_expression "(conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0)" ( (binary_expression "conn->tempaddr[iVar13 + -1]->ai_next == (Curl_addrinfo *)0x0" (field_expression "conn->tempaddr[iVar13 + -1]->ai_next" (subscript_expression "conn->tempaddr[iVar13 + -1]" (field_expression "conn->tempaddr" identifier -> field_identifier) [ (binary_expression "iVar13 + -1" identifier + number_literal) ]) -> field_identifier) == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                iVar11 = tVar5;\n              }" { (expression_statement "iVar11 = tVar5;" (assignment_expression "iVar11 = tVar5" identifier = identifier) ;) })) (expression_statement "conn->timeoutms_per_addr = iVar11;" (assignment_expression "conn->timeoutms_per_addr = iVar11" (field_expression "conn->timeoutms_per_addr" identifier -> field_identifier) = identifier) ;) (expression_statement "tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00);" (assignment_expression "tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex_00)" identifier = (call_expression "trynextip(in_stack_ffffff74,(int)data,tempindex_00)" identifier (argument_list "(in_stack_ffffff74,(int)data,tempindex_00)" ( identifier , (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) (if_statement "if ((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)) {\n                tempindex = tempindex_00;\n              }" if (parenthesized_expression "((tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1))" ( (binary_expression "(tempindex == CURLE_COULDNT_CONNECT) && (conn->tempsock[uVar12] != -1)" (parenthesized_expression "(tempindex == CURLE_COULDNT_CONNECT)" ( (binary_expression "tempindex == CURLE_COULDNT_CONNECT" identifier == identifier) )) && (parenthesized_expression "(conn->tempsock[uVar12] != -1)" ( (binary_expression "conn->tempsock[uVar12] != -1" (subscript_expression "conn->tempsock[uVar12]" (field_expression "conn->tempsock" identifier -> field_identifier) [ identifier ]) != number_literal) ))) )) (compound_statement "{\n                tempindex = tempindex_00;\n              }" { (expression_statement "tempindex = tempindex_00;" (assignment_expression "tempindex = tempindex_00" identifier = identifier) ;) })) })) (goto_statement "goto LAB_00041025;" goto statement_identifier ;) })) }))) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "tempindex = CURLE_OPERATION_TIMEDOUT;" (assignment_expression "tempindex = CURLE_OPERATION_TIMEDOUT" identifier = identifier) ;) (expression_statement "Curl_failf(data,"Connection time-out");" (call_expression "Curl_failf(data,"Connection time-out")" identifier (argument_list "(data,"Connection time-out")" ( identifier , (string_literal ""Connection time-out"" " string_content ") ))) ;) }) (else_clause "else {\n    *connected = true;\n    tempindex = CURLE_OK;\n  }" else (compound_statement "{\n    *connected = true;\n    tempindex = CURLE_OK;\n  }" { (expression_statement "*connected = true;" (assignment_expression "*connected = true" (pointer_expression "*connected" * identifier) = true) ;) (expression_statement "tempindex = CURLE_OK;" (assignment_expression "tempindex = CURLE_OK" identifier = identifier) ;) }))) (labeled_statement "LAB_00040f28:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return tempindex;" return identifier ;) (labeled_statement "code_r0x0004102e:\n  if ((tempindex == CURLE_OK) ||\n     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))) {\n    tempindex = CURLE_OK;\n  }\n  else {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }\n    pcVar7 = Curl_strerror(conn,error);\n    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);\n  }" statement_identifier : (if_statement "if ((tempindex == CURLE_OK) ||\n     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))) {\n    tempindex = CURLE_OK;\n  }\n  else {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }\n    pcVar7 = Curl_strerror(conn,error);\n    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);\n  }" if (parenthesized_expression "((tempindex == CURLE_OK) ||\n     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK))))" ( (binary_expression "(tempindex == CURLE_OK) ||\n     ((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))" (parenthesized_expression "(tempindex == CURLE_OK)" ( (binary_expression "tempindex == CURLE_OK" identifier == identifier) )) || (parenthesized_expression "((conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)))" ( (parenthesized_expression "(conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK))" ( (binary_expression "conn->tempaddr[1] == (Curl_addrinfo *)0x0 &&\n      (tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)" (binary_expression "conn->tempaddr[1] == (Curl_addrinfo *)0x0" (subscript_expression "conn->tempaddr[1]" (field_expression "conn->tempaddr" identifier -> field_identifier) [ number_literal ]) == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK)" ( (comma_expression "tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex), tempindex == CURLE_OK" (assignment_expression "tempindex = trynextip(in_stack_ffffff74,(int)data,tempindex)" identifier = (call_expression "trynextip(in_stack_ffffff74,(int)data,tempindex)" identifier (argument_list "(in_stack_ffffff74,(int)data,tempindex)" ( identifier , (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) , (binary_expression "tempindex == CURLE_OK" identifier == identifier)) ))) )) ))) )) (compound_statement "{\n    tempindex = CURLE_OK;\n  }" { (expression_statement "tempindex = CURLE_OK;" (assignment_expression "tempindex = CURLE_OK" identifier = identifier) ;) }) (else_clause "else {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }\n    pcVar7 = Curl_strerror(conn,error);\n    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);\n  }" else (compound_statement "{\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }\n    pcVar7 = Curl_strerror(conn,error);\n    Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);\n  }" { (if_statement "if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }\n    else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }" if (parenthesized_expression "((conn->bits).socksproxy == false)" ( (binary_expression "(conn->bits).socksproxy == false" (field_expression "(conn->bits).socksproxy" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }\n    }" { (if_statement "if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }\n      else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }" if (parenthesized_expression "((conn->bits).httpproxy == false)" ( (binary_expression "(conn->bits).httpproxy == false" (field_expression "(conn->bits).httpproxy" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n        if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }\n      }" { (if_statement "if ((conn->bits).conn_to_host == false) {\n          pcVar10 = (conn->host).name;\n        }\n        else {\n          pcVar10 = (conn->conn_to_host).name;\n        }" if (parenthesized_expression "((conn->bits).conn_to_host == false)" ( (binary_expression "(conn->bits).conn_to_host == false" (field_expression "(conn->bits).conn_to_host" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n          pcVar10 = (conn->host).name;\n        }" { (expression_statement "pcVar10 = (conn->host).name;" (assignment_expression "pcVar10 = (conn->host).name" identifier = (field_expression "(conn->host).name" (parenthesized_expression "(conn->host)" ( (field_expression "conn->host" identifier -> field_identifier) )) . field_identifier)) ;) }) (else_clause "else {\n          pcVar10 = (conn->conn_to_host).name;\n        }" else (compound_statement "{\n          pcVar10 = (conn->conn_to_host).name;\n        }" { (expression_statement "pcVar10 = (conn->conn_to_host).name;" (assignment_expression "pcVar10 = (conn->conn_to_host).name" identifier = (field_expression "(conn->conn_to_host).name" (parenthesized_expression "(conn->conn_to_host)" ( (field_expression "conn->conn_to_host" identifier -> field_identifier) )) . field_identifier)) ;) }))) }) (else_clause "else {\n        pcVar10 = (conn->http_proxy).host.name;\n      }" else (compound_statement "{\n        pcVar10 = (conn->http_proxy).host.name;\n      }" { (expression_statement "pcVar10 = (conn->http_proxy).host.name;" (assignment_expression "pcVar10 = (conn->http_proxy).host.name" identifier = (field_expression "(conn->http_proxy).host.name" (field_expression "(conn->http_proxy).host" (parenthesized_expression "(conn->http_proxy)" ( (field_expression "conn->http_proxy" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }))) }) (else_clause "else {\n      pcVar10 = (conn->socks_proxy).host.name;\n    }" else (compound_statement "{\n      pcVar10 = (conn->socks_proxy).host.name;\n    }" { (expression_statement "pcVar10 = (conn->socks_proxy).host.name;" (assignment_expression "pcVar10 = (conn->socks_proxy).host.name" identifier = (field_expression "(conn->socks_proxy).host.name" (field_expression "(conn->socks_proxy).host" (parenthesized_expression "(conn->socks_proxy)" ( (field_expression "conn->socks_proxy" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }))) (expression_statement "pcVar7 = Curl_strerror(conn,error);" (assignment_expression "pcVar7 = Curl_strerror(conn,error)" identifier = (call_expression "Curl_strerror(conn,error)" identifier (argument_list "(conn,error)" ( identifier , identifier )))) ;) (expression_statement "Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);" (call_expression "Curl_failf(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7)" identifier (argument_list "(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7)" ( identifier , (string_literal ""Failed to connect to %s port %ld: %s"" " string_content ") , identifier , (field_expression "conn->port" identifier -> field_identifier) , identifier ))) ;) })))) (goto_statement "goto LAB_00040f28;" goto statement_identifier ;) })))
(translation_unit "int FUN_00040ed0(int param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}\n\n" (function_definition "int FUN_00040ed0(int param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}" primitive_type (function_declarator "FUN_00040ed0(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 auStack_94 [4];" type_identifier (array_declarator "auStack_94 [4]" identifier [ number_literal ]) ;) (declaration "int local_90;" primitive_type identifier ;) (declaration "int local_8c;" primitive_type identifier ;) (declaration "undefined1 *local_88;" type_identifier (pointer_declarator "*local_88" * identifier) ;) (declaration "undefined1 *local_84;" type_identifier (pointer_declarator "*local_84" * identifier) ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "uint local_7c;" type_identifier identifier ;) (declaration "int local_78;" primitive_type identifier ;) (declaration "int local_74;" primitive_type identifier ;) (declaration "int local_70;" primitive_type identifier ;) (declaration "undefined4 local_6c;" type_identifier identifier ;) (declaration "undefined4 local_68;" type_identifier identifier ;) (declaration "int local_64;" primitive_type identifier ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined1 local_56 [50];" type_identifier (array_declarator "local_56 [50]" identifier [ number_literal ]) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x40ed9;" (assignment_expression "uStack_14 = 0x40ed9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_84 = param_2;" (assignment_expression "local_84 = param_2" identifier = identifier) ;) (expression_statement "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_8c = *unaff_retaddr;" (assignment_expression "local_8c = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + param_1 + 0x255)" * (cast_expression "(char *)((int)unaff_retaddr + param_1 + 0x255)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + param_1 + 0x255)" ( (binary_expression "(int)unaff_retaddr + param_1 + 0x255" (binary_expression "(int)unaff_retaddr + param_1" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }" { (expression_statement "FUN_0001ab40(&local_68);" (call_expression "FUN_0001ab40(&local_68)" identifier (argument_list "(&local_68)" ( (pointer_expression "&local_68" & identifier) ))) ;) (expression_statement "local_60 = local_6c;" (assignment_expression "local_60 = local_6c" identifier = identifier) ;) (expression_statement "local_5c = local_68;" (assignment_expression "local_5c = local_68" identifier = identifier) ;) (expression_statement "local_80 = FUN_0003f980(local_90,&local_60,1);" (assignment_expression "local_80 = FUN_0003f980(local_90,&local_60,1)" identifier = (call_expression "FUN_0003f980(local_90,&local_60,1)" identifier (argument_list "(local_90,&local_60,1)" ( identifier , (pointer_expression "&local_60" & identifier) , number_literal )))) ;) (if_statement "if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }" if (parenthesized_expression "(-1 < local_80)" ( (binary_expression "-1 < local_80" number_literal < identifier) )) (compound_statement "{\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }" { (expression_statement "local_78 = local_80 >> 1;" (assignment_expression "local_78 = local_80 >> 1" identifier = (binary_expression "local_80 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) (expression_statement "local_84 = local_56;" (assignment_expression "local_84 = local_56" identifier = identifier) ;) (expression_statement "local_74 = unaff_EBX + 0x409db;" (assignment_expression "local_74 = unaff_EBX + 0x409db" identifier = (binary_expression "unaff_EBX + 0x409db" identifier + number_literal)) ;) (expression_statement "local_8c = 0;" (assignment_expression "local_8c = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );" do (compound_statement "{\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      }" { (expression_statement "uVar1 = iVar7 - 1;" (assignment_expression "uVar1 = iVar7 - 1" identifier = (binary_expression "iVar7 - 1" identifier - number_literal)) ;) (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;) (if_statement "if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" if (parenthesized_expression "(unaff_retaddr[iVar7 + 0x65] == -1)" ( (binary_expression "unaff_retaddr[iVar7 + 0x65] == -1" (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }" { (labeled_statement "LAB_00041025:\n          local_8c = iVar6;" statement_identifier : (expression_statement "local_8c = iVar6;" (assignment_expression "local_8c = iVar6" identifier = identifier) ;)) (if_statement "if (iVar7 == 2) goto code_r0x0004102e;" if (parenthesized_expression "(iVar7 == 2)" ( (binary_expression "iVar7 == 2" identifier == number_literal) )) (goto_statement "goto code_r0x0004102e;" goto statement_identifier ;)) }) (else_clause "else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" else (compound_statement "{\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" { (expression_statement "local_7c = uVar1 ^ 1;" (assignment_expression "local_7c = uVar1 ^ 1" identifier = (binary_expression "uVar1 ^ 1" identifier ^ number_literal)) ;) (expression_statement "uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);" (assignment_expression "uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" identifier = (call_expression "FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" identifier (argument_list "(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" ( number_literal , number_literal , (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ]) , number_literal )))) ;) (if_statement "if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" { (if_statement "if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" if (parenthesized_expression "((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0'))" ( (binary_expression "(uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')" (parenthesized_expression "(uVar3 == 2)" ( (binary_expression "uVar3 == 2" identifier == number_literal) )) || (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x266) != '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x266) != '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x266)" * (cast_expression "(char *)((int)unaff_retaddr + 0x266)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x266)" ( (binary_expression "(int)unaff_retaddr + 0x266" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }" { (expression_statement "cVar2 = FUN_0003f900();" (assignment_expression "cVar2 = FUN_0003f900()" identifier = (call_expression "FUN_0003f900()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = local_7c;" (assignment_expression "uVar1 = local_7c" identifier = identifier) ;) (if_statement "if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }" { (expression_statement "*(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];" (assignment_expression "*(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65]" (pointer_expression "*(int *)((int)unaff_retaddr * 5 + 400)" * (cast_expression "(int *)((int)unaff_retaddr * 5 + 400)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr * 5 + 400)" ( (binary_expression "(int)unaff_retaddr * 5 + 400" (binary_expression "(int)unaff_retaddr * 5" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) )))) = (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ])) ;) (expression_statement "iVar6 = unaff_retaddr[iVar7 + 0x12];" (assignment_expression "iVar6 = unaff_retaddr[iVar7 + 0x12]" identifier = (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ])) ;) (expression_statement "unaff_retaddr[0x12] = iVar6;" (assignment_expression "unaff_retaddr[0x12] = iVar6" (subscript_expression "unaff_retaddr[0x12]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = *(int *)(iVar6 + 4);" (assignment_expression "iVar6 = *(int *)(iVar6 + 4)" identifier = (pointer_expression "*(int *)(iVar6 + 4)" * (cast_expression "(int *)(iVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) ))))) ;) (expression_statement "unaff_retaddr[iVar7 + 0x65] = -1;" (assignment_expression "unaff_retaddr[iVar7 + 0x65] = -1" (subscript_expression "unaff_retaddr[iVar7 + 0x65]" identifier [ (binary_expression "iVar7 + 0x65" identifier + number_literal) ]) = number_literal) ;) (expression_statement "*(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;" (assignment_expression "*(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10" (pointer_expression "*(bool *)((int)unaff_retaddr + 0x253)" * (cast_expression "(bool *)((int)unaff_retaddr + 0x253)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x253)" ( (binary_expression "(int)unaff_retaddr + 0x253" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar6 == 10" identifier == number_literal)) ;) (if_statement "if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }" if (parenthesized_expression "(unaff_retaddr[local_7c + 0x66] != -1)" ( (binary_expression "unaff_retaddr[local_7c + 0x66] != -1" (subscript_expression "unaff_retaddr[local_7c + 0x66]" identifier [ (binary_expression "local_7c + 0x66" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }" { (expression_statement "FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);" (call_expression "FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66])" identifier (argument_list "(unaff_retaddr,unaff_retaddr[local_7c + 0x66])" ( identifier , (subscript_expression "unaff_retaddr[local_7c + 0x66]" identifier [ (binary_expression "local_7c + 0x66" identifier + number_literal) ]) ))) ;) (expression_statement "unaff_retaddr[uVar1 + 0x66] = -1;" (assignment_expression "unaff_retaddr[uVar1 + 0x66] = -1" (subscript_expression "unaff_retaddr[uVar1 + 0x66]" identifier [ (binary_expression "uVar1 + 0x66" identifier + number_literal) ]) = number_literal) ;) })) (expression_statement "iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);" (assignment_expression "iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr)" identifier = (call_expression "FUN_0002eca0(unaff_retaddr,unaff_retaddr)" identifier (argument_list "(unaff_retaddr,unaff_retaddr)" ( identifier , identifier )))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }" { (expression_statement "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;" (assignment_expression "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1" (pointer_expression "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255)" * (cast_expression "(undefined1 *)((int)unaff_retaddr * 2 + 0x255)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr * 2 + 0x255)" ( (binary_expression "(int)unaff_retaddr * 2 + 0x255" (binary_expression "(int)unaff_retaddr * 2" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) )))) = number_literal) ;) (expression_statement "*local_88 = 1;" (assignment_expression "*local_88 = 1" (pointer_expression "*local_88" * identifier) = number_literal) ;) (if_statement "if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }" if (parenthesized_expression "(unaff_retaddr == (int *)0x0)" ( (binary_expression "unaff_retaddr == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    FUN_0001c710(local_90,4);\n                  }" { (expression_statement "FUN_0001c710(local_90,4);" (call_expression "FUN_0001c710(local_90,4)" identifier (argument_list "(local_90,4)" ( identifier , number_literal ))) ;) })) (expression_statement "FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));" (call_expression "FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400))" identifier (argument_list "(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400))" ( identifier , (pointer_expression "*(undefined4 *)((int)unaff_retaddr * 5 + 400)" * (cast_expression "(undefined4 *)((int)unaff_retaddr * 5 + 400)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr * 5 + 400)" ( (binary_expression "(int)unaff_retaddr * 5 + 400" (binary_expression "(int)unaff_retaddr * 5" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) + number_literal) )))) ))) ;) (expression_statement "FUN_0002ede0(unaff_retaddr);" (call_expression "FUN_0002ede0(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier ))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (goto_statement "goto LAB_00040f28;" goto statement_identifier ;) })) (expression_statement "FUN_00027140(local_90,unaff_EBX + 0x4072d);" (call_expression "FUN_00027140(local_90,unaff_EBX + 0x4072d)" identifier (argument_list "(local_90,unaff_EBX + 0x4072d)" ( identifier , (binary_expression "unaff_EBX + 0x4072d" identifier + number_literal) ))) ;) }) (else_clause "else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" else (if_statement "if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" if (parenthesized_expression "((uVar3 & 4) != 0)" ( (binary_expression "(uVar3 & 4) != 0" (parenthesized_expression "(uVar3 & 4)" ( (binary_expression "uVar3 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              FUN_0003f900();\n            }" { (expression_statement "FUN_0003f900();" (call_expression "FUN_0003f900()" identifier (argument_list "()" ( ))) ;) })))) (labeled_statement "LAB_00041019:\n            iVar6 = local_8c;" statement_identifier : (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;)) (if_statement "if (local_64 != 0) goto LAB_00041150;" if (parenthesized_expression "(local_64 != 0)" ( (binary_expression "local_64 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041150;" goto statement_identifier ;)) (goto_statement "goto LAB_00041025;" goto statement_identifier ;) })) (expression_statement "local_64 = 0;" (assignment_expression "local_64 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);" (assignment_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier = (call_expression "FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier (argument_list "(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" ( identifier , identifier , (subscript_expression "unaff_retaddr[0x9b]" identifier [ number_literal ]) , (subscript_expression "unaff_retaddr[0x9c]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" if (parenthesized_expression "(iVar6 < unaff_retaddr[0x9e])" ( (binary_expression "iVar6 < unaff_retaddr[0x9e]" identifier < (subscript_expression "unaff_retaddr[0x9e]" identifier [ number_literal ])) )) (compound_statement "{\n            if (uVar1 != 0) goto LAB_00041019;\n          }" { (if_statement "if (uVar1 != 0) goto LAB_00041019;" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041019;" goto statement_identifier ;)) }) (else_clause "else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" else (compound_statement "{\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" { (expression_statement "FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);" (call_expression "FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e])" identifier (argument_list "(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e])" ( identifier , (binary_expression "unaff_EBX + 0x409b7" identifier + number_literal) , (subscript_expression "unaff_retaddr[0x9e]" identifier [ number_literal ]) ))) ;) (expression_statement "local_64 = 0x6e;" (assignment_expression "local_64 = 0x6e" identifier = number_literal) ;) (if_statement "if (uVar1 != 0) goto LAB_00041150;" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00041150;" goto statement_identifier ;)) }))) (if_statement "if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }" if (parenthesized_expression "((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6))" ( (binary_expression "(unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)" (parenthesized_expression "(unaff_retaddr[0x14] == 0)" ( (binary_expression "unaff_retaddr[0x14] == 0" (subscript_expression "unaff_retaddr[0x14]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)" ( (comma_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6" (assignment_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier = (call_expression "FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" identifier (argument_list "(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" ( identifier , identifier , (subscript_expression "unaff_retaddr[0x9b]" identifier [ number_literal ]) , (subscript_expression "unaff_retaddr[0x9c]" identifier [ number_literal ]) )))) , (binary_expression "*(int *)(local_90 + 0x640) <= iVar6" (pointer_expression "*(int *)(local_90 + 0x640)" * (cast_expression "(int *)(local_90 + 0x640)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_90 + 0x640)" ( (binary_expression "local_90 + 0x640" identifier + number_literal) )))) <= identifier)) ))) )) (compound_statement "{\n            FUN_00040dc0();\n          }" { (expression_statement "FUN_00040dc0();" (call_expression "FUN_00040dc0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }" if (parenthesized_expression "(local_64 != 0)" ( (binary_expression "local_64 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }" { (labeled_statement "LAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;" statement_identifier : (expression_statement "*(int *)(local_90 + 0xcbc) = local_64;" (assignment_expression "*(int *)(local_90 + 0xcbc) = local_64" (pointer_expression "*(int *)(local_90 + 0xcbc)" * (cast_expression "(int *)(local_90 + 0xcbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_90 + 0xcbc)" ( (binary_expression "local_90 + 0xcbc" identifier + number_literal) )))) = identifier) ;)) (expression_statement "local_70 = local_64;" (assignment_expression "local_70 = local_64" identifier = identifier) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar5 = local_70;" (assignment_expression "*piVar5 = local_70" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;) (if_statement "if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }" if (parenthesized_expression "(unaff_retaddr[iVar7 + 0x12] != 0)" ( (binary_expression "unaff_retaddr[iVar7 + 0x12] != 0" (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }" { (expression_statement "FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);" (call_expression "FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e)" identifier (argument_list "(unaff_retaddr[iVar7 + 0x12],local_84,0x2e)" ( (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ]) , identifier , number_literal ))) ;) (expression_statement "uVar4 = FUN_00048500(unaff_retaddr,local_64);" (assignment_expression "uVar4 = FUN_00048500(unaff_retaddr,local_64)" identifier = (call_expression "FUN_00048500(unaff_retaddr,local_64)" identifier (argument_list "(unaff_retaddr,local_64)" ( identifier , identifier )))) ;) (expression_statement "FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);" (call_expression "FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4)" identifier (argument_list "(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4)" ( identifier , identifier , identifier , (subscript_expression "unaff_retaddr[0x3d]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "iVar6 = local_78;" (assignment_expression "iVar6 = local_78" identifier = identifier) ;) (if_statement "if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }" if (parenthesized_expression "(*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0)" ( (binary_expression "*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0" (pointer_expression "*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c)" * (cast_expression "(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr[iVar7 + 0x12] + 0x1c)" ( (binary_expression "unaff_retaddr[iVar7 + 0x12] + 0x1c" (subscript_expression "unaff_retaddr[iVar7 + 0x12]" identifier [ (binary_expression "iVar7 + 0x12" identifier + number_literal) ]) + number_literal) )))) == number_literal) )) (compound_statement "{\n                iVar6 = local_80;\n              }" { (expression_statement "iVar6 = local_80;" (assignment_expression "iVar6 = local_80" identifier = identifier) ;) })) (expression_statement "unaff_retaddr[0x9e] = iVar6;" (assignment_expression "unaff_retaddr[0x9e] = iVar6" (subscript_expression "unaff_retaddr[0x9e]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = FUN_00040dc0();" (assignment_expression "iVar6 = FUN_00040dc0()" identifier = (call_expression "FUN_00040dc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }" if (parenthesized_expression "((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1))" ( (binary_expression "(iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)" (parenthesized_expression "(iVar6 == 7)" ( (binary_expression "iVar6 == 7" identifier == number_literal) )) && (parenthesized_expression "(unaff_retaddr[local_7c + 0x66] != -1)" ( (binary_expression "unaff_retaddr[local_7c + 0x66] != -1" (subscript_expression "unaff_retaddr[local_7c + 0x66]" identifier [ (binary_expression "local_7c + 0x66" identifier + number_literal) ]) != number_literal) ))) )) (compound_statement "{\n                iVar6 = local_8c;\n              }" { (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" identifier = identifier) ;) })) })) (goto_statement "goto LAB_00041025;" goto statement_identifier ;) })) }))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar7 = 0x1c;" (assignment_expression "iVar7 = 0x1c" identifier = number_literal) ;) (expression_statement "FUN_00027240(local_90,unaff_EBX + 0x40719);" (call_expression "FUN_00027240(local_90,unaff_EBX + 0x40719)" identifier (argument_list "(local_90,unaff_EBX + 0x40719)" ( identifier , (binary_expression "unaff_EBX + 0x40719" identifier + number_literal) ))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" else (compound_statement "{\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" { (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = &local_90;" (assignment_expression "piVar5 = &local_90" identifier = (pointer_expression "&local_90" & identifier)) ;) }))) (labeled_statement "LAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" statement_identifier : (if_statement "if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" if (parenthesized_expression "(*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)((int)piVar5 + 0x6c)" * (cast_expression "(int *)((int)piVar5 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x6c)" ( (binary_expression "(int)piVar5 + 0x6c" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" { (expression_statement "*(undefined **)((int)piVar5 + -4) = &UNK_00041386;" (assignment_expression "*(undefined **)((int)piVar5 + -4) = &UNK_00041386" (pointer_expression "*(undefined **)((int)piVar5 + -4)" * (cast_expression "(undefined **)((int)piVar5 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)piVar5 + -4)" ( (binary_expression "(int)piVar5 + -4" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "&UNK_00041386" & identifier)) ;) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar7;" return identifier ;) (labeled_statement "code_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" statement_identifier : (if_statement "if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" if (parenthesized_expression "((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0))))" ( (binary_expression "(local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))" (parenthesized_expression "(local_8c == 0)" ( (binary_expression "local_8c == 0" identifier == number_literal) )) || (parenthesized_expression "((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))" ( (parenthesized_expression "(iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0))" ( (comma_expression "iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)" (assignment_expression "iVar7 = local_8c" identifier = identifier) , (binary_expression "unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)" (binary_expression "unaff_retaddr[0x14] == 0" (subscript_expression "unaff_retaddr[0x14]" identifier [ number_literal ]) == number_literal) && (parenthesized_expression "(iVar7 = FUN_00040dc0(), iVar7 == 0)" ( (comma_expression "iVar7 = FUN_00040dc0(), iVar7 == 0" (assignment_expression "iVar7 = FUN_00040dc0()" identifier = (call_expression "FUN_00040dc0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar7 == 0" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" else (compound_statement "{\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" { (if_statement "if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24f) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x24f) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24f)" * (cast_expression "(char *)((int)unaff_retaddr + 0x24f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x24f)" ( (binary_expression "(int)unaff_retaddr + 0x24f" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }" { (if_statement "if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24e) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x24e) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24e)" * (cast_expression "(char *)((int)unaff_retaddr + 0x24e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x24e)" ( (binary_expression "(int)unaff_retaddr + 0x24e" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }" { (if_statement "if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }" if (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24b) == '\0')" ( (binary_expression "*(char *)((int)unaff_retaddr + 0x24b) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24b)" * (cast_expression "(char *)((int)unaff_retaddr + 0x24b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x24b)" ( (binary_expression "(int)unaff_retaddr + 0x24b" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar6 = unaff_retaddr[0x25];\n        }" { (expression_statement "iVar6 = unaff_retaddr[0x25];" (assignment_expression "iVar6 = unaff_retaddr[0x25]" identifier = (subscript_expression "unaff_retaddr[0x25]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          iVar6 = unaff_retaddr[0x2b];\n        }" else (compound_statement "{\n          iVar6 = unaff_retaddr[0x2b];\n        }" { (expression_statement "iVar6 = unaff_retaddr[0x2b];" (assignment_expression "iVar6 = unaff_retaddr[0x2b]" identifier = (subscript_expression "unaff_retaddr[0x2b]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n        iVar6 = unaff_retaddr[0x37];\n      }" else (compound_statement "{\n        iVar6 = unaff_retaddr[0x37];\n      }" { (expression_statement "iVar6 = unaff_retaddr[0x37];" (assignment_expression "iVar6 = unaff_retaddr[0x37]" identifier = (subscript_expression "unaff_retaddr[0x37]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n      iVar6 = unaff_retaddr[0x2f];\n    }" else (compound_statement "{\n      iVar6 = unaff_retaddr[0x2f];\n    }" { (expression_statement "iVar6 = unaff_retaddr[0x2f];" (assignment_expression "iVar6 = unaff_retaddr[0x2f]" identifier = (subscript_expression "unaff_retaddr[0x2f]" identifier [ number_literal ])) ;) }))) (expression_statement "uVar4 = FUN_00048500(unaff_retaddr,local_64);" (assignment_expression "uVar4 = FUN_00048500(unaff_retaddr,local_64)" identifier = (call_expression "FUN_00048500(unaff_retaddr,local_64)" identifier (argument_list "(unaff_retaddr,local_64)" ( identifier , identifier )))) ;) (expression_statement "FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);" (call_expression "FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4)" identifier (argument_list "(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4)" ( identifier , (binary_expression "&UNK_000409ff + unaff_EBX" (pointer_expression "&UNK_000409ff" & identifier) + identifier) , identifier , (subscript_expression "unaff_retaddr[0x3d]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" identifier = (cast_expression "(int *)auStack_94" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))) (goto_statement "goto LAB_00040f28;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = 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 = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) + LIT) )))) = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression (subscript_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 (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression & IDENT) + IDENT) , IDENT , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })))) (goto_statement goto statement_identifier ;) })))
(function_definition "int FUN_00040ed0(int param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}" (primitive_type "int") (function_declarator "FUN_00040ed0(int param_1,undefined1 *param_2)" (identifier "FUN_00040ed0") (parameter_list "(int param_1,undefined1 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int iVar6;\n  int unaff_EBX;\n  int iVar7;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_94 [4];\n  int local_90;\n  int local_8c;\n  undefined1 *local_88;\n  undefined1 *local_84;\n  int local_80;\n  uint local_7c;\n  int local_78;\n  int local_74;\n  int local_70;\n  undefined4 local_6c;\n  undefined4 local_68;\n  int local_64;\n  undefined4 local_60;\n  undefined4 local_5c;\n  undefined1 local_56 [50];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x40ed9;\n  entry();\n  local_84 = param_2;\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  local_8c = *unaff_retaddr;\n  *param_2 = 0;\n  local_60 = 0;\n  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }\nLAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }\n  return iVar7;\ncode_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }\n  goto LAB_00040f28;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "undefined1 auStack_94 [4];" (type_identifier "undefined1") (array_declarator "auStack_94 [4]" (identifier "auStack_94") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_90;" (primitive_type "int") (identifier "local_90") (; ";")) (declaration "int local_8c;" (primitive_type "int") (identifier "local_8c") (; ";")) (declaration "undefined1 *local_88;" (type_identifier "undefined1") (pointer_declarator "*local_88" (* "*") (identifier "local_88")) (; ";")) (declaration "undefined1 *local_84;" (type_identifier "undefined1") (pointer_declarator "*local_84" (* "*") (identifier "local_84")) (; ";")) (declaration "int local_80;" (primitive_type "int") (identifier "local_80") (; ";")) (declaration "uint local_7c;" (type_identifier "uint") (identifier "local_7c") (; ";")) (declaration "int local_78;" (primitive_type "int") (identifier "local_78") (; ";")) (declaration "int local_74;" (primitive_type "int") (identifier "local_74") (; ";")) (declaration "int local_70;" (primitive_type "int") (identifier "local_70") (; ";")) (declaration "undefined4 local_6c;" (type_identifier "undefined4") (identifier "local_6c") (; ";")) (declaration "undefined4 local_68;" (type_identifier "undefined4") (identifier "local_68") (; ";")) (declaration "int local_64;" (primitive_type "int") (identifier "local_64") (; ";")) (declaration "undefined4 local_60;" (type_identifier "undefined4") (identifier "local_60") (; ";")) (declaration "undefined4 local_5c;" (type_identifier "undefined4") (identifier "local_5c") (; ";")) (declaration "undefined1 local_56 [50];" (type_identifier "undefined1") (array_declarator "local_56 [50]" (identifier "local_56") ([ "[") (number_literal "50") (] "]")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x40ed9;" (assignment_expression "uStack_14 = 0x40ed9" (identifier "uStack_14") (= "=") (number_literal "0x40ed9")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_84 = param_2;" (assignment_expression "local_84 = param_2" (identifier "local_84") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_8c = *unaff_retaddr;" (assignment_expression "local_8c = *unaff_retaddr" (identifier "local_8c") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" (identifier "local_60") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" (if "if") (parenthesized_expression "(*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0')" (( "(") (binary_expression "*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + param_1 + 0x255)" (* "*") (cast_expression "(char *)((int)unaff_retaddr + param_1 + 0x255)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr + param_1 + 0x255)" (( "(") (binary_expression "(int)unaff_retaddr + param_1 + 0x255" (binary_expression "(int)unaff_retaddr + param_1" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (identifier "param_1")) (+ "+") (number_literal "0x255")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0001ab40(&local_68);\n    local_60 = local_6c;\n    local_5c = local_68;\n    local_80 = FUN_0003f980(local_90,&local_60,1);\n    if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }\n    iVar7 = 0x1c;\n    FUN_00027240(local_90,unaff_EBX + 0x40719);\n    piVar5 = (int *)auStack_94;\n  }" ({ "{") (expression_statement "FUN_0001ab40(&local_68);" (call_expression "FUN_0001ab40(&local_68)" (identifier "FUN_0001ab40") (argument_list "(&local_68)" (( "(") (pointer_expression "&local_68" (& "&") (identifier "local_68")) () ")"))) (; ";")) (expression_statement "local_60 = local_6c;" (assignment_expression "local_60 = local_6c" (identifier "local_60") (= "=") (identifier "local_6c")) (; ";")) (expression_statement "local_5c = local_68;" (assignment_expression "local_5c = local_68" (identifier "local_5c") (= "=") (identifier "local_68")) (; ";")) (expression_statement "local_80 = FUN_0003f980(local_90,&local_60,1);" (assignment_expression "local_80 = FUN_0003f980(local_90,&local_60,1)" (identifier "local_80") (= "=") (call_expression "FUN_0003f980(local_90,&local_60,1)" (identifier "FUN_0003f980") (argument_list "(local_90,&local_60,1)" (( "(") (identifier "local_90") (, ",") (pointer_expression "&local_60" (& "&") (identifier "local_60")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (-1 < local_80) {\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }" (if "if") (parenthesized_expression "(-1 < local_80)" (( "(") (binary_expression "-1 < local_80" (number_literal "-1") (< "<") (identifier "local_80")) () ")")) (compound_statement "{\n      local_78 = local_80 >> 1;\n      iVar7 = 1;\n      local_84 = local_56;\n      local_74 = unaff_EBX + 0x409db;\n      local_8c = 0;\n      do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );\n    }" ({ "{") (expression_statement "local_78 = local_80 >> 1;" (assignment_expression "local_78 = local_80 >> 1" (identifier "local_78") (= "=") (binary_expression "local_80 >> 1" (identifier "local_80") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" (identifier "iVar7") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_84 = local_56;" (assignment_expression "local_84 = local_56" (identifier "local_84") (= "=") (identifier "local_56")) (; ";")) (expression_statement "local_74 = unaff_EBX + 0x409db;" (assignment_expression "local_74 = unaff_EBX + 0x409db" (identifier "local_74") (= "=") (binary_expression "unaff_EBX + 0x409db" (identifier "unaff_EBX") (+ "+") (number_literal "0x409db"))) (; ";")) (expression_statement "local_8c = 0;" (assignment_expression "local_8c = 0" (identifier "local_8c") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      } while( true );" (do "do") (compound_statement "{\n        uVar1 = iVar7 - 1;\n        iVar6 = local_8c;\n        if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }\n        iVar7 = iVar7 + 1;\n      }" ({ "{") (expression_statement "uVar1 = iVar7 - 1;" (assignment_expression "uVar1 = iVar7 - 1" (identifier "uVar1") (= "=") (binary_expression "iVar7 - 1" (identifier "iVar7") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" (identifier "iVar6") (= "=") (identifier "local_8c")) (; ";")) (if_statement "if (unaff_retaddr[iVar7 + 0x65] == -1) {\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }\n        else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" (if "if") (parenthesized_expression "(unaff_retaddr[iVar7 + 0x65] == -1)" (( "(") (binary_expression "unaff_retaddr[iVar7 + 0x65] == -1" (subscript_expression "unaff_retaddr[iVar7 + 0x65]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x65" (identifier "iVar7") (+ "+") (number_literal "0x65")) (] "]")) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_00041025:\n          local_8c = iVar6;\n          if (iVar7 == 2) goto code_r0x0004102e;\n        }" ({ "{") (labeled_statement "LAB_00041025:\n          local_8c = iVar6;" (statement_identifier "LAB_00041025") (: ":") (expression_statement "local_8c = iVar6;" (assignment_expression "local_8c = iVar6" (identifier "local_8c") (= "=") (identifier "iVar6")) (; ";"))) (if_statement "if (iVar7 == 2) goto code_r0x0004102e;" (if "if") (parenthesized_expression "(iVar7 == 2)" (( "(") (binary_expression "iVar7 == 2" (identifier "iVar7") (== "==") (number_literal "2")) () ")")) (goto_statement "goto code_r0x0004102e;" (goto "goto") (statement_identifier "code_r0x0004102e") (; ";"))) (} "}")) (else_clause "else {\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" (else "else") (compound_statement "{\n          local_7c = uVar1 ^ 1;\n          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);\n          if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }\n          local_64 = 0;\n          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);\n          if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }\n          if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }\n          if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }\n        }" ({ "{") (expression_statement "local_7c = uVar1 ^ 1;" (assignment_expression "local_7c = uVar1 ^ 1" (identifier "local_7c") (= "=") (binary_expression "uVar1 ^ 1" (identifier "uVar1") (^ "^") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);" (assignment_expression "uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" (identifier "uVar3") (= "=") (call_expression "FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" (identifier "FUN_00049010") (argument_list "(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0)" (( "(") (number_literal "0xffffffff") (, ",") (number_literal "0xffffffff") (, ",") (subscript_expression "unaff_retaddr[iVar7 + 0x65]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x65" (identifier "iVar7") (+ "+") (number_literal "0x65")) (] "]")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (uVar3 != 0) {\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }\nLAB_00041019:\n            iVar6 = local_8c;\n            if (local_64 != 0) goto LAB_00041150;\n            goto LAB_00041025;\n          }" ({ "{") (if_statement "if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }\n            else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" (if "if") (parenthesized_expression "((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0'))" (( "(") (binary_expression "(uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')" (parenthesized_expression "(uVar3 == 2)" (( "(") (binary_expression "uVar3 == 2" (identifier "uVar3") (== "==") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x266) != '\0')" (( "(") (binary_expression "*(char *)((int)unaff_retaddr + 0x266) != '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x266)" (* "*") (cast_expression "(char *)((int)unaff_retaddr + 0x266)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr + 0x266)" (( "(") (binary_expression "(int)unaff_retaddr + 0x266" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x266")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n              cVar2 = FUN_0003f900();\n              uVar1 = local_7c;\n              if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }\n              FUN_00027140(local_90,unaff_EBX + 0x4072d);\n            }" ({ "{") (expression_statement "cVar2 = FUN_0003f900();" (assignment_expression "cVar2 = FUN_0003f900()" (identifier "cVar2") (= "=") (call_expression "FUN_0003f900()" (identifier "FUN_0003f900") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = local_7c;" (assignment_expression "uVar1 = local_7c" (identifier "uVar1") (= "=") (identifier "local_7c")) (; ";")) (if_statement "if (cVar2 != '\0') {\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];\n                iVar6 = unaff_retaddr[iVar7 + 0x12];\n                unaff_retaddr[0x12] = iVar6;\n                iVar6 = *(int *)(iVar6 + 4);\n                unaff_retaddr[iVar7 + 0x65] = -1;\n                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;\n                if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }\n                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);\n                piVar5 = (int *)auStack_94;\n                if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }\n                goto LAB_00040f28;\n              }" ({ "{") (expression_statement "*(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];" (assignment_expression "*(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65]" (pointer_expression "*(int *)((int)unaff_retaddr * 5 + 400)" (* "*") (cast_expression "(int *)((int)unaff_retaddr * 5 + 400)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr * 5 + 400)" (( "(") (binary_expression "(int)unaff_retaddr * 5 + 400" (binary_expression "(int)unaff_retaddr * 5" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (* "*") (number_literal "5")) (+ "+") (number_literal "400")) () ")")))) (= "=") (subscript_expression "unaff_retaddr[iVar7 + 0x65]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x65" (identifier "iVar7") (+ "+") (number_literal "0x65")) (] "]"))) (; ";")) (expression_statement "iVar6 = unaff_retaddr[iVar7 + 0x12];" (assignment_expression "iVar6 = unaff_retaddr[iVar7 + 0x12]" (identifier "iVar6") (= "=") (subscript_expression "unaff_retaddr[iVar7 + 0x12]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x12" (identifier "iVar7") (+ "+") (number_literal "0x12")) (] "]"))) (; ";")) (expression_statement "unaff_retaddr[0x12] = iVar6;" (assignment_expression "unaff_retaddr[0x12] = iVar6" (subscript_expression "unaff_retaddr[0x12]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x12") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "iVar6 = *(int *)(iVar6 + 4);" (assignment_expression "iVar6 = *(int *)(iVar6 + 4)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar6 + 4)" (* "*") (cast_expression "(int *)(iVar6 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 4)" (( "(") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "unaff_retaddr[iVar7 + 0x65] = -1;" (assignment_expression "unaff_retaddr[iVar7 + 0x65] = -1" (subscript_expression "unaff_retaddr[iVar7 + 0x65]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x65" (identifier "iVar7") (+ "+") (number_literal "0x65")) (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "*(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;" (assignment_expression "*(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10" (pointer_expression "*(bool *)((int)unaff_retaddr + 0x253)" (* "*") (cast_expression "(bool *)((int)unaff_retaddr + 0x253)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr + 0x253)" (( "(") (binary_expression "(int)unaff_retaddr + 0x253" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x253")) () ")")))) (= "=") (binary_expression "iVar6 == 10" (identifier "iVar6") (== "==") (number_literal "10"))) (; ";")) (if_statement "if (unaff_retaddr[local_7c + 0x66] != -1) {\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }" (if "if") (parenthesized_expression "(unaff_retaddr[local_7c + 0x66] != -1)" (( "(") (binary_expression "unaff_retaddr[local_7c + 0x66] != -1" (subscript_expression "unaff_retaddr[local_7c + 0x66]" (identifier "unaff_retaddr") ([ "[") (binary_expression "local_7c + 0x66" (identifier "local_7c") (+ "+") (number_literal "0x66")) (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);\n                  unaff_retaddr[uVar1 + 0x66] = -1;\n                }" ({ "{") (expression_statement "FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);" (call_expression "FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66])" (identifier "FUN_000400c0") (argument_list "(unaff_retaddr,unaff_retaddr[local_7c + 0x66])" (( "(") (identifier "unaff_retaddr") (, ",") (subscript_expression "unaff_retaddr[local_7c + 0x66]" (identifier "unaff_retaddr") ([ "[") (binary_expression "local_7c + 0x66" (identifier "local_7c") (+ "+") (number_literal "0x66")) (] "]")) () ")"))) (; ";")) (expression_statement "unaff_retaddr[uVar1 + 0x66] = -1;" (assignment_expression "unaff_retaddr[uVar1 + 0x66] = -1" (subscript_expression "unaff_retaddr[uVar1 + 0x66]" (identifier "unaff_retaddr") ([ "[") (binary_expression "uVar1 + 0x66" (identifier "uVar1") (+ "+") (number_literal "0x66")) (] "]")) (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);" (assignment_expression "iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr)" (identifier "iVar7") (= "=") (call_expression "FUN_0002eca0(unaff_retaddr,unaff_retaddr)" (identifier "FUN_0002eca0") (argument_list "(unaff_retaddr,unaff_retaddr)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "unaff_retaddr") () ")")))) (; ";")) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" (identifier "piVar5") (= "=") (cast_expression "(int *)auStack_94" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_94"))) (; ";")) (if_statement "if (iVar7 == 0) {\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;\n                  *local_88 = 1;\n                  if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }\n                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));\n                  FUN_0002ede0(unaff_retaddr);\n                  piVar5 = (int *)auStack_94;\n                }" ({ "{") (expression_statement "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;" (assignment_expression "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1" (pointer_expression "*(undefined1 *)((int)unaff_retaddr * 2 + 0x255)" (* "*") (cast_expression "(undefined1 *)((int)unaff_retaddr * 2 + 0x255)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr * 2 + 0x255)" (( "(") (binary_expression "(int)unaff_retaddr * 2 + 0x255" (binary_expression "(int)unaff_retaddr * 2" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (* "*") (number_literal "2")) (+ "+") (number_literal "0x255")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*local_88 = 1;" (assignment_expression "*local_88 = 1" (pointer_expression "*local_88" (* "*") (identifier "local_88")) (= "=") (number_literal "1")) (; ";")) (if_statement "if (unaff_retaddr == (int *)0x0) {\n                    FUN_0001c710(local_90,4);\n                  }" (if "if") (parenthesized_expression "(unaff_retaddr == (int *)0x0)" (( "(") (binary_expression "unaff_retaddr == (int *)0x0" (identifier "unaff_retaddr") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    FUN_0001c710(local_90,4);\n                  }" ({ "{") (expression_statement "FUN_0001c710(local_90,4);" (call_expression "FUN_0001c710(local_90,4)" (identifier "FUN_0001c710") (argument_list "(local_90,4)" (( "(") (identifier "local_90") (, ",") (number_literal "4") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));" (call_expression "FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400))" (identifier "FUN_0003fc90") (argument_list "(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400))" (( "(") (identifier "unaff_retaddr") (, ",") (pointer_expression "*(undefined4 *)((int)unaff_retaddr * 5 + 400)" (* "*") (cast_expression "(undefined4 *)((int)unaff_retaddr * 5 + 400)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr * 5 + 400)" (( "(") (binary_expression "(int)unaff_retaddr * 5 + 400" (binary_expression "(int)unaff_retaddr * 5" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (* "*") (number_literal "5")) (+ "+") (number_literal "400")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0002ede0(unaff_retaddr);" (call_expression "FUN_0002ede0(unaff_retaddr)" (identifier "FUN_0002ede0") (argument_list "(unaff_retaddr)" (( "(") (identifier "unaff_retaddr") () ")"))) (; ";")) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" (identifier "piVar5") (= "=") (cast_expression "(int *)auStack_94" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_94"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00040f28;" (goto "goto") (statement_identifier "LAB_00040f28") (; ";")) (} "}"))) (expression_statement "FUN_00027140(local_90,unaff_EBX + 0x4072d);" (call_expression "FUN_00027140(local_90,unaff_EBX + 0x4072d)" (identifier "FUN_00027140") (argument_list "(local_90,unaff_EBX + 0x4072d)" (( "(") (identifier "local_90") (, ",") (binary_expression "unaff_EBX + 0x4072d" (identifier "unaff_EBX") (+ "+") (number_literal "0x4072d")) () ")"))) (; ";")) (} "}")) (else_clause "else if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" (else "else") (if_statement "if ((uVar3 & 4) != 0) {\n              FUN_0003f900();\n            }" (if "if") (parenthesized_expression "((uVar3 & 4) != 0)" (( "(") (binary_expression "(uVar3 & 4) != 0" (parenthesized_expression "(uVar3 & 4)" (( "(") (binary_expression "uVar3 & 4" (identifier "uVar3") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              FUN_0003f900();\n            }" ({ "{") (expression_statement "FUN_0003f900();" (call_expression "FUN_0003f900()" (identifier "FUN_0003f900") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))))) (labeled_statement "LAB_00041019:\n            iVar6 = local_8c;" (statement_identifier "LAB_00041019") (: ":") (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" (identifier "iVar6") (= "=") (identifier "local_8c")) (; ";"))) (if_statement "if (local_64 != 0) goto LAB_00041150;" (if "if") (parenthesized_expression "(local_64 != 0)" (( "(") (binary_expression "local_64 != 0" (identifier "local_64") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00041150;" (goto "goto") (statement_identifier "LAB_00041150") (; ";"))) (goto_statement "goto LAB_00041025;" (goto "goto") (statement_identifier "LAB_00041025") (; ";")) (} "}"))) (expression_statement "local_64 = 0;" (assignment_expression "local_64 = 0" (identifier "local_64") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);" (assignment_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" (identifier "iVar6") (= "=") (call_expression "FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" (identifier "FUN_0001abe0") (argument_list "(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" (( "(") (identifier "local_60") (, ",") (identifier "local_5c") (, ",") (subscript_expression "unaff_retaddr[0x9b]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9b") (] "]")) (, ",") (subscript_expression "unaff_retaddr[0x9c]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9c") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar6 < unaff_retaddr[0x9e]) {\n            if (uVar1 != 0) goto LAB_00041019;\n          }\n          else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" (if "if") (parenthesized_expression "(iVar6 < unaff_retaddr[0x9e])" (( "(") (binary_expression "iVar6 < unaff_retaddr[0x9e]" (identifier "iVar6") (< "<") (subscript_expression "unaff_retaddr[0x9e]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9e") (] "]"))) () ")")) (compound_statement "{\n            if (uVar1 != 0) goto LAB_00041019;\n          }" ({ "{") (if_statement "if (uVar1 != 0) goto LAB_00041019;" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00041019;" (goto "goto") (statement_identifier "LAB_00041019") (; ";"))) (} "}")) (else_clause "else {\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" (else "else") (compound_statement "{\n            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);\n            local_64 = 0x6e;\n            if (uVar1 != 0) goto LAB_00041150;\n          }" ({ "{") (expression_statement "FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);" (call_expression "FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e])" (identifier "FUN_00027140") (argument_list "(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e])" (( "(") (identifier "local_90") (, ",") (binary_expression "unaff_EBX + 0x409b7" (identifier "unaff_EBX") (+ "+") (number_literal "0x409b7")) (, ",") (subscript_expression "unaff_retaddr[0x9e]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9e") (] "]")) () ")"))) (; ";")) (expression_statement "local_64 = 0x6e;" (assignment_expression "local_64 = 0x6e" (identifier "local_64") (= "=") (number_literal "0x6e")) (; ";")) (if_statement "if (uVar1 != 0) goto LAB_00041150;" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00041150;" (goto "goto") (statement_identifier "LAB_00041150") (; ";"))) (} "}")))) (if_statement "if ((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)) {\n            FUN_00040dc0();\n          }" (if "if") (parenthesized_expression "((unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6))" (( "(") (binary_expression "(unaff_retaddr[0x14] == 0) &&\n             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)" (parenthesized_expression "(unaff_retaddr[0x14] == 0)" (( "(") (binary_expression "unaff_retaddr[0x14] == 0" (subscript_expression "unaff_retaddr[0x14]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x14") (] "]")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6)" (( "(") (comma_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),\n             *(int *)(local_90 + 0x640) <= iVar6" (assignment_expression "iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" (identifier "iVar6") (= "=") (call_expression "FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" (identifier "FUN_0001abe0") (argument_list "(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c])" (( "(") (identifier "local_60") (, ",") (identifier "local_5c") (, ",") (subscript_expression "unaff_retaddr[0x9b]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9b") (] "]")) (, ",") (subscript_expression "unaff_retaddr[0x9c]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9c") (] "]")) () ")")))) (, ",") (binary_expression "*(int *)(local_90 + 0x640) <= iVar6" (pointer_expression "*(int *)(local_90 + 0x640)" (* "*") (cast_expression "(int *)(local_90 + 0x640)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_90 + 0x640)" (( "(") (binary_expression "local_90 + 0x640" (identifier "local_90") (+ "+") (number_literal "0x640")) () ")")))) (<= "<=") (identifier "iVar6"))) () ")"))) () ")")) (compound_statement "{\n            FUN_00040dc0();\n          }" ({ "{") (expression_statement "FUN_00040dc0();" (call_expression "FUN_00040dc0()" (identifier "FUN_00040dc0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_64 != 0) {\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }" (if "if") (parenthesized_expression "(local_64 != 0)" (( "(") (binary_expression "local_64 != 0" (identifier "local_64") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;\n            local_70 = local_64;\n            piVar5 = __errno_location();\n            *piVar5 = local_70;\n            iVar6 = local_8c;\n            if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }\n            goto LAB_00041025;\n          }" ({ "{") (labeled_statement "LAB_00041150:\n            *(int *)(local_90 + 0xcbc) = local_64;" (statement_identifier "LAB_00041150") (: ":") (expression_statement "*(int *)(local_90 + 0xcbc) = local_64;" (assignment_expression "*(int *)(local_90 + 0xcbc) = local_64" (pointer_expression "*(int *)(local_90 + 0xcbc)" (* "*") (cast_expression "(int *)(local_90 + 0xcbc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_90 + 0xcbc)" (( "(") (binary_expression "local_90 + 0xcbc" (identifier "local_90") (+ "+") (number_literal "0xcbc")) () ")")))) (= "=") (identifier "local_64")) (; ";"))) (expression_statement "local_70 = local_64;" (assignment_expression "local_70 = local_64" (identifier "local_70") (= "=") (identifier "local_64")) (; ";")) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar5 = local_70;" (assignment_expression "*piVar5 = local_70" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "local_70")) (; ";")) (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" (identifier "iVar6") (= "=") (identifier "local_8c")) (; ";")) (if_statement "if (unaff_retaddr[iVar7 + 0x12] != 0) {\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }" (if "if") (parenthesized_expression "(unaff_retaddr[iVar7 + 0x12] != 0)" (( "(") (binary_expression "unaff_retaddr[iVar7 + 0x12] != 0" (subscript_expression "unaff_retaddr[iVar7 + 0x12]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x12" (identifier "iVar7") (+ "+") (number_literal "0x12")) (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);\n              uVar4 = FUN_00048500(unaff_retaddr,local_64);\n              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);\n              iVar6 = local_78;\n              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }\n              unaff_retaddr[0x9e] = iVar6;\n              iVar6 = FUN_00040dc0();\n              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }\n            }" ({ "{") (expression_statement "FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);" (call_expression "FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e)" (identifier "FUN_0001b540") (argument_list "(unaff_retaddr[iVar7 + 0x12],local_84,0x2e)" (( "(") (subscript_expression "unaff_retaddr[iVar7 + 0x12]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x12" (identifier "iVar7") (+ "+") (number_literal "0x12")) (] "]")) (, ",") (identifier "local_84") (, ",") (number_literal "0x2e") () ")"))) (; ";")) (expression_statement "uVar4 = FUN_00048500(unaff_retaddr,local_64);" (assignment_expression "uVar4 = FUN_00048500(unaff_retaddr,local_64)" (identifier "uVar4") (= "=") (call_expression "FUN_00048500(unaff_retaddr,local_64)" (identifier "FUN_00048500") (argument_list "(unaff_retaddr,local_64)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "local_64") () ")")))) (; ";")) (expression_statement "FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);" (call_expression "FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4)" (identifier "FUN_00027140") (argument_list "(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4)" (( "(") (identifier "local_90") (, ",") (identifier "local_74") (, ",") (identifier "local_84") (, ",") (subscript_expression "unaff_retaddr[0x3d]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x3d") (] "]")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar6 = local_78;" (assignment_expression "iVar6 = local_78" (identifier "iVar6") (= "=") (identifier "local_78")) (; ";")) (if_statement "if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {\n                iVar6 = local_80;\n              }" (if "if") (parenthesized_expression "(*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0" (pointer_expression "*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c)" (* "*") (cast_expression "(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr[iVar7 + 0x12] + 0x1c)" (( "(") (binary_expression "unaff_retaddr[iVar7 + 0x12] + 0x1c" (subscript_expression "unaff_retaddr[iVar7 + 0x12]" (identifier "unaff_retaddr") ([ "[") (binary_expression "iVar7 + 0x12" (identifier "iVar7") (+ "+") (number_literal "0x12")) (] "]")) (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                iVar6 = local_80;\n              }" ({ "{") (expression_statement "iVar6 = local_80;" (assignment_expression "iVar6 = local_80" (identifier "iVar6") (= "=") (identifier "local_80")) (; ";")) (} "}"))) (expression_statement "unaff_retaddr[0x9e] = iVar6;" (assignment_expression "unaff_retaddr[0x9e] = iVar6" (subscript_expression "unaff_retaddr[0x9e]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9e") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "iVar6 = FUN_00040dc0();" (assignment_expression "iVar6 = FUN_00040dc0()" (identifier "iVar6") (= "=") (call_expression "FUN_00040dc0()" (identifier "FUN_00040dc0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {\n                iVar6 = local_8c;\n              }" (if "if") (parenthesized_expression "((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1))" (( "(") (binary_expression "(iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)" (parenthesized_expression "(iVar6 == 7)" (( "(") (binary_expression "iVar6 == 7" (identifier "iVar6") (== "==") (number_literal "7")) () ")")) (&& "&&") (parenthesized_expression "(unaff_retaddr[local_7c + 0x66] != -1)" (( "(") (binary_expression "unaff_retaddr[local_7c + 0x66] != -1" (subscript_expression "unaff_retaddr[local_7c + 0x66]" (identifier "unaff_retaddr") ([ "[") (binary_expression "local_7c + 0x66" (identifier "local_7c") (+ "+") (number_literal "0x66")) (] "]")) (!= "!=") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n                iVar6 = local_8c;\n              }" ({ "{") (expression_statement "iVar6 = local_8c;" (assignment_expression "iVar6 = local_8c" (identifier "iVar6") (= "=") (identifier "local_8c")) (; ";")) (} "}"))) (} "}"))) (goto_statement "goto LAB_00041025;" (goto "goto") (statement_identifier "LAB_00041025") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "iVar7 = 0x1c;" (assignment_expression "iVar7 = 0x1c" (identifier "iVar7") (= "=") (number_literal "0x1c")) (; ";")) (expression_statement "FUN_00027240(local_90,unaff_EBX + 0x40719);" (call_expression "FUN_00027240(local_90,unaff_EBX + 0x40719)" (identifier "FUN_00027240") (argument_list "(local_90,unaff_EBX + 0x40719)" (( "(") (identifier "local_90") (, ",") (binary_expression "unaff_EBX + 0x40719" (identifier "unaff_EBX") (+ "+") (number_literal "0x40719")) () ")"))) (; ";")) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" (identifier "piVar5") (= "=") (cast_expression "(int *)auStack_94" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_94"))) (; ";")) (} "}")) (else_clause "else {\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" (else "else") (compound_statement "{\n    *param_2 = 1;\n    iVar7 = 0;\n    piVar5 = &local_90;\n  }" ({ "{") (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = &local_90;" (assignment_expression "piVar5 = &local_90" (identifier "piVar5") (= "=") (pointer_expression "&local_90" (& "&") (identifier "local_90"))) (; ";")) (} "}")))) (labeled_statement "LAB_00040f28:\n  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" (statement_identifier "LAB_00040f28") (: ":") (if_statement "if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" (if "if") (parenthesized_expression "(*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)((int)piVar5 + 0x6c)" (* "*") (cast_expression "(int *)((int)piVar5 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar5 + 0x6c)" (( "(") (binary_expression "(int)piVar5 + 0x6c" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (number_literal "0x6c")) () ")")))) (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;\n    FUN_0007c1a0();\n  }" ({ "{") (expression_statement "*(undefined **)((int)piVar5 + -4) = &UNK_00041386;" (assignment_expression "*(undefined **)((int)piVar5 + -4) = &UNK_00041386" (pointer_expression "*(undefined **)((int)piVar5 + -4)" (* "*") (cast_expression "(undefined **)((int)piVar5 + -4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)piVar5 + -4)" (( "(") (binary_expression "(int)piVar5 + -4" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (pointer_expression "&UNK_00041386" (& "&") (identifier "UNK_00041386"))) (; ";")) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (labeled_statement "code_r0x0004102e:\n  if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" (statement_identifier "code_r0x0004102e") (: ":") (if_statement "if ((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }\n  else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" (if "if") (parenthesized_expression "((local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0))))" (( "(") (binary_expression "(local_8c == 0) ||\n     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))" (parenthesized_expression "(local_8c == 0)" (( "(") (binary_expression "local_8c == 0" (identifier "local_8c") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))" (( "(") (parenthesized_expression "(iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0))" (( "(") (comma_expression "iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)" (assignment_expression "iVar7 = local_8c" (identifier "iVar7") (= "=") (identifier "local_8c")) (, ",") (binary_expression "unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)" (binary_expression "unaff_retaddr[0x14] == 0" (subscript_expression "unaff_retaddr[0x14]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x14") (] "]")) (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar7 = FUN_00040dc0(), iVar7 == 0)" (( "(") (comma_expression "iVar7 = FUN_00040dc0(), iVar7 == 0" (assignment_expression "iVar7 = FUN_00040dc0()" (identifier "iVar7") (= "=") (call_expression "FUN_00040dc0()" (identifier "FUN_00040dc0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar7 = 0;\n    piVar5 = (int *)auStack_94;\n  }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" (identifier "piVar5") (= "=") (cast_expression "(int *)auStack_94" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_94"))) (; ";")) (} "}")) (else_clause "else {\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" (else "else") (compound_statement "{\n    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }\n    uVar4 = FUN_00048500(unaff_retaddr,local_64);\n    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);\n    piVar5 = (int *)auStack_94;\n  }" ({ "{") (if_statement "if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }\n    else {\n      iVar6 = unaff_retaddr[0x2f];\n    }" (if "if") (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24f) == '\0')" (( "(") (binary_expression "*(char *)((int)unaff_retaddr + 0x24f) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24f)" (* "*") (cast_expression "(char *)((int)unaff_retaddr + 0x24f)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr + 0x24f)" (( "(") (binary_expression "(int)unaff_retaddr + 0x24f" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x24f")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }\n    }" ({ "{") (if_statement "if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }\n      else {\n        iVar6 = unaff_retaddr[0x37];\n      }" (if "if") (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24e) == '\0')" (( "(") (binary_expression "*(char *)((int)unaff_retaddr + 0x24e) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24e)" (* "*") (cast_expression "(char *)((int)unaff_retaddr + 0x24e)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr + 0x24e)" (( "(") (binary_expression "(int)unaff_retaddr + 0x24e" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x24e")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }\n      }" ({ "{") (if_statement "if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {\n          iVar6 = unaff_retaddr[0x25];\n        }\n        else {\n          iVar6 = unaff_retaddr[0x2b];\n        }" (if "if") (parenthesized_expression "(*(char *)((int)unaff_retaddr + 0x24b) == '\0')" (( "(") (binary_expression "*(char *)((int)unaff_retaddr + 0x24b) == '\0'" (pointer_expression "*(char *)((int)unaff_retaddr + 0x24b)" (* "*") (cast_expression "(char *)((int)unaff_retaddr + 0x24b)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr + 0x24b)" (( "(") (binary_expression "(int)unaff_retaddr + 0x24b" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x24b")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar6 = unaff_retaddr[0x25];\n        }" ({ "{") (expression_statement "iVar6 = unaff_retaddr[0x25];" (assignment_expression "iVar6 = unaff_retaddr[0x25]" (identifier "iVar6") (= "=") (subscript_expression "unaff_retaddr[0x25]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x25") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n          iVar6 = unaff_retaddr[0x2b];\n        }" (else "else") (compound_statement "{\n          iVar6 = unaff_retaddr[0x2b];\n        }" ({ "{") (expression_statement "iVar6 = unaff_retaddr[0x2b];" (assignment_expression "iVar6 = unaff_retaddr[0x2b]" (identifier "iVar6") (= "=") (subscript_expression "unaff_retaddr[0x2b]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x2b") (] "]"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        iVar6 = unaff_retaddr[0x37];\n      }" (else "else") (compound_statement "{\n        iVar6 = unaff_retaddr[0x37];\n      }" ({ "{") (expression_statement "iVar6 = unaff_retaddr[0x37];" (assignment_expression "iVar6 = unaff_retaddr[0x37]" (identifier "iVar6") (= "=") (subscript_expression "unaff_retaddr[0x37]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x37") (] "]"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar6 = unaff_retaddr[0x2f];\n    }" (else "else") (compound_statement "{\n      iVar6 = unaff_retaddr[0x2f];\n    }" ({ "{") (expression_statement "iVar6 = unaff_retaddr[0x2f];" (assignment_expression "iVar6 = unaff_retaddr[0x2f]" (identifier "iVar6") (= "=") (subscript_expression "unaff_retaddr[0x2f]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x2f") (] "]"))) (; ";")) (} "}")))) (expression_statement "uVar4 = FUN_00048500(unaff_retaddr,local_64);" (assignment_expression "uVar4 = FUN_00048500(unaff_retaddr,local_64)" (identifier "uVar4") (= "=") (call_expression "FUN_00048500(unaff_retaddr,local_64)" (identifier "FUN_00048500") (argument_list "(unaff_retaddr,local_64)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "local_64") () ")")))) (; ";")) (expression_statement "FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);" (call_expression "FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4)" (identifier "FUN_00027240") (argument_list "(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4)" (( "(") (identifier "local_90") (, ",") (binary_expression "&UNK_000409ff + unaff_EBX" (pointer_expression "&UNK_000409ff" (& "&") (identifier "UNK_000409ff")) (+ "+") (identifier "unaff_EBX")) (, ",") (identifier "iVar6") (, ",") (subscript_expression "unaff_retaddr[0x3d]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x3d") (] "]")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "piVar5 = (int *)auStack_94;" (assignment_expression "piVar5 = (int *)auStack_94" (identifier "piVar5") (= "=") (cast_expression "(int *)auStack_94" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_94"))) (; ";")) (} "}"))))) (goto_statement "goto LAB_00040f28;" (goto "goto") (statement_identifier "LAB_00040f28") (; ";")) (} "}")))

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

type_1 function_1(type_2 *conn,int var_15,type_3 *connected)

{
  type_4 var_6;
  int var_29;
  type_5 *pCVar3;
  type_6 newer;
  type_6 newer_00;
  type_3 _Var4;
  type_7 var_4;
  type_4 var_8;
  char *pcVar7;
  type_7 var_22;
  int *piVar9;
  char *pcVar10;
  int var_10;
  type_4 uVar12;
  type_1 var_13;
  int var_5;
  int var_1;
  type_2 *in_stack_ffffff74;
  type_8 *data;
  type_1 tempindex_00;
  type_9 local_64;
  int local_60;
  int var_20;
  type_6 now;
  char ipaddress [46];
  
  var_29 = *(int *)(var_1 + 0x14);
  data = conn->data;
  *connected = false;
  var_20 = 0;
  if ((conn->bits).tcpconnect[var_15] == false) {
    var_2();
    now.tv_sec = local_64;
    now.tv_usec = local_60;
    var_4 = var_3(data,&now,true);
    if (-1 < var_4) {
      var_5 = 1;
      tempindex_00 = var_14;
      do {
        var_6 = var_5 - 1;
        var_13 = tempindex_00;
        if (conn->sock[var_5 + 1] == -1) {
LAB_00041025:
          tempindex_00 = var_13;
          if (var_5 == 2) goto code_r0x0004102e;
        }
        else {
          uVar12 = var_6 ^ 1;
          var_8 = var_7(-1,-1,conn->sock[var_5 + 1],0);
          if (var_8 != 0) {
            if ((var_8 == 2) || ((conn->bits).tcp_fastopen != false)) {
              _Var4 = var_9(conn->sock[var_5 + 1],&var_20);
              if (_Var4) {
                conn->sock[var_15] = conn->sock[var_5 + 1];
                pCVar3 = conn->tempaddr[var_5 + -1];
                conn->ip_addr = pCVar3;
                var_10 = pCVar3->ai_family;
                conn->sock[var_5 + 1] = -1;
                (conn->bits).ipv6 = var_10 == 10;
                if (conn->tempsock[uVar12] != -1) {
                  var_11(conn,conn->tempsock[uVar12]);
                  conn->tempsock[uVar12] = -1;
                }
                var_13 = var_12(conn,var_15);
                if (var_13 == var_14) {
                  (conn->bits).tcpconnect[var_15] = true;
                  *connected = true;
                  if (var_15 == 0) {
                    var_16(data,TIMER_CONNECT);
                  }
                  var_17(conn,conn->sock[var_15]);
                  var_18(conn);
                }
                goto LAB_00040f28;
              }
              var_19(data,"Connection failed\n");
            }
            else if ((var_8 & 4) != 0) {
              var_9(conn->sock[var_5 + 1],&var_20);
            }
LAB_00041019:
            var_13 = tempindex_00;
            if (var_20 != 0) goto LAB_00041150;
            goto LAB_00041025;
          }
          var_20 = 0;
          newer.tv_usec = now.tv_usec;
          newer.tv_sec = now.tv_sec;
          var_22 = var_21(newer,conn->connecttime);
          if (var_22 < conn->timeoutms_per_addr) {
            if (var_6 != 0) goto LAB_00041019;
          }
          else {
            var_19(data,"After %ldms connect time, move on!\n",conn->timeoutms_per_addr);
            var_20 = 0x6e;
            if (var_6 != 0) goto LAB_00041150;
          }
          if ((conn->tempaddr[1] == (type_5 *)0x0) &&
             (newer_00.tv_usec = now.tv_usec, newer_00.tv_sec = now.tv_sec,
             var_22 = var_21(newer_00,conn->connecttime),
             (data->set).happy_eyeballs_timeout <= var_22)) {
            var_23(in_stack_ffffff74,(int)data,tempindex_00);
          }
          if (var_20 != 0) {
LAB_00041150:
            var_10 = var_20;
            (data->state).os_errno = var_20;
            piVar9 = var_24();
            *piVar9 = var_10;
            var_13 = tempindex_00;
            if (conn->tempaddr[var_5 + -1] != (type_5 *)0x0) {
              var_25(conn->tempaddr[var_5 + -1],ipaddress,0x2e);
              pcVar10 = var_26(conn,var_20);
              var_19(data,"connect to %s port %ld failed: %s\n",ipaddress,conn->port,pcVar10);
              var_10 = var_4 >> 1;
              if (conn->tempaddr[var_5 + -1]->ai_next == (type_5 *)0x0) {
                var_10 = var_4;
              }
              conn->timeoutms_per_addr = var_10;
              var_13 = var_23(in_stack_ffffff74,(int)data,tempindex_00);
              if ((var_13 == var_27) && (conn->tempsock[uVar12] != -1)) {
                var_13 = tempindex_00;
              }
            }
            goto LAB_00041025;
          }
        }
        var_5 = var_5 + 1;
      } while( true );
    }
    var_13 = CURLE_OPERATION_TIMEDOUT;
    var_28(data,"Connection time-out");
  }
  else {
    *connected = true;
    var_13 = var_14;
  }
LAB_00040f28:
  if (var_29 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_30();
  }
  return var_13;
code_r0x0004102e:
  if ((var_13 == var_14) ||
     ((conn->tempaddr[1] == (type_5 *)0x0 &&
      (var_13 = var_23(in_stack_ffffff74,(int)data,var_13), var_13 == var_14)))) {
    var_13 = var_14;
  }
  else {
    if ((conn->bits).socksproxy == false) {
      if ((conn->bits).httpproxy == false) {
        if ((conn->bits).conn_to_host == false) {
          pcVar10 = (conn->host).name;
        }
        else {
          pcVar10 = (conn->conn_to_host).name;
        }
      }
      else {
        pcVar10 = (conn->http_proxy).host.name;
      }
    }
    else {
      pcVar10 = (conn->socks_proxy).host.name;
    }
    pcVar7 = var_26(conn,var_20);
    var_28(data,"Failed to connect to %s port %ld: %s",pcVar10,conn->port,pcVar7);
  }
  goto LAB_00040f28;
}


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

int MASKED(int param_1,undefined1 *param_2)

{
  uint uVar1;
  char cVar2;
  uint uVar3;
  undefined4 uVar4;
  int *piVar5;
  int iVar6;
  int unaff_EBX;
  int iVar7;
  int in_GS_OFFSET;
  int *unaff_retaddr;
  undefined1 auStack_94 [4];
  int local_90;
  int local_8c;
  undefined1 *local_88;
  undefined1 *local_84;
  int local_80;
  uint local_7c;
  int local_78;
  int local_74;
  int local_70;
  undefined4 local_6c;
  undefined4 local_68;
  int local_64;
  undefined4 local_60;
  undefined4 local_5c;
  undefined1 local_56 [50];
  undefined4 local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x40ed9;
  entry();
  local_84 = param_2;
  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  local_8c = *unaff_retaddr;
  *param_2 = 0;
  local_60 = 0;
  if (*(char *)((int)unaff_retaddr + param_1 + 0x255) == '\0') {
    FUN_0001ab40(&local_68);
    local_60 = local_6c;
    local_5c = local_68;
    local_80 = FUN_0003f980(local_90,&local_60,1);
    if (-1 < local_80) {
      local_78 = local_80 >> 1;
      iVar7 = 1;
      local_84 = local_56;
      local_74 = unaff_EBX + 0x409db;
      local_8c = 0;
      do {
        uVar1 = iVar7 - 1;
        iVar6 = local_8c;
        if (unaff_retaddr[iVar7 + 0x65] == -1) {
LAB_00041025:
          local_8c = iVar6;
          if (iVar7 == 2) goto code_r0x0004102e;
        }
        else {
          local_7c = uVar1 ^ 1;
          uVar3 = FUN_00049010(0xffffffff,0xffffffff,unaff_retaddr[iVar7 + 0x65],0);
          if (uVar3 != 0) {
            if ((uVar3 == 2) || (*(char *)((int)unaff_retaddr + 0x266) != '\0')) {
              cVar2 = FUN_0003f900();
              uVar1 = local_7c;
              if (cVar2 != '\0') {
                *(int *)((int)unaff_retaddr * 5 + 400) = unaff_retaddr[iVar7 + 0x65];
                iVar6 = unaff_retaddr[iVar7 + 0x12];
                unaff_retaddr[0x12] = iVar6;
                iVar6 = *(int *)(iVar6 + 4);
                unaff_retaddr[iVar7 + 0x65] = -1;
                *(bool *)((int)unaff_retaddr + 0x253) = iVar6 == 10;
                if (unaff_retaddr[local_7c + 0x66] != -1) {
                  FUN_000400c0(unaff_retaddr,unaff_retaddr[local_7c + 0x66]);
                  unaff_retaddr[uVar1 + 0x66] = -1;
                }
                iVar7 = FUN_0002eca0(unaff_retaddr,unaff_retaddr);
                piVar5 = (int *)auStack_94;
                if (iVar7 == 0) {
                  *(undefined1 *)((int)unaff_retaddr * 2 + 0x255) = 1;
                  *local_88 = 1;
                  if (unaff_retaddr == (int *)0x0) {
                    FUN_0001c710(local_90,4);
                  }
                  FUN_0003fc90(unaff_retaddr,*(undefined4 *)((int)unaff_retaddr * 5 + 400));
                  FUN_0002ede0(unaff_retaddr);
                  piVar5 = (int *)auStack_94;
                }
                goto LAB_00040f28;
              }
              FUN_00027140(local_90,unaff_EBX + 0x4072d);
            }
            else if ((uVar3 & 4) != 0) {
              FUN_0003f900();
            }
LAB_00041019:
            iVar6 = local_8c;
            if (local_64 != 0) goto LAB_00041150;
            goto LAB_00041025;
          }
          local_64 = 0;
          iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]);
          if (iVar6 < unaff_retaddr[0x9e]) {
            if (uVar1 != 0) goto LAB_00041019;
          }
          else {
            FUN_00027140(local_90,unaff_EBX + 0x409b7,unaff_retaddr[0x9e]);
            local_64 = 0x6e;
            if (uVar1 != 0) goto LAB_00041150;
          }
          if ((unaff_retaddr[0x14] == 0) &&
             (iVar6 = FUN_0001abe0(local_60,local_5c,unaff_retaddr[0x9b],unaff_retaddr[0x9c]),
             *(int *)(local_90 + 0x640) <= iVar6)) {
            FUN_00040dc0();
          }
          if (local_64 != 0) {
LAB_00041150:
            *(int *)(local_90 + 0xcbc) = local_64;
            local_70 = local_64;
            piVar5 = __errno_location();
            *piVar5 = local_70;
            iVar6 = local_8c;
            if (unaff_retaddr[iVar7 + 0x12] != 0) {
              FUN_0001b540(unaff_retaddr[iVar7 + 0x12],local_84,0x2e);
              uVar4 = FUN_00048500(unaff_retaddr,local_64);
              FUN_00027140(local_90,local_74,local_84,unaff_retaddr[0x3d],uVar4);
              iVar6 = local_78;
              if (*(int *)(unaff_retaddr[iVar7 + 0x12] + 0x1c) == 0) {
                iVar6 = local_80;
              }
              unaff_retaddr[0x9e] = iVar6;
              iVar6 = FUN_00040dc0();
              if ((iVar6 == 7) && (unaff_retaddr[local_7c + 0x66] != -1)) {
                iVar6 = local_8c;
              }
            }
            goto LAB_00041025;
          }
        }
        iVar7 = iVar7 + 1;
      } while( true );
    }
    iVar7 = 0x1c;
    FUN_00027240(local_90,unaff_EBX + 0x40719);
    piVar5 = (int *)auStack_94;
  }
  else {
    *param_2 = 1;
    iVar7 = 0;
    piVar5 = &local_90;
  }
LAB_00040f28:
  if (*(int *)((int)piVar5 + 0x6c) != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(undefined **)((int)piVar5 + -4) = &UNK_00041386;
    FUN_0007c1a0();
  }
  return iVar7;
code_r0x0004102e:
  if ((local_8c == 0) ||
     ((iVar7 = local_8c, unaff_retaddr[0x14] == 0 && (iVar7 = FUN_00040dc0(), iVar7 == 0)))) {
    iVar7 = 0;
    piVar5 = (int *)auStack_94;
  }
  else {
    if (*(char *)((int)unaff_retaddr + 0x24f) == '\0') {
      if (*(char *)((int)unaff_retaddr + 0x24e) == '\0') {
        if (*(char *)((int)unaff_retaddr + 0x24b) == '\0') {
          iVar6 = unaff_retaddr[0x25];
        }
        else {
          iVar6 = unaff_retaddr[0x2b];
        }
      }
      else {
        iVar6 = unaff_retaddr[0x37];
      }
    }
    else {
      iVar6 = unaff_retaddr[0x2f];
    }
    uVar4 = FUN_00048500(unaff_retaddr,local_64);
    FUN_00027240(local_90,&UNK_000409ff + unaff_EBX,iVar6,unaff_retaddr[0x3d],uVar4);
    piVar5 = (int *)auStack_94;
  }
  goto LAB_00040f28;
}

