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

void __regparm3 signal_setup(_Bool init)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  sigset_t *psVar4;
  int iVar5;
  int *piVar6;
  __sigset_t *p_Var7;
  int in_GS_OFFSET;
  byte bVar8;
  sigaction act;
  
  bVar8 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (init) {
    sigemptyset((sigset_t *)&caught_signals);
    piVar3 = (int *)(sig_10116 + 4);
    iVar5 = 0x14;
    piVar6 = piVar3;
    while( true ) {
      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);
      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {
        sigaddset((sigset_t *)&caught_signals,iVar5);
      }
      if (piVar6 == (int *)&DAT_0002c7f0) break;
      iVar5 = *piVar6;
      piVar6 = piVar6 + 1;
    }
    psVar4 = &caught_signals;
    p_Var7 = &act.sa_mask;
    for (iVar5 = 0x20; iVar5 != 0; iVar5 = iVar5 + -1) {
      p_Var7->__val[0] = psVar4->__val[0];
      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);
      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);
    }
    iVar5 = 0x14;
    act.sa_flags = 0x10000000;
    while( true ) {
      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);
      if (iVar2 != 0) {
        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;
        if (iVar5 == 0x14) {
          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;
        }
        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);
      }
      if (piVar3 == (int *)&DAT_0002c7f0) break;
      iVar5 = *piVar3;
      piVar3 = piVar3 + 1;
    }
  }
  else {
    piVar3 = (int *)(sig_10116 + 4);
    iVar5 = 0x14;
    while( true ) {
      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);
      if (iVar2 != 0) {
        signal(iVar5,(__sighandler_t)0x0);
      }
      if (piVar3 == (int *)&DAT_0002c7f0) break;
      iVar5 = *piVar3;
      piVar3 = piVar3 + 1;
    }
  }
  if (iVar1 == *(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 __regparm3 FUN_000159f0(char param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int iVar4;
  int *piVar5;
  undefined4 *puVar6;
  int in_GS_OFFSET;
  byte bVar7;
  _union_1051 local_ac;
  undefined4 local_a8 [32];
  undefined4 local_28;
  int local_20;
  undefined4 uStack_14;
  
  bVar7 = 0;
  uStack_14 = 0x159f9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == '\0') {
    piVar2 = &DAT_0002c7c4;
    iVar4 = 0x14;
    while( true ) {
      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);
      if (iVar1 != 0) {
        signal(iVar4,(__sighandler_t)0x0);
      }
      if (piVar2 == (int *)&DAT_0002c7f0) break;
      iVar4 = *piVar2;
      piVar2 = piVar2 + 1;
    }
  }
  else {
    sigemptyset((sigset_t *)&DAT_0003c220);
    piVar2 = &DAT_0002c7c4;
    iVar4 = 0x14;
    piVar5 = piVar2;
    while( true ) {
      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);
      if (local_ac.sa_handler != (__sighandler_t)0x1) {
        sigaddset((sigset_t *)&DAT_0003c220,iVar4);
      }
      if (piVar5 == (int *)&DAT_0002c7f0) break;
      iVar4 = *piVar5;
      piVar5 = piVar5 + 1;
    }
    puVar3 = &DAT_0003c220;
    puVar6 = local_a8;
    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {
      *puVar6 = *puVar3;
      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;
      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;
    }
    iVar4 = 0x14;
    local_28 = 0x10000000;
    while( true ) {
      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);
      if (iVar1 != 0) {
        local_ac = (_union_1051)FUN_00014400;
        if (iVar4 == 0x14) {
          local_ac = (_union_1051)FUN_00015410;
        }
        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);
      }
      if (piVar2 == (int *)&DAT_0002c7f0) break;
      iVar4 = *piVar2;
      piVar2 = piVar2 + 1;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b190();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x25607
SUB ESP,0xbc
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xac],ECX
XOR ECX,ECX
TEST AL,AL
JNZ 0x00015a90
LEA EAX,[EBX + 0x1220]
LEA EBP,[EBX + 0xffff17c4]
MOV EDI,0x14
LEA ESI,[EBX + 0xffff17f0]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00015a4a
CMP EBP,ESI
JZ 0x00015a70
MOV EDI,dword ptr [EBP]
ADD EBP,0x4
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESP + 0x18]
CALL 0x00012200
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00015a40
SUB ESP,0x8
PUSH 0x0
PUSH EDI
CALL 0x000121b0
ADD ESP,0x10
CMP EBP,ESI
JNZ 0x00015a44
MOV EAX,dword ptr [ESP + 0xac]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00015b84
ADD ESP,0xbc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0x1220]
MOV EDI,0x14
MOV dword ptr [ESP + 0x18],EAX
LEA ESI,[EBX + 0xffff17f0]
PUSH EAX
CALL 0x00012550
LEA EAX,[EBX + 0xffff17c4]
MOV dword ptr [ESP + 0x2c],EAX
ADD ESP,0x10
MOV EBP,EAX
LEA EAX,[ESP + 0x20]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,EBP
MOV EBP,EDI
MOV EDI,EAX
JMP 0x00015ad5
MOV EBP,dword ptr [EDI]
ADD EDI,0x4
SUB ESP,0x4
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
PUSH EBP
CALL 0x00012660
ADD ESP,0x10
CMP dword ptr [ESP + 0x20],0x1
JZ 0x00015afe
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [ESP + 0x18]
CALL 0x00012460
ADD ESP,0x10
CMP EDI,ESI
JNZ 0x00015ad0
MOV EBP,EDI
MOV ECX,0x20
LEA EDI,[ESP + 0x24]
MOV ESI,dword ptr [ESP + 0xc]
MOVSD.REP ES:EDI,ESI
MOV ESI,0x14
LEA EDI,[EBX + 0xfffd9400]
LEA EAX,[EBX + 0xfffda410]
MOV dword ptr [ESP + 0x18],EDI
MOV EDI,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0xa4],0x10000000
MOV dword ptr [ESP + 0x14],EAX
JMP 0x00015b45
MOV ESI,dword ptr [EDI]
ADD EDI,0x4
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x18]
CALL 0x00012200
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00015b7b
MOV EAX,dword ptr [ESP + 0x18]
CMP ESI,0x14
CMOVZ EAX,dword ptr [ESP + 0x14]
SUB ESP,0x4
MOV dword ptr [ESP + 0x24],EAX
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH ESI
CALL 0x00012660
ADD ESP,0x10
CMP EDI,EBP
JNZ 0x00015b40
JMP 0x00015a70
CALL 0x0002b190
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000159f0(char param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}\n\n" comment (function_definition "void __regparm3 FUN_000159f0(char param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000159f0(char param_1)" identifier (parameter_list "(char param_1)" ( (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "_union_1051 local_ac;" type_identifier identifier ;) (declaration "undefined4 local_a8 [32];" type_identifier (array_declarator "local_a8 [32]" identifier [ number_literal ]) ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x159f9;" (assignment_expression "uStack_14 = 0x159f9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" if (parenthesized_expression "(param_1 == '\0')" ( (binary_expression "param_1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" { (expression_statement "piVar2 = &DAT_0002c7c4;" (assignment_expression "piVar2 = &DAT_0002c7c4" identifier = (pointer_expression "&DAT_0002c7c4" & identifier)) ;) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" { (expression_statement "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);" (assignment_expression "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier = (call_expression "sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        signal(iVar4,(__sighandler_t)0x0);\n      }" { (expression_statement "signal(iVar4,(__sighandler_t)0x0);" (call_expression "signal(iVar4,(__sighandler_t)0x0)" identifier (argument_list "(iVar4,(__sighandler_t)0x0)" ( identifier , (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal) ))) ;) })) (if_statement "if (piVar2 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar2 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar2 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" else (compound_statement "{\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" { (expression_statement "sigemptyset((sigset_t *)&DAT_0003c220);" (call_expression "sigemptyset((sigset_t *)&DAT_0003c220)" identifier (argument_list "((sigset_t *)&DAT_0003c220)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) ))) ;) (expression_statement "piVar2 = &DAT_0002c7c4;" (assignment_expression "piVar2 = &DAT_0002c7c4" identifier = (pointer_expression "&DAT_0002c7c4" & identifier)) ;) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" identifier = number_literal) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (while_statement "while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }" { (expression_statement "sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);" (call_expression "sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac)" identifier (argument_list "(iVar4,(sigaction *)0x0,(sigaction *)&local_ac)" ( identifier , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(sigaction *)&local_ac" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_ac" & identifier)) ))) ;) (if_statement "if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }" if (parenthesized_expression "(local_ac.sa_handler != (__sighandler_t)0x1)" ( (binary_expression "local_ac.sa_handler != (__sighandler_t)0x1" (field_expression "local_ac.sa_handler" identifier . field_identifier) != (cast_expression "(__sighandler_t)0x1" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) )) (compound_statement "{\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }" { (expression_statement "sigaddset((sigset_t *)&DAT_0003c220,iVar4);" (call_expression "sigaddset((sigset_t *)&DAT_0003c220,iVar4)" identifier (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , identifier ))) ;) })) (if_statement "if (piVar5 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar5 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar5 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar3 = &DAT_0003c220;" (assignment_expression "puVar3 = &DAT_0003c220" identifier = (pointer_expression "&DAT_0003c220" & identifier)) ;) (expression_statement "puVar6 = local_a8;" (assignment_expression "puVar6 = local_a8" identifier = identifier) ;) (for_statement "for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" for ( (assignment_expression "iVar4 = 0x20" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" { (expression_statement "*puVar6 = *puVar3;" (assignment_expression "*puVar6 = *puVar3" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar7 * -2 + 1" (binary_expression "puVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" identifier = number_literal) ;) (expression_statement "local_28 = 0x10000000;" (assignment_expression "local_28 = 0x10000000" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" { (expression_statement "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);" (assignment_expression "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier = (call_expression "sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }" { (expression_statement "local_ac = (_union_1051)FUN_00014400;" (assignment_expression "local_ac = (_union_1051)FUN_00014400" identifier = (cast_expression "(_union_1051)FUN_00014400" ( (type_descriptor "_union_1051" type_identifier) ) identifier)) ;) (if_statement "if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }" if (parenthesized_expression "(iVar4 == 0x14)" ( (binary_expression "iVar4 == 0x14" identifier == number_literal) )) (compound_statement "{\n          local_ac = (_union_1051)FUN_00015410;\n        }" { (expression_statement "local_ac = (_union_1051)FUN_00015410;" (assignment_expression "local_ac = (_union_1051)FUN_00015410" identifier = (cast_expression "(_union_1051)FUN_00015410" ( (type_descriptor "_union_1051" type_identifier) ) identifier)) ;) })) (expression_statement "sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);" (call_expression "sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0)" identifier (argument_list "(iVar4,(sigaction *)&local_ac,(sigaction *)0x0)" ( identifier , (cast_expression "(sigaction *)&local_ac" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_ac" & identifier)) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (if_statement "if (piVar2 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar2 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar2 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) })) }))) (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_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 signal_setup(_Bool init)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  sigset_t *psVar4;\n  int iVar5;\n  int *piVar6;\n  __sigset_t *p_Var7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  sigaction act;\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (init) {\n    sigemptyset((sigset_t *)&caught_signals);\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    piVar6 = piVar3;\n    while( true ) {\n      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);\n      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }\n      if (piVar6 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar6;\n      piVar6 = piVar6 + 1;\n    }\n    psVar4 = &caught_signals;\n    p_Var7 = &act.sa_mask;\n    for (iVar5 = 0x20; iVar5 != 0; iVar5 = iVar5 + -1) {\n      p_Var7->__val[0] = psVar4->__val[0];\n      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);\n      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);\n    }\n    iVar5 = 0x14;\n    act.sa_flags = 0x10000000;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  else {\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void __regparm3 signal_setup(_Bool init)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  sigset_t *psVar4;\n  int iVar5;\n  int *piVar6;\n  __sigset_t *p_Var7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  sigaction act;\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (init) {\n    sigemptyset((sigset_t *)&caught_signals);\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    piVar6 = piVar3;\n    while( true ) {\n      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);\n      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }\n      if (piVar6 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar6;\n      piVar6 = piVar6 + 1;\n    }\n    psVar4 = &caught_signals;\n    p_Var7 = &act.sa_mask;\n    for (iVar5 = 0x20; iVar5 != 0; iVar5 = iVar5 + -1) {\n      p_Var7->__val[0] = psVar4->__val[0];\n      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);\n      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);\n    }\n    iVar5 = 0x14;\n    act.sa_flags = 0x10000000;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  else {\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "signal_setup(_Bool init)" identifier (parameter_list "(_Bool init)" ( (parameter_declaration "_Bool init" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  sigset_t *psVar4;\n  int iVar5;\n  int *piVar6;\n  __sigset_t *p_Var7;\n  int in_GS_OFFSET;\n  byte bVar8;\n  sigaction act;\n  \n  bVar8 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (init) {\n    sigemptyset((sigset_t *)&caught_signals);\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    piVar6 = piVar3;\n    while( true ) {\n      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);\n      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }\n      if (piVar6 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar6;\n      piVar6 = piVar6 + 1;\n    }\n    psVar4 = &caught_signals;\n    p_Var7 = &act.sa_mask;\n    for (iVar5 = 0x20; iVar5 != 0; iVar5 = iVar5 + -1) {\n      p_Var7->__val[0] = psVar4->__val[0];\n      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);\n      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);\n    }\n    iVar5 = 0x14;\n    act.sa_flags = 0x10000000;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  else {\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "sigset_t *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "__sigset_t *p_Var7;" type_identifier (pointer_declarator "*p_Var7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "sigaction act;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 (init) {\n    sigemptyset((sigset_t *)&caught_signals);\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    piVar6 = piVar3;\n    while( true ) {\n      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);\n      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }\n      if (piVar6 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar6;\n      piVar6 = piVar6 + 1;\n    }\n    psVar4 = &caught_signals;\n    p_Var7 = &act.sa_mask;\n    for (iVar5 = 0x20; iVar5 != 0; iVar5 = iVar5 + -1) {\n      p_Var7->__val[0] = psVar4->__val[0];\n      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);\n      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);\n    }\n    iVar5 = 0x14;\n    act.sa_flags = 0x10000000;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  else {\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }" if (parenthesized_expression "(init)" ( identifier )) (compound_statement "{\n    sigemptyset((sigset_t *)&caught_signals);\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    piVar6 = piVar3;\n    while( true ) {\n      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);\n      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }\n      if (piVar6 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar6;\n      piVar6 = piVar6 + 1;\n    }\n    psVar4 = &caught_signals;\n    p_Var7 = &act.sa_mask;\n    for (iVar5 = 0x20; iVar5 != 0; iVar5 = iVar5 + -1) {\n      p_Var7->__val[0] = psVar4->__val[0];\n      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);\n      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);\n    }\n    iVar5 = 0x14;\n    act.sa_flags = 0x10000000;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }" { (expression_statement "sigemptyset((sigset_t *)&caught_signals);" (call_expression "sigemptyset((sigset_t *)&caught_signals)" identifier (argument_list "((sigset_t *)&caught_signals)" ( (cast_expression "(sigset_t *)&caught_signals" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&caught_signals" & identifier)) ))) ;) (expression_statement "piVar3 = (int *)(sig_10116 + 4);" (assignment_expression "piVar3 = (int *)(sig_10116 + 4)" identifier = (cast_expression "(int *)(sig_10116 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sig_10116 + 4)" ( (binary_expression "sig_10116 + 4" identifier + number_literal) )))) ;) (expression_statement "iVar5 = 0x14;" (assignment_expression "iVar5 = 0x14" identifier = number_literal) ;) (expression_statement "piVar6 = piVar3;" (assignment_expression "piVar6 = piVar3" identifier = identifier) ;) (while_statement "while( true ) {\n      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);\n      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }\n      if (piVar6 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar6;\n      piVar6 = piVar6 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);\n      if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }\n      if (piVar6 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar6;\n      piVar6 = piVar6 + 1;\n    }" { (expression_statement "sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act);" (call_expression "sigaction(iVar5,(sigaction *)0x0,(sigaction *)&act)" identifier (argument_list "(iVar5,(sigaction *)0x0,(sigaction *)&act)" ( identifier , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(sigaction *)&act" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&act" & identifier)) ))) ;) (if_statement "if (act.__sigaction_handler.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }" if (parenthesized_expression "(act.__sigaction_handler.sa_handler != (__sighandler_t)0x1)" ( (binary_expression "act.__sigaction_handler.sa_handler != (__sighandler_t)0x1" (field_expression "act.__sigaction_handler.sa_handler" (field_expression "act.__sigaction_handler" identifier . field_identifier) . field_identifier) != (cast_expression "(__sighandler_t)0x1" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) )) (compound_statement "{\n        sigaddset((sigset_t *)&caught_signals,iVar5);\n      }" { (expression_statement "sigaddset((sigset_t *)&caught_signals,iVar5);" (call_expression "sigaddset((sigset_t *)&caught_signals,iVar5)" identifier (argument_list "((sigset_t *)&caught_signals,iVar5)" ( (cast_expression "(sigset_t *)&caught_signals" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&caught_signals" & identifier)) , identifier ))) ;) })) (if_statement "if (piVar6 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar6 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar6 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "psVar4 = &caught_signals;" (assignment_expression "psVar4 = &caught_signals" identifier = (pointer_expression "&caught_signals" & identifier)) ;) (expression_statement "p_Var7 = &act.sa_mask;" (assignment_expression "p_Var7 = &act.sa_mask" identifier = (pointer_expression "&act.sa_mask" & (field_expression "act.sa_mask" identifier . field_identifier))) ;) (for_statement "for (iVar5 = 0x20; iVar5 != 0; iVar5 = iVar5 + -1) {\n      p_Var7->__val[0] = psVar4->__val[0];\n      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);\n      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);\n    }" for ( (assignment_expression "iVar5 = 0x20" identifier = number_literal) ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ) (compound_statement "{\n      p_Var7->__val[0] = psVar4->__val[0];\n      psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);\n      p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);\n    }" { (expression_statement "p_Var7->__val[0] = psVar4->__val[0];" (assignment_expression "p_Var7->__val[0] = psVar4->__val[0]" (subscript_expression "p_Var7->__val[0]" (field_expression "p_Var7->__val" identifier -> field_identifier) [ number_literal ]) = (subscript_expression "psVar4->__val[0]" (field_expression "psVar4->__val" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4);" (assignment_expression "psVar4 = (sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4)" identifier = (cast_expression "(sigset_t *)((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4)" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar4 + ((uint)bVar8 * -2 + 1) * 4)" ( (binary_expression "(int)psVar4 + ((uint)bVar8 * -2 + 1) * 4" (cast_expression "(int)psVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "((uint)bVar8 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar8 * -2 + 1)" ( (binary_expression "(uint)bVar8 * -2 + 1" (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) + number_literal) )) * number_literal)) )))) ;) (expression_statement "p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4);" (assignment_expression "p_Var7 = (__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4)" identifier = (cast_expression "(__sigset_t *)((int)p_Var7 + (uint)bVar8 * -8 + 4)" ( (type_descriptor "__sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p_Var7 + (uint)bVar8 * -8 + 4)" ( (binary_expression "(int)p_Var7 + (uint)bVar8 * -8 + 4" (binary_expression "(int)p_Var7 + (uint)bVar8 * -8" (cast_expression "(int)p_Var7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar8 * -8" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "iVar5 = 0x14;" (assignment_expression "iVar5 = 0x14" identifier = number_literal) ;) (expression_statement "act.sa_flags = 0x10000000;" (assignment_expression "act.sa_flags = 0x10000000" (field_expression "act.sa_flags" identifier . field_identifier) = number_literal) ;) (while_statement "while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);" (assignment_expression "iVar2 = sigismember((sigset_t *)&caught_signals,iVar5)" identifier = (call_expression "sigismember((sigset_t *)&caught_signals,iVar5)" identifier (argument_list "((sigset_t *)&caught_signals,iVar5)" ( (cast_expression "(sigset_t *)&caught_signals" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&caught_signals" & identifier)) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;\n        if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }\n        sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);\n      }" { (expression_statement "act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler;" (assignment_expression "act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler" (field_expression "act.__sigaction_handler" identifier . field_identifier) = (cast_expression "(anon_union_4_2_5ad2d23e_for___sigaction_handler)sighandler" ( (type_descriptor "anon_union_4_2_5ad2d23e_for___sigaction_handler" type_identifier) ) identifier)) ;) (if_statement "if (iVar5 == 0x14) {\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }" if (parenthesized_expression "(iVar5 == 0x14)" ( (binary_expression "iVar5 == 0x14" identifier == number_literal) )) (compound_statement "{\n          act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;\n        }" { (expression_statement "act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler;" (assignment_expression "act.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler" (field_expression "act.__sigaction_handler" identifier . field_identifier) = (cast_expression "(anon_union_4_2_5ad2d23e_for___sigaction_handler)stophandler" ( (type_descriptor "anon_union_4_2_5ad2d23e_for___sigaction_handler" type_identifier) ) identifier)) ;) })) (expression_statement "sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0);" (call_expression "sigaction(iVar5,(sigaction *)&act,(sigaction *)0x0)" identifier (argument_list "(iVar5,(sigaction *)&act,(sigaction *)0x0)" ( identifier , (cast_expression "(sigaction *)&act" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&act" & identifier)) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (if_statement "if (piVar3 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar3 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar3 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }" else (compound_statement "{\n    piVar3 = (int *)(sig_10116 + 4);\n    iVar5 = 0x14;\n    while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }\n  }" { (expression_statement "piVar3 = (int *)(sig_10116 + 4);" (assignment_expression "piVar3 = (int *)(sig_10116 + 4)" identifier = (cast_expression "(int *)(sig_10116 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sig_10116 + 4)" ( (binary_expression "sig_10116 + 4" identifier + number_literal) )))) ;) (expression_statement "iVar5 = 0x14;" (assignment_expression "iVar5 = 0x14" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);\n      if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }\n      if (piVar3 == (int *)&DAT_0002c7f0) break;\n      iVar5 = *piVar3;\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "iVar2 = sigismember((sigset_t *)&caught_signals,iVar5);" (assignment_expression "iVar2 = sigismember((sigset_t *)&caught_signals,iVar5)" identifier = (call_expression "sigismember((sigset_t *)&caught_signals,iVar5)" identifier (argument_list "((sigset_t *)&caught_signals,iVar5)" ( (cast_expression "(sigset_t *)&caught_signals" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&caught_signals" & identifier)) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        signal(iVar5,(__sighandler_t)0x0);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        signal(iVar5,(__sighandler_t)0x0);\n      }" { (expression_statement "signal(iVar5,(__sighandler_t)0x0);" (call_expression "signal(iVar5,(__sighandler_t)0x0)" identifier (argument_list "(iVar5,(__sighandler_t)0x0)" ( identifier , (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal) ))) ;) })) (if_statement "if (piVar3 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar3 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar3 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = *piVar3;" (assignment_expression "iVar5 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) })) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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 __regparm3 FUN_000159f0(char param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}\n\n" (function_definition "void __regparm3 FUN_000159f0(char param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000159f0(char param_1)" identifier (parameter_list "(char param_1)" ( (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "_union_1051 local_ac;" type_identifier identifier ;) (declaration "undefined4 local_a8 [32];" type_identifier (array_declarator "local_a8 [32]" identifier [ number_literal ]) ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x159f9;" (assignment_expression "uStack_14 = 0x159f9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" if (parenthesized_expression "(param_1 == '\0')" ( (binary_expression "param_1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" { (expression_statement "piVar2 = &DAT_0002c7c4;" (assignment_expression "piVar2 = &DAT_0002c7c4" identifier = (pointer_expression "&DAT_0002c7c4" & identifier)) ;) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" { (expression_statement "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);" (assignment_expression "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier = (call_expression "sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        signal(iVar4,(__sighandler_t)0x0);\n      }" { (expression_statement "signal(iVar4,(__sighandler_t)0x0);" (call_expression "signal(iVar4,(__sighandler_t)0x0)" identifier (argument_list "(iVar4,(__sighandler_t)0x0)" ( identifier , (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal) ))) ;) })) (if_statement "if (piVar2 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar2 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar2 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" else (compound_statement "{\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" { (expression_statement "sigemptyset((sigset_t *)&DAT_0003c220);" (call_expression "sigemptyset((sigset_t *)&DAT_0003c220)" identifier (argument_list "((sigset_t *)&DAT_0003c220)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) ))) ;) (expression_statement "piVar2 = &DAT_0002c7c4;" (assignment_expression "piVar2 = &DAT_0002c7c4" identifier = (pointer_expression "&DAT_0002c7c4" & identifier)) ;) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" identifier = number_literal) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (while_statement "while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }" { (expression_statement "sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);" (call_expression "sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac)" identifier (argument_list "(iVar4,(sigaction *)0x0,(sigaction *)&local_ac)" ( identifier , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(sigaction *)&local_ac" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_ac" & identifier)) ))) ;) (if_statement "if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }" if (parenthesized_expression "(local_ac.sa_handler != (__sighandler_t)0x1)" ( (binary_expression "local_ac.sa_handler != (__sighandler_t)0x1" (field_expression "local_ac.sa_handler" identifier . field_identifier) != (cast_expression "(__sighandler_t)0x1" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) )) (compound_statement "{\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }" { (expression_statement "sigaddset((sigset_t *)&DAT_0003c220,iVar4);" (call_expression "sigaddset((sigset_t *)&DAT_0003c220,iVar4)" identifier (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , identifier ))) ;) })) (if_statement "if (piVar5 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar5 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar5 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar3 = &DAT_0003c220;" (assignment_expression "puVar3 = &DAT_0003c220" identifier = (pointer_expression "&DAT_0003c220" & identifier)) ;) (expression_statement "puVar6 = local_a8;" (assignment_expression "puVar6 = local_a8" identifier = identifier) ;) (for_statement "for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" for ( (assignment_expression "iVar4 = 0x20" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" { (expression_statement "*puVar6 = *puVar3;" (assignment_expression "*puVar6 = *puVar3" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar7 * -2 + 1" (binary_expression "puVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" identifier = number_literal) ;) (expression_statement "local_28 = 0x10000000;" (assignment_expression "local_28 = 0x10000000" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" { (expression_statement "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);" (assignment_expression "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier = (call_expression "sigismember((sigset_t *)&DAT_0003c220,iVar4)" identifier (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" ( (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }" { (expression_statement "local_ac = (_union_1051)FUN_00014400;" (assignment_expression "local_ac = (_union_1051)FUN_00014400" identifier = (cast_expression "(_union_1051)FUN_00014400" ( (type_descriptor "_union_1051" type_identifier) ) identifier)) ;) (if_statement "if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }" if (parenthesized_expression "(iVar4 == 0x14)" ( (binary_expression "iVar4 == 0x14" identifier == number_literal) )) (compound_statement "{\n          local_ac = (_union_1051)FUN_00015410;\n        }" { (expression_statement "local_ac = (_union_1051)FUN_00015410;" (assignment_expression "local_ac = (_union_1051)FUN_00015410" identifier = (cast_expression "(_union_1051)FUN_00015410" ( (type_descriptor "_union_1051" type_identifier) ) identifier)) ;) })) (expression_statement "sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);" (call_expression "sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0)" identifier (argument_list "(iVar4,(sigaction *)&local_ac,(sigaction *)0x0)" ( identifier , (cast_expression "(sigaction *)&local_ac" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_ac" & identifier)) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (if_statement "if (piVar2 == (int *)&DAT_0002c7f0) break;" if (parenthesized_expression "(piVar2 == (int *)&DAT_0002c7f0)" ( (binary_expression "piVar2 == (int *)&DAT_0002c7f0" identifier == (cast_expression "(int *)&DAT_0002c7f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0002c7f0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) })) }))) (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_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) != (cast_expression ( (type_descriptor TYPE) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }))) (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 __regparm3 FUN_000159f0(char param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000159f0(char param_1)" (identifier "FUN_000159f0") (parameter_list "(char param_1)" (( "(") (parameter_declaration "char param_1" (primitive_type "char") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  _union_1051 local_ac;\n  undefined4 local_a8 [32];\n  undefined4 local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0x159f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "_union_1051 local_ac;" (type_identifier "_union_1051") (identifier "local_ac") (; ";")) (declaration "undefined4 local_a8 [32];" (type_identifier "undefined4") (array_declarator "local_a8 [32]" (identifier "local_a8") ([ "[") (number_literal "32") (] "]")) (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x159f9;" (assignment_expression "uStack_14 = 0x159f9" (identifier "uStack_14") (= "=") (number_literal "0x159f9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == '\0') {\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }\n  else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == '\0')" (( "(") (binary_expression "param_1 == '\0'" (identifier "param_1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" ({ "{") (expression_statement "piVar2 = &DAT_0002c7c4;" (assignment_expression "piVar2 = &DAT_0002c7c4" (identifier "piVar2") (= "=") (pointer_expression "&DAT_0002c7c4" (& "&") (identifier "DAT_0002c7c4"))) (; ";")) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" (identifier "iVar4") (= "=") (number_literal "0x14")) (; ";")) (while_statement "while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" ({ "{") (expression_statement "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);" (assignment_expression "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4)" (identifier "iVar1") (= "=") (call_expression "sigismember((sigset_t *)&DAT_0003c220,iVar4)" (identifier "sigismember") (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" (( "(") (cast_expression "(sigset_t *)&DAT_0003c220" (( "(") (type_descriptor "sigset_t *" (type_identifier "sigset_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0003c220" (& "&") (identifier "DAT_0003c220"))) (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        signal(iVar4,(__sighandler_t)0x0);\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        signal(iVar4,(__sighandler_t)0x0);\n      }" ({ "{") (expression_statement "signal(iVar4,(__sighandler_t)0x0);" (call_expression "signal(iVar4,(__sighandler_t)0x0)" (identifier "signal") (argument_list "(iVar4,(__sighandler_t)0x0)" (( "(") (identifier "iVar4") (, ",") (cast_expression "(__sighandler_t)0x0" (( "(") (type_descriptor "__sighandler_t" (type_identifier "__sighandler_t")) () ")") (number_literal "0x0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar2 == (int *)&DAT_0002c7f0) break;" (if "if") (parenthesized_expression "(piVar2 == (int *)&DAT_0002c7f0)" (( "(") (binary_expression "piVar2 == (int *)&DAT_0002c7f0" (identifier "piVar2") (== "==") (cast_expression "(int *)&DAT_0002c7f0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0002c7f0" (& "&") (identifier "DAT_0002c7f0")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" (else "else") (compound_statement "{\n    sigemptyset((sigset_t *)&DAT_0003c220);\n    piVar2 = &DAT_0002c7c4;\n    iVar4 = 0x14;\n    piVar5 = piVar2;\n    while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }\n    puVar3 = &DAT_0003c220;\n    puVar6 = local_a8;\n    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    iVar4 = 0x14;\n    local_28 = 0x10000000;\n    while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }\n  }" ({ "{") (expression_statement "sigemptyset((sigset_t *)&DAT_0003c220);" (call_expression "sigemptyset((sigset_t *)&DAT_0003c220)" (identifier "sigemptyset") (argument_list "((sigset_t *)&DAT_0003c220)" (( "(") (cast_expression "(sigset_t *)&DAT_0003c220" (( "(") (type_descriptor "sigset_t *" (type_identifier "sigset_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0003c220" (& "&") (identifier "DAT_0003c220"))) () ")"))) (; ";")) (expression_statement "piVar2 = &DAT_0002c7c4;" (assignment_expression "piVar2 = &DAT_0002c7c4" (identifier "piVar2") (= "=") (pointer_expression "&DAT_0002c7c4" (& "&") (identifier "DAT_0002c7c4"))) (; ";")) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" (identifier "iVar4") (= "=") (number_literal "0x14")) (; ";")) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (; ";")) (while_statement "while( true ) {\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);\n      if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }\n      if (piVar5 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar5;\n      piVar5 = piVar5 + 1;\n    }" ({ "{") (expression_statement "sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);" (call_expression "sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac)" (identifier "sigaction") (argument_list "(iVar4,(sigaction *)0x0,(sigaction *)&local_ac)" (( "(") (identifier "iVar4") (, ",") (cast_expression "(sigaction *)0x0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (cast_expression "(sigaction *)&local_ac" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_ac" (& "&") (identifier "local_ac"))) () ")"))) (; ";")) (if_statement "if (local_ac.sa_handler != (__sighandler_t)0x1) {\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }" (if "if") (parenthesized_expression "(local_ac.sa_handler != (__sighandler_t)0x1)" (( "(") (binary_expression "local_ac.sa_handler != (__sighandler_t)0x1" (field_expression "local_ac.sa_handler" (identifier "local_ac") (. ".") (field_identifier "sa_handler")) (!= "!=") (cast_expression "(__sighandler_t)0x1" (( "(") (type_descriptor "__sighandler_t" (type_identifier "__sighandler_t")) () ")") (number_literal "0x1"))) () ")")) (compound_statement "{\n        sigaddset((sigset_t *)&DAT_0003c220,iVar4);\n      }" ({ "{") (expression_statement "sigaddset((sigset_t *)&DAT_0003c220,iVar4);" (call_expression "sigaddset((sigset_t *)&DAT_0003c220,iVar4)" (identifier "sigaddset") (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" (( "(") (cast_expression "(sigset_t *)&DAT_0003c220" (( "(") (type_descriptor "sigset_t *" (type_identifier "sigset_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0003c220" (& "&") (identifier "DAT_0003c220"))) (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar5 == (int *)&DAT_0002c7f0) break;" (if "if") (parenthesized_expression "(piVar5 == (int *)&DAT_0002c7f0)" (( "(") (binary_expression "piVar5 == (int *)&DAT_0002c7f0" (identifier "piVar5") (== "==") (cast_expression "(int *)&DAT_0002c7f0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0002c7f0" (& "&") (identifier "DAT_0002c7f0")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar3 = &DAT_0003c220;" (assignment_expression "puVar3 = &DAT_0003c220" (identifier "puVar3") (= "=") (pointer_expression "&DAT_0003c220" (& "&") (identifier "DAT_0003c220"))) (; ";")) (expression_statement "puVar6 = local_a8;" (assignment_expression "puVar6 = local_a8" (identifier "puVar6") (= "=") (identifier "local_a8")) (; ";")) (for_statement "for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "iVar4 = 0x20" (identifier "iVar4") (= "=") (number_literal "0x20")) (; ";") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      *puVar6 = *puVar3;\n      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar6 = *puVar3;" (assignment_expression "*puVar6 = *puVar3" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "puVar3 = puVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar7 * -2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + (uint)bVar7 * -2 + 1" (binary_expression "puVar3 + (uint)bVar7 * -2" (identifier "puVar3") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" (identifier "puVar6") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar4 = 0x14;" (assignment_expression "iVar4 = 0x14" (identifier "iVar4") (= "=") (number_literal "0x14")) (; ";")) (expression_statement "local_28 = 0x10000000;" (assignment_expression "local_28 = 0x10000000" (identifier "local_28") (= "=") (number_literal "0x10000000")) (; ";")) (while_statement "while( true ) {\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);\n      if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }\n      if (piVar2 == (int *)&DAT_0002c7f0) break;\n      iVar4 = *piVar2;\n      piVar2 = piVar2 + 1;\n    }" ({ "{") (expression_statement "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);" (assignment_expression "iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4)" (identifier "iVar1") (= "=") (call_expression "sigismember((sigset_t *)&DAT_0003c220,iVar4)" (identifier "sigismember") (argument_list "((sigset_t *)&DAT_0003c220,iVar4)" (( "(") (cast_expression "(sigset_t *)&DAT_0003c220" (( "(") (type_descriptor "sigset_t *" (type_identifier "sigset_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0003c220" (& "&") (identifier "DAT_0003c220"))) (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        local_ac = (_union_1051)FUN_00014400;\n        if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }\n        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);\n      }" ({ "{") (expression_statement "local_ac = (_union_1051)FUN_00014400;" (assignment_expression "local_ac = (_union_1051)FUN_00014400" (identifier "local_ac") (= "=") (cast_expression "(_union_1051)FUN_00014400" (( "(") (type_descriptor "_union_1051" (type_identifier "_union_1051")) () ")") (identifier "FUN_00014400"))) (; ";")) (if_statement "if (iVar4 == 0x14) {\n          local_ac = (_union_1051)FUN_00015410;\n        }" (if "if") (parenthesized_expression "(iVar4 == 0x14)" (( "(") (binary_expression "iVar4 == 0x14" (identifier "iVar4") (== "==") (number_literal "0x14")) () ")")) (compound_statement "{\n          local_ac = (_union_1051)FUN_00015410;\n        }" ({ "{") (expression_statement "local_ac = (_union_1051)FUN_00015410;" (assignment_expression "local_ac = (_union_1051)FUN_00015410" (identifier "local_ac") (= "=") (cast_expression "(_union_1051)FUN_00015410" (( "(") (type_descriptor "_union_1051" (type_identifier "_union_1051")) () ")") (identifier "FUN_00015410"))) (; ";")) (} "}"))) (expression_statement "sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);" (call_expression "sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0)" (identifier "sigaction") (argument_list "(iVar4,(sigaction *)&local_ac,(sigaction *)0x0)" (( "(") (identifier "iVar4") (, ",") (cast_expression "(sigaction *)&local_ac" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_ac" (& "&") (identifier "local_ac"))) (, ",") (cast_expression "(sigaction *)0x0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar2 == (int *)&DAT_0002c7f0) break;" (if "if") (parenthesized_expression "(piVar2 == (int *)&DAT_0002c7f0)" (( "(") (binary_expression "piVar2 == (int *)&DAT_0002c7f0" (identifier "piVar2") (== "==") (cast_expression "(int *)&DAT_0002c7f0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0002c7f0" (& "&") (identifier "DAT_0002c7f0")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")))) (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_0002b190();" (call_expression "FUN_0002b190()" (identifier "FUN_0002b190") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 init)

{
  int var_11;
  int var_8;
  int *var_9;
  type_2 *psVar4;
  int var_6;
  int *var_5;
  type_3 *p_Var7;
  int var_1;
  type_4 bVar8;
  type_5 act;
  
  bVar8 = 0;
  var_11 = *(int *)(var_1 + 0x14);
  if (init) {
    var_2((type_2 *)&caught_signals);
    var_9 = (int *)(var_3 + 4);
    var_6 = 0x14;
    var_5 = var_9;
    while( true ) {
      type_5(var_6,(type_5 *)0x0,(type_5 *)&act);
      if (act.__sigaction_handler.sa_handler != (type_6)0x1) {
        var_4((type_2 *)&caught_signals,var_6);
      }
      if (var_5 == (int *)&DAT_0002c7f0) break;
      var_6 = *var_5;
      var_5 = var_5 + 1;
    }
    psVar4 = &caught_signals;
    p_Var7 = &act.sa_mask;
    for (var_6 = 0x20; var_6 != 0; var_6 = var_6 + -1) {
      p_Var7->__val[0] = psVar4->__val[0];
      psVar4 = (type_2 *)((int)psVar4 + ((type_7)bVar8 * -2 + 1) * 4);
      p_Var7 = (type_3 *)((int)p_Var7 + (type_7)bVar8 * -8 + 4);
    }
    var_6 = 0x14;
    act.sa_flags = 0x10000000;
    while( true ) {
      var_8 = var_7((type_2 *)&caught_signals,var_6);
      if (var_8 != 0) {
        act.__sigaction_handler = (type_8)sighandler;
        if (var_6 == 0x14) {
          act.__sigaction_handler = (type_8)stophandler;
        }
        type_5(var_6,(type_5 *)&act,(type_5 *)0x0);
      }
      if (var_9 == (int *)&DAT_0002c7f0) break;
      var_6 = *var_9;
      var_9 = var_9 + 1;
    }
  }
  else {
    var_9 = (int *)(var_3 + 4);
    var_6 = 0x14;
    while( true ) {
      var_8 = var_7((type_2 *)&caught_signals,var_6);
      if (var_8 != 0) {
        var_10(var_6,(type_6)0x0);
      }
      if (var_9 == (int *)&DAT_0002c7f0) break;
      var_6 = *var_9;
      var_9 = var_9 + 1;
    }
  }
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (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) (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (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 __regparm3 MASKED(char param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int iVar4;
  int *piVar5;
  undefined4 *puVar6;
  int in_GS_OFFSET;
  byte bVar7;
  _union_1051 local_ac;
  undefined4 local_a8 [32];
  undefined4 local_28;
  int local_20;
  undefined4 uStack_14;
  
  bVar7 = 0;
  uStack_14 = 0x159f9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == '\0') {
    piVar2 = &DAT_0002c7c4;
    iVar4 = 0x14;
    while( true ) {
      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);
      if (iVar1 != 0) {
        signal(iVar4,(__sighandler_t)0x0);
      }
      if (piVar2 == (int *)&DAT_0002c7f0) break;
      iVar4 = *piVar2;
      piVar2 = piVar2 + 1;
    }
  }
  else {
    sigemptyset((sigset_t *)&DAT_0003c220);
    piVar2 = &DAT_0002c7c4;
    iVar4 = 0x14;
    piVar5 = piVar2;
    while( true ) {
      sigaction(iVar4,(sigaction *)0x0,(sigaction *)&local_ac);
      if (local_ac.sa_handler != (__sighandler_t)0x1) {
        sigaddset((sigset_t *)&DAT_0003c220,iVar4);
      }
      if (piVar5 == (int *)&DAT_0002c7f0) break;
      iVar4 = *piVar5;
      piVar5 = piVar5 + 1;
    }
    puVar3 = &DAT_0003c220;
    puVar6 = local_a8;
    for (iVar4 = 0x20; iVar4 != 0; iVar4 = iVar4 + -1) {
      *puVar6 = *puVar3;
      puVar3 = puVar3 + (uint)bVar7 * -2 + 1;
      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;
    }
    iVar4 = 0x14;
    local_28 = 0x10000000;
    while( true ) {
      iVar1 = sigismember((sigset_t *)&DAT_0003c220,iVar4);
      if (iVar1 != 0) {
        local_ac = (_union_1051)FUN_00014400;
        if (iVar4 == 0x14) {
          local_ac = (_union_1051)FUN_00015410;
        }
        sigaction(iVar4,(sigaction *)&local_ac,(sigaction *)0x0);
      }
      if (piVar2 == (int *)&DAT_0002c7f0) break;
      iVar4 = *piVar2;
      piVar2 = piVar2 + 1;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b190();
}

