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

int proxy_for_destination(SockAddr addr,char *hostname,int port,Conf *conf)

{
  byte *__s2;
  byte bVar1;
  int iVar2;
  ushort *puVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  size_t sVar7;
  byte *pbVar8;
  ushort **ppuVar9;
  uint *puVar10;
  uint *puVar11;
  int iVar12;
  int iVar13;
  int in_GS_OFFSET;
  bool bVar14;
  char *local_98;
  byte local_78;
  size_t local_70;
  char hostip [64];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (addr == (SockAddr)0x0) {
    iVar4 = conf_get_int(conf,0xc);
    if ((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)) {
      iVar4 = 0;
      goto LAB_00020245;
    }
    local_98 = (char *)0x0;
  }
  else {
    iVar4 = sk_address_is_special_local(addr);
    if ((iVar4 != 0) ||
       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&
        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||
         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {
      iVar4 = 0;
      goto LAB_00020245;
    }
    sk_getaddr(addr,hostip,0x40);
    puVar11 = (uint *)hostip;
    do {
      puVar10 = puVar11;
      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;
      uVar6 = uVar5 & 0x80808080;
      puVar11 = puVar10 + 1;
    } while (uVar6 == 0);
    bVar14 = (uVar5 & 0x8080) == 0;
    if (bVar14) {
      uVar6 = uVar6 >> 0x10;
    }
    if (bVar14) {
      puVar11 = (uint *)((int)puVar10 + 6);
    }
    local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))
    ;
  }
  iVar13 = 0;
  sVar7 = strlen(hostname);
  pbVar8 = (byte *)conf_get_str(conf,10);
  local_78 = *pbVar8;
  while (local_78 != 0) {
    ppuVar9 = __ctype_b_loc();
    puVar3 = *ppuVar9;
    while ((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||
           (local_78 == 0x2c))) {
      iVar13 = iVar13 + 1;
      local_78 = pbVar8[iVar13];
      if (local_78 == 0) goto LAB_00020240;
    }
    bVar1 = pbVar8[iVar13];
    iVar12 = iVar13;
    if (bVar1 == 0) {
      local_70 = 0;
    }
    else {
      do {
        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;
        iVar12 = iVar12 + 1;
        bVar1 = pbVar8[iVar12];
      } while (bVar1 != 0);
      local_70 = iVar12 - iVar13;
    }
    if (local_78 == 0x2a) {
      if ((addr != (SockAddr)0x0) &&
         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),
                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))
      goto LAB_00020245;
      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),
                          local_70 - 1);
      if (iVar4 == 0) {
        iVar4 = 0;
        goto LAB_00020245;
      }
    }
    else if (pbVar8[iVar12 + -1] == 0x2a) {
      if ((addr != (SockAddr)0x0) &&
         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;
      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);
      if (iVar4 == 0) {
        iVar4 = 0;
        goto LAB_00020245;
      }
    }
    else if (((addr != (SockAddr)0x0) &&
             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||
            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;
    bVar1 = pbVar8[iVar12];
    iVar13 = iVar12;
    while( true ) {
      if (bVar1 == 0) goto LAB_00020240;
      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;
      iVar13 = iVar13 + 1;
      bVar1 = pbVar8[iVar13];
    }
    local_78 = pbVar8[iVar13];
  }
LAB_00020240:
  iVar4 = 1;
LAB_00020245:
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)

{
  byte *__s2;
  byte bVar1;
  ushort *puVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  size_t sVar6;
  byte *pbVar7;
  ushort **ppuVar8;
  uint *puVar9;
  uint *puVar10;
  int iVar11;
  int iVar12;
  int in_GS_OFFSET;
  bool bVar13;
  int local_98;
  byte local_78;
  size_t local_70;
  undefined4 local_60;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2010b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
    iVar3 = FUN_000189a0(param_4,0xc);
    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {
      iVar3 = 0;
      goto LAB_00020245;
    }
    local_98 = 0;
  }
  else {
    iVar3 = FUN_000648e0(param_1);
    if ((iVar3 != 0) ||
       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&
        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))
        ))) {
      iVar3 = 0;
      goto LAB_00020245;
    }
    FUN_00064790(param_1,&local_60,0x40);
    puVar10 = &local_60;
    do {
      puVar9 = puVar10;
      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;
      uVar5 = uVar4 & 0x80808080;
      puVar10 = puVar9 + 1;
    } while (uVar5 == 0);
    bVar13 = (uVar4 & 0x8080) == 0;
    if (bVar13) {
      uVar5 = uVar5 >> 0x10;
    }
    if (bVar13) {
      puVar10 = (uint *)((int)puVar9 + 6);
    }
    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);
  }
  iVar12 = 0;
  sVar6 = strlen(param_2);
  pbVar7 = (byte *)FUN_00018b50(param_4,10);
  local_78 = *pbVar7;
  while (local_78 != 0) {
    ppuVar8 = __ctype_b_loc();
    puVar2 = *ppuVar8;
    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||
           (local_78 == 0x2c))) {
      iVar12 = iVar12 + 1;
      local_78 = pbVar7[iVar12];
      if (local_78 == 0) goto LAB_00020240;
    }
    bVar1 = pbVar7[iVar12];
    iVar11 = iVar12;
    if (bVar1 == 0) {
      local_70 = 0;
    }
    else {
      do {
        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;
        iVar11 = iVar11 + 1;
        bVar1 = pbVar7[iVar11];
      } while (bVar1 != 0);
      local_70 = iVar11 - iVar12;
    }
    if (local_78 == 0x2a) {
      if ((param_1 != 0) &&
         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),
                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))
      goto LAB_00020245;
      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),
                          local_70 - 1);
      if (iVar3 == 0) {
        iVar3 = 0;
        goto LAB_00020245;
      }
    }
    else if (pbVar7[iVar11 + -1] == 0x2a) {
      if ((param_1 != 0) &&
         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))
      goto LAB_00020245;
      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);
      if (iVar3 == 0) {
        iVar3 = 0;
        goto LAB_00020245;
      }
    }
    else if (((param_1 != 0) &&
             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||
            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;
    bVar1 = pbVar7[iVar11];
    iVar12 = iVar11;
    while( true ) {
      if (bVar1 == 0) goto LAB_00020240;
      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;
      iVar12 = iVar12 + 1;
      bVar1 = pbVar7[iVar12];
    }
    local_78 = pbVar7[iVar12];
  }
LAB_00020240:
  iVar3 = 1;
LAB_00020245:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006dad0();
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015fa0
ADD EBX,0x84c65
SUB ESP,0x8c
MOV ECX,dword ptr [EBP + 0xc]
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x14]
MOV dword ptr [EBP + 0xffffff78],EAX
MOV dword ptr [EBP + 0xffffff7c],ECX
MOV dword ptr [EBP + -0x78],EBX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [EBP + -0x1c],ECX
XOR ECX,ECX
TEST EAX,EAX
JZ 0x00020491
SUB ESP,0xc
PUSH EAX
CALL 0x000648e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00020291
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x78]
PUSH 0xc
PUSH ESI
CALL 0x000189a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002025d
SUB ESP,0x4
LEA EDI,[EBP + -0x5c]
MOV EBX,dword ptr [EBP + -0x78]
PUSH 0x40
PUSH EDI
PUSH dword ptr [EBP + 0xffffff78]
CALL 0x00064790
MOV EDX,EDI
MOV ECX,dword ptr [EDX]
ADD EDX,0x4
LEA EAX,[ECX + 0xfefefeff]
NOT ECX
AND EAX,ECX
AND EAX,0x80808080
JZ 0x00020189
MOV ECX,EAX
SHR ECX,0x10
TEST EAX,0x8080
CMOVZ EAX,ECX
LEA ECX,[EDX + 0x2]
CMOVZ EDX,ECX
MOV EBX,EAX
ADD BL,AL
SBB EDX,0x3
ADD ESP,0x10
SUB EDX,EDI
MOV dword ptr [EBP + 0xffffff6c],EDX
SUB ESP,0xc
MOV EDI,dword ptr [EBP + -0x78]
PUSH dword ptr [EBP + 0xffffff7c]
MOV EBX,EDI
XOR EDI,EDI
CALL 0x00014440
POP EDX
POP ECX
PUSH 0xa
PUSH ESI
MOV dword ptr [EBP + 0xffffff70],EAX
CALL 0x00018b50
ADD ESP,0x10
MOVZX EDX,byte ptr [EAX]
MOV ECX,EAX
LEA EAX,[EBP + -0x5c]
MOV dword ptr [EBP + 0xffffff74],EAX
MOV byte ptr [EBP + -0x74],DL
LEA ESI,[ESI]
CMP byte ptr [EBP + -0x74],0x0
LEA ESI,[ECX + EDI*0x1]
MOV dword ptr [EBP + -0x6c],ECX
JZ 0x00020240
MOV EBX,dword ptr [EBP + -0x78]
SUB ESI,EDI
CALL 0x00014880
MOV ECX,dword ptr [EBP + -0x6c]
MOVZX EDX,byte ptr [EBP + -0x74]
MOV EBX,dword ptr [EAX]
NOP
LEA EAX,[ESI + EDI*0x1]
MOV dword ptr [EBP + -0x70],EAX
MOVZX EAX,DL
TEST byte ptr [EBX + EAX*0x2 + 0x1],0x20
JNZ 0x00020235
CMP DL,0x2c
JNZ 0x00020298
ADD EDI,0x1
MOVZX EDX,byte ptr [ECX + EDI*0x1]
TEST DL,DL
JNZ 0x00020220
MOV EAX,0x1
MOV ECX,dword ptr [EBP + -0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000204e2
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [EBP + 0xffffff7c]
MOV EBX,dword ptr [EBP + -0x78]
CALL 0x00064830
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00020291
SUB ESP,0xc
PUSH dword ptr [EBP + 0xffffff78]
MOV EBX,dword ptr [EBP + -0x78]
CALL 0x000648a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00020170
XOR EAX,EAX
JMP 0x00020245
MOVZX EAX,byte ptr [ECX + EDI*0x1]
MOV byte ptr [EBP + -0x74],DL
MOV ESI,EDI
MOV dword ptr [EBP + -0x7c],EBX
TEST AL,AL
JZ 0x000204b5
MOV dword ptr [EBP + -0x80],EDI
MOV EDI,dword ptr [EBP + -0x7c]
MOV dword ptr [EBP + -0x6c],EDI
LEA ESI,[ESI]
MOV EDX,dword ptr [EBP + -0x6c]
MOVZX EDI,AL
MOV EBX,ESI
TEST byte ptr [EDX + EDI*0x2],0x8
JNZ 0x000202d8
LEA EDX,[EAX + -0x2d]
CMP DL,0x1
SETBE DL
CMP AL,0x2a
SETZ AL
OR DL,AL
JZ 0x000202e5
ADD ESI,0x1
MOVZX EAX,byte ptr [ECX + ESI*0x1]
MOV EBX,ESI
TEST AL,AL
JNZ 0x000202b8
MOV EAX,dword ptr [EBP + -0x6c]
MOV EDI,dword ptr [EBP + -0x80]
MOV dword ptr [EBP + -0x7c],EAX
MOV EAX,ESI
SUB EAX,EDI
MOV dword ptr [EBP + -0x6c],EAX
CMP byte ptr [EBP + -0x74],0x2a
JZ 0x000203a8
CMP byte ptr [ECX + EBX*0x1 + -0x1],0x2a
JZ 0x00020430
MOV EAX,dword ptr [EBP + 0xffffff78]
TEST EAX,EAX
JZ 0x0002033c
SUB ESP,0x4
PUSH dword ptr [EBP + -0x6c]
MOV EBX,dword ptr [EBP + -0x78]
PUSH dword ptr [EBP + -0x70]
PUSH dword ptr [EBP + 0xffffff74]
MOV dword ptr [EBP + -0x74],ECX
CALL 0x000145c0
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x74]
TEST EAX,EAX
JZ 0x00020245
SUB ESP,0x4
PUSH dword ptr [EBP + -0x6c]
MOV EBX,dword ptr [EBP + -0x78]
PUSH dword ptr [EBP + -0x70]
PUSH dword ptr [EBP + 0xffffff7c]
MOV dword ptr [EBP + -0x74],ECX
CALL 0x000145c0
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x74]
TEST EAX,EAX
JZ 0x00020245
MOVZX EAX,byte ptr [ECX + ESI*0x1]
TEST AL,AL
JZ 0x00020240
MOV EDI,dword ptr [EBP + -0x7c]
JMP 0x0002038b
CMP AL,0x2c
JZ 0x00020395
ADD ESI,0x1
MOVZX EAX,byte ptr [ECX + ESI*0x1]
TEST AL,AL
JZ 0x00020240
MOVZX EDX,AL
TEST byte ptr [EDI + EDX*0x2 + 0x1],0x20
JZ 0x00020378
MOVZX EAX,byte ptr [ECX + ESI*0x1]
MOV EDI,ESI
MOV byte ptr [EBP + -0x74],AL
JMP 0x00020200
MOV EBX,dword ptr [EBP + -0x6c]
MOV EAX,dword ptr [EBP + 0xffffff78]
LEA EDX,[ECX + EDI*0x1 + 0x1]
LEA EDI,[EBX + -0x1]
TEST EAX,EAX
JZ 0x000203f2
MOV EAX,dword ptr [EBP + 0xffffff6c]
SUB ESP,0x4
MOV dword ptr [EBP + -0x74],ECX
PUSH EDI
ADD EAX,0x1
PUSH EDX
SUB EAX,EBX
ADD EAX,dword ptr [EBP + 0xffffff74]
MOV EBX,dword ptr [EBP + -0x78]
MOV dword ptr [EBP + -0x70],EDX
PUSH EAX
CALL 0x000145c0
ADD ESP,0x10
MOV EDX,dword ptr [EBP + -0x70]
MOV ECX,dword ptr [EBP + -0x74]
TEST EAX,EAX
JZ 0x00020245
MOV EAX,dword ptr [EBP + 0xffffff7c]
SUB EAX,dword ptr [EBP + -0x6c]
MOV dword ptr [EBP + -0x70],ECX
SUB ESP,0x4
MOV ECX,dword ptr [EBP + 0xffffff70]
MOV EBX,dword ptr [EBP + -0x78]
PUSH EDI
PUSH EDX
LEA EAX,[EAX + ECX*0x1 + 0x1]
PUSH EAX
CALL 0x000145c0
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x70]
TEST EAX,EAX
JNZ 0x00020364
JMP 0x00020245
MOV EDI,dword ptr [EBP + -0x6c]
MOV EDX,dword ptr [EBP + 0xffffff78]
SUB EDI,0x1
TEST EDX,EDX
JZ 0x00020466
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x78]
MOV dword ptr [EBP + -0x6c],ECX
PUSH EDI
PUSH dword ptr [EBP + -0x70]
PUSH dword ptr [EBP + 0xffffff74]
CALL 0x000145c0
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x6c]
TEST EAX,EAX
JZ 0x00020245
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x78]
MOV dword ptr [EBP + -0x6c],ECX
PUSH EDI
PUSH dword ptr [EBP + -0x70]
PUSH dword ptr [EBP + 0xffffff7c]
CALL 0x000145c0
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x6c]
TEST EAX,EAX
JNZ 0x00020364
JMP 0x00020245
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x78]
PUSH 0xc
PUSH ESI
CALL 0x000189a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000204c3
MOV dword ptr [EBP + 0xffffff6c],0x0
JMP 0x000201c4
MOV EBX,EDI
MOV dword ptr [EBP + -0x6c],0x0
JMP 0x000202f5
SUB ESP,0xc
PUSH dword ptr [EBP + 0xffffff7c]
MOV EBX,dword ptr [EBP + -0x78]
CALL 0x00064830
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000204a6
XOR EAX,EAX
JMP 0x00020245
CALL 0x0006dad0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}\n\n" comment (function_definition "int FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}" primitive_type (function_declarator "FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}" { (declaration "byte *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "ushort **ppuVar8;" type_identifier (pointer_declarator "**ppuVar8" * (pointer_declarator "*ppuVar8" * identifier)) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar13;" primitive_type identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "byte local_78;" type_identifier identifier ;) (declaration "size_t local_70;" primitive_type identifier ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2010b;" (assignment_expression "uStack_14 = 0x2010b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (if_statement "if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }" { (expression_statement "iVar3 = FUN_000189a0(param_4,0xc);" (assignment_expression "iVar3 = FUN_000189a0(param_4,0xc)" identifier = (call_expression "FUN_000189a0(param_4,0xc)" identifier (argument_list "(param_4,0xc)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" if (parenthesized_expression "((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0))" ( (binary_expression "(iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar3 = FUN_00064830(param_2), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_00064830(param_2), iVar3 != 0" (assignment_expression "iVar3 = FUN_00064830(param_2)" identifier = (call_expression "FUN_00064830(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" else (compound_statement "{\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" { (expression_statement "iVar3 = FUN_000648e0(param_1);" (assignment_expression "iVar3 = FUN_000648e0(param_1)" identifier = (call_expression "FUN_000648e0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" if (parenthesized_expression "((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        )))" ( (binary_expression "(iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))" ( (parenthesized_expression "(iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        )" ( (comma_expression "iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" (assignment_expression "iVar3 = FUN_000189a0(param_4,0xc)" identifier = (call_expression "FUN_000189a0(param_4,0xc)" identifier (argument_list "(param_4,0xc)" ( identifier , number_literal )))) , (binary_expression "iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" (binary_expression "iVar3 == 0" identifier == number_literal) && (parenthesized_expression "((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" ( (parenthesized_expression "(iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0))" ( (comma_expression "iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)" (assignment_expression "iVar3 = FUN_00064830(param_2)" identifier = (call_expression "FUN_00064830(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)" (binary_expression "iVar3 != 0" identifier != number_literal) || (parenthesized_expression "(iVar3 = FUN_000648a0(param_1), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_000648a0(param_1), iVar3 != 0" (assignment_expression "iVar3 = FUN_000648a0(param_1)" identifier = (call_expression "FUN_000648a0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) )))) )) )))) )) ))) )) (compound_statement "{\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) (expression_statement "FUN_00064790(param_1,&local_60,0x40);" (call_expression "FUN_00064790(param_1,&local_60,0x40)" identifier (argument_list "(param_1,&local_60,0x40)" ( identifier , (pointer_expression "&local_60" & identifier) , number_literal ))) ;) (expression_statement "puVar10 = &local_60;" (assignment_expression "puVar10 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (do_statement "do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);" do (compound_statement "{\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    }" { (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" identifier = identifier) ;) (expression_statement "uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;" (assignment_expression "uVar4 = *puVar9 + 0xfefefeff & ~*puVar9" identifier = (binary_expression "*puVar9 + 0xfefefeff & ~*puVar9" (binary_expression "*puVar9 + 0xfefefeff" (pointer_expression "*puVar9" * identifier) + number_literal) & (unary_expression "~*puVar9" ~ (pointer_expression "*puVar9" * identifier)))) ;) (expression_statement "uVar5 = uVar4 & 0x80808080;" (assignment_expression "uVar5 = uVar4 & 0x80808080" identifier = (binary_expression "uVar4 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar10 = puVar9 + 1;" (assignment_expression "puVar10 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) ;) (expression_statement "bVar13 = (uVar4 & 0x8080) == 0;" (assignment_expression "bVar13 = (uVar4 & 0x8080) == 0" identifier = (binary_expression "(uVar4 & 0x8080) == 0" (parenthesized_expression "(uVar4 & 0x8080)" ( (binary_expression "uVar4 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }" if (parenthesized_expression "(bVar13)" ( identifier )) (compound_statement "{\n      uVar5 = uVar5 >> 0x10;\n    }" { (expression_statement "uVar5 = uVar5 >> 0x10;" (assignment_expression "uVar5 = uVar5 >> 0x10" identifier = (binary_expression "uVar5 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }" if (parenthesized_expression "(bVar13)" ( identifier )) (compound_statement "{\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }" { (expression_statement "puVar10 = (uint *)((int)puVar9 + 6);" (assignment_expression "puVar10 = (uint *)((int)puVar9 + 6)" identifier = (cast_expression "(uint *)((int)puVar9 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 6)" ( (binary_expression "(int)puVar9 + 6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);" (assignment_expression "local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" identifier = (binary_expression "(int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" ( (binary_expression "(-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar5,(byte)uVar5)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar5,(byte)uVar5)" identifier (argument_list "((byte)uVar5,(byte)uVar5)" ( (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(int)&local_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_60" & identifier))) )))) ;) }))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "sVar6 = strlen(param_2);" (assignment_expression "sVar6 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pbVar7 = (byte *)FUN_00018b50(param_4,10);" (assignment_expression "pbVar7 = (byte *)FUN_00018b50(param_4,10)" identifier = (cast_expression "(byte *)FUN_00018b50(param_4,10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018b50(param_4,10)" identifier (argument_list "(param_4,10)" ( identifier , number_literal ))))) ;) (expression_statement "local_78 = *pbVar7;" (assignment_expression "local_78 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (while_statement "while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }" while (parenthesized_expression "(local_78 != 0)" ( (binary_expression "local_78 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }" { (expression_statement "ppuVar8 = __ctype_b_loc();" (assignment_expression "ppuVar8 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2 = *ppuVar8;" (assignment_expression "puVar2 = *ppuVar8" identifier = (pointer_expression "*ppuVar8" * identifier)) ;) (while_statement "while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }" while (parenthesized_expression "((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)))" ( (parenthesized_expression "(__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))" ( (comma_expression "__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (assignment_expression "__s2 = pbVar7 + iVar12" identifier = (binary_expression "pbVar7 + iVar12" identifier + identifier)) , (binary_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (binary_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1)" * (cast_expression "(byte *)((int)puVar2 + (uint)local_78 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + (uint)local_78 * 2 + 1)" ( (binary_expression "(int)puVar2 + (uint)local_78 * 2 + 1" (binary_expression "(int)puVar2 + (uint)local_78 * 2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)local_78 * 2" (cast_expression "(uint)local_78" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) || (parenthesized_expression "(local_78 == 0x2c)" ( (binary_expression "local_78 == 0x2c" identifier == number_literal) )))) )) )) (compound_statement "{\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "local_78 = pbVar7[iVar12];" (assignment_expression "local_78 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) (if_statement "if (local_78 == 0) goto LAB_00020240;" if (parenthesized_expression "(local_78 == 0)" ( (binary_expression "local_78 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020240;" goto statement_identifier ;)) })) (expression_statement "bVar1 = pbVar7[iVar12];" (assignment_expression "bVar1 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) (expression_statement "iVar11 = iVar12;" (assignment_expression "iVar11 = iVar12" identifier = identifier) ;) (if_statement "if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      local_70 = 0;\n    }" { (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" else (compound_statement "{\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" { (do_statement "do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);" do (compound_statement "{\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      }" { (if_statement "if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;" if (parenthesized_expression "(((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a))" ( (binary_expression "((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" (parenthesized_expression "((puVar2[bVar1] & 8) == 0)" ( (binary_expression "(puVar2[bVar1] & 8) == 0" (parenthesized_expression "(puVar2[bVar1] & 8)" ( (binary_expression "puVar2[bVar1] & 8" (subscript_expression "puVar2[bVar1]" identifier [ identifier ]) & number_literal) )) == number_literal) )) && (parenthesized_expression "(1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" ( (binary_expression "1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a" (binary_expression "1 < (byte)(bVar1 - 0x2d)" number_literal < (call_expression "(byte)(bVar1 - 0x2d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 - 0x2d)" ( (binary_expression "bVar1 - 0x2d" identifier - number_literal) )))) && (binary_expression "bVar1 != 0x2a" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = pbVar7[iVar11];" (assignment_expression "bVar1 = pbVar7[iVar11]" identifier = (subscript_expression "pbVar7[iVar11]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (expression_statement "local_70 = iVar11 - iVar12;" (assignment_expression "local_70 = iVar11 - iVar12" identifier = (binary_expression "iVar11 - iVar12" identifier - identifier)) ;) }))) (if_statement "if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" if (parenthesized_expression "(local_78 == 0x2a)" ( (binary_expression "local_78 == 0x2a" identifier == number_literal) )) (compound_statement "{\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }" { (if_statement "if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;" if (parenthesized_expression "((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))" ( (binary_expression "(param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" identifier = (call_expression "strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" identifier (argument_list "((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" ( (cast_expression "(char *)((int)&local_60 + ((local_98 + 1) - local_70))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&local_60 + ((local_98 + 1) - local_70))" ( (binary_expression "(int)&local_60 + ((local_98 + 1) - local_70)" (cast_expression "(int)&local_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_60" & identifier)) + (parenthesized_expression "((local_98 + 1) - local_70)" ( (binary_expression "(local_98 + 1) - local_70" (parenthesized_expression "(local_98 + 1)" ( (binary_expression "local_98 + 1" identifier + number_literal) )) - identifier) ))) ))) , (cast_expression "(char *)(pbVar7 + iVar12 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar7 + iVar12 + 1)" ( (binary_expression "pbVar7 + iVar12 + 1" (binary_expression "pbVar7 + iVar12" identifier + identifier) + number_literal) ))) , (binary_expression "local_70 - 1" identifier - number_literal) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)) (expression_statement "iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);" (assignment_expression "iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" identifier = (call_expression "strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" identifier (argument_list "(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" ( (binary_expression "param_2 + sVar6 + (1 - local_70)" (binary_expression "param_2 + sVar6" identifier + identifier) + (parenthesized_expression "(1 - local_70)" ( (binary_expression "1 - local_70" number_literal - identifier) ))) , (cast_expression "(char *)(pbVar7 + iVar12 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar7 + iVar12 + 1)" ( (binary_expression "pbVar7 + iVar12 + 1" (binary_expression "pbVar7 + iVar12" identifier + identifier) + number_literal) ))) , (binary_expression "local_70 - 1" identifier - number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) }) (else_clause "else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" else (if_statement "if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" if (parenthesized_expression "(pbVar7[iVar11 + -1] == 0x2a)" ( (binary_expression "pbVar7[iVar11 + -1] == 0x2a" (subscript_expression "pbVar7[iVar11 + -1]" identifier [ (binary_expression "iVar11 + -1" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }" { (if_statement "if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;" if (parenthesized_expression "((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))" ( (binary_expression "(param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1)" identifier = (call_expression "strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1)" identifier (argument_list "((char *)&local_60,(char *)__s2,local_70 - 1)" ( (cast_expression "(char *)&local_60" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_60" & identifier)) , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "local_70 - 1" identifier - number_literal) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)) (expression_statement "iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);" (assignment_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1)" identifier = (call_expression "strncasecmp(param_2,(char *)__s2,local_70 - 1)" identifier (argument_list "(param_2,(char *)__s2,local_70 - 1)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "local_70 - 1" identifier - number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) }) (else_clause "else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" else (if_statement "if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" if (parenthesized_expression "(((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0))" ( (binary_expression "((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)" (parenthesized_expression "((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0))" ( (binary_expression "(param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70)" identifier = (call_expression "strncasecmp((char *)&local_60,(char *)__s2,local_70)" identifier (argument_list "((char *)&local_60,(char *)__s2,local_70)" ( (cast_expression "(char *)&local_60" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_60" & identifier)) , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "(iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70)" identifier = (call_expression "strncasecmp(param_2,(char *)__s2,local_70)" identifier (argument_list "(param_2,(char *)__s2,local_70)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)))))) (expression_statement "bVar1 = pbVar7[iVar11];" (assignment_expression "bVar1 = pbVar7[iVar11]" identifier = (subscript_expression "pbVar7[iVar11]" identifier [ identifier ])) ;) (expression_statement "iVar12 = iVar11;" (assignment_expression "iVar12 = iVar11" identifier = identifier) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }" { (if_statement "if (bVar1 == 0) goto LAB_00020240;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020240;" goto statement_identifier ;)) (if_statement "if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;" if (parenthesized_expression "(((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c))" ( (binary_expression "((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)" (parenthesized_expression "((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0)" ( (binary_expression "(*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1)" * (cast_expression "(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + (uint)bVar1 * 2 + 1)" ( (binary_expression "(int)puVar2 + (uint)bVar1 * 2 + 1" (binary_expression "(int)puVar2 + (uint)bVar1 * 2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x2c)" ( (binary_expression "bVar1 == 0x2c" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = pbVar7[iVar12];" (assignment_expression "bVar1 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) })) (expression_statement "local_78 = pbVar7[iVar12];" (assignment_expression "local_78 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) })) (labeled_statement "LAB_00020240:\n  iVar3 = 1;" statement_identifier : (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;)) (labeled_statement "LAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) comment (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint proxy_for_destination(SockAddr addr,char *hostname,int port,Conf *conf)\n\n{\n  byte *__s2;\n  byte bVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  byte *pbVar8;\n  ushort **ppuVar9;\n  uint *puVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  char *local_98;\n  byte local_78;\n  size_t local_70;\n  char hostip [64];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (addr == (SockAddr)0x0) {\n    iVar4 = conf_get_int(conf,0xc);\n    if ((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = (char *)0x0;\n  }\n  else {\n    iVar4 = sk_address_is_special_local(addr);\n    if ((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    sk_getaddr(addr,hostip,0x40);\n    puVar11 = (uint *)hostip;\n    do {\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    } while (uVar6 == 0);\n    bVar14 = (uVar5 & 0x8080) == 0;\n    if (bVar14) {\n      uVar6 = uVar6 >> 0x10;\n    }\n    if (bVar14) {\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }\n    local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))\n    ;\n  }\n  iVar13 = 0;\n  sVar7 = strlen(hostname);\n  pbVar8 = (byte *)conf_get_str(conf,10);\n  local_78 = *pbVar8;\n  while (local_78 != 0) {\n    ppuVar9 = __ctype_b_loc();\n    puVar3 = *ppuVar9;\n    while ((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar13 = iVar13 + 1;\n      local_78 = pbVar8[iVar13];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar8[iVar13];\n    iVar12 = iVar13;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }\n    if (local_78 == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;\n      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;\n    bVar1 = pbVar8[iVar12];\n    iVar13 = iVar12;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar13 = iVar13 + 1;\n      bVar1 = pbVar8[iVar13];\n    }\n    local_78 = pbVar8[iVar13];\n  }\nLAB_00020240:\n  iVar4 = 1;\nLAB_00020245:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int proxy_for_destination(SockAddr addr,char *hostname,int port,Conf *conf)\n\n{\n  byte *__s2;\n  byte bVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  byte *pbVar8;\n  ushort **ppuVar9;\n  uint *puVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  char *local_98;\n  byte local_78;\n  size_t local_70;\n  char hostip [64];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (addr == (SockAddr)0x0) {\n    iVar4 = conf_get_int(conf,0xc);\n    if ((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = (char *)0x0;\n  }\n  else {\n    iVar4 = sk_address_is_special_local(addr);\n    if ((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    sk_getaddr(addr,hostip,0x40);\n    puVar11 = (uint *)hostip;\n    do {\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    } while (uVar6 == 0);\n    bVar14 = (uVar5 & 0x8080) == 0;\n    if (bVar14) {\n      uVar6 = uVar6 >> 0x10;\n    }\n    if (bVar14) {\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }\n    local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))\n    ;\n  }\n  iVar13 = 0;\n  sVar7 = strlen(hostname);\n  pbVar8 = (byte *)conf_get_str(conf,10);\n  local_78 = *pbVar8;\n  while (local_78 != 0) {\n    ppuVar9 = __ctype_b_loc();\n    puVar3 = *ppuVar9;\n    while ((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar13 = iVar13 + 1;\n      local_78 = pbVar8[iVar13];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar8[iVar13];\n    iVar12 = iVar13;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }\n    if (local_78 == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;\n      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;\n    bVar1 = pbVar8[iVar12];\n    iVar13 = iVar12;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar13 = iVar13 + 1;\n      bVar1 = pbVar8[iVar13];\n    }\n    local_78 = pbVar8[iVar13];\n  }\nLAB_00020240:\n  iVar4 = 1;\nLAB_00020245:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "proxy_for_destination(SockAddr addr,char *hostname,int port,Conf *conf)" identifier (parameter_list "(SockAddr addr,char *hostname,int port,Conf *conf)" ( (parameter_declaration "SockAddr addr" type_identifier identifier) , (parameter_declaration "char *hostname" primitive_type (pointer_declarator "*hostname" * identifier)) , (parameter_declaration "int port" primitive_type identifier) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) ))) (compound_statement "{\n  byte *__s2;\n  byte bVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  byte *pbVar8;\n  ushort **ppuVar9;\n  uint *puVar10;\n  uint *puVar11;\n  int iVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  char *local_98;\n  byte local_78;\n  size_t local_70;\n  char hostip [64];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (addr == (SockAddr)0x0) {\n    iVar4 = conf_get_int(conf,0xc);\n    if ((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = (char *)0x0;\n  }\n  else {\n    iVar4 = sk_address_is_special_local(addr);\n    if ((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    sk_getaddr(addr,hostip,0x40);\n    puVar11 = (uint *)hostip;\n    do {\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    } while (uVar6 == 0);\n    bVar14 = (uVar5 & 0x8080) == 0;\n    if (bVar14) {\n      uVar6 = uVar6 >> 0x10;\n    }\n    if (bVar14) {\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }\n    local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))\n    ;\n  }\n  iVar13 = 0;\n  sVar7 = strlen(hostname);\n  pbVar8 = (byte *)conf_get_str(conf,10);\n  local_78 = *pbVar8;\n  while (local_78 != 0) {\n    ppuVar9 = __ctype_b_loc();\n    puVar3 = *ppuVar9;\n    while ((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar13 = iVar13 + 1;\n      local_78 = pbVar8[iVar13];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar8[iVar13];\n    iVar12 = iVar13;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }\n    if (local_78 == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;\n      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;\n    bVar1 = pbVar8[iVar12];\n    iVar13 = iVar12;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar13 = iVar13 + 1;\n      bVar1 = pbVar8[iVar13];\n    }\n    local_78 = pbVar8[iVar13];\n  }\nLAB_00020240:\n  iVar4 = 1;\nLAB_00020245:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "byte *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "ushort **ppuVar9;" type_identifier (pointer_declarator "**ppuVar9" * (pointer_declarator "*ppuVar9" * identifier)) ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "char *local_98;" primitive_type (pointer_declarator "*local_98" * identifier) ;) (declaration "byte local_78;" type_identifier identifier ;) (declaration "size_t local_70;" primitive_type identifier ;) (declaration "char hostip [64];" primitive_type (array_declarator "hostip [64]" 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) ))))) ;) (if_statement "if (addr == (SockAddr)0x0) {\n    iVar4 = conf_get_int(conf,0xc);\n    if ((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = (char *)0x0;\n  }\n  else {\n    iVar4 = sk_address_is_special_local(addr);\n    if ((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    sk_getaddr(addr,hostip,0x40);\n    puVar11 = (uint *)hostip;\n    do {\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    } while (uVar6 == 0);\n    bVar14 = (uVar5 & 0x8080) == 0;\n    if (bVar14) {\n      uVar6 = uVar6 >> 0x10;\n    }\n    if (bVar14) {\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }\n    local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))\n    ;\n  }" if (parenthesized_expression "(addr == (SockAddr)0x0)" ( (binary_expression "addr == (SockAddr)0x0" identifier == (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) )) (compound_statement "{\n    iVar4 = conf_get_int(conf,0xc);\n    if ((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = (char *)0x0;\n  }" { (expression_statement "iVar4 = conf_get_int(conf,0xc);" (assignment_expression "iVar4 = conf_get_int(conf,0xc)" identifier = (call_expression "conf_get_int(conf,0xc)" identifier (argument_list "(conf,0xc)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }" if (parenthesized_expression "((iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0))" ( (binary_expression "(iVar4 == 0) && (iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar4 = sk_hostname_is_local(hostname), iVar4 != 0)" ( (comma_expression "iVar4 = sk_hostname_is_local(hostname), iVar4 != 0" (assignment_expression "iVar4 = sk_hostname_is_local(hostname)" identifier = (call_expression "sk_hostname_is_local(hostname)" identifier (argument_list "(hostname)" ( identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar4 = 0;\n      goto LAB_00020245;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) (expression_statement "local_98 = (char *)0x0;" (assignment_expression "local_98 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar4 = sk_address_is_special_local(addr);\n    if ((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    sk_getaddr(addr,hostip,0x40);\n    puVar11 = (uint *)hostip;\n    do {\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    } while (uVar6 == 0);\n    bVar14 = (uVar5 & 0x8080) == 0;\n    if (bVar14) {\n      uVar6 = uVar6 >> 0x10;\n    }\n    if (bVar14) {\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }\n    local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))\n    ;\n  }" else (compound_statement "{\n    iVar4 = sk_address_is_special_local(addr);\n    if ((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }\n    sk_getaddr(addr,hostip,0x40);\n    puVar11 = (uint *)hostip;\n    do {\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    } while (uVar6 == 0);\n    bVar14 = (uVar5 & 0x8080) == 0;\n    if (bVar14) {\n      uVar6 = uVar6 >> 0x10;\n    }\n    if (bVar14) {\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }\n    local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))\n    ;\n  }" { (expression_statement "iVar4 = sk_address_is_special_local(addr);" (assignment_expression "iVar4 = sk_address_is_special_local(addr)" identifier = (call_expression "sk_address_is_special_local(addr)" identifier (argument_list "(addr)" ( identifier )))) ;) (if_statement "if ((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))) {\n      iVar4 = 0;\n      goto LAB_00020245;\n    }" if (parenthesized_expression "((iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0))))))" ( (binary_expression "(iVar4 != 0) ||\n       ((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) || (parenthesized_expression "((iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))))" ( (parenthesized_expression "(iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0))))" ( (comma_expression "iVar4 = conf_get_int(conf,0xc), iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))" (assignment_expression "iVar4 = conf_get_int(conf,0xc)" identifier = (call_expression "conf_get_int(conf,0xc)" identifier (argument_list "(conf,0xc)" ( identifier , number_literal )))) , (binary_expression "iVar4 == 0 &&\n        ((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))" (binary_expression "iVar4 == 0" identifier == number_literal) && (parenthesized_expression "((iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)))" ( (parenthesized_expression "(iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0))" ( (comma_expression "iVar4 = sk_hostname_is_local(hostname), iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)" (assignment_expression "iVar4 = sk_hostname_is_local(hostname)" identifier = (call_expression "sk_hostname_is_local(hostname)" identifier (argument_list "(hostname)" ( identifier )))) , (binary_expression "iVar4 != 0 ||\n         (iVar4 = sk_address_is_local(addr), iVar4 != 0)" (binary_expression "iVar4 != 0" identifier != number_literal) || (parenthesized_expression "(iVar4 = sk_address_is_local(addr), iVar4 != 0)" ( (comma_expression "iVar4 = sk_address_is_local(addr), iVar4 != 0" (assignment_expression "iVar4 = sk_address_is_local(addr)" identifier = (call_expression "sk_address_is_local(addr)" identifier (argument_list "(addr)" ( identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )))) )) )))) )) ))) )) (compound_statement "{\n      iVar4 = 0;\n      goto LAB_00020245;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) (expression_statement "sk_getaddr(addr,hostip,0x40);" (call_expression "sk_getaddr(addr,hostip,0x40)" identifier (argument_list "(addr,hostip,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "puVar11 = (uint *)hostip;" (assignment_expression "puVar11 = (uint *)hostip" identifier = (cast_expression "(uint *)hostip" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    } while (uVar6 == 0);" do (compound_statement "{\n      puVar10 = puVar11;\n      uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;\n      uVar6 = uVar5 & 0x80808080;\n      puVar11 = puVar10 + 1;\n    }" { (expression_statement "puVar10 = puVar11;" (assignment_expression "puVar10 = puVar11" identifier = identifier) ;) (expression_statement "uVar5 = *puVar10 + 0xfefefeff & ~*puVar10;" (assignment_expression "uVar5 = *puVar10 + 0xfefefeff & ~*puVar10" identifier = (binary_expression "*puVar10 + 0xfefefeff & ~*puVar10" (binary_expression "*puVar10 + 0xfefefeff" (pointer_expression "*puVar10" * identifier) + number_literal) & (unary_expression "~*puVar10" ~ (pointer_expression "*puVar10" * identifier)))) ;) (expression_statement "uVar6 = uVar5 & 0x80808080;" (assignment_expression "uVar6 = uVar5 & 0x80808080" identifier = (binary_expression "uVar5 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar11 = puVar10 + 1;" (assignment_expression "puVar11 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) ;) (expression_statement "bVar14 = (uVar5 & 0x8080) == 0;" (assignment_expression "bVar14 = (uVar5 & 0x8080) == 0" identifier = (binary_expression "(uVar5 & 0x8080) == 0" (parenthesized_expression "(uVar5 & 0x8080)" ( (binary_expression "uVar5 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar14) {\n      uVar6 = uVar6 >> 0x10;\n    }" if (parenthesized_expression "(bVar14)" ( identifier )) (compound_statement "{\n      uVar6 = uVar6 >> 0x10;\n    }" { (expression_statement "uVar6 = uVar6 >> 0x10;" (assignment_expression "uVar6 = uVar6 >> 0x10" identifier = (binary_expression "uVar6 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar14) {\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }" if (parenthesized_expression "(bVar14)" ( identifier )) (compound_statement "{\n      puVar11 = (uint *)((int)puVar10 + 6);\n    }" { (expression_statement "puVar11 = (uint *)((int)puVar10 + 6);" (assignment_expression "puVar11 = (uint *)((int)puVar10 + 6)" identifier = (cast_expression "(uint *)((int)puVar10 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 6)" ( (binary_expression "(int)puVar10 + 6" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))\n    ;" (assignment_expression "local_98 = (char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))" identifier = (cast_expression "(char *)((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip))" ( (binary_expression "(int)puVar11 + ((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip)" (cast_expression "(int)puVar11" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip)" ( (binary_expression "(-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) - (int)hostip" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar6,(byte)uVar6)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar6,(byte)uVar6)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar6,(byte)uVar6)" identifier (argument_list "((byte)uVar6,(byte)uVar6)" ( (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(int)hostip" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) ;) }))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "sVar7 = strlen(hostname);" (assignment_expression "sVar7 = strlen(hostname)" identifier = (call_expression "strlen(hostname)" identifier (argument_list "(hostname)" ( identifier )))) ;) (expression_statement "pbVar8 = (byte *)conf_get_str(conf,10);" (assignment_expression "pbVar8 = (byte *)conf_get_str(conf,10)" identifier = (cast_expression "(byte *)conf_get_str(conf,10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "conf_get_str(conf,10)" identifier (argument_list "(conf,10)" ( identifier , number_literal ))))) ;) (expression_statement "local_78 = *pbVar8;" (assignment_expression "local_78 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (while_statement "while (local_78 != 0) {\n    ppuVar9 = __ctype_b_loc();\n    puVar3 = *ppuVar9;\n    while ((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar13 = iVar13 + 1;\n      local_78 = pbVar8[iVar13];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar8[iVar13];\n    iVar12 = iVar13;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }\n    if (local_78 == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;\n      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;\n    bVar1 = pbVar8[iVar12];\n    iVar13 = iVar12;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar13 = iVar13 + 1;\n      bVar1 = pbVar8[iVar13];\n    }\n    local_78 = pbVar8[iVar13];\n  }" while (parenthesized_expression "(local_78 != 0)" ( (binary_expression "local_78 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar9 = __ctype_b_loc();\n    puVar3 = *ppuVar9;\n    while ((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar13 = iVar13 + 1;\n      local_78 = pbVar8[iVar13];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar8[iVar13];\n    iVar12 = iVar13;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }\n    if (local_78 == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;\n      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;\n    bVar1 = pbVar8[iVar12];\n    iVar13 = iVar12;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar13 = iVar13 + 1;\n      bVar1 = pbVar8[iVar13];\n    }\n    local_78 = pbVar8[iVar13];\n  }" { (expression_statement "ppuVar9 = __ctype_b_loc();" (assignment_expression "ppuVar9 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar3 = *ppuVar9;" (assignment_expression "puVar3 = *ppuVar9" identifier = (pointer_expression "*ppuVar9" * identifier)) ;) (while_statement "while ((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar13 = iVar13 + 1;\n      local_78 = pbVar8[iVar13];\n      if (local_78 == 0) goto LAB_00020240;\n    }" while (parenthesized_expression "((__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)))" ( (parenthesized_expression "(__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))" ( (comma_expression "__s2 = pbVar8 + iVar13, (*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (assignment_expression "__s2 = pbVar8 + iVar13" identifier = (binary_expression "pbVar8 + iVar13" identifier + identifier)) , (binary_expression "(*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (binary_expression "(*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar3 + (uint)local_78 * 2 + 1)" * (cast_expression "(byte *)((int)puVar3 + (uint)local_78 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (uint)local_78 * 2 + 1)" ( (binary_expression "(int)puVar3 + (uint)local_78 * 2 + 1" (binary_expression "(int)puVar3 + (uint)local_78 * 2" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)local_78 * 2" (cast_expression "(uint)local_78" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) || (parenthesized_expression "(local_78 == 0x2c)" ( (binary_expression "local_78 == 0x2c" identifier == number_literal) )))) )) )) (compound_statement "{\n      iVar13 = iVar13 + 1;\n      local_78 = pbVar8[iVar13];\n      if (local_78 == 0) goto LAB_00020240;\n    }" { (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (expression_statement "local_78 = pbVar8[iVar13];" (assignment_expression "local_78 = pbVar8[iVar13]" identifier = (subscript_expression "pbVar8[iVar13]" identifier [ identifier ])) ;) (if_statement "if (local_78 == 0) goto LAB_00020240;" if (parenthesized_expression "(local_78 == 0)" ( (binary_expression "local_78 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020240;" goto statement_identifier ;)) })) (expression_statement "bVar1 = pbVar8[iVar13];" (assignment_expression "bVar1 = pbVar8[iVar13]" identifier = (subscript_expression "pbVar8[iVar13]" identifier [ identifier ])) ;) (expression_statement "iVar12 = iVar13;" (assignment_expression "iVar12 = iVar13" identifier = identifier) ;) (if_statement "if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      local_70 = 0;\n    }" { (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }" else (compound_statement "{\n      do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);\n      local_70 = iVar12 - iVar13;\n    }" { (do_statement "do {\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      } while (bVar1 != 0);" do (compound_statement "{\n        if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar12 = iVar12 + 1;\n        bVar1 = pbVar8[iVar12];\n      }" { (if_statement "if (((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;" if (parenthesized_expression "(((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a))" ( (binary_expression "((puVar3[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" (parenthesized_expression "((puVar3[bVar1] & 8) == 0)" ( (binary_expression "(puVar3[bVar1] & 8) == 0" (parenthesized_expression "(puVar3[bVar1] & 8)" ( (binary_expression "puVar3[bVar1] & 8" (subscript_expression "puVar3[bVar1]" identifier [ identifier ]) & number_literal) )) == number_literal) )) && (parenthesized_expression "(1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" ( (binary_expression "1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a" (binary_expression "1 < (byte)(bVar1 - 0x2d)" number_literal < (call_expression "(byte)(bVar1 - 0x2d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 - 0x2d)" ( (binary_expression "bVar1 - 0x2d" identifier - number_literal) )))) && (binary_expression "bVar1 != 0x2a" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = pbVar8[iVar12];" (assignment_expression "bVar1 = pbVar8[iVar12]" identifier = (subscript_expression "pbVar8[iVar12]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (expression_statement "local_70 = iVar12 - iVar13;" (assignment_expression "local_70 = iVar12 - iVar13" identifier = (binary_expression "iVar12 - iVar13" identifier - identifier)) ;) }))) (if_statement "if (local_78 == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;\n      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;" if (parenthesized_expression "(local_78 == 0x2a)" ( (binary_expression "local_78 == 0x2a" identifier == number_literal) )) (compound_statement "{\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;\n      iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }" { (if_statement "if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))\n      goto LAB_00020245;" if (parenthesized_expression "((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0))" ( (binary_expression "(addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0)" (parenthesized_expression "(addr != (SockAddr)0x0)" ( (binary_expression "addr != (SockAddr)0x0" identifier != (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) )) && (parenthesized_expression "(iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0)" ( (comma_expression "iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1), iVar4 == 0" (assignment_expression "iVar4 = strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1)" identifier = (call_expression "strncasecmp(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1)" identifier (argument_list "(hostip + (int)(local_98 + (1 - local_70)),\n                              (char *)(pbVar8 + iVar13 + 1),local_70 - 1)" ( (binary_expression "hostip + (int)(local_98 + (1 - local_70))" identifier + (cast_expression "(int)(local_98 + (1 - local_70))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_98 + (1 - local_70))" ( (binary_expression "local_98 + (1 - local_70)" identifier + (parenthesized_expression "(1 - local_70)" ( (binary_expression "1 - local_70" number_literal - identifier) ))) )))) , (cast_expression "(char *)(pbVar8 + iVar13 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + iVar13 + 1)" ( (binary_expression "pbVar8 + iVar13 + 1" (binary_expression "pbVar8 + iVar13" identifier + identifier) + number_literal) ))) , (binary_expression "local_70 - 1" identifier - number_literal) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)) (expression_statement "iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1);" (assignment_expression "iVar4 = strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1)" identifier = (call_expression "strncasecmp(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1)" identifier (argument_list "(hostname + sVar7 + (1 - local_70),(char *)(pbVar8 + iVar13 + 1),\n                          local_70 - 1)" ( (binary_expression "hostname + sVar7 + (1 - local_70)" (binary_expression "hostname + sVar7" identifier + identifier) + (parenthesized_expression "(1 - local_70)" ( (binary_expression "1 - local_70" number_literal - identifier) ))) , (cast_expression "(char *)(pbVar8 + iVar13 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar8 + iVar13 + 1)" ( (binary_expression "pbVar8 + iVar13 + 1" (binary_expression "pbVar8 + iVar13" identifier + identifier) + number_literal) ))) , (binary_expression "local_70 - 1" identifier - number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 0;\n        goto LAB_00020245;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) }) (else_clause "else if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;" else (if_statement "if (pbVar8[iVar12 + -1] == 0x2a) {\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;" if (parenthesized_expression "(pbVar8[iVar12 + -1] == 0x2a)" ( (binary_expression "pbVar8[iVar12 + -1] == 0x2a" (subscript_expression "pbVar8[iVar12 + -1]" identifier [ (binary_expression "iVar12 + -1" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\n      if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;\n      iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);\n      if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }\n    }" { (if_statement "if ((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)) goto LAB_00020245;" if (parenthesized_expression "((addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0))" ( (binary_expression "(addr != (SockAddr)0x0) &&\n         (iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)" (parenthesized_expression "(addr != (SockAddr)0x0)" ( (binary_expression "addr != (SockAddr)0x0" identifier != (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) )) && (parenthesized_expression "(iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0)" ( (comma_expression "iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1), iVar4 == 0" (assignment_expression "iVar4 = strncasecmp(hostip,(char *)__s2,local_70 - 1)" identifier = (call_expression "strncasecmp(hostip,(char *)__s2,local_70 - 1)" identifier (argument_list "(hostip,(char *)__s2,local_70 - 1)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "local_70 - 1" identifier - number_literal) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)) (expression_statement "iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1);" (assignment_expression "iVar4 = strncasecmp(hostname,(char *)__s2,local_70 - 1)" identifier = (call_expression "strncasecmp(hostname,(char *)__s2,local_70 - 1)" identifier (argument_list "(hostname,(char *)__s2,local_70 - 1)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "local_70 - 1" identifier - number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = 0;\n        goto LAB_00020245;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 0;\n        goto LAB_00020245;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) }) (else_clause "else if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;" else (if_statement "if (((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)) goto LAB_00020245;" if (parenthesized_expression "(((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0))" ( (binary_expression "((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)) ||\n            (iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)" (parenthesized_expression "((addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0))" ( (binary_expression "(addr != (SockAddr)0x0) &&\n             (iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)" (parenthesized_expression "(addr != (SockAddr)0x0)" ( (binary_expression "addr != (SockAddr)0x0" identifier != (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal)) )) && (parenthesized_expression "(iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0)" ( (comma_expression "iVar4 = strncasecmp(hostip,(char *)__s2,local_70), iVar4 == 0" (assignment_expression "iVar4 = strncasecmp(hostip,(char *)__s2,local_70)" identifier = (call_expression "strncasecmp(hostip,(char *)__s2,local_70)" identifier (argument_list "(hostip,(char *)__s2,local_70)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "(iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0)" ( (comma_expression "iVar4 = strncasecmp(hostname,(char *)__s2,local_70), iVar4 == 0" (assignment_expression "iVar4 = strncasecmp(hostname,(char *)__s2,local_70)" identifier = (call_expression "strncasecmp(hostname,(char *)__s2,local_70)" identifier (argument_list "(hostname,(char *)__s2,local_70)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)))))) (expression_statement "bVar1 = pbVar8[iVar12];" (assignment_expression "bVar1 = pbVar8[iVar12]" identifier = (subscript_expression "pbVar8[iVar12]" identifier [ identifier ])) ;) (expression_statement "iVar13 = iVar12;" (assignment_expression "iVar13 = iVar12" identifier = identifier) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar13 = iVar13 + 1;\n      bVar1 = pbVar8[iVar13];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar13 = iVar13 + 1;\n      bVar1 = pbVar8[iVar13];\n    }" { (if_statement "if (bVar1 == 0) goto LAB_00020240;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020240;" goto statement_identifier ;)) (if_statement "if (((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;" if (parenthesized_expression "(((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c))" ( (binary_expression "((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)" (parenthesized_expression "((*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0)" ( (binary_expression "(*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1)" * (cast_expression "(byte *)((int)puVar3 + (uint)bVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (uint)bVar1 * 2 + 1)" ( (binary_expression "(int)puVar3 + (uint)bVar1 * 2 + 1" (binary_expression "(int)puVar3 + (uint)bVar1 * 2" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x2c)" ( (binary_expression "bVar1 == 0x2c" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = pbVar8[iVar13];" (assignment_expression "bVar1 = pbVar8[iVar13]" identifier = (subscript_expression "pbVar8[iVar13]" identifier [ identifier ])) ;) })) (expression_statement "local_78 = pbVar8[iVar13];" (assignment_expression "local_78 = pbVar8[iVar13]" identifier = (subscript_expression "pbVar8[iVar13]" identifier [ identifier ])) ;) })) (labeled_statement "LAB_00020240:\n  iVar4 = 1;" statement_identifier : (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;)) (labeled_statement "LAB_00020245:\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\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    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_0006dad0();\n}\n\n" (function_definition "int FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_0006dad0();\n}" primitive_type (function_declarator "FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_0006dad0();\n}" { (declaration "byte *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "ushort **ppuVar8;" type_identifier (pointer_declarator "**ppuVar8" * (pointer_declarator "*ppuVar8" * identifier)) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar13;" primitive_type identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "byte local_78;" type_identifier identifier ;) (declaration "size_t local_70;" primitive_type identifier ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2010b;" (assignment_expression "uStack_14 = 0x2010b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (if_statement "if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }" { (expression_statement "iVar3 = FUN_000189a0(param_4,0xc);" (assignment_expression "iVar3 = FUN_000189a0(param_4,0xc)" identifier = (call_expression "FUN_000189a0(param_4,0xc)" identifier (argument_list "(param_4,0xc)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" if (parenthesized_expression "((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0))" ( (binary_expression "(iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar3 = FUN_00064830(param_2), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_00064830(param_2), iVar3 != 0" (assignment_expression "iVar3 = FUN_00064830(param_2)" identifier = (call_expression "FUN_00064830(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" else (compound_statement "{\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" { (expression_statement "iVar3 = FUN_000648e0(param_1);" (assignment_expression "iVar3 = FUN_000648e0(param_1)" identifier = (call_expression "FUN_000648e0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" if (parenthesized_expression "((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        )))" ( (binary_expression "(iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))" ( (parenthesized_expression "(iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        )" ( (comma_expression "iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" (assignment_expression "iVar3 = FUN_000189a0(param_4,0xc)" identifier = (call_expression "FUN_000189a0(param_4,0xc)" identifier (argument_list "(param_4,0xc)" ( identifier , number_literal )))) , (binary_expression "iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" (binary_expression "iVar3 == 0" identifier == number_literal) && (parenthesized_expression "((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" ( (parenthesized_expression "(iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0))" ( (comma_expression "iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)" (assignment_expression "iVar3 = FUN_00064830(param_2)" identifier = (call_expression "FUN_00064830(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)" (binary_expression "iVar3 != 0" identifier != number_literal) || (parenthesized_expression "(iVar3 = FUN_000648a0(param_1), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_000648a0(param_1), iVar3 != 0" (assignment_expression "iVar3 = FUN_000648a0(param_1)" identifier = (call_expression "FUN_000648a0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) )))) )) )))) )) ))) )) (compound_statement "{\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) (expression_statement "FUN_00064790(param_1,&local_60,0x40);" (call_expression "FUN_00064790(param_1,&local_60,0x40)" identifier (argument_list "(param_1,&local_60,0x40)" ( identifier , (pointer_expression "&local_60" & identifier) , number_literal ))) ;) (expression_statement "puVar10 = &local_60;" (assignment_expression "puVar10 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (do_statement "do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);" do (compound_statement "{\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    }" { (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" identifier = identifier) ;) (expression_statement "uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;" (assignment_expression "uVar4 = *puVar9 + 0xfefefeff & ~*puVar9" identifier = (binary_expression "*puVar9 + 0xfefefeff & ~*puVar9" (binary_expression "*puVar9 + 0xfefefeff" (pointer_expression "*puVar9" * identifier) + number_literal) & (unary_expression "~*puVar9" ~ (pointer_expression "*puVar9" * identifier)))) ;) (expression_statement "uVar5 = uVar4 & 0x80808080;" (assignment_expression "uVar5 = uVar4 & 0x80808080" identifier = (binary_expression "uVar4 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar10 = puVar9 + 1;" (assignment_expression "puVar10 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) ;) (expression_statement "bVar13 = (uVar4 & 0x8080) == 0;" (assignment_expression "bVar13 = (uVar4 & 0x8080) == 0" identifier = (binary_expression "(uVar4 & 0x8080) == 0" (parenthesized_expression "(uVar4 & 0x8080)" ( (binary_expression "uVar4 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }" if (parenthesized_expression "(bVar13)" ( identifier )) (compound_statement "{\n      uVar5 = uVar5 >> 0x10;\n    }" { (expression_statement "uVar5 = uVar5 >> 0x10;" (assignment_expression "uVar5 = uVar5 >> 0x10" identifier = (binary_expression "uVar5 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }" if (parenthesized_expression "(bVar13)" ( identifier )) (compound_statement "{\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }" { (expression_statement "puVar10 = (uint *)((int)puVar9 + 6);" (assignment_expression "puVar10 = (uint *)((int)puVar9 + 6)" identifier = (cast_expression "(uint *)((int)puVar9 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 6)" ( (binary_expression "(int)puVar9 + 6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);" (assignment_expression "local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" identifier = (binary_expression "(int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" ( (binary_expression "(-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar5,(byte)uVar5)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar5,(byte)uVar5)" identifier (argument_list "((byte)uVar5,(byte)uVar5)" ( (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(int)&local_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_60" & identifier))) )))) ;) }))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "sVar6 = strlen(param_2);" (assignment_expression "sVar6 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pbVar7 = (byte *)FUN_00018b50(param_4,10);" (assignment_expression "pbVar7 = (byte *)FUN_00018b50(param_4,10)" identifier = (cast_expression "(byte *)FUN_00018b50(param_4,10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018b50(param_4,10)" identifier (argument_list "(param_4,10)" ( identifier , number_literal ))))) ;) (expression_statement "local_78 = *pbVar7;" (assignment_expression "local_78 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (while_statement "while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }" while (parenthesized_expression "(local_78 != 0)" ( (binary_expression "local_78 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }" { (expression_statement "ppuVar8 = __ctype_b_loc();" (assignment_expression "ppuVar8 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2 = *ppuVar8;" (assignment_expression "puVar2 = *ppuVar8" identifier = (pointer_expression "*ppuVar8" * identifier)) ;) (while_statement "while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }" while (parenthesized_expression "((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)))" ( (parenthesized_expression "(__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))" ( (comma_expression "__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (assignment_expression "__s2 = pbVar7 + iVar12" identifier = (binary_expression "pbVar7 + iVar12" identifier + identifier)) , (binary_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (binary_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1)" * (cast_expression "(byte *)((int)puVar2 + (uint)local_78 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + (uint)local_78 * 2 + 1)" ( (binary_expression "(int)puVar2 + (uint)local_78 * 2 + 1" (binary_expression "(int)puVar2 + (uint)local_78 * 2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)local_78 * 2" (cast_expression "(uint)local_78" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) || (parenthesized_expression "(local_78 == 0x2c)" ( (binary_expression "local_78 == 0x2c" identifier == number_literal) )))) )) )) (compound_statement "{\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "local_78 = pbVar7[iVar12];" (assignment_expression "local_78 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) (if_statement "if (local_78 == 0) goto LAB_00020240;" if (parenthesized_expression "(local_78 == 0)" ( (binary_expression "local_78 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020240;" goto statement_identifier ;)) })) (expression_statement "bVar1 = pbVar7[iVar12];" (assignment_expression "bVar1 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) (expression_statement "iVar11 = iVar12;" (assignment_expression "iVar11 = iVar12" identifier = identifier) ;) (if_statement "if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      local_70 = 0;\n    }" { (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" else (compound_statement "{\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" { (do_statement "do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);" do (compound_statement "{\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      }" { (if_statement "if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;" if (parenthesized_expression "(((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a))" ( (binary_expression "((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" (parenthesized_expression "((puVar2[bVar1] & 8) == 0)" ( (binary_expression "(puVar2[bVar1] & 8) == 0" (parenthesized_expression "(puVar2[bVar1] & 8)" ( (binary_expression "puVar2[bVar1] & 8" (subscript_expression "puVar2[bVar1]" identifier [ identifier ]) & number_literal) )) == number_literal) )) && (parenthesized_expression "(1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" ( (binary_expression "1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a" (binary_expression "1 < (byte)(bVar1 - 0x2d)" number_literal < (call_expression "(byte)(bVar1 - 0x2d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 - 0x2d)" ( (binary_expression "bVar1 - 0x2d" identifier - number_literal) )))) && (binary_expression "bVar1 != 0x2a" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = pbVar7[iVar11];" (assignment_expression "bVar1 = pbVar7[iVar11]" identifier = (subscript_expression "pbVar7[iVar11]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (expression_statement "local_70 = iVar11 - iVar12;" (assignment_expression "local_70 = iVar11 - iVar12" identifier = (binary_expression "iVar11 - iVar12" identifier - identifier)) ;) }))) (if_statement "if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" if (parenthesized_expression "(local_78 == 0x2a)" ( (binary_expression "local_78 == 0x2a" identifier == number_literal) )) (compound_statement "{\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }" { (if_statement "if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;" if (parenthesized_expression "((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))" ( (binary_expression "(param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" identifier = (call_expression "strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" identifier (argument_list "((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" ( (cast_expression "(char *)((int)&local_60 + ((local_98 + 1) - local_70))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&local_60 + ((local_98 + 1) - local_70))" ( (binary_expression "(int)&local_60 + ((local_98 + 1) - local_70)" (cast_expression "(int)&local_60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_60" & identifier)) + (parenthesized_expression "((local_98 + 1) - local_70)" ( (binary_expression "(local_98 + 1) - local_70" (parenthesized_expression "(local_98 + 1)" ( (binary_expression "local_98 + 1" identifier + number_literal) )) - identifier) ))) ))) , (cast_expression "(char *)(pbVar7 + iVar12 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar7 + iVar12 + 1)" ( (binary_expression "pbVar7 + iVar12 + 1" (binary_expression "pbVar7 + iVar12" identifier + identifier) + number_literal) ))) , (binary_expression "local_70 - 1" identifier - number_literal) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)) (expression_statement "iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);" (assignment_expression "iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" identifier = (call_expression "strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" identifier (argument_list "(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" ( (binary_expression "param_2 + sVar6 + (1 - local_70)" (binary_expression "param_2 + sVar6" identifier + identifier) + (parenthesized_expression "(1 - local_70)" ( (binary_expression "1 - local_70" number_literal - identifier) ))) , (cast_expression "(char *)(pbVar7 + iVar12 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar7 + iVar12 + 1)" ( (binary_expression "pbVar7 + iVar12 + 1" (binary_expression "pbVar7 + iVar12" identifier + identifier) + number_literal) ))) , (binary_expression "local_70 - 1" identifier - number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) }) (else_clause "else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" else (if_statement "if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" if (parenthesized_expression "(pbVar7[iVar11 + -1] == 0x2a)" ( (binary_expression "pbVar7[iVar11 + -1] == 0x2a" (subscript_expression "pbVar7[iVar11 + -1]" identifier [ (binary_expression "iVar11 + -1" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }" { (if_statement "if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;" if (parenthesized_expression "((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))" ( (binary_expression "(param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1)" identifier = (call_expression "strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1)" identifier (argument_list "((char *)&local_60,(char *)__s2,local_70 - 1)" ( (cast_expression "(char *)&local_60" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_60" & identifier)) , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "local_70 - 1" identifier - number_literal) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)) (expression_statement "iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);" (assignment_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1)" identifier = (call_expression "strncasecmp(param_2,(char *)__s2,local_70 - 1)" identifier (argument_list "(param_2,(char *)__s2,local_70 - 1)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "local_70 - 1" identifier - number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020245;" goto statement_identifier ;) })) }) (else_clause "else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" else (if_statement "if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" if (parenthesized_expression "(((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0))" ( (binary_expression "((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)" (parenthesized_expression "((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0))" ( (binary_expression "(param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70)" identifier = (call_expression "strncasecmp((char *)&local_60,(char *)__s2,local_70)" identifier (argument_list "((char *)&local_60,(char *)__s2,local_70)" ( (cast_expression "(char *)&local_60" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_60" & identifier)) , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "(iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)" ( (comma_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70)" identifier = (call_expression "strncasecmp(param_2,(char *)__s2,local_70)" identifier (argument_list "(param_2,(char *)__s2,local_70)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00020245;" goto statement_identifier ;)))))) (expression_statement "bVar1 = pbVar7[iVar11];" (assignment_expression "bVar1 = pbVar7[iVar11]" identifier = (subscript_expression "pbVar7[iVar11]" identifier [ identifier ])) ;) (expression_statement "iVar12 = iVar11;" (assignment_expression "iVar12 = iVar11" identifier = identifier) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }" { (if_statement "if (bVar1 == 0) goto LAB_00020240;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020240;" goto statement_identifier ;)) (if_statement "if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;" if (parenthesized_expression "(((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c))" ( (binary_expression "((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)" (parenthesized_expression "((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0)" ( (binary_expression "(*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1)" * (cast_expression "(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + (uint)bVar1 * 2 + 1)" ( (binary_expression "(int)puVar2 + (uint)bVar1 * 2 + 1" (binary_expression "(int)puVar2 + (uint)bVar1 * 2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x2c)" ( (binary_expression "bVar1 == 0x2c" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = pbVar7[iVar12];" (assignment_expression "bVar1 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) })) (expression_statement "local_78 = pbVar7[iVar12];" (assignment_expression "local_78 = pbVar7[iVar12]" identifier = (subscript_expression "pbVar7[iVar12]" identifier [ identifier ])) ;) })) (labeled_statement "LAB_00020240:\n  iVar3 = 1;" statement_identifier : (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;)) (labeled_statement "LAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * 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 (pointer_declarator * (pointer_declarator * 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 ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) )))) )) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) )) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT))) )))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + IDENT)) , (binary_expression (binary_expression (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) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) & LIT) )) != LIT) || (parenthesized_expression ( (binary_expression IDENT == LIT) )))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) && (binary_expression IDENT != LIT)) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }))) (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 ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - IDENT) ))) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))) , (binary_expression IDENT - LIT) )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))) , (binary_expression IDENT - LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (binary_expression IDENT - LIT) )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (binary_expression IDENT - LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)))))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (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 (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) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_0006dad0();\n}" (primitive_type "int") (function_declarator "FUN_00020100(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00020100") (parameter_list "(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte *__s2;\n  byte bVar1;\n  ushort *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  size_t sVar6;\n  byte *pbVar7;\n  ushort **ppuVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  int local_98;\n  byte local_78;\n  size_t local_70;\n  undefined4 local_60;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2010b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }\n  iVar12 = 0;\n  sVar6 = strlen(param_2);\n  pbVar7 = (byte *)FUN_00018b50(param_4,10);\n  local_78 = *pbVar7;\n  while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }\nLAB_00020240:\n  iVar3 = 1;\nLAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_0006dad0();\n}" ({ "{") (declaration "byte *__s2;" (type_identifier "byte") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "ushort *puVar2;" (type_identifier "ushort") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "ushort **ppuVar8;" (type_identifier "ushort") (pointer_declarator "**ppuVar8" (* "*") (pointer_declarator "*ppuVar8" (* "*") (identifier "ppuVar8"))) (; ";")) (declaration "uint *puVar9;" (type_identifier "uint") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint *puVar10;" (type_identifier "uint") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar13;" (primitive_type "bool") (identifier "bVar13") (; ";")) (declaration "int local_98;" (primitive_type "int") (identifier "local_98") (; ";")) (declaration "byte local_78;" (type_identifier "byte") (identifier "local_78") (; ";")) (declaration "size_t local_70;" (primitive_type "size_t") (identifier "local_70") (; ";")) (declaration "undefined4 local_60;" (type_identifier "undefined4") (identifier "local_60") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2010b;" (assignment_expression "uStack_14 = 0x2010b" (identifier "uStack_14") (= "=") (number_literal "0x2010b")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }\n  else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = FUN_000189a0(param_4,0xc);\n    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    local_98 = 0;\n  }" ({ "{") (expression_statement "iVar3 = FUN_000189a0(param_4,0xc);" (assignment_expression "iVar3 = FUN_000189a0(param_4,0xc)" (identifier "iVar3") (= "=") (call_expression "FUN_000189a0(param_4,0xc)" (identifier "FUN_000189a0") (argument_list "(param_4,0xc)" (( "(") (identifier "param_4") (, ",") (number_literal "0xc") () ")")))) (; ";")) (if_statement "if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" (if "if") (parenthesized_expression "((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0))" (( "(") (binary_expression "(iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = FUN_00064830(param_2), iVar3 != 0)" (( "(") (comma_expression "iVar3 = FUN_00064830(param_2), iVar3 != 0" (assignment_expression "iVar3 = FUN_00064830(param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00064830(param_2)" (identifier "FUN_00064830") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00020245;" (goto "goto") (statement_identifier "LAB_00020245") (; ";")) (} "}"))) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" (identifier "local_98") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" (else "else") (compound_statement "{\n    iVar3 = FUN_000648e0(param_1);\n    if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }\n    FUN_00064790(param_1,&local_60,0x40);\n    puVar10 = &local_60;\n    do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);\n    bVar13 = (uVar4 & 0x8080) == 0;\n    if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }\n    if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }\n    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);\n  }" ({ "{") (expression_statement "iVar3 = FUN_000648e0(param_1);" (assignment_expression "iVar3 = FUN_000648e0(param_1)" (identifier "iVar3") (= "=") (call_expression "FUN_000648e0(param_1)" (identifier "FUN_000648e0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))) {\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" (if "if") (parenthesized_expression "((iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        )))" (( "(") (binary_expression "(iVar3 != 0) ||\n       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        ))" (( "(") (parenthesized_expression "(iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))\n        )" (( "(") (comma_expression "iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" (assignment_expression "iVar3 = FUN_000189a0(param_4,0xc)" (identifier "iVar3") (= "=") (call_expression "FUN_000189a0(param_4,0xc)" (identifier "FUN_000189a0") (argument_list "(param_4,0xc)" (( "(") (identifier "param_4") (, ",") (number_literal "0xc") () ")")))) (, ",") (binary_expression "iVar3 == 0 &&\n        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))" (( "(") (parenthesized_expression "(iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0))" (( "(") (comma_expression "iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)" (assignment_expression "iVar3 = FUN_00064830(param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00064830(param_2)" (identifier "FUN_00064830") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)" (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(iVar3 = FUN_000648a0(param_1), iVar3 != 0)" (( "(") (comma_expression "iVar3 = FUN_000648a0(param_1), iVar3 != 0" (assignment_expression "iVar3 = FUN_000648a0(param_1)" (identifier "iVar3") (= "=") (call_expression "FUN_000648a0(param_1)" (identifier "FUN_000648a0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")")))) () ")")) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n      iVar3 = 0;\n      goto LAB_00020245;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00020245;" (goto "goto") (statement_identifier "LAB_00020245") (; ";")) (} "}"))) (expression_statement "FUN_00064790(param_1,&local_60,0x40);" (call_expression "FUN_00064790(param_1,&local_60,0x40)" (identifier "FUN_00064790") (argument_list "(param_1,&local_60,0x40)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_60" (& "&") (identifier "local_60")) (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "puVar10 = &local_60;" (assignment_expression "puVar10 = &local_60" (identifier "puVar10") (= "=") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (; ";")) (do_statement "do {\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    } while (uVar5 == 0);" (do "do") (compound_statement "{\n      puVar9 = puVar10;\n      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;\n      uVar5 = uVar4 & 0x80808080;\n      puVar10 = puVar9 + 1;\n    }" ({ "{") (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" (identifier "puVar9") (= "=") (identifier "puVar10")) (; ";")) (expression_statement "uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;" (assignment_expression "uVar4 = *puVar9 + 0xfefefeff & ~*puVar9" (identifier "uVar4") (= "=") (binary_expression "*puVar9 + 0xfefefeff & ~*puVar9" (binary_expression "*puVar9 + 0xfefefeff" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~*puVar9" (~ "~") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))))) (; ";")) (expression_statement "uVar5 = uVar4 & 0x80808080;" (assignment_expression "uVar5 = uVar4 & 0x80808080" (identifier "uVar5") (= "=") (binary_expression "uVar4 & 0x80808080" (identifier "uVar4") (& "&") (number_literal "0x80808080"))) (; ";")) (expression_statement "puVar10 = puVar9 + 1;" (assignment_expression "puVar10 = puVar9 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar9 + 1" (identifier "puVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar13 = (uVar4 & 0x8080) == 0;" (assignment_expression "bVar13 = (uVar4 & 0x8080) == 0" (identifier "bVar13") (= "=") (binary_expression "(uVar4 & 0x8080) == 0" (parenthesized_expression "(uVar4 & 0x8080)" (( "(") (binary_expression "uVar4 & 0x8080" (identifier "uVar4") (& "&") (number_literal "0x8080")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar13) {\n      uVar5 = uVar5 >> 0x10;\n    }" (if "if") (parenthesized_expression "(bVar13)" (( "(") (identifier "bVar13") () ")")) (compound_statement "{\n      uVar5 = uVar5 >> 0x10;\n    }" ({ "{") (expression_statement "uVar5 = uVar5 >> 0x10;" (assignment_expression "uVar5 = uVar5 >> 0x10" (identifier "uVar5") (= "=") (binary_expression "uVar5 >> 0x10" (identifier "uVar5") (>> ">>") (number_literal "0x10"))) (; ";")) (} "}"))) (if_statement "if (bVar13) {\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }" (if "if") (parenthesized_expression "(bVar13)" (( "(") (identifier "bVar13") () ")")) (compound_statement "{\n      puVar10 = (uint *)((int)puVar9 + 6);\n    }" ({ "{") (expression_statement "puVar10 = (uint *)((int)puVar9 + 6);" (assignment_expression "puVar10 = (uint *)((int)puVar9 + 6)" (identifier "puVar10") (= "=") (cast_expression "(uint *)((int)puVar9 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + 6)" (( "(") (binary_expression "(int)puVar9 + 6" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}"))) (expression_statement "local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);" (assignment_expression "local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" (identifier "local_98") (= "=") (binary_expression "(int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60)" (( "(") (binary_expression "(-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5))" (( "(") (binary_expression "-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)" (number_literal "-3") (- "-") (cast_expression "(uint)CARRY1((byte)uVar5,(byte)uVar5)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY1((byte)uVar5,(byte)uVar5)" (identifier "CARRY1") (argument_list "((byte)uVar5,(byte)uVar5)" (( "(") (cast_expression "(byte)uVar5" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar5")) (, ",") (cast_expression "(byte)uVar5" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar5")) () ")"))))) () ")")) (- "-") (cast_expression "(int)&local_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&local_60" (& "&") (identifier "local_60")))) () ")")))) (; ";")) (} "}")))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar6 = strlen(param_2);" (assignment_expression "sVar6 = strlen(param_2)" (identifier "sVar6") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pbVar7 = (byte *)FUN_00018b50(param_4,10);" (assignment_expression "pbVar7 = (byte *)FUN_00018b50(param_4,10)" (identifier "pbVar7") (= "=") (cast_expression "(byte *)FUN_00018b50(param_4,10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00018b50(param_4,10)" (identifier "FUN_00018b50") (argument_list "(param_4,10)" (( "(") (identifier "param_4") (, ",") (number_literal "10") () ")"))))) (; ";")) (expression_statement "local_78 = *pbVar7;" (assignment_expression "local_78 = *pbVar7" (identifier "local_78") (= "=") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7"))) (; ";")) (while_statement "while (local_78 != 0) {\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }" (while "while") (parenthesized_expression "(local_78 != 0)" (( "(") (binary_expression "local_78 != 0" (identifier "local_78") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    ppuVar8 = __ctype_b_loc();\n    puVar2 = *ppuVar8;\n    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }\n    bVar1 = pbVar7[iVar12];\n    iVar11 = iVar12;\n    if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }\n    if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;\n    bVar1 = pbVar7[iVar11];\n    iVar12 = iVar11;\n    while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }\n    local_78 = pbVar7[iVar12];\n  }" ({ "{") (expression_statement "ppuVar8 = __ctype_b_loc();" (assignment_expression "ppuVar8 = __ctype_b_loc()" (identifier "ppuVar8") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2 = *ppuVar8;" (assignment_expression "puVar2 = *ppuVar8" (identifier "puVar2") (= "=") (pointer_expression "*ppuVar8" (* "*") (identifier "ppuVar8"))) (; ";")) (while_statement "while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))) {\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }" (while "while") (parenthesized_expression "((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)))" (( "(") (parenthesized_expression "(__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c))" (( "(") (comma_expression "__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (assignment_expression "__s2 = pbVar7 + iVar12" (identifier "__s2") (= "=") (binary_expression "pbVar7 + iVar12" (identifier "pbVar7") (+ "+") (identifier "iVar12"))) (, ",") (binary_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||\n           (local_78 == 0x2c)" (binary_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20)" (( "(") (binary_expression "*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)puVar2 + (uint)local_78 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + (uint)local_78 * 2 + 1)" (( "(") (binary_expression "(int)puVar2 + (uint)local_78 * 2 + 1" (binary_expression "(int)puVar2 + (uint)local_78 * 2" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (binary_expression "(uint)local_78 * 2" (cast_expression "(uint)local_78" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_78")) (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(local_78 == 0x2c)" (( "(") (binary_expression "local_78 == 0x2c" (identifier "local_78") (== "==") (number_literal "0x2c")) () ")")))) () ")")) () ")")) (compound_statement "{\n      iVar12 = iVar12 + 1;\n      local_78 = pbVar7[iVar12];\n      if (local_78 == 0) goto LAB_00020240;\n    }" ({ "{") (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_78 = pbVar7[iVar12];" (assignment_expression "local_78 = pbVar7[iVar12]" (identifier "local_78") (= "=") (subscript_expression "pbVar7[iVar12]" (identifier "pbVar7") ([ "[") (identifier "iVar12") (] "]"))) (; ";")) (if_statement "if (local_78 == 0) goto LAB_00020240;" (if "if") (parenthesized_expression "(local_78 == 0)" (( "(") (binary_expression "local_78 == 0" (identifier "local_78") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020240;" (goto "goto") (statement_identifier "LAB_00020240") (; ";"))) (} "}"))) (expression_statement "bVar1 = pbVar7[iVar12];" (assignment_expression "bVar1 = pbVar7[iVar12]" (identifier "bVar1") (= "=") (subscript_expression "pbVar7[iVar12]" (identifier "pbVar7") ([ "[") (identifier "iVar12") (] "]"))) (; ";")) (expression_statement "iVar11 = iVar12;" (assignment_expression "iVar11 = iVar12" (identifier "iVar11") (= "=") (identifier "iVar12")) (; ";")) (if_statement "if (bVar1 == 0) {\n      local_70 = 0;\n    }\n    else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_70 = 0;\n    }" ({ "{") (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" (identifier "local_70") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" (else "else") (compound_statement "{\n      do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);\n      local_70 = iVar11 - iVar12;\n    }" ({ "{") (do_statement "do {\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      } while (bVar1 != 0);" (do "do") (compound_statement "{\n        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;\n        iVar11 = iVar11 + 1;\n        bVar1 = pbVar7[iVar11];\n      }" ({ "{") (if_statement "if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;" (if "if") (parenthesized_expression "(((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a))" (( "(") (binary_expression "((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" (parenthesized_expression "((puVar2[bVar1] & 8) == 0)" (( "(") (binary_expression "(puVar2[bVar1] & 8) == 0" (parenthesized_expression "(puVar2[bVar1] & 8)" (( "(") (binary_expression "puVar2[bVar1] & 8" (subscript_expression "puVar2[bVar1]" (identifier "puVar2") ([ "[") (identifier "bVar1") (] "]")) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)" (( "(") (binary_expression "1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a" (binary_expression "1 < (byte)(bVar1 - 0x2d)" (number_literal "1") (< "<") (call_expression "(byte)(bVar1 - 0x2d)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(bVar1 - 0x2d)" (( "(") (binary_expression "bVar1 - 0x2d" (identifier "bVar1") (- "-") (number_literal "0x2d")) () ")")))) (&& "&&") (binary_expression "bVar1 != 0x2a" (identifier "bVar1") (!= "!=") (number_literal "0x2a"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = pbVar7[iVar11];" (assignment_expression "bVar1 = pbVar7[iVar11]" (identifier "bVar1") (= "=") (subscript_expression "pbVar7[iVar11]" (identifier "pbVar7") ([ "[") (identifier "iVar11") (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "local_70 = iVar11 - iVar12;" (assignment_expression "local_70 = iVar11 - iVar12" (identifier "local_70") (= "=") (binary_expression "iVar11 - iVar12" (identifier "iVar11") (- "-") (identifier "iVar12"))) (; ";")) (} "}")))) (if_statement "if (local_78 == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" (if "if") (parenthesized_expression "(local_78 == 0x2a)" (( "(") (binary_expression "local_78 == 0x2a" (identifier "local_78") (== "==") (number_literal "0x2a")) () ")")) (compound_statement "{\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }" ({ "{") (if_statement "if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;" (if "if") (parenthesized_expression "((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))" (( "(") (binary_expression "(param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0)" (( "(") (comma_expression "iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" (identifier "iVar3") (= "=") (call_expression "strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" (identifier "strncasecmp") (argument_list "((char *)((int)&local_60 + ((local_98 + 1) - local_70)),\n                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1)" (( "(") (cast_expression "(char *)((int)&local_60 + ((local_98 + 1) - local_70))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&local_60 + ((local_98 + 1) - local_70))" (( "(") (binary_expression "(int)&local_60 + ((local_98 + 1) - local_70)" (cast_expression "(int)&local_60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (+ "+") (parenthesized_expression "((local_98 + 1) - local_70)" (( "(") (binary_expression "(local_98 + 1) - local_70" (parenthesized_expression "(local_98 + 1)" (( "(") (binary_expression "local_98 + 1" (identifier "local_98") (+ "+") (number_literal "1")) () ")")) (- "-") (identifier "local_70")) () ")"))) () ")"))) (, ",") (cast_expression "(char *)(pbVar7 + iVar12 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar7 + iVar12 + 1)" (( "(") (binary_expression "pbVar7 + iVar12 + 1" (binary_expression "pbVar7 + iVar12" (identifier "pbVar7") (+ "+") (identifier "iVar12")) (+ "+") (number_literal "1")) () ")"))) (, ",") (binary_expression "local_70 - 1" (identifier "local_70") (- "-") (number_literal "1")) () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_00020245;" (goto "goto") (statement_identifier "LAB_00020245") (; ";"))) (expression_statement "iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1);" (assignment_expression "iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" (identifier "iVar3") (= "=") (call_expression "strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" (identifier "strncasecmp") (argument_list "(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),\n                          local_70 - 1)" (( "(") (binary_expression "param_2 + sVar6 + (1 - local_70)" (binary_expression "param_2 + sVar6" (identifier "param_2") (+ "+") (identifier "sVar6")) (+ "+") (parenthesized_expression "(1 - local_70)" (( "(") (binary_expression "1 - local_70" (number_literal "1") (- "-") (identifier "local_70")) () ")"))) (, ",") (cast_expression "(char *)(pbVar7 + iVar12 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar7 + iVar12 + 1)" (( "(") (binary_expression "pbVar7 + iVar12 + 1" (binary_expression "pbVar7 + iVar12" (identifier "pbVar7") (+ "+") (identifier "iVar12")) (+ "+") (number_literal "1")) () ")"))) (, ",") (binary_expression "local_70 - 1" (identifier "local_70") (- "-") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00020245;" (goto "goto") (statement_identifier "LAB_00020245") (; ";")) (} "}"))) (} "}")) (else_clause "else if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" (else "else") (if_statement "if (pbVar7[iVar11 + -1] == 0x2a) {\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }\n    else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" (if "if") (parenthesized_expression "(pbVar7[iVar11 + -1] == 0x2a)" (( "(") (binary_expression "pbVar7[iVar11 + -1] == 0x2a" (subscript_expression "pbVar7[iVar11 + -1]" (identifier "pbVar7") ([ "[") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1")) (] "]")) (== "==") (number_literal "0x2a")) () ")")) (compound_statement "{\n      if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;\n      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);\n      if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }\n    }" ({ "{") (if_statement "if ((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))\n      goto LAB_00020245;" (if "if") (parenthesized_expression "((param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))" (( "(") (binary_expression "(param_1 != 0) &&\n         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0)" (( "(") (comma_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1)" (identifier "iVar3") (= "=") (call_expression "strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1)" (identifier "strncasecmp") (argument_list "((char *)&local_60,(char *)__s2,local_70 - 1)" (( "(") (cast_expression "(char *)&local_60" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (, ",") (cast_expression "(char *)__s2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s2")) (, ",") (binary_expression "local_70 - 1" (identifier "local_70") (- "-") (number_literal "1")) () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_00020245;" (goto "goto") (statement_identifier "LAB_00020245") (; ";"))) (expression_statement "iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);" (assignment_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1)" (identifier "iVar3") (= "=") (call_expression "strncasecmp(param_2,(char *)__s2,local_70 - 1)" (identifier "strncasecmp") (argument_list "(param_2,(char *)__s2,local_70 - 1)" (( "(") (identifier "param_2") (, ",") (cast_expression "(char *)__s2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s2")) (, ",") (binary_expression "local_70 - 1" (identifier "local_70") (- "-") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = 0;\n        goto LAB_00020245;\n      }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00020245;" (goto "goto") (statement_identifier "LAB_00020245") (; ";")) (} "}"))) (} "}")) (else_clause "else if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" (else "else") (if_statement "if (((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;" (if "if") (parenthesized_expression "(((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0))" (( "(") (binary_expression "((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||\n            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)" (parenthesized_expression "((param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0))" (( "(") (binary_expression "(param_1 != 0) &&\n             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)" (( "(") (comma_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70)" (identifier "iVar3") (= "=") (call_expression "strncasecmp((char *)&local_60,(char *)__s2,local_70)" (identifier "strncasecmp") (argument_list "((char *)&local_60,(char *)__s2,local_70)" (( "(") (cast_expression "(char *)&local_60" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (, ",") (cast_expression "(char *)__s2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s2")) (, ",") (identifier "local_70") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)" (( "(") (comma_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0" (assignment_expression "iVar3 = strncasecmp(param_2,(char *)__s2,local_70)" (identifier "iVar3") (= "=") (call_expression "strncasecmp(param_2,(char *)__s2,local_70)" (identifier "strncasecmp") (argument_list "(param_2,(char *)__s2,local_70)" (( "(") (identifier "param_2") (, ",") (cast_expression "(char *)__s2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s2")) (, ",") (identifier "local_70") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_00020245;" (goto "goto") (statement_identifier "LAB_00020245") (; ";"))))))) (expression_statement "bVar1 = pbVar7[iVar11];" (assignment_expression "bVar1 = pbVar7[iVar11]" (identifier "bVar1") (= "=") (subscript_expression "pbVar7[iVar11]" (identifier "pbVar7") ([ "[") (identifier "iVar11") (] "]"))) (; ";")) (expression_statement "iVar12 = iVar11;" (assignment_expression "iVar12 = iVar11" (identifier "iVar12") (= "=") (identifier "iVar11")) (; ";")) (while_statement "while( true ) {\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (bVar1 == 0) goto LAB_00020240;\n      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;\n      iVar12 = iVar12 + 1;\n      bVar1 = pbVar7[iVar12];\n    }" ({ "{") (if_statement "if (bVar1 == 0) goto LAB_00020240;" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020240;" (goto "goto") (statement_identifier "LAB_00020240") (; ";"))) (if_statement "if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;" (if "if") (parenthesized_expression "(((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c))" (( "(") (binary_expression "((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)" (parenthesized_expression "((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0)" (( "(") (binary_expression "(*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20)" (( "(") (binary_expression "*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + (uint)bVar1 * 2 + 1)" (( "(") (binary_expression "(int)puVar2 + (uint)bVar1 * 2 + 1" (binary_expression "(int)puVar2 + (uint)bVar1 * 2" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(bVar1 == 0x2c)" (( "(") (binary_expression "bVar1 == 0x2c" (identifier "bVar1") (== "==") (number_literal "0x2c")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = pbVar7[iVar12];" (assignment_expression "bVar1 = pbVar7[iVar12]" (identifier "bVar1") (= "=") (subscript_expression "pbVar7[iVar12]" (identifier "pbVar7") ([ "[") (identifier "iVar12") (] "]"))) (; ";")) (} "}"))) (expression_statement "local_78 = pbVar7[iVar12];" (assignment_expression "local_78 = pbVar7[iVar12]" (identifier "local_78") (= "=") (subscript_expression "pbVar7[iVar12]" (identifier "pbVar7") ([ "[") (identifier "iVar12") (] "]"))) (; ";")) (} "}"))) (labeled_statement "LAB_00020240:\n  iVar3 = 1;" (statement_identifier "LAB_00020240") (: ":") (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";"))) (labeled_statement "LAB_00020245:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" (statement_identifier "LAB_00020245") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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    return iVar3;\n  }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))) (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" (identifier "FUN_0006dad0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(type_1 var_2,char *var_25,int port,type_2 *conf)

{
  type_3 *__s2;
  type_3 var_19;
  int var_27;
  type_4 *puVar3;
  int var_4;
  type_5 var_9;
  type_5 var_11;
  size_t var_26;
  type_3 *var_17;
  type_4 **ppuVar9;
  type_5 *var_10;
  type_5 *puVar11;
  int var_20;
  int var_18;
  int var_1;
  bool bVar14;
  char *var_23;
  type_3 var_15;
  size_t var_24;
  char var_22 [64];
  
  var_27 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_1)0x0) {
    var_4 = var_3(conf,0xc);
    if ((var_4 == 0) && (var_4 = var_5(var_25), var_4 != 0)) {
      var_4 = 0;
      goto LAB_00020245;
    }
    var_23 = (char *)0x0;
  }
  else {
    var_4 = var_6(var_2);
    if ((var_4 != 0) ||
       ((var_4 = var_3(conf,0xc), var_4 == 0 &&
        ((var_4 = var_5(var_25), var_4 != 0 ||
         (var_4 = var_7(var_2), var_4 != 0)))))) {
      var_4 = 0;
      goto LAB_00020245;
    }
    var_8(var_2,var_22,0x40);
    puVar11 = (type_5 *)var_22;
    do {
      var_10 = puVar11;
      var_9 = *var_10 + 0xfefefeff & ~*var_10;
      var_11 = var_9 & 0x80808080;
      puVar11 = var_10 + 1;
    } while (var_11 == 0);
    bVar14 = (var_9 & 0x8080) == 0;
    if (bVar14) {
      var_11 = var_11 >> 0x10;
    }
    if (bVar14) {
      puVar11 = (type_5 *)((int)var_10 + 6);
    }
    var_23 = (char *)((int)puVar11 + ((-3 - (type_5)var_12((type_3)var_11,(type_3)var_11)) - (int)var_22))
    ;
  }
  var_18 = 0;
  var_26 = var_13(var_25);
  var_17 = (type_3 *)var_14(conf,10);
  var_15 = *var_17;
  while (var_15 != 0) {
    ppuVar9 = var_16();
    puVar3 = *ppuVar9;
    while ((__s2 = var_17 + var_18, (*(type_3 *)((int)puVar3 + (type_5)var_15 * 2 + 1) & 0x20) != 0 ||
           (var_15 == 0x2c))) {
      var_18 = var_18 + 1;
      var_15 = var_17[var_18];
      if (var_15 == 0) goto LAB_00020240;
    }
    var_19 = var_17[var_18];
    var_20 = var_18;
    if (var_19 == 0) {
      var_24 = 0;
    }
    else {
      do {
        if (((puVar3[var_19] & 8) == 0) && (1 < (type_3)(var_19 - 0x2d) && var_19 != 0x2a)) break;
        var_20 = var_20 + 1;
        var_19 = var_17[var_20];
      } while (var_19 != 0);
      var_24 = var_20 - var_18;
    }
    if (var_15 == 0x2a) {
      if ((var_2 != (type_1)0x0) &&
         (var_4 = var_21(var_22 + (int)(var_23 + (1 - var_24)),
                              (char *)(var_17 + var_18 + 1),var_24 - 1), var_4 == 0))
      goto LAB_00020245;
      var_4 = var_21(var_25 + var_26 + (1 - var_24),(char *)(var_17 + var_18 + 1),
                          var_24 - 1);
      if (var_4 == 0) {
        var_4 = 0;
        goto LAB_00020245;
      }
    }
    else if (var_17[var_20 + -1] == 0x2a) {
      if ((var_2 != (type_1)0x0) &&
         (var_4 = var_21(var_22,(char *)__s2,var_24 - 1), var_4 == 0)) goto LAB_00020245;
      var_4 = var_21(var_25,(char *)__s2,var_24 - 1);
      if (var_4 == 0) {
        var_4 = 0;
        goto LAB_00020245;
      }
    }
    else if (((var_2 != (type_1)0x0) &&
             (var_4 = var_21(var_22,(char *)__s2,var_24), var_4 == 0)) ||
            (var_4 = var_21(var_25,(char *)__s2,var_24), var_4 == 0)) goto LAB_00020245;
    var_19 = var_17[var_20];
    var_18 = var_20;
    while( true ) {
      if (var_19 == 0) goto LAB_00020240;
      if (((*(type_3 *)((int)puVar3 + (type_5)var_19 * 2 + 1) & 0x20) != 0) || (var_19 == 0x2c)) break;
      var_18 = var_18 + 1;
      var_19 = var_17[var_18];
    }
    var_15 = var_17[var_18];
  }
LAB_00020240:
  var_4 = 1;
LAB_00020245:
  if (var_27 == *(int *)(var_1 + 0x14)) {
    return var_4;
  }
                    /* WARNING: Subroutine does not return */
  var_28();
}


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

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

int MASKED(int param_1,char *param_2,undefined4 param_3,undefined4 param_4)

{
  byte *__s2;
  byte bVar1;
  ushort *puVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  size_t sVar6;
  byte *pbVar7;
  ushort **ppuVar8;
  uint *puVar9;
  uint *puVar10;
  int iVar11;
  int iVar12;
  int in_GS_OFFSET;
  bool bVar13;
  int local_98;
  byte local_78;
  size_t local_70;
  undefined4 local_60;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2010b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
    iVar3 = FUN_000189a0(param_4,0xc);
    if ((iVar3 == 0) && (iVar3 = FUN_00064830(param_2), iVar3 != 0)) {
      iVar3 = 0;
      goto LAB_00020245;
    }
    local_98 = 0;
  }
  else {
    iVar3 = FUN_000648e0(param_1);
    if ((iVar3 != 0) ||
       ((iVar3 = FUN_000189a0(param_4,0xc), iVar3 == 0 &&
        ((iVar3 = FUN_00064830(param_2), iVar3 != 0 || (iVar3 = FUN_000648a0(param_1), iVar3 != 0)))
        ))) {
      iVar3 = 0;
      goto LAB_00020245;
    }
    FUN_00064790(param_1,&local_60,0x40);
    puVar10 = &local_60;
    do {
      puVar9 = puVar10;
      uVar4 = *puVar9 + 0xfefefeff & ~*puVar9;
      uVar5 = uVar4 & 0x80808080;
      puVar10 = puVar9 + 1;
    } while (uVar5 == 0);
    bVar13 = (uVar4 & 0x8080) == 0;
    if (bVar13) {
      uVar5 = uVar5 >> 0x10;
    }
    if (bVar13) {
      puVar10 = (uint *)((int)puVar9 + 6);
    }
    local_98 = (int)puVar10 + ((-3 - (uint)CARRY1((byte)uVar5,(byte)uVar5)) - (int)&local_60);
  }
  iVar12 = 0;
  sVar6 = strlen(param_2);
  pbVar7 = (byte *)FUN_00018b50(param_4,10);
  local_78 = *pbVar7;
  while (local_78 != 0) {
    ppuVar8 = __ctype_b_loc();
    puVar2 = *ppuVar8;
    while ((__s2 = pbVar7 + iVar12, (*(byte *)((int)puVar2 + (uint)local_78 * 2 + 1) & 0x20) != 0 ||
           (local_78 == 0x2c))) {
      iVar12 = iVar12 + 1;
      local_78 = pbVar7[iVar12];
      if (local_78 == 0) goto LAB_00020240;
    }
    bVar1 = pbVar7[iVar12];
    iVar11 = iVar12;
    if (bVar1 == 0) {
      local_70 = 0;
    }
    else {
      do {
        if (((puVar2[bVar1] & 8) == 0) && (1 < (byte)(bVar1 - 0x2d) && bVar1 != 0x2a)) break;
        iVar11 = iVar11 + 1;
        bVar1 = pbVar7[iVar11];
      } while (bVar1 != 0);
      local_70 = iVar11 - iVar12;
    }
    if (local_78 == 0x2a) {
      if ((param_1 != 0) &&
         (iVar3 = strncasecmp((char *)((int)&local_60 + ((local_98 + 1) - local_70)),
                              (char *)(pbVar7 + iVar12 + 1),local_70 - 1), iVar3 == 0))
      goto LAB_00020245;
      iVar3 = strncasecmp(param_2 + sVar6 + (1 - local_70),(char *)(pbVar7 + iVar12 + 1),
                          local_70 - 1);
      if (iVar3 == 0) {
        iVar3 = 0;
        goto LAB_00020245;
      }
    }
    else if (pbVar7[iVar11 + -1] == 0x2a) {
      if ((param_1 != 0) &&
         (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70 - 1), iVar3 == 0))
      goto LAB_00020245;
      iVar3 = strncasecmp(param_2,(char *)__s2,local_70 - 1);
      if (iVar3 == 0) {
        iVar3 = 0;
        goto LAB_00020245;
      }
    }
    else if (((param_1 != 0) &&
             (iVar3 = strncasecmp((char *)&local_60,(char *)__s2,local_70), iVar3 == 0)) ||
            (iVar3 = strncasecmp(param_2,(char *)__s2,local_70), iVar3 == 0)) goto LAB_00020245;
    bVar1 = pbVar7[iVar11];
    iVar12 = iVar11;
    while( true ) {
      if (bVar1 == 0) goto LAB_00020240;
      if (((*(byte *)((int)puVar2 + (uint)bVar1 * 2 + 1) & 0x20) != 0) || (bVar1 == 0x2c)) break;
      iVar12 = iVar12 + 1;
      bVar1 = pbVar7[iVar12];
    }
    local_78 = pbVar7[iVar12];
  }
LAB_00020240:
  iVar3 = 1;
LAB_00020245:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006dad0();
}

