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

void environ_handler(control *ctrl,void *dlg,void *data,int event)

{
  undefined4 *puVar1;
  int n;
  char *pcVar2;
  char *pcVar3;
  char *ptr;
  int in_GS_OFFSET;
  char *key;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20b69;
  puVar1 = *(undefined4 **)((int)ctrl + 0x14);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (event == 0) {
    if ((control *)puVar1[4] == ctrl) {
      dlg_update_start(ctrl,dlg);
      dlg_listbox_clear(ctrl,dlg);
      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);
      while (pcVar3 != (char *)0x0) {
        pcVar3 = dupprintf("%s\t%s",key,pcVar3);
        dlg_listbox_add(ctrl,dlg,pcVar3);
        safefree(pcVar3);
        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);
      }
      dlg_update_done(ctrl,dlg);
    }
  }
  else if (event == 1) {
    if ((control *)puVar1[2] == ctrl) {
      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);
      if (*pcVar3 == '\0') {
        safefree(pcVar3);
        dlg_beep(dlg);
      }
      else {
        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);
        if (*pcVar2 == '\0') {
          safefree(pcVar3);
          safefree(pcVar2);
          dlg_beep(dlg);
        }
        else {
          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);
          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);
          dlg_editbox_set((control *)*puVar1,dlg,"");
          dlg_editbox_set((control *)puVar1[1],dlg,"");
          safefree(ptr);
          safefree(pcVar3);
          safefree(pcVar2);
          dlg_refresh((control *)puVar1[4],dlg);
        }
      }
    }
    else if ((control *)puVar1[3] == ctrl) {
      n = dlg_listbox_index((control *)puVar1[4],dlg);
      if (n < 0) {
        dlg_beep(dlg);
      }
      else {
        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);
        if (pcVar3 != (char *)0x0) {
          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);
          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);
          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);
          conf_del_str_str((Conf *)data,0x33,pcVar3);
        }
      }
      dlg_refresh((control *)puVar1[4],dlg);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  char *pcVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20b69;
  puVar1 = *(undefined4 **)(param_1 + 0x14);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_4 == 0) {
    if (puVar1[4] == param_1) {
      FUN_0004c810(param_1,param_2);
      FUN_0004b8b0(param_1,param_2);
      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);
      while (iVar2 != 0) {
        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);
        FUN_0004bc20(param_1,param_2,uVar3);
        FUN_0002da80(uVar3);
        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);
      }
      FUN_0004c820(param_1,param_2);
    }
  }
  else if (param_4 == 1) {
    if (puVar1[2] == param_1) {
      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);
      if (*pcVar4 == '\0') {
        FUN_0002da80(pcVar4);
        FUN_0004c970(param_2);
      }
      else {
        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);
        if (*pcVar5 == '\0') {
          FUN_0002da80(pcVar4);
          FUN_0002da80(pcVar5);
          FUN_0004c970(param_2);
        }
        else {
          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);
          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);
          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);
          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);
          FUN_0002da80(uVar3);
          FUN_0002da80(pcVar4);
          FUN_0002da80(pcVar5);
          FUN_0004ca40(puVar1[4],param_2);
        }
      }
    }
    else if (puVar1[3] == param_1) {
      iVar2 = FUN_0004bd70(puVar1[4],param_2);
      if (iVar2 < 0) {
        FUN_0004c970(param_2);
      }
      else {
        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);
        if (iVar2 != 0) {
          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);
          FUN_0004b6f0(*puVar1,param_2,iVar2);
          FUN_0004b6f0(puVar1[1],param_2,uVar3);
          FUN_0001f440(param_3,0x33,iVar2);
        }
      }
      FUN_0004ca40(puVar1[4],param_2);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00066390();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x8fc3b
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x48]
MOV EDI,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x4c]
MOV EBP,dword ptr [EDI + 0x14]
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],EDX
XOR EDX,EDX
TEST EAX,EAX
JNZ 0x00020bc0
CMP dword ptr [EBP + 0x10],EDI
JZ 0x00020c68
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00020e1a
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,0x1
JNZ 0x00020ba3
CMP dword ptr [EBP + 0x8],EDI
JZ 0x00020d00
CMP dword ptr [EBP + 0xc],EDI
JNZ 0x00020ba3
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBP + 0x10]
CALL 0x0004bd70
ADD ESP,0x10
TEST EAX,EAX
JS 0x00020de0
SUB ESP,0x4
PUSH EAX
PUSH 0x33
MOV EDI,dword ptr [ESP + 0x10]
PUSH EDI
CALL 0x0001eef0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00020c4e
SUB ESP,0x4
PUSH EAX
MOV dword ptr [ESP + 0xc],EAX
PUSH 0x33
PUSH EDI
CALL 0x0001edb0
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0xc
MOV EDX,dword ptr [ESP + 0x8]
PUSH EDX
MOV dword ptr [ESP + 0xc],EDX
PUSH ESI
PUSH dword ptr [EBP]
CALL 0x0004b6f0
ADD ESP,0xc
MOV EAX,dword ptr [ESP + 0xc]
PUSH EAX
PUSH ESI
PUSH dword ptr [EBP + 0x4]
CALL 0x0004b6f0
ADD ESP,0xc
MOV EDX,dword ptr [ESP + 0x8]
PUSH EDX
PUSH 0x33
PUSH EDI
CALL 0x0001f440
ADD ESP,0x10
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBP + 0x10]
CALL 0x0004ca40
ADD ESP,0x10
JMP 0x00020ba3
SUB ESP,0x8
PUSH ESI
PUSH EDI
CALL 0x0004c810
POP ECX
POP EBP
PUSH ESI
PUSH EDI
CALL 0x0004b8b0
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x18],EAX
PUSH EAX
PUSH 0x0
PUSH 0x33
PUSH dword ptr [ESP + 0x20]
CALL 0x0001ee00
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00020ce8
LEA ECX,[EBX + 0xfffc9200]
MOV dword ptr [ESP + 0xc],ECX
LEA ESI,[ESI]
SUB ESP,0x4
PUSH EAX
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x18]
CALL 0x0002d860
ADD ESP,0xc
PUSH EAX
MOV EBP,EAX
PUSH ESI
PUSH EDI
CALL 0x0004bc20
MOV dword ptr [ESP],EBP
CALL 0x0002da80
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x2c]
PUSH 0x33
PUSH dword ptr [ESP + 0x20]
CALL 0x0001ee00
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00020ca8
SUB ESP,0x8
PUSH ESI
PUSH EDI
CALL 0x0004c820
ADD ESP,0x10
JMP 0x00020ba3
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBP]
CALL 0x0004b7d0
ADD ESP,0x10
CMP byte ptr [EAX],0x0
MOV EDI,EAX
JZ 0x00020dc0
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBP + 0x4]
CALL 0x0004b7d0
ADD ESP,0x10
CMP byte ptr [EAX],0x0
JZ 0x00020df1
PUSH EAX
MOV dword ptr [ESP + 0xc],EAX
PUSH EDI
PUSH 0x33
PUSH dword ptr [ESP + 0x10]
CALL 0x0001f380
PUSH 0x0
MOV ECX,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0xfffceed8]
PUSH ECX
MOV dword ptr [ESP + 0x24],ECX
PUSH EAX
PUSH EDI
CALL 0x0002d350
LEA EDX,[EBX + 0xfffd4390]
MOV dword ptr [ESP + 0x28],EAX
ADD ESP,0x1c
PUSH EDX
MOV dword ptr [ESP + 0xc],EDX
PUSH ESI
PUSH dword ptr [EBP]
CALL 0x0004b6f0
ADD ESP,0xc
MOV EDX,dword ptr [ESP + 0x8]
PUSH EDX
PUSH ESI
PUSH dword ptr [EBP + 0x4]
CALL 0x0004b6f0
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP],EAX
CALL 0x0002da80
MOV dword ptr [ESP],EDI
CALL 0x0002da80
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP],ECX
CALL 0x0002da80
POP EAX
POP EDX
PUSH ESI
PUSH dword ptr [EBP + 0x10]
CALL 0x0004ca40
ADD ESP,0x10
JMP 0x00020ba3
SUB ESP,0xc
PUSH EAX
CALL 0x0002da80
MOV dword ptr [ESP],ESI
CALL 0x0004c970
ADD ESP,0x10
JMP 0x00020ba3
SUB ESP,0xc
PUSH ESI
CALL 0x0004c970
ADD ESP,0x10
JMP 0x00020c4e
MOV dword ptr [ESP + 0x4],EAX
SUB ESP,0xc
PUSH EDI
CALL 0x0002da80
MOV ECX,dword ptr [ESP + 0x14]
MOV dword ptr [ESP],ECX
CALL 0x0002da80
MOV dword ptr [ESP],ESI
CALL 0x0004c970
ADD ESP,0x10
JMP 0x00020ba3
CALL 0x00066390
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}\n\n" comment (function_definition "void FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}" primitive_type (function_declarator "FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20b69;" (assignment_expression "uStack_14 = 0x20b69" identifier = number_literal) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" 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_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }" { (if_statement "if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }" if (parenthesized_expression "(puVar1[4] == param_1)" ( (binary_expression "puVar1[4] == param_1" (subscript_expression "puVar1[4]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }" { (expression_statement "FUN_0004c810(param_1,param_2);" (call_expression "FUN_0004c810(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "FUN_0004b8b0(param_1,param_2);" (call_expression "FUN_0004b8b0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);" (assignment_expression "iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24)" identifier = (call_expression "FUN_0001ee00(param_3,0x33,0,&local_24)" identifier (argument_list "(param_3,0x33,0,&local_24)" ( identifier , number_literal , number_literal , (pointer_expression "&local_24" & identifier) )))) ;) (while_statement "while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }" while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }" { (expression_statement "uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);" (assignment_expression "uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2)" identifier = (call_expression "FUN_0002d860(&DAT_000799a4,local_24,iVar2)" identifier (argument_list "(&DAT_000799a4,local_24,iVar2)" ( (pointer_expression "&DAT_000799a4" & identifier) , identifier , identifier )))) ;) (expression_statement "FUN_0004bc20(param_1,param_2,uVar3);" (call_expression "FUN_0004bc20(param_1,param_2,uVar3)" identifier (argument_list "(param_1,param_2,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);" (assignment_expression "iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24)" identifier = (call_expression "FUN_0001ee00(param_3,0x33,local_24,&local_24)" identifier (argument_list "(param_3,0x33,local_24,&local_24)" ( identifier , number_literal , identifier , (pointer_expression "&local_24" & identifier) )))) ;) })) (expression_statement "FUN_0004c820(param_1,param_2);" (call_expression "FUN_0004c820(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) })) }) (else_clause "else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" else (if_statement "if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" if (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) (compound_statement "{\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" { (if_statement "if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" if (parenthesized_expression "(puVar1[2] == param_1)" ( (binary_expression "puVar1[2] == param_1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }" { (expression_statement "pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);" (assignment_expression "pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2)" identifier = (cast_expression "(char *)FUN_0004b7d0(*puVar1,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004b7d0(*puVar1,param_2)" identifier (argument_list "(*puVar1,param_2)" ( (pointer_expression "*puVar1" * identifier) , identifier ))))) ;) (if_statement "if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" if (parenthesized_expression "(*pcVar4 == '\0')" ( (binary_expression "*pcVar4 == '\0'" (pointer_expression "*pcVar4" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }" { (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" else (compound_statement "{\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" { (expression_statement "pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);" (assignment_expression "pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2)" identifier = (cast_expression "(char *)FUN_0004b7d0(puVar1[1],param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004b7d0(puVar1[1],param_2)" identifier (argument_list "(puVar1[1],param_2)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier ))))) ;) (if_statement "if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" if (parenthesized_expression "(*pcVar5 == '\0')" ( (binary_expression "*pcVar5 == '\0'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }" { (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "FUN_0002da80(pcVar5);" (call_expression "FUN_0002da80(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" else (compound_statement "{\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" { (expression_statement "FUN_0001f380(param_3,0x33,pcVar4,pcVar5);" (call_expression "FUN_0001f380(param_3,0x33,pcVar4,pcVar5)" identifier (argument_list "(param_3,0x33,pcVar4,pcVar5)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);" (assignment_expression "uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0)" identifier = (call_expression "FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0)" identifier (argument_list "(pcVar4,&DAT_0007f67c,pcVar5,0)" ( identifier , (pointer_expression "&DAT_0007f67c" & identifier) , identifier , number_literal )))) ;) (expression_statement "FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);" (call_expression "FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34)" identifier (argument_list "(*puVar1,param_2,&DAT_00084b34)" ( (pointer_expression "*puVar1" * identifier) , identifier , (pointer_expression "&DAT_00084b34" & identifier) ))) ;) (expression_statement "FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);" (call_expression "FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34)" identifier (argument_list "(puVar1[1],param_2,&DAT_00084b34)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier , (pointer_expression "&DAT_00084b34" & identifier) ))) ;) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "FUN_0002da80(pcVar5);" (call_expression "FUN_0002da80(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "FUN_0004ca40(puVar1[4],param_2);" (call_expression "FUN_0004ca40(puVar1[4],param_2)" identifier (argument_list "(puVar1[4],param_2)" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) , identifier ))) ;) }))) }))) }) (else_clause "else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" else (if_statement "if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" if (parenthesized_expression "(puVar1[3] == param_1)" ( (binary_expression "puVar1[3] == param_1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" { (expression_statement "iVar2 = FUN_0004bd70(puVar1[4],param_2);" (assignment_expression "iVar2 = FUN_0004bd70(puVar1[4],param_2)" identifier = (call_expression "FUN_0004bd70(puVar1[4],param_2)" identifier (argument_list "(puVar1[4],param_2)" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n        FUN_0004c970(param_2);\n      }" { (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" else (compound_statement "{\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" { (expression_statement "iVar2 = FUN_0001eef0(param_3,0x33,iVar2);" (assignment_expression "iVar2 = FUN_0001eef0(param_3,0x33,iVar2)" identifier = (call_expression "FUN_0001eef0(param_3,0x33,iVar2)" identifier (argument_list "(param_3,0x33,iVar2)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }" { (expression_statement "uVar3 = FUN_0001edb0(param_3,0x33,iVar2);" (assignment_expression "uVar3 = FUN_0001edb0(param_3,0x33,iVar2)" identifier = (call_expression "FUN_0001edb0(param_3,0x33,iVar2)" identifier (argument_list "(param_3,0x33,iVar2)" ( identifier , number_literal , identifier )))) ;) (expression_statement "FUN_0004b6f0(*puVar1,param_2,iVar2);" (call_expression "FUN_0004b6f0(*puVar1,param_2,iVar2)" identifier (argument_list "(*puVar1,param_2,iVar2)" ( (pointer_expression "*puVar1" * identifier) , identifier , identifier ))) ;) (expression_statement "FUN_0004b6f0(puVar1[1],param_2,uVar3);" (call_expression "FUN_0004b6f0(puVar1[1],param_2,uVar3)" identifier (argument_list "(puVar1[1],param_2,uVar3)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "FUN_0001f440(param_3,0x33,iVar2);" (call_expression "FUN_0001f440(param_3,0x33,iVar2)" identifier (argument_list "(param_3,0x33,iVar2)" ( identifier , number_literal , identifier ))) ;) })) }))) (expression_statement "FUN_0004ca40(puVar1[4],param_2);" (call_expression "FUN_0004ca40(puVar1[4],param_2)" identifier (argument_list "(puVar1[4],param_2)" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) , identifier ))) ;) })))) })))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid environ_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  undefined4 *puVar1;\n  int n;\n  char *pcVar2;\n  char *pcVar3;\n  char *ptr;\n  int in_GS_OFFSET;\n  char *key;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (event == 0) {\n    if ((control *)puVar1[4] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);\n      while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n  }\n  else if (event == 1) {\n    if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void environ_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  undefined4 *puVar1;\n  int n;\n  char *pcVar2;\n  char *pcVar3;\n  char *ptr;\n  int in_GS_OFFSET;\n  char *key;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (event == 0) {\n    if ((control *)puVar1[4] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);\n      while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n  }\n  else if (event == 1) {\n    if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "environ_handler(control *ctrl,void *dlg,void *data,int event)" identifier (parameter_list "(control *ctrl,void *dlg,void *data,int event)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int event" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int n;\n  char *pcVar2;\n  char *pcVar3;\n  char *ptr;\n  int in_GS_OFFSET;\n  char *key;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (event == 0) {\n    if ((control *)puVar1[4] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);\n      while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n  }\n  else if (event == 1) {\n    if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int n;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20b69;" (assignment_expression "uStack_14 = 0x20b69" identifier = number_literal) ;) (expression_statement "puVar1 = *(undefined4 **)((int)ctrl + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)((int)ctrl + 0x14)" identifier = (pointer_expression "*(undefined4 **)((int)ctrl + 0x14)" * (cast_expression "(undefined4 **)((int)ctrl + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ctrl + 0x14)" ( (binary_expression "(int)ctrl + 0x14" (cast_expression "(int)ctrl" ( (type_descriptor "int" primitive_type) ) 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 (event == 0) {\n    if ((control *)puVar1[4] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);\n      while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n  }\n  else if (event == 1) {\n    if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }\n  }" if (parenthesized_expression "(event == 0)" ( (binary_expression "event == 0" identifier == number_literal) )) (compound_statement "{\n    if ((control *)puVar1[4] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);\n      while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n  }" { (if_statement "if ((control *)puVar1[4] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);\n      while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }\n      dlg_update_done(ctrl,dlg);\n    }" if (parenthesized_expression "((control *)puVar1[4] == ctrl)" ( (binary_expression "(control *)puVar1[4] == ctrl" (cast_expression "(control *)puVar1[4]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);\n      while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }\n      dlg_update_done(ctrl,dlg);\n    }" { (expression_statement "dlg_update_start(ctrl,dlg);" (call_expression "dlg_update_start(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) (expression_statement "dlg_listbox_clear(ctrl,dlg);" (call_expression "dlg_listbox_clear(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) (expression_statement "pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key);" (assignment_expression "pcVar3 = conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key)" identifier = (call_expression "conf_get_str_strs((Conf *)data,0x33,(char *)0x0,&key)" identifier (argument_list "((Conf *)data,0x33,(char *)0x0,&key)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (pointer_expression "&key" & identifier) )))) ;) (while_statement "while (pcVar3 != (char *)0x0) {\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }" while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar3 = dupprintf("%s\t%s",key,pcVar3);\n        dlg_listbox_add(ctrl,dlg,pcVar3);\n        safefree(pcVar3);\n        pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);\n      }" { (expression_statement "pcVar3 = dupprintf("%s\t%s",key,pcVar3);" (assignment_expression "pcVar3 = dupprintf("%s\t%s",key,pcVar3)" identifier = (call_expression "dupprintf("%s\t%s",key,pcVar3)" identifier (argument_list "("%s\t%s",key,pcVar3)" ( (string_literal ""%s\t%s"" " string_content escape_sequence string_content ") , identifier , identifier )))) ;) (expression_statement "dlg_listbox_add(ctrl,dlg,pcVar3);" (call_expression "dlg_listbox_add(ctrl,dlg,pcVar3)" identifier (argument_list "(ctrl,dlg,pcVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key);" (assignment_expression "pcVar3 = conf_get_str_strs((Conf *)data,0x33,key,&key)" identifier = (call_expression "conf_get_str_strs((Conf *)data,0x33,key,&key)" identifier (argument_list "((Conf *)data,0x33,key,&key)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , (pointer_expression "&key" & identifier) )))) ;) })) (expression_statement "dlg_update_done(ctrl,dlg);" (call_expression "dlg_update_done(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) })) }) (else_clause "else if (event == 1) {\n    if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }\n  }" else (if_statement "if (event == 1) {\n    if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }\n  }" if (parenthesized_expression "(event == 1)" ( (binary_expression "event == 1" identifier == number_literal) )) (compound_statement "{\n    if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }\n  }" { (if_statement "if ((control *)puVar1[2] == ctrl) {\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }\n    else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }" if (parenthesized_expression "((control *)puVar1[2] == ctrl)" ( (binary_expression "(control *)puVar1[2] == ctrl" (cast_expression "(control *)puVar1[2]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[2]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n      pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);\n      if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }\n    }" { (expression_statement "pcVar3 = dlg_editbox_get((control *)*puVar1,dlg);" (assignment_expression "pcVar3 = dlg_editbox_get((control *)*puVar1,dlg)" identifier = (call_expression "dlg_editbox_get((control *)*puVar1,dlg)" identifier (argument_list "((control *)*puVar1,dlg)" ( (cast_expression "(control *)*puVar1" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , identifier )))) ;) (if_statement "if (*pcVar3 == '\0') {\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }" if (parenthesized_expression "(*pcVar3 == '\0')" ( (binary_expression "*pcVar3 == '\0'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        safefree(pcVar3);\n        dlg_beep(dlg);\n      }" { (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "dlg_beep(dlg);" (call_expression "dlg_beep(dlg)" identifier (argument_list "(dlg)" ( identifier ))) ;) }) (else_clause "else {\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }" else (compound_statement "{\n        pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);\n        if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }\n      }" { (expression_statement "pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg);" (assignment_expression "pcVar2 = dlg_editbox_get((control *)puVar1[1],dlg)" identifier = (call_expression "dlg_editbox_get((control *)puVar1[1],dlg)" identifier (argument_list "((control *)puVar1[1],dlg)" ( (cast_expression "(control *)puVar1[1]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (*pcVar2 == '\0') {\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }\n        else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }" if (parenthesized_expression "(*pcVar2 == '\0')" ( (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_beep(dlg);\n        }" { (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "safefree(pcVar2);" (call_expression "safefree(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "dlg_beep(dlg);" (call_expression "dlg_beep(dlg)" identifier (argument_list "(dlg)" ( identifier ))) ;) }) (else_clause "else {\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }" else (compound_statement "{\n          conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);\n          ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);\n          dlg_editbox_set((control *)*puVar1,dlg,"");\n          dlg_editbox_set((control *)puVar1[1],dlg,"");\n          safefree(ptr);\n          safefree(pcVar3);\n          safefree(pcVar2);\n          dlg_refresh((control *)puVar1[4],dlg);\n        }" { (expression_statement "conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2);" (call_expression "conf_set_str_str((Conf *)data,0x33,pcVar3,pcVar2)" identifier (argument_list "((Conf *)data,0x33,pcVar3,pcVar2)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier ))) ;) (expression_statement "ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0);" (assignment_expression "ptr = dupcat(pcVar3,&DAT_0007f67c,pcVar2,0)" identifier = (call_expression "dupcat(pcVar3,&DAT_0007f67c,pcVar2,0)" identifier (argument_list "(pcVar3,&DAT_0007f67c,pcVar2,0)" ( identifier , (pointer_expression "&DAT_0007f67c" & identifier) , identifier , number_literal )))) ;) (expression_statement "dlg_editbox_set((control *)*puVar1,dlg,"");" (call_expression "dlg_editbox_set((control *)*puVar1,dlg,"")" identifier (argument_list "((control *)*puVar1,dlg,"")" ( (cast_expression "(control *)*puVar1" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , identifier , (string_literal """" " ") ))) ;) (expression_statement "dlg_editbox_set((control *)puVar1[1],dlg,"");" (call_expression "dlg_editbox_set((control *)puVar1[1],dlg,"")" identifier (argument_list "((control *)puVar1[1],dlg,"")" ( (cast_expression "(control *)puVar1[1]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier , (string_literal """" " ") ))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "safefree(pcVar2);" (call_expression "safefree(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "dlg_refresh((control *)puVar1[4],dlg);" (call_expression "dlg_refresh((control *)puVar1[4],dlg)" identifier (argument_list "((control *)puVar1[4],dlg)" ( (cast_expression "(control *)puVar1[4]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ])) , identifier ))) ;) }))) }))) }) (else_clause "else if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }" else (if_statement "if ((control *)puVar1[3] == ctrl) {\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }" if (parenthesized_expression "((control *)puVar1[3] == ctrl)" ( (binary_expression "(control *)puVar1[3] == ctrl" (cast_expression "(control *)puVar1[3]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[3]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n      n = dlg_listbox_index((control *)puVar1[4],dlg);\n      if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }\n      dlg_refresh((control *)puVar1[4],dlg);\n    }" { (expression_statement "n = dlg_listbox_index((control *)puVar1[4],dlg);" (assignment_expression "n = dlg_listbox_index((control *)puVar1[4],dlg)" identifier = (call_expression "dlg_listbox_index((control *)puVar1[4],dlg)" identifier (argument_list "((control *)puVar1[4],dlg)" ( (cast_expression "(control *)puVar1[4]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (n < 0) {\n        dlg_beep(dlg);\n      }\n      else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }" if (parenthesized_expression "(n < 0)" ( (binary_expression "n < 0" identifier < number_literal) )) (compound_statement "{\n        dlg_beep(dlg);\n      }" { (expression_statement "dlg_beep(dlg);" (call_expression "dlg_beep(dlg)" identifier (argument_list "(dlg)" ( identifier ))) ;) }) (else_clause "else {\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }" else (compound_statement "{\n        pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);\n        if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }\n      }" { (expression_statement "pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n);" (assignment_expression "pcVar3 = conf_get_str_nthstrkey((Conf *)data,0x33,n)" identifier = (call_expression "conf_get_str_nthstrkey((Conf *)data,0x33,n)" identifier (argument_list "((Conf *)data,0x33,n)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);\n          dlg_editbox_set((control *)*puVar1,dlg,pcVar3);\n          dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);\n          conf_del_str_str((Conf *)data,0x33,pcVar3);\n        }" { (expression_statement "pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3);" (assignment_expression "pcVar2 = conf_get_str_str((Conf *)data,0x33,pcVar3)" identifier = (call_expression "conf_get_str_str((Conf *)data,0x33,pcVar3)" identifier (argument_list "((Conf *)data,0x33,pcVar3)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (expression_statement "dlg_editbox_set((control *)*puVar1,dlg,pcVar3);" (call_expression "dlg_editbox_set((control *)*puVar1,dlg,pcVar3)" identifier (argument_list "((control *)*puVar1,dlg,pcVar3)" ( (cast_expression "(control *)*puVar1" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , identifier , identifier ))) ;) (expression_statement "dlg_editbox_set((control *)puVar1[1],dlg,pcVar2);" (call_expression "dlg_editbox_set((control *)puVar1[1],dlg,pcVar2)" identifier (argument_list "((control *)puVar1[1],dlg,pcVar2)" ( (cast_expression "(control *)puVar1[1]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier , identifier ))) ;) (expression_statement "conf_del_str_str((Conf *)data,0x33,pcVar3);" (call_expression "conf_del_str_str((Conf *)data,0x33,pcVar3)" identifier (argument_list "((Conf *)data,0x33,pcVar3)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier ))) ;) })) }))) (expression_statement "dlg_refresh((control *)puVar1[4],dlg);" (call_expression "dlg_refresh((control *)puVar1[4],dlg)" identifier (argument_list "((control *)puVar1[4],dlg)" ( (cast_expression "(control *)puVar1[4]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ])) , identifier ))) ;) })))) })))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00066390();\n}\n\n" (function_definition "void FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00066390();\n}" primitive_type (function_declarator "FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00066390();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20b69;" (assignment_expression "uStack_14 = 0x20b69" identifier = number_literal) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" 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_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }" { (if_statement "if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }" if (parenthesized_expression "(puVar1[4] == param_1)" ( (binary_expression "puVar1[4] == param_1" (subscript_expression "puVar1[4]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }" { (expression_statement "FUN_0004c810(param_1,param_2);" (call_expression "FUN_0004c810(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "FUN_0004b8b0(param_1,param_2);" (call_expression "FUN_0004b8b0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);" (assignment_expression "iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24)" identifier = (call_expression "FUN_0001ee00(param_3,0x33,0,&local_24)" identifier (argument_list "(param_3,0x33,0,&local_24)" ( identifier , number_literal , number_literal , (pointer_expression "&local_24" & identifier) )))) ;) (while_statement "while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }" while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }" { (expression_statement "uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);" (assignment_expression "uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2)" identifier = (call_expression "FUN_0002d860(&DAT_000799a4,local_24,iVar2)" identifier (argument_list "(&DAT_000799a4,local_24,iVar2)" ( (pointer_expression "&DAT_000799a4" & identifier) , identifier , identifier )))) ;) (expression_statement "FUN_0004bc20(param_1,param_2,uVar3);" (call_expression "FUN_0004bc20(param_1,param_2,uVar3)" identifier (argument_list "(param_1,param_2,uVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);" (assignment_expression "iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24)" identifier = (call_expression "FUN_0001ee00(param_3,0x33,local_24,&local_24)" identifier (argument_list "(param_3,0x33,local_24,&local_24)" ( identifier , number_literal , identifier , (pointer_expression "&local_24" & identifier) )))) ;) })) (expression_statement "FUN_0004c820(param_1,param_2);" (call_expression "FUN_0004c820(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) })) }) (else_clause "else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" else (if_statement "if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" if (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) (compound_statement "{\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" { (if_statement "if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" if (parenthesized_expression "(puVar1[2] == param_1)" ( (binary_expression "puVar1[2] == param_1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }" { (expression_statement "pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);" (assignment_expression "pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2)" identifier = (cast_expression "(char *)FUN_0004b7d0(*puVar1,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004b7d0(*puVar1,param_2)" identifier (argument_list "(*puVar1,param_2)" ( (pointer_expression "*puVar1" * identifier) , identifier ))))) ;) (if_statement "if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" if (parenthesized_expression "(*pcVar4 == '\0')" ( (binary_expression "*pcVar4 == '\0'" (pointer_expression "*pcVar4" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }" { (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" else (compound_statement "{\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" { (expression_statement "pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);" (assignment_expression "pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2)" identifier = (cast_expression "(char *)FUN_0004b7d0(puVar1[1],param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004b7d0(puVar1[1],param_2)" identifier (argument_list "(puVar1[1],param_2)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier ))))) ;) (if_statement "if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" if (parenthesized_expression "(*pcVar5 == '\0')" ( (binary_expression "*pcVar5 == '\0'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }" { (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "FUN_0002da80(pcVar5);" (call_expression "FUN_0002da80(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" else (compound_statement "{\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" { (expression_statement "FUN_0001f380(param_3,0x33,pcVar4,pcVar5);" (call_expression "FUN_0001f380(param_3,0x33,pcVar4,pcVar5)" identifier (argument_list "(param_3,0x33,pcVar4,pcVar5)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);" (assignment_expression "uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0)" identifier = (call_expression "FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0)" identifier (argument_list "(pcVar4,&DAT_0007f67c,pcVar5,0)" ( identifier , (pointer_expression "&DAT_0007f67c" & identifier) , identifier , number_literal )))) ;) (expression_statement "FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);" (call_expression "FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34)" identifier (argument_list "(*puVar1,param_2,&DAT_00084b34)" ( (pointer_expression "*puVar1" * identifier) , identifier , (pointer_expression "&DAT_00084b34" & identifier) ))) ;) (expression_statement "FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);" (call_expression "FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34)" identifier (argument_list "(puVar1[1],param_2,&DAT_00084b34)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier , (pointer_expression "&DAT_00084b34" & identifier) ))) ;) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "FUN_0002da80(pcVar5);" (call_expression "FUN_0002da80(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "FUN_0004ca40(puVar1[4],param_2);" (call_expression "FUN_0004ca40(puVar1[4],param_2)" identifier (argument_list "(puVar1[4],param_2)" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) , identifier ))) ;) }))) }))) }) (else_clause "else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" else (if_statement "if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" if (parenthesized_expression "(puVar1[3] == param_1)" ( (binary_expression "puVar1[3] == param_1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" { (expression_statement "iVar2 = FUN_0004bd70(puVar1[4],param_2);" (assignment_expression "iVar2 = FUN_0004bd70(puVar1[4],param_2)" identifier = (call_expression "FUN_0004bd70(puVar1[4],param_2)" identifier (argument_list "(puVar1[4],param_2)" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n        FUN_0004c970(param_2);\n      }" { (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" else (compound_statement "{\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" { (expression_statement "iVar2 = FUN_0001eef0(param_3,0x33,iVar2);" (assignment_expression "iVar2 = FUN_0001eef0(param_3,0x33,iVar2)" identifier = (call_expression "FUN_0001eef0(param_3,0x33,iVar2)" identifier (argument_list "(param_3,0x33,iVar2)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }" { (expression_statement "uVar3 = FUN_0001edb0(param_3,0x33,iVar2);" (assignment_expression "uVar3 = FUN_0001edb0(param_3,0x33,iVar2)" identifier = (call_expression "FUN_0001edb0(param_3,0x33,iVar2)" identifier (argument_list "(param_3,0x33,iVar2)" ( identifier , number_literal , identifier )))) ;) (expression_statement "FUN_0004b6f0(*puVar1,param_2,iVar2);" (call_expression "FUN_0004b6f0(*puVar1,param_2,iVar2)" identifier (argument_list "(*puVar1,param_2,iVar2)" ( (pointer_expression "*puVar1" * identifier) , identifier , identifier ))) ;) (expression_statement "FUN_0004b6f0(puVar1[1],param_2,uVar3);" (call_expression "FUN_0004b6f0(puVar1[1],param_2,uVar3)" identifier (argument_list "(puVar1[1],param_2,uVar3)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "FUN_0001f440(param_3,0x33,iVar2);" (call_expression "FUN_0001f440(param_3,0x33,iVar2)" identifier (argument_list "(param_3,0x33,iVar2)" ( identifier , number_literal , identifier ))) ;) })) }))) (expression_statement "FUN_0004ca40(puVar1[4],param_2);" (call_expression "FUN_0004ca40(puVar1[4],param_2)" identifier (argument_list "(puVar1[4],param_2)" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) , identifier ))) ;) })))) })))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_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 { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) )))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression & IDENT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) }))) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) })))) })))) (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 ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00066390();\n}" (primitive_type "void") (function_declarator "FUN_00020b60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00020b60") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20b69;\n  puVar1 = *(undefined4 **)(param_1 + 0x14);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00066390();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x20b69;" (assignment_expression "uStack_14 = 0x20b69" (identifier "uStack_14") (= "=") (number_literal "0x20b69")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x14)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (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_4 == 0) {\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }\n  else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }\n  }" ({ "{") (if_statement "if (puVar1[4] == param_1) {\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }" (if "if") (parenthesized_expression "(puVar1[4] == param_1)" (( "(") (binary_expression "puVar1[4] == param_1" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      FUN_0004c810(param_1,param_2);\n      FUN_0004b8b0(param_1,param_2);\n      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);\n      while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }\n      FUN_0004c820(param_1,param_2);\n    }" ({ "{") (expression_statement "FUN_0004c810(param_1,param_2);" (call_expression "FUN_0004c810(param_1,param_2)" (identifier "FUN_0004c810") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_0004b8b0(param_1,param_2);" (call_expression "FUN_0004b8b0(param_1,param_2)" (identifier "FUN_0004b8b0") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);" (assignment_expression "iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24)" (identifier "iVar2") (= "=") (call_expression "FUN_0001ee00(param_3,0x33,0,&local_24)" (identifier "FUN_0001ee00") (argument_list "(param_3,0x33,0,&local_24)" (( "(") (identifier "param_3") (, ",") (number_literal "0x33") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (while_statement "while (iVar2 != 0) {\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }" (while "while") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);\n        FUN_0004bc20(param_1,param_2,uVar3);\n        FUN_0002da80(uVar3);\n        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);\n      }" ({ "{") (expression_statement "uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);" (assignment_expression "uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_0002d860(&DAT_000799a4,local_24,iVar2)" (identifier "FUN_0002d860") (argument_list "(&DAT_000799a4,local_24,iVar2)" (( "(") (pointer_expression "&DAT_000799a4" (& "&") (identifier "DAT_000799a4")) (, ",") (identifier "local_24") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "FUN_0004bc20(param_1,param_2,uVar3);" (call_expression "FUN_0004bc20(param_1,param_2,uVar3)" (identifier "FUN_0004bc20") (argument_list "(param_1,param_2,uVar3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" (identifier "FUN_0002da80") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);" (assignment_expression "iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24)" (identifier "iVar2") (= "=") (call_expression "FUN_0001ee00(param_3,0x33,local_24,&local_24)" (identifier "FUN_0001ee00") (argument_list "(param_3,0x33,local_24,&local_24)" (( "(") (identifier "param_3") (, ",") (number_literal "0x33") (, ",") (identifier "local_24") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0004c820(param_1,param_2);" (call_expression "FUN_0004c820(param_1,param_2)" (identifier "FUN_0004c820") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" (else "else") (if_statement "if (param_4 == 1) {\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 1)" (( "(") (binary_expression "param_4 == 1" (identifier "param_4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }\n  }" ({ "{") (if_statement "if (puVar1[2] == param_1) {\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }\n    else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" (if "if") (parenthesized_expression "(puVar1[2] == param_1)" (( "(") (binary_expression "puVar1[2] == param_1" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);\n      if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }\n    }" ({ "{") (expression_statement "pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);" (assignment_expression "pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2)" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_0004b7d0(*puVar1,param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004b7d0(*puVar1,param_2)" (identifier "FUN_0004b7d0") (argument_list "(*puVar1,param_2)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "param_2") () ")"))))) (; ";")) (if_statement "if (*pcVar4 == '\0') {\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }\n      else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" (if "if") (parenthesized_expression "(*pcVar4 == '\0')" (( "(") (binary_expression "*pcVar4 == '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        FUN_0002da80(pcVar4);\n        FUN_0004c970(param_2);\n      }" ({ "{") (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" (identifier "FUN_0002da80") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";")) (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" (identifier "FUN_0004c970") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" (else "else") (compound_statement "{\n        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);\n        if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }\n      }" ({ "{") (expression_statement "pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);" (assignment_expression "pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2)" (identifier "pcVar5") (= "=") (cast_expression "(char *)FUN_0004b7d0(puVar1[1],param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004b7d0(puVar1[1],param_2)" (identifier "FUN_0004b7d0") (argument_list "(puVar1[1],param_2)" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") () ")"))))) (; ";")) (if_statement "if (*pcVar5 == '\0') {\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }\n        else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" (if "if") (parenthesized_expression "(*pcVar5 == '\0')" (( "(") (binary_expression "*pcVar5 == '\0'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004c970(param_2);\n        }" ({ "{") (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" (identifier "FUN_0002da80") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";")) (expression_statement "FUN_0002da80(pcVar5);" (call_expression "FUN_0002da80(pcVar5)" (identifier "FUN_0002da80") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" (identifier "FUN_0004c970") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" (else "else") (compound_statement "{\n          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);\n          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);\n          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);\n          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);\n          FUN_0002da80(uVar3);\n          FUN_0002da80(pcVar4);\n          FUN_0002da80(pcVar5);\n          FUN_0004ca40(puVar1[4],param_2);\n        }" ({ "{") (expression_statement "FUN_0001f380(param_3,0x33,pcVar4,pcVar5);" (call_expression "FUN_0001f380(param_3,0x33,pcVar4,pcVar5)" (identifier "FUN_0001f380") (argument_list "(param_3,0x33,pcVar4,pcVar5)" (( "(") (identifier "param_3") (, ",") (number_literal "0x33") (, ",") (identifier "pcVar4") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);" (assignment_expression "uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0)" (identifier "uVar3") (= "=") (call_expression "FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0)" (identifier "FUN_0002d350") (argument_list "(pcVar4,&DAT_0007f67c,pcVar5,0)" (( "(") (identifier "pcVar4") (, ",") (pointer_expression "&DAT_0007f67c" (& "&") (identifier "DAT_0007f67c")) (, ",") (identifier "pcVar5") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);" (call_expression "FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34)" (identifier "FUN_0004b6f0") (argument_list "(*puVar1,param_2,&DAT_00084b34)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "param_2") (, ",") (pointer_expression "&DAT_00084b34" (& "&") (identifier "DAT_00084b34")) () ")"))) (; ";")) (expression_statement "FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);" (call_expression "FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34)" (identifier "FUN_0004b6f0") (argument_list "(puVar1[1],param_2,&DAT_00084b34)" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") (, ",") (pointer_expression "&DAT_00084b34" (& "&") (identifier "DAT_00084b34")) () ")"))) (; ";")) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" (identifier "FUN_0002da80") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_0002da80(pcVar4);" (call_expression "FUN_0002da80(pcVar4)" (identifier "FUN_0002da80") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";")) (expression_statement "FUN_0002da80(pcVar5);" (call_expression "FUN_0002da80(pcVar5)" (identifier "FUN_0002da80") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "FUN_0004ca40(puVar1[4],param_2);" (call_expression "FUN_0004ca40(puVar1[4],param_2)" (identifier "FUN_0004ca40") (argument_list "(puVar1[4],param_2)" (( "(") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}")) (else_clause "else if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" (else "else") (if_statement "if (puVar1[3] == param_1) {\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" (if "if") (parenthesized_expression "(puVar1[3] == param_1)" (( "(") (binary_expression "puVar1[3] == param_1" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      iVar2 = FUN_0004bd70(puVar1[4],param_2);\n      if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }\n      FUN_0004ca40(puVar1[4],param_2);\n    }" ({ "{") (expression_statement "iVar2 = FUN_0004bd70(puVar1[4],param_2);" (assignment_expression "iVar2 = FUN_0004bd70(puVar1[4],param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_0004bd70(puVar1[4],param_2)" (identifier "FUN_0004bd70") (argument_list "(puVar1[4],param_2)" (( "(") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n        FUN_0004c970(param_2);\n      }\n      else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0004c970(param_2);\n      }" ({ "{") (expression_statement "FUN_0004c970(param_2);" (call_expression "FUN_0004c970(param_2)" (identifier "FUN_0004c970") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" (else "else") (compound_statement "{\n        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);\n        if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }\n      }" ({ "{") (expression_statement "iVar2 = FUN_0001eef0(param_3,0x33,iVar2);" (assignment_expression "iVar2 = FUN_0001eef0(param_3,0x33,iVar2)" (identifier "iVar2") (= "=") (call_expression "FUN_0001eef0(param_3,0x33,iVar2)" (identifier "FUN_0001eef0") (argument_list "(param_3,0x33,iVar2)" (( "(") (identifier "param_3") (, ",") (number_literal "0x33") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);\n          FUN_0004b6f0(*puVar1,param_2,iVar2);\n          FUN_0004b6f0(puVar1[1],param_2,uVar3);\n          FUN_0001f440(param_3,0x33,iVar2);\n        }" ({ "{") (expression_statement "uVar3 = FUN_0001edb0(param_3,0x33,iVar2);" (assignment_expression "uVar3 = FUN_0001edb0(param_3,0x33,iVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_0001edb0(param_3,0x33,iVar2)" (identifier "FUN_0001edb0") (argument_list "(param_3,0x33,iVar2)" (( "(") (identifier "param_3") (, ",") (number_literal "0x33") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "FUN_0004b6f0(*puVar1,param_2,iVar2);" (call_expression "FUN_0004b6f0(*puVar1,param_2,iVar2)" (identifier "FUN_0004b6f0") (argument_list "(*puVar1,param_2,iVar2)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "param_2") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "FUN_0004b6f0(puVar1[1],param_2,uVar3);" (call_expression "FUN_0004b6f0(puVar1[1],param_2,uVar3)" (identifier "FUN_0004b6f0") (argument_list "(puVar1[1],param_2,uVar3)" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_0001f440(param_3,0x33,iVar2);" (call_expression "FUN_0001f440(param_3,0x33,iVar2)" (identifier "FUN_0001f440") (argument_list "(param_3,0x33,iVar2)" (( "(") (identifier "param_3") (, ",") (number_literal "0x33") (, ",") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_0004ca40(puVar1[4],param_2);" (call_expression "FUN_0004ca40(puVar1[4],param_2)" (identifier "FUN_0004ca40") (argument_list "(puVar1[4],param_2)" (( "(") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))))) (} "}"))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" (identifier "FUN_00066390") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *var_3,void *dlg,void *data,int var_2)

{
  type_2 *puVar1;
  int var_19;
  char *pcVar2;
  char *var_7;
  char *ptr;
  int var_1;
  char *key;
  int var_23;
  type_2 uStack_14;
  
  uStack_14 = 0x20b69;
  puVar1 = *(type_2 **)((int)var_3 + 0x14);
  var_23 = *(int *)(var_1 + 0x14);
  if (var_2 == 0) {
    if ((type_1 *)puVar1[4] == var_3) {
      var_4(var_3,dlg);
      var_5(var_3,dlg);
      var_7 = var_6((type_3 *)data,0x33,(char *)0x0,&key);
      while (var_7 != (char *)0x0) {
        var_7 = var_8("%s\t%s",key,var_7);
        var_9(var_3,dlg,var_7);
        var_10(var_7);
        var_7 = var_6((type_3 *)data,0x33,key,&key);
      }
      var_11(var_3,dlg);
    }
  }
  else if (var_2 == 1) {
    if ((type_1 *)puVar1[2] == var_3) {
      var_7 = var_12((type_1 *)*puVar1,dlg);
      if (*var_7 == '\0') {
        var_10(var_7);
        var_13(dlg);
      }
      else {
        pcVar2 = var_12((type_1 *)puVar1[1],dlg);
        if (*pcVar2 == '\0') {
          var_10(var_7);
          var_10(pcVar2);
          var_13(dlg);
        }
        else {
          var_14((type_3 *)data,0x33,var_7,pcVar2);
          ptr = var_15(var_7,&DAT_0007f67c,pcVar2,0);
          var_16((type_1 *)*puVar1,dlg,"");
          var_16((type_1 *)puVar1[1],dlg,"");
          var_10(ptr);
          var_10(var_7);
          var_10(pcVar2);
          var_17((type_1 *)puVar1[4],dlg);
        }
      }
    }
    else if ((type_1 *)puVar1[3] == var_3) {
      var_19 = var_18((type_1 *)puVar1[4],dlg);
      if (var_19 < 0) {
        var_13(dlg);
      }
      else {
        var_7 = var_20((type_3 *)data,0x33,var_19);
        if (var_7 != (char *)0x0) {
          pcVar2 = var_21((type_3 *)data,0x33,var_7);
          var_16((type_1 *)*puVar1,dlg,var_7);
          var_16((type_1 *)puVar1[1],dlg,pcVar2);
          var_22((type_3 *)data,0x33,var_7);
        }
      }
      var_17((type_1 *)puVar1[4],dlg);
    }
  }
  if (var_23 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_24();
}


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

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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  char *pcVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20b69;
  puVar1 = *(undefined4 **)(param_1 + 0x14);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_4 == 0) {
    if (puVar1[4] == param_1) {
      FUN_0004c810(param_1,param_2);
      FUN_0004b8b0(param_1,param_2);
      iVar2 = FUN_0001ee00(param_3,0x33,0,&local_24);
      while (iVar2 != 0) {
        uVar3 = FUN_0002d860(&DAT_000799a4,local_24,iVar2);
        FUN_0004bc20(param_1,param_2,uVar3);
        FUN_0002da80(uVar3);
        iVar2 = FUN_0001ee00(param_3,0x33,local_24,&local_24);
      }
      FUN_0004c820(param_1,param_2);
    }
  }
  else if (param_4 == 1) {
    if (puVar1[2] == param_1) {
      pcVar4 = (char *)FUN_0004b7d0(*puVar1,param_2);
      if (*pcVar4 == '\0') {
        FUN_0002da80(pcVar4);
        FUN_0004c970(param_2);
      }
      else {
        pcVar5 = (char *)FUN_0004b7d0(puVar1[1],param_2);
        if (*pcVar5 == '\0') {
          FUN_0002da80(pcVar4);
          FUN_0002da80(pcVar5);
          FUN_0004c970(param_2);
        }
        else {
          FUN_0001f380(param_3,0x33,pcVar4,pcVar5);
          uVar3 = FUN_0002d350(pcVar4,&DAT_0007f67c,pcVar5,0);
          FUN_0004b6f0(*puVar1,param_2,&DAT_00084b34);
          FUN_0004b6f0(puVar1[1],param_2,&DAT_00084b34);
          FUN_0002da80(uVar3);
          FUN_0002da80(pcVar4);
          FUN_0002da80(pcVar5);
          FUN_0004ca40(puVar1[4],param_2);
        }
      }
    }
    else if (puVar1[3] == param_1) {
      iVar2 = FUN_0004bd70(puVar1[4],param_2);
      if (iVar2 < 0) {
        FUN_0004c970(param_2);
      }
      else {
        iVar2 = FUN_0001eef0(param_3,0x33,iVar2);
        if (iVar2 != 0) {
          uVar3 = FUN_0001edb0(param_3,0x33,iVar2);
          FUN_0004b6f0(*puVar1,param_2,iVar2);
          FUN_0004b6f0(puVar1[1],param_2,uVar3);
          FUN_0001f440(param_3,0x33,iVar2);
        }
      }
      FUN_0004ca40(puVar1[4],param_2);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00066390();
}

