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

void curl_easy_cleanup(Curl_easy *data)

{
  int iVar1;
  int iVar2;
  sigpipe_ignore *psVar3;
  sigaction *psVar4;
  int in_GS_OFFSET;
  byte bVar5;
  sigaction action;
  sigpipe_ignore pipe_st;
  
  bVar5 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (data != (Curl_easy *)0x0) {
    pipe_st.no_signal = (data->set).no_signal;
    if (pipe_st.no_signal == false) {
      psVar3 = &pipe_st;
      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {
        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;
        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);
      }
      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);
      psVar3 = &pipe_st;
      psVar4 = &action;
      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {
        psVar4->__sigaction_handler =
             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;
        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);
        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);
      }
      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;
      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);
    }
    Curl_close(data);
    if (pipe_st.no_signal == false) {
      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void curl_easy_cleanup(void)

{
  int iVar1;
  sigaction *psVar2;
  _union_1051 *p_Var3;
  int in_GS_OFFSET;
  byte bVar4;
  int unaff_retaddr;
  _union_1051 local_140 [35];
  sigaction local_b4;
  char local_28;
  int local_24;
  undefined4 uStack_14;
  
  bVar4 = 0;
  uStack_14 = 0x3e7e9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  if (unaff_retaddr != 0) {
    local_28 = *(char *)(unaff_retaddr + 0x950);
    if (local_28 == '\0') {
      psVar2 = &local_b4;
      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {
        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;
        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);
      }
      sigaction(0xd,(sigaction *)0x0,&local_b4);
      psVar2 = &local_b4;
      p_Var3 = local_140;
      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {
        *p_Var3 = psVar2->__sigaction_handler;
        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);
        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;
      }
      local_140[0] = (_union_1051)0x1;
      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);
    }
    FUN_00030290(unaff_retaddr);
    if (local_28 == '\0') {
      sigaction(0xd,&local_b4,(sigaction *)0x0);
    }
  }
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00082f60();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x77ff7
SUB ESP,0x12c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x11c],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x140]
TEST EBP,EBP
JZ 0x0003e837
MOVZX EAX,byte ptr [EBP + 0x950]
MOV byte ptr [ESP + 0x118],AL
TEST AL,AL
JZ 0x0003e858
SUB ESP,0xc
PUSH EBP
CALL 0x00030290
ADD ESP,0x10
CMP byte ptr [ESP + 0x118],0x0
JZ 0x0003e8a0
MOV EAX,dword ptr [ESP + 0x11c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0003e8bc
ADD ESP,0x12c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ESI,[ESP + 0x8c]
XOR EAX,EAX
MOV ECX,0x23
SUB ESP,0x4
MOV EDI,ESI
STOSD.REP ES:EDI
PUSH ESI
PUSH 0x0
PUSH 0xd
LEA EDI,[ESP + 0x10]
CALL 0x000181c0
MOV ECX,0x23
MOVSD.REP ES:EDI,ESI
MOV dword ptr [ESP + 0x10],0x1
ADD ESP,0xc
PUSH 0x0
LEA EAX,[ESP + 0x8]
PUSH EAX
PUSH 0xd
CALL 0x000181c0
ADD ESP,0x10
JMP 0x0003e821
SUB ESP,0x4
PUSH 0x0
LEA EAX,[ESP + 0x94]
PUSH EAX
PUSH 0xd
CALL 0x000181c0
ADD ESP,0x10
JMP 0x0003e837
CALL 0x00082f60
(translation_unit "void curl_easy_cleanup(void)\n\n{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00082f60();\n}\n\n" (function_definition "void curl_easy_cleanup(void)\n\n{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00082f60();\n}" primitive_type (function_declarator "curl_easy_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00082f60();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sigaction *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "_union_1051 *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (declaration "_union_1051 local_140 [35];" type_identifier (array_declarator "local_140 [35]" identifier [ number_literal ]) ;) (declaration "sigaction local_b4;" type_identifier identifier ;) (declaration "char local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x3e7e9;" (assignment_expression "uStack_14 = 0x3e7e9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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 (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }" if (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) (compound_statement "{\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }" { (expression_statement "local_28 = *(char *)(unaff_retaddr + 0x950);" (assignment_expression "local_28 = *(char *)(unaff_retaddr + 0x950)" identifier = (pointer_expression "*(char *)(unaff_retaddr + 0x950)" * (cast_expression "(char *)(unaff_retaddr + 0x950)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x950)" ( (binary_expression "unaff_retaddr + 0x950" identifier + number_literal) ))))) ;) (if_statement "if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }" if (parenthesized_expression "(local_28 == '\0')" ( (binary_expression "local_28 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }" { (expression_statement "psVar2 = &local_b4;" (assignment_expression "psVar2 = &local_b4" identifier = (pointer_expression "&local_b4" & identifier)) ;) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }" for ( (assignment_expression "iVar1 = 0x23" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }" { (expression_statement "(psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;" (assignment_expression "(psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0" (field_expression "(psVar2->__sigaction_handler).sa_handler" (parenthesized_expression "(psVar2->__sigaction_handler)" ( (field_expression "psVar2->__sigaction_handler" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) ;) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" identifier = (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (binary_expression "(int)psVar2 + (uint)bVar4 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar4 * -8" (cast_expression "(int)psVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "sigaction(0xd,(sigaction *)0x0,&local_b4);" (call_expression "sigaction(0xd,(sigaction *)0x0,&local_b4)" identifier (argument_list "(0xd,(sigaction *)0x0,&local_b4)" ( number_literal , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (pointer_expression "&local_b4" & identifier) ))) ;) (expression_statement "psVar2 = &local_b4;" (assignment_expression "psVar2 = &local_b4" identifier = (pointer_expression "&local_b4" & identifier)) ;) (expression_statement "p_Var3 = local_140;" (assignment_expression "p_Var3 = local_140" identifier = identifier) ;) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }" for ( (assignment_expression "iVar1 = 0x23" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }" { (expression_statement "*p_Var3 = psVar2->__sigaction_handler;" (assignment_expression "*p_Var3 = psVar2->__sigaction_handler" (pointer_expression "*p_Var3" * identifier) = (field_expression "psVar2->__sigaction_handler" identifier -> field_identifier)) ;) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" identifier = (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (binary_expression "(int)psVar2 + (uint)bVar4 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar4 * -8" (cast_expression "(int)psVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;" (assignment_expression "p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "p_Var3 + (uint)bVar4 * -2 + 1" (binary_expression "p_Var3 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_140[0] = (_union_1051)0x1;" (assignment_expression "local_140[0] = (_union_1051)0x1" (subscript_expression "local_140[0]" identifier [ number_literal ]) = (cast_expression "(_union_1051)0x1" ( (type_descriptor "_union_1051" type_identifier) ) number_literal)) ;) (expression_statement "sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0)" identifier (argument_list "(0xd,(sigaction *)local_140,(sigaction *)0x0)" ( number_literal , (cast_expression "(sigaction *)local_140" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "FUN_00030290(unaff_retaddr);" (call_expression "FUN_00030290(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier ))) ;) (if_statement "if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }" if (parenthesized_expression "(local_28 == '\0')" ( (binary_expression "local_28 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }" { (expression_statement "sigaction(0xd,&local_b4,(sigaction *)0x0);" (call_expression "sigaction(0xd,&local_b4,(sigaction *)0x0)" identifier (argument_list "(0xd,&local_b4,(sigaction *)0x0)" ( number_literal , (pointer_expression "&local_b4" & identifier) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) })) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(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_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid curl_easy_cleanup(Curl_easy *data)\n\n{\n  int iVar1;\n  int iVar2;\n  sigpipe_ignore *psVar3;\n  sigaction *psVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  sigaction action;\n  sigpipe_ignore pipe_st;\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (data != (Curl_easy *)0x0) {\n    pipe_st.no_signal = (data->set).no_signal;\n    if (pipe_st.no_signal == false) {\n      psVar3 = &pipe_st;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }\n      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);\n      psVar3 = &pipe_st;\n      psVar4 = &action;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }\n      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;\n      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);\n    }\n    Curl_close(data);\n    if (pipe_st.no_signal == false) {\n      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);\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 comment comment (function_definition "void curl_easy_cleanup(Curl_easy *data)\n\n{\n  int iVar1;\n  int iVar2;\n  sigpipe_ignore *psVar3;\n  sigaction *psVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  sigaction action;\n  sigpipe_ignore pipe_st;\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (data != (Curl_easy *)0x0) {\n    pipe_st.no_signal = (data->set).no_signal;\n    if (pipe_st.no_signal == false) {\n      psVar3 = &pipe_st;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }\n      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);\n      psVar3 = &pipe_st;\n      psVar4 = &action;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }\n      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;\n      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);\n    }\n    Curl_close(data);\n    if (pipe_st.no_signal == false) {\n      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);\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 (function_declarator "curl_easy_cleanup(Curl_easy *data)" identifier (parameter_list "(Curl_easy *data)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  sigpipe_ignore *psVar3;\n  sigaction *psVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  sigaction action;\n  sigpipe_ignore pipe_st;\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (data != (Curl_easy *)0x0) {\n    pipe_st.no_signal = (data->set).no_signal;\n    if (pipe_st.no_signal == false) {\n      psVar3 = &pipe_st;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }\n      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);\n      psVar3 = &pipe_st;\n      psVar4 = &action;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }\n      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;\n      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);\n    }\n    Curl_close(data);\n    if (pipe_st.no_signal == false) {\n      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);\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 "sigpipe_ignore *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "sigaction *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "sigaction action;" type_identifier identifier ;) (declaration "sigpipe_ignore pipe_st;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 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 (data != (Curl_easy *)0x0) {\n    pipe_st.no_signal = (data->set).no_signal;\n    if (pipe_st.no_signal == false) {\n      psVar3 = &pipe_st;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }\n      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);\n      psVar3 = &pipe_st;\n      psVar4 = &action;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }\n      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;\n      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);\n    }\n    Curl_close(data);\n    if (pipe_st.no_signal == false) {\n      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);\n    }\n  }" if (parenthesized_expression "(data != (Curl_easy *)0x0)" ( (binary_expression "data != (Curl_easy *)0x0" identifier != (cast_expression "(Curl_easy *)0x0" ( (type_descriptor "Curl_easy *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pipe_st.no_signal = (data->set).no_signal;\n    if (pipe_st.no_signal == false) {\n      psVar3 = &pipe_st;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }\n      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);\n      psVar3 = &pipe_st;\n      psVar4 = &action;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }\n      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;\n      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);\n    }\n    Curl_close(data);\n    if (pipe_st.no_signal == false) {\n      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);\n    }\n  }" { (expression_statement "pipe_st.no_signal = (data->set).no_signal;" (assignment_expression "pipe_st.no_signal = (data->set).no_signal" (field_expression "pipe_st.no_signal" identifier . field_identifier) = (field_expression "(data->set).no_signal" (parenthesized_expression "(data->set)" ( (field_expression "data->set" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (pipe_st.no_signal == false) {\n      psVar3 = &pipe_st;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }\n      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);\n      psVar3 = &pipe_st;\n      psVar4 = &action;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }\n      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;\n      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);\n    }" if (parenthesized_expression "(pipe_st.no_signal == false)" ( (binary_expression "pipe_st.no_signal == false" (field_expression "pipe_st.no_signal" identifier . field_identifier) == false) )) (compound_statement "{\n      psVar3 = &pipe_st;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }\n      sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);\n      psVar3 = &pipe_st;\n      psVar4 = &action;\n      for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }\n      action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;\n      sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);\n    }" { (expression_statement "psVar3 = &pipe_st;" (assignment_expression "psVar3 = &pipe_st" identifier = (pointer_expression "&pipe_st" & identifier)) ;) (for_statement "for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }" for ( (assignment_expression "iVar2 = 0x23" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        ((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;\n        psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);\n      }" { (expression_statement "((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0;" (assignment_expression "((_union_1051 *)&psVar3->old_pipe_act)->sa_handler = (__sighandler_t)0x0" (field_expression "((_union_1051 *)&psVar3->old_pipe_act)->sa_handler" (parenthesized_expression "((_union_1051 *)&psVar3->old_pipe_act)" ( (cast_expression "(_union_1051 *)&psVar3->old_pipe_act" ( (type_descriptor "_union_1051 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar3->old_pipe_act" & (field_expression "psVar3->old_pipe_act" identifier -> field_identifier))) )) -> field_identifier) = (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) ;) (expression_statement "psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1);" (assignment_expression "psVar3 = (sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1)" identifier = (cast_expression "(sigpipe_ignore *)((_union_1051 *)&psVar3->old_pipe_act + 1)" ( (type_descriptor "sigpipe_ignore *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((_union_1051 *)&psVar3->old_pipe_act + 1)" ( (binary_expression "(_union_1051 *)&psVar3->old_pipe_act + 1" (cast_expression "(_union_1051 *)&psVar3->old_pipe_act" ( (type_descriptor "_union_1051 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar3->old_pipe_act" & (field_expression "psVar3->old_pipe_act" identifier -> field_identifier))) + number_literal) )))) ;) })) (expression_statement "sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st);" (call_expression "sigaction(0xd,(sigaction *)0x0,(sigaction *)&pipe_st)" identifier (argument_list "(0xd,(sigaction *)0x0,(sigaction *)&pipe_st)" ( number_literal , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(sigaction *)&pipe_st" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pipe_st" & identifier)) ))) ;) (expression_statement "psVar3 = &pipe_st;" (assignment_expression "psVar3 = &pipe_st" identifier = (pointer_expression "&pipe_st" & identifier)) ;) (expression_statement "psVar4 = &action;" (assignment_expression "psVar4 = &action" identifier = (pointer_expression "&action" & identifier)) ;) (for_statement "for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }" for ( (assignment_expression "iVar2 = 0x23" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;\n        psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);\n        psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n      }" { (expression_statement "psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act;" (assignment_expression "psVar4->__sigaction_handler =\n             *(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act" (field_expression "psVar4->__sigaction_handler" identifier -> field_identifier) = (pointer_expression "*(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act" * (cast_expression "(anon_union_4_2_5ad2d23e_for___sigaction_handler *)&psVar3->old_pipe_act" ( (type_descriptor "anon_union_4_2_5ad2d23e_for___sigaction_handler *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar3->old_pipe_act" & (field_expression "psVar3->old_pipe_act" identifier -> field_identifier))))) ;) (expression_statement "psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4);" (assignment_expression "psVar3 = (sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(sigpipe_ignore *)((int)psVar3 + (uint)bVar5 * -8 + 4)" ( (type_descriptor "sigpipe_ignore *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar3 + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)psVar3 + (uint)bVar5 * -8 + 4" (binary_expression "(int)psVar3 + (uint)bVar5 * -8" (cast_expression "(int)psVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -8" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);" (assignment_expression "psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4)" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar4 + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)psVar4 + (uint)bVar5 * -8 + 4" (binary_expression "(int)psVar4 + (uint)bVar5 * -8" (cast_expression "(int)psVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -8" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1;" (assignment_expression "action.__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1" (field_expression "action.__sigaction_handler" identifier . field_identifier) = (cast_expression "(anon_union_4_2_5ad2d23e_for___sigaction_handler)0x1" ( (type_descriptor "anon_union_4_2_5ad2d23e_for___sigaction_handler" type_identifier) ) number_literal)) ;) (expression_statement "sigaction(0xd,(sigaction *)&action,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)&action,(sigaction *)0x0)" identifier (argument_list "(0xd,(sigaction *)&action,(sigaction *)0x0)" ( number_literal , (cast_expression "(sigaction *)&action" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&action" & identifier)) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "Curl_close(data);" (call_expression "Curl_close(data)" identifier (argument_list "(data)" ( identifier ))) ;) (if_statement "if (pipe_st.no_signal == false) {\n      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);\n    }" if (parenthesized_expression "(pipe_st.no_signal == false)" ( (binary_expression "pipe_st.no_signal == false" (field_expression "pipe_st.no_signal" identifier . field_identifier) == false) )) (compound_statement "{\n      sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);\n    }" { (expression_statement "sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)&pipe_st,(sigaction *)0x0)" identifier (argument_list "(0xd,(sigaction *)&pipe_st,(sigaction *)0x0)" ( number_literal , (cast_expression "(sigaction *)&pipe_st" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pipe_st" & identifier)) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 curl_easy_cleanup(void)\n\n{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}\n\n" (function_definition "void curl_easy_cleanup(void)\n\n{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" primitive_type (function_declarator "curl_easy_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sigaction *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "_union_1051 *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (declaration "_union_1051 local_140 [35];" type_identifier (array_declarator "local_140 [35]" identifier [ number_literal ]) ;) (declaration "sigaction local_b4;" type_identifier identifier ;) (declaration "char local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x3e7e9;" (assignment_expression "uStack_14 = 0x3e7e9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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 (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }" if (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) (compound_statement "{\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }" { (expression_statement "local_28 = *(char *)(unaff_retaddr + 0x950);" (assignment_expression "local_28 = *(char *)(unaff_retaddr + 0x950)" identifier = (pointer_expression "*(char *)(unaff_retaddr + 0x950)" * (cast_expression "(char *)(unaff_retaddr + 0x950)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x950)" ( (binary_expression "unaff_retaddr + 0x950" identifier + number_literal) ))))) ;) (if_statement "if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }" if (parenthesized_expression "(local_28 == '\0')" ( (binary_expression "local_28 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }" { (expression_statement "psVar2 = &local_b4;" (assignment_expression "psVar2 = &local_b4" identifier = (pointer_expression "&local_b4" & identifier)) ;) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }" for ( (assignment_expression "iVar1 = 0x23" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }" { (expression_statement "(psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;" (assignment_expression "(psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0" (field_expression "(psVar2->__sigaction_handler).sa_handler" (parenthesized_expression "(psVar2->__sigaction_handler)" ( (field_expression "psVar2->__sigaction_handler" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal)) ;) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" identifier = (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (binary_expression "(int)psVar2 + (uint)bVar4 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar4 * -8" (cast_expression "(int)psVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "sigaction(0xd,(sigaction *)0x0,&local_b4);" (call_expression "sigaction(0xd,(sigaction *)0x0,&local_b4)" identifier (argument_list "(0xd,(sigaction *)0x0,&local_b4)" ( number_literal , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (pointer_expression "&local_b4" & identifier) ))) ;) (expression_statement "psVar2 = &local_b4;" (assignment_expression "psVar2 = &local_b4" identifier = (pointer_expression "&local_b4" & identifier)) ;) (expression_statement "p_Var3 = local_140;" (assignment_expression "p_Var3 = local_140" identifier = identifier) ;) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }" for ( (assignment_expression "iVar1 = 0x23" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }" { (expression_statement "*p_Var3 = psVar2->__sigaction_handler;" (assignment_expression "*p_Var3 = psVar2->__sigaction_handler" (pointer_expression "*p_Var3" * identifier) = (field_expression "psVar2->__sigaction_handler" identifier -> field_identifier)) ;) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" identifier = (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar2 + (uint)bVar4 * -8 + 4)" ( (binary_expression "(int)psVar2 + (uint)bVar4 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar4 * -8" (cast_expression "(int)psVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;" (assignment_expression "p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "p_Var3 + (uint)bVar4 * -2 + 1" (binary_expression "p_Var3 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_140[0] = (_union_1051)0x1;" (assignment_expression "local_140[0] = (_union_1051)0x1" (subscript_expression "local_140[0]" identifier [ number_literal ]) = (cast_expression "(_union_1051)0x1" ( (type_descriptor "_union_1051" type_identifier) ) number_literal)) ;) (expression_statement "sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0)" identifier (argument_list "(0xd,(sigaction *)local_140,(sigaction *)0x0)" ( number_literal , (cast_expression "(sigaction *)local_140" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "FUN_00030290(unaff_retaddr);" (call_expression "FUN_00030290(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier ))) ;) (if_statement "if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }" if (parenthesized_expression "(local_28 == '\0')" ( (binary_expression "local_28 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }" { (expression_statement "sigaction(0xd,&local_b4,(sigaction *)0x0);" (call_expression "sigaction(0xd,&local_b4,(sigaction *)0x0)" identifier (argument_list "(0xd,&local_b4,(sigaction *)0x0)" ( number_literal , (pointer_expression "&local_b4" & identifier) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) })) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(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_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (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 ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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)) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (field_expression (parenthesized_expression ( (field_expression IDENT -> field_identifier) )) . field_identifier) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , (pointer_expression & IDENT) ))) ;) (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) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 curl_easy_cleanup(void)\n\n{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" (primitive_type "void") (function_declarator "curl_easy_cleanup(void)" (identifier "curl_easy_cleanup") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  sigaction *psVar2;\n  _union_1051 *p_Var3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  int unaff_retaddr;\n  _union_1051 local_140 [35];\n  sigaction local_b4;\n  char local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar4 = 0;\n  uStack_14 = 0x3e7e9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  if (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00082f60();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "sigaction *psVar2;" (type_identifier "sigaction") (pointer_declarator "*psVar2" (* "*") (identifier "psVar2")) (; ";")) (declaration "_union_1051 *p_Var3;" (type_identifier "_union_1051") (pointer_declarator "*p_Var3" (* "*") (identifier "p_Var3")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (declaration "_union_1051 local_140 [35];" (type_identifier "_union_1051") (array_declarator "local_140 [35]" (identifier "local_140") ([ "[") (number_literal "35") (] "]")) (; ";")) (declaration "sigaction local_b4;" (type_identifier "sigaction") (identifier "local_b4") (; ";")) (declaration "char local_28;" (primitive_type "char") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" (identifier "bVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x3e7e9;" (assignment_expression "uStack_14 = 0x3e7e9" (identifier "uStack_14") (= "=") (number_literal "0x3e7e9")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (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 (unaff_retaddr != 0) {\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }" (if "if") (parenthesized_expression "(unaff_retaddr != 0)" (( "(") (binary_expression "unaff_retaddr != 0" (identifier "unaff_retaddr") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    local_28 = *(char *)(unaff_retaddr + 0x950);\n    if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }\n    FUN_00030290(unaff_retaddr);\n    if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }\n  }" ({ "{") (expression_statement "local_28 = *(char *)(unaff_retaddr + 0x950);" (assignment_expression "local_28 = *(char *)(unaff_retaddr + 0x950)" (identifier "local_28") (= "=") (pointer_expression "*(char *)(unaff_retaddr + 0x950)" (* "*") (cast_expression "(char *)(unaff_retaddr + 0x950)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x950)" (( "(") (binary_expression "unaff_retaddr + 0x950" (identifier "unaff_retaddr") (+ "+") (number_literal "0x950")) () ")"))))) (; ";")) (if_statement "if (local_28 == '\0') {\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }" (if "if") (parenthesized_expression "(local_28 == '\0')" (( "(") (binary_expression "local_28 == '\0'" (identifier "local_28") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      psVar2 = &local_b4;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }\n      sigaction(0xd,(sigaction *)0x0,&local_b4);\n      psVar2 = &local_b4;\n      p_Var3 = local_140;\n      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }\n      local_140[0] = (_union_1051)0x1;\n      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);\n    }" ({ "{") (expression_statement "psVar2 = &local_b4;" (assignment_expression "psVar2 = &local_b4" (identifier "psVar2") (= "=") (pointer_expression "&local_b4" (& "&") (identifier "local_b4"))) (; ";")) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }" (for "for") (( "(") (assignment_expression "iVar1 = 0x23" (identifier "iVar1") (= "=") (number_literal "0x23")) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n      }" ({ "{") (expression_statement "(psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;" (assignment_expression "(psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0" (field_expression "(psVar2->__sigaction_handler).sa_handler" (parenthesized_expression "(psVar2->__sigaction_handler)" (( "(") (field_expression "psVar2->__sigaction_handler" (identifier "psVar2") (-> "->") (field_identifier "__sigaction_handler")) () ")")) (. ".") (field_identifier "sa_handler")) (= "=") (cast_expression "(__sighandler_t)0x0" (( "(") (type_descriptor "__sighandler_t" (type_identifier "__sighandler_t")) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" (identifier "psVar2") (= "=") (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar2 + (uint)bVar4 * -8 + 4)" (( "(") (binary_expression "(int)psVar2 + (uint)bVar4 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar4 * -8" (cast_expression "(int)psVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar2")) (+ "+") (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "-8"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}"))) (expression_statement "sigaction(0xd,(sigaction *)0x0,&local_b4);" (call_expression "sigaction(0xd,(sigaction *)0x0,&local_b4)" (identifier "sigaction") (argument_list "(0xd,(sigaction *)0x0,&local_b4)" (( "(") (number_literal "0xd") (, ",") (cast_expression "(sigaction *)0x0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (pointer_expression "&local_b4" (& "&") (identifier "local_b4")) () ")"))) (; ";")) (expression_statement "psVar2 = &local_b4;" (assignment_expression "psVar2 = &local_b4" (identifier "psVar2") (= "=") (pointer_expression "&local_b4" (& "&") (identifier "local_b4"))) (; ";")) (expression_statement "p_Var3 = local_140;" (assignment_expression "p_Var3 = local_140" (identifier "p_Var3") (= "=") (identifier "local_140")) (; ";")) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }" (for "for") (( "(") (assignment_expression "iVar1 = 0x23" (identifier "iVar1") (= "=") (number_literal "0x23")) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        *p_Var3 = psVar2->__sigaction_handler;\n        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);\n        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;\n      }" ({ "{") (expression_statement "*p_Var3 = psVar2->__sigaction_handler;" (assignment_expression "*p_Var3 = psVar2->__sigaction_handler" (pointer_expression "*p_Var3" (* "*") (identifier "p_Var3")) (= "=") (field_expression "psVar2->__sigaction_handler" (identifier "psVar2") (-> "->") (field_identifier "__sigaction_handler"))) (; ";")) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" (identifier "psVar2") (= "=") (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4)" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar2 + (uint)bVar4 * -8 + 4)" (( "(") (binary_expression "(int)psVar2 + (uint)bVar4 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar4 * -8" (cast_expression "(int)psVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar2")) (+ "+") (binary_expression "(uint)bVar4 * -8" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "-8"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;" (assignment_expression "p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1" (identifier "p_Var3") (= "=") (binary_expression "p_Var3 + (uint)bVar4 * -2 + 1" (binary_expression "p_Var3 + (uint)bVar4 * -2" (identifier "p_Var3") (+ "+") (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_140[0] = (_union_1051)0x1;" (assignment_expression "local_140[0] = (_union_1051)0x1" (subscript_expression "local_140[0]" (identifier "local_140") ([ "[") (number_literal "0") (] "]")) (= "=") (cast_expression "(_union_1051)0x1" (( "(") (type_descriptor "_union_1051" (type_identifier "_union_1051")) () ")") (number_literal "0x1"))) (; ";")) (expression_statement "sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0)" (identifier "sigaction") (argument_list "(0xd,(sigaction *)local_140,(sigaction *)0x0)" (( "(") (number_literal "0xd") (, ",") (cast_expression "(sigaction *)local_140" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_140")) (, ",") (cast_expression "(sigaction *)0x0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00030290(unaff_retaddr);" (call_expression "FUN_00030290(unaff_retaddr)" (identifier "FUN_00030290") (argument_list "(unaff_retaddr)" (( "(") (identifier "unaff_retaddr") () ")"))) (; ";")) (if_statement "if (local_28 == '\0') {\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }" (if "if") (parenthesized_expression "(local_28 == '\0')" (( "(") (binary_expression "local_28 == '\0'" (identifier "local_28") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      sigaction(0xd,&local_b4,(sigaction *)0x0);\n    }" ({ "{") (expression_statement "sigaction(0xd,&local_b4,(sigaction *)0x0);" (call_expression "sigaction(0xd,&local_b4,(sigaction *)0x0)" (identifier "sigaction") (argument_list "(0xd,&local_b4,(sigaction *)0x0)" (( "(") (number_literal "0xd") (, ",") (pointer_expression "&local_b4" (& "&") (identifier "local_b4")) (, ",") (cast_expression "(sigaction *)0x0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (== "==") (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_00082f60();" (call_expression "FUN_00082f60()" (identifier "FUN_00082f60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *var_2)

{
  int var_5;
  int var_3;
  type_2 *psVar3;
  type_3 *psVar4;
  int var_1;
  type_4 bVar5;
  type_3 action;
  type_2 pipe_st;
  
  bVar5 = 0;
  var_5 = *(int *)(var_1 + 0x14);
  if (var_2 != (type_1 *)0x0) {
    pipe_st.no_signal = (var_2->set).no_signal;
    if (pipe_st.no_signal == false) {
      psVar3 = &pipe_st;
      for (var_3 = 0x23; var_3 != 0; var_3 = var_3 + -1) {
        ((type_5 *)&psVar3->old_pipe_act)->sa_handler = (type_6)0x0;
        psVar3 = (type_2 *)((type_5 *)&psVar3->old_pipe_act + 1);
      }
      type_3(0xd,(type_3 *)0x0,(type_3 *)&pipe_st);
      psVar3 = &pipe_st;
      psVar4 = &action;
      for (var_3 = 0x23; var_3 != 0; var_3 = var_3 + -1) {
        psVar4->__sigaction_handler =
             *(type_7 *)&psVar3->old_pipe_act;
        psVar3 = (type_2 *)((int)psVar3 + (type_8)bVar5 * -8 + 4);
        psVar4 = (type_3 *)((int)psVar4 + (type_8)bVar5 * -8 + 4);
      }
      action.__sigaction_handler = (type_7)0x1;
      type_3(0xd,(type_3 *)&action,(type_3 *)0x0);
    }
    var_4(var_2);
    if (pipe_st.no_signal == false) {
      type_3(0xd,(type_3 *)&pipe_st,(type_3 *)0x0);
    }
  }
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


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

void MASKED(void)

{
  int iVar1;
  sigaction *psVar2;
  _union_1051 *p_Var3;
  int in_GS_OFFSET;
  byte bVar4;
  int unaff_retaddr;
  _union_1051 local_140 [35];
  sigaction local_b4;
  char local_28;
  int local_24;
  undefined4 uStack_14;
  
  bVar4 = 0;
  uStack_14 = 0x3e7e9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  if (unaff_retaddr != 0) {
    local_28 = *(char *)(unaff_retaddr + 0x950);
    if (local_28 == '\0') {
      psVar2 = &local_b4;
      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {
        (psVar2->__sigaction_handler).sa_handler = (__sighandler_t)0x0;
        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);
      }
      sigaction(0xd,(sigaction *)0x0,&local_b4);
      psVar2 = &local_b4;
      p_Var3 = local_140;
      for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {
        *p_Var3 = psVar2->__sigaction_handler;
        psVar2 = (sigaction *)((int)psVar2 + (uint)bVar4 * -8 + 4);
        p_Var3 = p_Var3 + (uint)bVar4 * -2 + 1;
      }
      local_140[0] = (_union_1051)0x1;
      sigaction(0xd,(sigaction *)local_140,(sigaction *)0x0);
    }
    FUN_00030290(unaff_retaddr);
    if (local_28 == '\0') {
      sigaction(0xd,&local_b4,(sigaction *)0x0);
    }
  }
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00082f60();
}

