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

void __regparm3 sigpipe_ignore(Curl_easy *data,sigpipe_ignore *ig)

{
  int iVar1;
  int iVar2;
  Curl_easy *pCVar3;
  sigaction *psVar4;
  int in_GS_OFFSET;
  byte bVar5;
  sigaction action;
  
  bVar5 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  pCVar3 = data;
  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {
    pCVar3->next = (Curl_easy *)0x0;
    pCVar3 = (Curl_easy *)&pCVar3->prev;
  }
  sigaction(0xd,(sigaction *)0x0,(sigaction *)data);
  psVar4 = &action;
  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {
    psVar4->__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next;
    data = (Curl_easy *)((int)data + (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);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void FUN_00041fd0(void)

{
  int iVar1;
  sigaction *__oact;
  sigaction *psVar2;
  undefined4 *extraout_EDI;
  undefined4 *puVar3;
  _union_1051 *p_Var4;
  int in_GS_OFFSET;
  byte bVar5;
  _union_1051 local_a0 [35];
  int local_14;
  undefined4 uStack_10;
  
  bVar5 = 0;
  iVar1 = 0x23;
  uStack_10 = 0x41fe1;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  puVar3 = extraout_EDI;
  for (; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;
  }
  sigaction(0xd,(sigaction *)0x0,__oact);
  psVar2 = __oact;
  p_Var4 = local_a0;
  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {
    *p_Var4 = psVar2->__sigaction_handler;
    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);
    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;
  }
  local_a0[0] = (_union_1051)0x1;
  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}


PUSH EDI
MOV ECX,0x23
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EDI,ESI
CALL 0x00019ed0
ADD EBX,0x6e7ff
SUB ESP,0x94
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x90],EAX
XOR EAX,EAX
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
MOV EAX,dword ptr [ESP + 0x8c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00042049
ADD ESP,0x90
POP EBX
POP ESI
POP EDI
RET
CALL 0x0007c1a0
(translation_unit "void FUN_00041fd0(void)\n\n{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}\n\n" (function_definition "void FUN_00041fd0(void)\n\n{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_00041fd0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sigaction *__oact;" type_identifier (pointer_declarator "*__oact" * identifier) ;) (declaration "sigaction *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "undefined4 *extraout_EDI;" type_identifier (pointer_declarator "*extraout_EDI" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "_union_1051 *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "_union_1051 local_a0 [35];" type_identifier (array_declarator "local_a0 [35]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = 0x23;" (assignment_expression "iVar1 = 0x23" identifier = number_literal) ;) (expression_statement "uStack_10 = 0x41fe1;" (assignment_expression "uStack_10 = 0x41fe1" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = extraout_EDI;" (assignment_expression "puVar3 = extraout_EDI" identifier = identifier) ;) (for_statement "for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }" for ( ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "puVar3 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "sigaction(0xd,(sigaction *)0x0,__oact);" (call_expression "sigaction(0xd,(sigaction *)0x0,__oact)" identifier (argument_list "(0xd,(sigaction *)0x0,__oact)" ( number_literal , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier ))) ;) (expression_statement "psVar2 = __oact;" (assignment_expression "psVar2 = __oact" identifier = identifier) ;) (expression_statement "p_Var4 = local_a0;" (assignment_expression "p_Var4 = local_a0" identifier = identifier) ;) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -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_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*p_Var4 = psVar2->__sigaction_handler;" (assignment_expression "*p_Var4 = psVar2->__sigaction_handler" (pointer_expression "*p_Var4" * identifier) = (field_expression "psVar2->__sigaction_handler" identifier -> field_identifier)) ;) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4)" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar2 + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)psVar2 + (uint)bVar5 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar5 * -8" (cast_expression "(int)psVar2" ( (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 "p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;" (assignment_expression "p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "p_Var4 + (uint)bVar5 * -2 + 1" (binary_expression "p_Var4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_a0[0] = (_union_1051)0x1;" (assignment_expression "local_a0[0] = (_union_1051)0x1" (subscript_expression "local_a0[0]" identifier [ number_literal ]) = (cast_expression "(_union_1051)0x1" ( (type_descriptor "_union_1051" type_identifier) ) number_literal)) ;) (expression_statement "sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0)" identifier (argument_list "(0xd,(sigaction *)local_a0,(sigaction *)0x0)" ( number_literal , (cast_expression "(sigaction *)local_a0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(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_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 sigpipe_ignore(Curl_easy *data,sigpipe_ignore *ig)\n\n{\n  int iVar1;\n  int iVar2;\n  Curl_easy *pCVar3;\n  sigaction *psVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  sigaction action;\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pCVar3 = data;\n  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n    pCVar3->next = (Curl_easy *)0x0;\n    pCVar3 = (Curl_easy *)&pCVar3->prev;\n  }\n  sigaction(0xd,(sigaction *)0x0,(sigaction *)data);\n  psVar4 = &action;\n  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n    psVar4->__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next;\n    data = (Curl_easy *)((int)data + (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 (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 (function_definition "void __regparm3 sigpipe_ignore(Curl_easy *data,sigpipe_ignore *ig)\n\n{\n  int iVar1;\n  int iVar2;\n  Curl_easy *pCVar3;\n  sigaction *psVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  sigaction action;\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pCVar3 = data;\n  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n    pCVar3->next = (Curl_easy *)0x0;\n    pCVar3 = (Curl_easy *)&pCVar3->prev;\n  }\n  sigaction(0xd,(sigaction *)0x0,(sigaction *)data);\n  psVar4 = &action;\n  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n    psVar4->__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next;\n    data = (Curl_easy *)((int)data + (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 (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sigpipe_ignore(Curl_easy *data,sigpipe_ignore *ig)" identifier (parameter_list "(Curl_easy *data,sigpipe_ignore *ig)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) , (parameter_declaration "sigpipe_ignore *ig" type_identifier (pointer_declarator "*ig" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  Curl_easy *pCVar3;\n  sigaction *psVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  sigaction action;\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pCVar3 = data;\n  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n    pCVar3->next = (Curl_easy *)0x0;\n    pCVar3 = (Curl_easy *)&pCVar3->prev;\n  }\n  sigaction(0xd,(sigaction *)0x0,(sigaction *)data);\n  psVar4 = &action;\n  for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n    psVar4->__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next;\n    data = (Curl_easy *)((int)data + (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 (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 "Curl_easy *pCVar3;" type_identifier (pointer_declarator "*pCVar3" * 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 ;) (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) ))))) ;) (expression_statement "pCVar3 = data;" (assignment_expression "pCVar3 = data" identifier = identifier) ;) (for_statement "for (iVar2 = 0x23; iVar2 != 0; iVar2 = iVar2 + -1) {\n    pCVar3->next = (Curl_easy *)0x0;\n    pCVar3 = (Curl_easy *)&pCVar3->prev;\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    pCVar3->next = (Curl_easy *)0x0;\n    pCVar3 = (Curl_easy *)&pCVar3->prev;\n  }" { (expression_statement "pCVar3->next = (Curl_easy *)0x0;" (assignment_expression "pCVar3->next = (Curl_easy *)0x0" (field_expression "pCVar3->next" identifier -> field_identifier) = (cast_expression "(Curl_easy *)0x0" ( (type_descriptor "Curl_easy *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCVar3 = (Curl_easy *)&pCVar3->prev;" (assignment_expression "pCVar3 = (Curl_easy *)&pCVar3->prev" identifier = (cast_expression "(Curl_easy *)&pCVar3->prev" ( (type_descriptor "Curl_easy *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCVar3->prev" & (field_expression "pCVar3->prev" identifier -> field_identifier)))) ;) })) (expression_statement "sigaction(0xd,(sigaction *)0x0,(sigaction *)data);" (call_expression "sigaction(0xd,(sigaction *)0x0,(sigaction *)data)" identifier (argument_list "(0xd,(sigaction *)0x0,(sigaction *)data)" ( number_literal , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(sigaction *)data" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next;\n    data = (Curl_easy *)((int)data + (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 = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next;\n    data = (Curl_easy *)((int)data + (uint)bVar5 * -8 + 4);\n    psVar4 = (sigaction *)((int)psVar4 + (uint)bVar5 * -8 + 4);\n  }" { (expression_statement "psVar4->__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next;" (assignment_expression "psVar4->__sigaction_handler = (anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next" (field_expression "psVar4->__sigaction_handler" identifier -> field_identifier) = (cast_expression "(anon_union_4_2_5ad2d23e_for___sigaction_handler)data->next" ( (type_descriptor "anon_union_4_2_5ad2d23e_for___sigaction_handler" type_identifier) ) (field_expression "data->next" identifier -> field_identifier))) ;) (expression_statement "data = (Curl_easy *)((int)data + (uint)bVar5 * -8 + 4);" (assignment_expression "data = (Curl_easy *)((int)data + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(Curl_easy *)((int)data + (uint)bVar5 * -8 + 4)" ( (type_descriptor "Curl_easy *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)data + (uint)bVar5 * -8 + 4" (binary_expression "(int)data + (uint)bVar5 * -8" (cast_expression "(int)data" ( (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) ))) ;) (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 FUN_00041fd0(void)\n\n{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007c1a0();\n}\n\n" (function_definition "void FUN_00041fd0(void)\n\n{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_00041fd0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007c1a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sigaction *__oact;" type_identifier (pointer_declarator "*__oact" * identifier) ;) (declaration "sigaction *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "undefined4 *extraout_EDI;" type_identifier (pointer_declarator "*extraout_EDI" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "_union_1051 *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "_union_1051 local_a0 [35];" type_identifier (array_declarator "local_a0 [35]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = 0x23;" (assignment_expression "iVar1 = 0x23" identifier = number_literal) ;) (expression_statement "uStack_10 = 0x41fe1;" (assignment_expression "uStack_10 = 0x41fe1" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = extraout_EDI;" (assignment_expression "puVar3 = extraout_EDI" identifier = identifier) ;) (for_statement "for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }" for ( ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "puVar3 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "sigaction(0xd,(sigaction *)0x0,__oact);" (call_expression "sigaction(0xd,(sigaction *)0x0,__oact)" identifier (argument_list "(0xd,(sigaction *)0x0,__oact)" ( number_literal , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier ))) ;) (expression_statement "psVar2 = __oact;" (assignment_expression "psVar2 = __oact" identifier = identifier) ;) (expression_statement "p_Var4 = local_a0;" (assignment_expression "p_Var4 = local_a0" identifier = identifier) ;) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -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_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*p_Var4 = psVar2->__sigaction_handler;" (assignment_expression "*p_Var4 = psVar2->__sigaction_handler" (pointer_expression "*p_Var4" * identifier) = (field_expression "psVar2->__sigaction_handler" identifier -> field_identifier)) ;) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4)" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar2 + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)psVar2 + (uint)bVar5 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar5 * -8" (cast_expression "(int)psVar2" ( (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 "p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;" (assignment_expression "p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "p_Var4 + (uint)bVar5 * -2 + 1" (binary_expression "p_Var4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "local_a0[0] = (_union_1051)0x1;" (assignment_expression "local_a0[0] = (_union_1051)0x1" (subscript_expression "local_a0[0]" identifier [ number_literal ]) = (cast_expression "(_union_1051)0x1" ( (type_descriptor "_union_1051" type_identifier) ) number_literal)) ;) (expression_statement "sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0)" identifier (argument_list "(0xd,(sigaction *)local_a0,(sigaction *)0x0)" ( number_literal , (cast_expression "(sigaction *)local_a0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(sigaction *)0x0" ( (type_descriptor "sigaction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(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_0007c1a0();" (call_expression "FUN_0007c1a0()" 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression 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) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = 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) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00041fd0(void)\n\n{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007c1a0();\n}" (primitive_type "void") (function_declarator "FUN_00041fd0(void)" (identifier "FUN_00041fd0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  sigaction *__oact;\n  sigaction *psVar2;\n  undefined4 *extraout_EDI;\n  undefined4 *puVar3;\n  _union_1051 *p_Var4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  _union_1051 local_a0 [35];\n  int local_14;\n  undefined4 uStack_10;\n  \n  bVar5 = 0;\n  iVar1 = 0x23;\n  uStack_10 = 0x41fe1;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = extraout_EDI;\n  for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }\n  sigaction(0xd,(sigaction *)0x0,__oact);\n  psVar2 = __oact;\n  p_Var4 = local_a0;\n  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }\n  local_a0[0] = (_union_1051)0x1;\n  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007c1a0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "sigaction *__oact;" (type_identifier "sigaction") (pointer_declarator "*__oact" (* "*") (identifier "__oact")) (; ";")) (declaration "sigaction *psVar2;" (type_identifier "sigaction") (pointer_declarator "*psVar2" (* "*") (identifier "psVar2")) (; ";")) (declaration "undefined4 *extraout_EDI;" (type_identifier "undefined4") (pointer_declarator "*extraout_EDI" (* "*") (identifier "extraout_EDI")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "_union_1051 *p_Var4;" (type_identifier "_union_1051") (pointer_declarator "*p_Var4" (* "*") (identifier "p_Var4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "_union_1051 local_a0 [35];" (type_identifier "_union_1051") (array_declarator "local_a0 [35]" (identifier "local_a0") ([ "[") (number_literal "35") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = 0x23;" (assignment_expression "iVar1 = 0x23" (identifier "iVar1") (= "=") (number_literal "0x23")) (; ";")) (expression_statement "uStack_10 = 0x41fe1;" (assignment_expression "uStack_10 = 0x41fe1" (identifier "uStack_10") (= "=") (number_literal "0x41fe1")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "puVar3 = extraout_EDI;" (assignment_expression "puVar3 = extraout_EDI" (identifier "puVar3") (= "=") (identifier "extraout_EDI")) (; ";")) (for_statement "for (; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }" (for "for") (( "(") (; ";") (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    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar5 * -2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "puVar3 + (uint)bVar5 * -2" (identifier "puVar3") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "sigaction(0xd,(sigaction *)0x0,__oact);" (call_expression "sigaction(0xd,(sigaction *)0x0,__oact)" (identifier "sigaction") (argument_list "(0xd,(sigaction *)0x0,__oact)" (( "(") (number_literal "0xd") (, ",") (cast_expression "(sigaction *)0x0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (identifier "__oact") () ")"))) (; ";")) (expression_statement "psVar2 = __oact;" (assignment_expression "psVar2 = __oact" (identifier "psVar2") (= "=") (identifier "__oact")) (; ";")) (expression_statement "p_Var4 = local_a0;" (assignment_expression "p_Var4 = local_a0" (identifier "p_Var4") (= "=") (identifier "local_a0")) (; ";")) (for_statement "for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *p_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -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_Var4 = psVar2->__sigaction_handler;\n    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);\n    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;\n  }" ({ "{") (expression_statement "*p_Var4 = psVar2->__sigaction_handler;" (assignment_expression "*p_Var4 = psVar2->__sigaction_handler" (pointer_expression "*p_Var4" (* "*") (identifier "p_Var4")) (= "=") (field_expression "psVar2->__sigaction_handler" (identifier "psVar2") (-> "->") (field_identifier "__sigaction_handler"))) (; ";")) (expression_statement "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);" (assignment_expression "psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4)" (identifier "psVar2") (= "=") (cast_expression "(sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4)" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)psVar2 + (uint)bVar5 * -8 + 4)" (( "(") (binary_expression "(int)psVar2 + (uint)bVar5 * -8 + 4" (binary_expression "(int)psVar2 + (uint)bVar5 * -8" (cast_expression "(int)psVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar2")) (+ "+") (binary_expression "(uint)bVar5 * -8" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-8"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;" (assignment_expression "p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1" (identifier "p_Var4") (= "=") (binary_expression "p_Var4 + (uint)bVar5 * -2 + 1" (binary_expression "p_Var4 + (uint)bVar5 * -2" (identifier "p_Var4") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_a0[0] = (_union_1051)0x1;" (assignment_expression "local_a0[0] = (_union_1051)0x1" (subscript_expression "local_a0[0]" (identifier "local_a0") ([ "[") (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_a0,(sigaction *)0x0);" (call_expression "sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0)" (identifier "sigaction") (argument_list "(0xd,(sigaction *)local_a0,(sigaction *)0x0)" (( "(") (number_literal "0xd") (, ",") (cast_expression "(sigaction *)local_a0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_a0")) (, ",") (cast_expression "(sigaction *)0x0" (( "(") (type_descriptor "sigaction *" (type_identifier "sigaction") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (== "==") (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_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *data,function_1 *ig)

{
  int var_3;
  int var_2;
  type_1 *pCVar3;
  type_2 *psVar4;
  int var_1;
  type_3 bVar5;
  type_2 action;
  
  bVar5 = 0;
  var_3 = *(int *)(var_1 + 0x14);
  pCVar3 = data;
  for (var_2 = 0x23; var_2 != 0; var_2 = var_2 + -1) {
    pCVar3->next = (type_1 *)0x0;
    pCVar3 = (type_1 *)&pCVar3->prev;
  }
  type_2(0xd,(type_2 *)0x0,(type_2 *)data);
  psVar4 = &action;
  for (var_2 = 0x23; var_2 != 0; var_2 = var_2 + -1) {
    psVar4->__sigaction_handler = (type_4)data->next;
    data = (type_1 *)((int)data + (type_5)bVar5 * -8 + 4);
    psVar4 = (type_2 *)((int)psVar4 + (type_5)bVar5 * -8 + 4);
  }
  action.__sigaction_handler = (type_4)0x1;
  type_2(0xd,(type_2 *)&action,(type_2 *)0x0);
  if (var_3 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4();
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement 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: (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 (call_expression function: (identifier) arguments: (argument_list (number_literal) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (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 *__oact;
  sigaction *psVar2;
  undefined4 *extraout_EDI;
  undefined4 *puVar3;
  _union_1051 *p_Var4;
  int in_GS_OFFSET;
  byte bVar5;
  _union_1051 local_a0 [35];
  int local_14;
  undefined4 uStack_10;
  
  bVar5 = 0;
  iVar1 = 0x23;
  uStack_10 = 0x41fe1;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  puVar3 = extraout_EDI;
  for (; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;
  }
  sigaction(0xd,(sigaction *)0x0,__oact);
  psVar2 = __oact;
  p_Var4 = local_a0;
  for (iVar1 = 0x23; iVar1 != 0; iVar1 = iVar1 + -1) {
    *p_Var4 = psVar2->__sigaction_handler;
    psVar2 = (sigaction *)((int)psVar2 + (uint)bVar5 * -8 + 4);
    p_Var4 = p_Var4 + (uint)bVar5 * -2 + 1;
  }
  local_a0[0] = (_union_1051)0x1;
  sigaction(0xd,(sigaction *)local_a0,(sigaction *)0x0);
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}

