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

int MHD_socket_set_nodelay_(MHD_socket sock,_Bool on)

{
  undefined4 *__optval;
  int iVar1;
  int in_GS_OFFSET;
  undefined4 uStack_18;
  undefined4 uStack_14;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x1e2d6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  uStack_18 = 0;
  uStack_14 = 1;
  __optval = &uStack_14;
  if (!on) {
    __optval = &uStack_18;
  }
  iVar1 = setsockopt(sock,6,1,__optval,4);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0001e2d0(int param_1,char param_2)

{
  undefined4 *__optval;
  int in_GS_OFFSET;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x1e2d6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_18 = 0;
  local_14 = 1;
  __optval = &local_14;
  if (param_2 == '\0') {
    __optval = &local_18;
  }
  setsockopt(param_1,6,1,__optval,4);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00025ce0();
}


PUSH EBX
CALL 0x00012570
ADD EBX,0x11d2a
SUB ESP,0x18
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
CMP byte ptr [ESP + 0x24],0x0
LEA EDX,[ESP + 0x4]
LEA EAX,[ESP + 0x8]
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP + 0x8],0x1
CMOVZ EAX,EDX
SUB ESP,0xc
PUSH 0x4
PUSH EAX
PUSH 0x1
PUSH 0x6
PUSH dword ptr [ESP + 0x3c]
CALL 0x00011e40
ADD ESP,0x20
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0001e333
ADD ESP,0x18
POP EBX
RET
CALL 0x00025ce0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001e2d0(int param_1,char param_2)\n\n{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00025ce0();\n}\n\n" comment (function_definition "void FUN_0001e2d0(int param_1,char param_2)\n\n{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00025ce0();\n}" primitive_type (function_declarator "FUN_0001e2d0(int param_1,char param_2)" identifier (parameter_list "(int param_1,char param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00025ce0();\n}" { (declaration "undefined4 *__optval;" type_identifier (pointer_declarator "*__optval" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x1e2d6;" (assignment_expression "uStack_8 = 0x1e2d6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 1;" (assignment_expression "local_14 = 1" identifier = number_literal) ;) (expression_statement "__optval = &local_14;" (assignment_expression "__optval = &local_14" identifier = (pointer_expression "&local_14" & identifier)) ;) (if_statement "if (param_2 == '\0') {\n    __optval = &local_18;\n  }" if (parenthesized_expression "(param_2 == '\0')" ( (binary_expression "param_2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __optval = &local_18;\n  }" { (expression_statement "__optval = &local_18;" (assignment_expression "__optval = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) })) (expression_statement "setsockopt(param_1,6,1,__optval,4);" (call_expression "setsockopt(param_1,6,1,__optval,4)" identifier (argument_list "(param_1,6,1,__optval,4)" ( identifier , number_literal , number_literal , identifier , number_literal ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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_00025ce0();" (call_expression "FUN_00025ce0()" 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\nint MHD_socket_set_nodelay_(MHD_socket sock,_Bool on)\n\n{\n  undefined4 *__optval;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 uStack_18;\n  undefined4 uStack_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_18 = 0;\n  uStack_14 = 1;\n  __optval = &uStack_14;\n  if (!on) {\n    __optval = &uStack_18;\n  }\n  iVar1 = setsockopt(sock,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int MHD_socket_set_nodelay_(MHD_socket sock,_Bool on)\n\n{\n  undefined4 *__optval;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 uStack_18;\n  undefined4 uStack_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_18 = 0;\n  uStack_14 = 1;\n  __optval = &uStack_14;\n  if (!on) {\n    __optval = &uStack_18;\n  }\n  iVar1 = setsockopt(sock,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "MHD_socket_set_nodelay_(MHD_socket sock,_Bool on)" identifier (parameter_list "(MHD_socket sock,_Bool on)" ( (parameter_declaration "MHD_socket sock" type_identifier identifier) , (parameter_declaration "_Bool on" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *__optval;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 uStack_18;\n  undefined4 uStack_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_18 = 0;\n  uStack_14 = 1;\n  __optval = &uStack_14;\n  if (!on) {\n    __optval = &uStack_18;\n  }\n  iVar1 = setsockopt(sock,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "undefined4 *__optval;" type_identifier (pointer_declarator "*__optval" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 uStack_18;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x1e2d6;" (assignment_expression "uStack_8 = 0x1e2d6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "uStack_18 = 0;" (assignment_expression "uStack_18 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 1;" (assignment_expression "uStack_14 = 1" identifier = number_literal) ;) (expression_statement "__optval = &uStack_14;" (assignment_expression "__optval = &uStack_14" identifier = (pointer_expression "&uStack_14" & identifier)) ;) (if_statement "if (!on) {\n    __optval = &uStack_18;\n  }" if (parenthesized_expression "(!on)" ( (unary_expression "!on" ! identifier) )) (compound_statement "{\n    __optval = &uStack_18;\n  }" { (expression_statement "__optval = &uStack_18;" (assignment_expression "__optval = &uStack_18" identifier = (pointer_expression "&uStack_18" & identifier)) ;) })) (expression_statement "iVar1 = setsockopt(sock,6,1,__optval,4);" (assignment_expression "iVar1 = setsockopt(sock,6,1,__optval,4)" identifier = (call_expression "setsockopt(sock,6,1,__optval,4)" identifier (argument_list "(sock,6,1,__optval,4)" ( identifier , number_literal , number_literal , identifier , number_literal )))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0001e2d0(int param_1,char param_2)\n\n{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00025ce0();\n}\n\n" (function_definition "void FUN_0001e2d0(int param_1,char param_2)\n\n{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00025ce0();\n}" primitive_type (function_declarator "FUN_0001e2d0(int param_1,char param_2)" identifier (parameter_list "(int param_1,char param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00025ce0();\n}" { (declaration "undefined4 *__optval;" type_identifier (pointer_declarator "*__optval" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x1e2d6;" (assignment_expression "uStack_8 = 0x1e2d6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 1;" (assignment_expression "local_14 = 1" identifier = number_literal) ;) (expression_statement "__optval = &local_14;" (assignment_expression "__optval = &local_14" identifier = (pointer_expression "&local_14" & identifier)) ;) (if_statement "if (param_2 == '\0') {\n    __optval = &local_18;\n  }" if (parenthesized_expression "(param_2 == '\0')" ( (binary_expression "param_2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __optval = &local_18;\n  }" { (expression_statement "__optval = &local_18;" (assignment_expression "__optval = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) })) (expression_statement "setsockopt(param_1,6,1,__optval,4);" (call_expression "setsockopt(param_1,6,1,__optval,4)" identifier (argument_list "(param_1,6,1,__optval,4)" ( identifier , number_literal , number_literal , identifier , number_literal ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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_00025ce0();" (call_expression "FUN_00025ce0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0001e2d0(int param_1,char param_2)\n\n{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00025ce0();\n}" (primitive_type "void") (function_declarator "FUN_0001e2d0(int param_1,char param_2)" (identifier "FUN_0001e2d0") (parameter_list "(int param_1,char param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *__optval;\n  int in_GS_OFFSET;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1e2d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = 0;\n  local_14 = 1;\n  __optval = &local_14;\n  if (param_2 == '\0') {\n    __optval = &local_18;\n  }\n  setsockopt(param_1,6,1,__optval,4);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00025ce0();\n}" ({ "{") (declaration "undefined4 *__optval;" (type_identifier "undefined4") (pointer_declarator "*__optval" (* "*") (identifier "__optval")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x1e2d6;" (assignment_expression "uStack_8 = 0x1e2d6" (identifier "uStack_8") (= "=") (number_literal "0x1e2d6")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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 "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_14 = 1;" (assignment_expression "local_14 = 1" (identifier "local_14") (= "=") (number_literal "1")) (; ";")) (expression_statement "__optval = &local_14;" (assignment_expression "__optval = &local_14" (identifier "__optval") (= "=") (pointer_expression "&local_14" (& "&") (identifier "local_14"))) (; ";")) (if_statement "if (param_2 == '\0') {\n    __optval = &local_18;\n  }" (if "if") (parenthesized_expression "(param_2 == '\0')" (( "(") (binary_expression "param_2 == '\0'" (identifier "param_2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    __optval = &local_18;\n  }" ({ "{") (expression_statement "__optval = &local_18;" (assignment_expression "__optval = &local_18" (identifier "__optval") (= "=") (pointer_expression "&local_18" (& "&") (identifier "local_18"))) (; ";")) (} "}"))) (expression_statement "setsockopt(param_1,6,1,__optval,4);" (call_expression "setsockopt(param_1,6,1,__optval,4)" (identifier "setsockopt") (argument_list "(param_1,6,1,__optval,4)" (( "(") (identifier "param_1") (, ",") (number_literal "6") (, ",") (number_literal "1") (, ",") (identifier "__optval") (, ",") (number_literal "4") () ")"))) (; ";")) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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_00025ce0();" (call_expression "FUN_00025ce0()" (identifier "FUN_00025ce0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(type_1 sock,type_2 on)

{
  type_3 *__optval;
  int iVar1;
  int var_1;
  type_3 uStack_18;
  type_3 uStack_14;
  int var_3;
  type_3 uStack_8;
  
  uStack_8 = 0x1e2d6;
  var_3 = *(int *)(var_1 + 0x14);
  uStack_18 = 0;
  uStack_14 = 1;
  __optval = &uStack_14;
  if (!on) {
    __optval = &uStack_18;
  }
  iVar1 = var_2(sock,6,1,__optval,4);
  if (var_3 == *(int *)(var_1 + 0x14)) {
    return iVar1;
  }
                    /* 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) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(int param_1,char param_2)

{
  undefined4 *__optval;
  int in_GS_OFFSET;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x1e2d6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_18 = 0;
  local_14 = 1;
  __optval = &local_14;
  if (param_2 == '\0') {
    __optval = &local_18;
  }
  setsockopt(param_1,6,1,__optval,4);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00025ce0();
}

