
/* 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 sendsuboption(connectdata *conn,int option)

{
  void *__buf;
  _Bool _Var1;
  Curl_easy *data_00;
  void *pvVar2;
  Curl_easy **data;
  ssize_t sVar3;
  int *piVar4;
  
  if (option == 0x1f) {
    data_00 = conn->data;
    pvVar2 = (data_00->req).protop;
    *(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f;
    __buf = (void *)((int)pvVar2 + 0x1cb0);
    *(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff;
    *(ushort *)((int)pvVar2 + 0x1cb3) =
         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8;
    *(ushort *)((int)pvVar2 + 0x1cb5) =
         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8;
    *(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;
    _Var1 = (data_00->set).verbose;
    *(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;
    *(void **)((int)pvVar2 + 0x1eb0) = __buf;
    if (_Var1 != false) {
      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),
               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);
    }
    sVar3 = send(conn->sock[0],__buf,3,0x4000);
    if (sVar3 < 0) {
      piVar4 = __errno_location();
      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);
    }
    send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4);
    sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);
    if (sVar3 < 0) {
      piVar4 = __errno_location();
      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);
    }
  }
  return;
}



void __regparm3 FUN_00036c90(undefined4 param_1,int param_2)

{
  void *__buf;
  char cVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  ssize_t sVar5;
  int *piVar6;
  int unaff_EBX;
  
  piVar4 = (int *)entry(param_2,0x36c99);
  if (param_2 == 0x1f) {
    iVar2 = *piVar4;
    iVar3 = *(int *)(iVar2 + 0x148);
    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;
    __buf = (void *)(iVar3 + 0x1cb0);
    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;
    *(ushort *)(iVar3 + 0x1cb3) =
         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;
    *(ushort *)(iVar3 + 0x1cb5) =
         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;
    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;
    cVar1 = *(char *)(iVar2 + 0x93c);
    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;
    *(void **)(iVar3 + 0x1eb0) = __buf;
    if (cVar1 != '\0') {
      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);
    }
    sVar5 = send(piVar4[100],__buf,3,0x4000);
    if (sVar5 < 0) {
      piVar6 = __errno_location();
      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);
    }
    FUN_000366a0();
    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);
    if (sVar5 < 0) {
      piVar4 = __errno_location();
      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x79b47
SUB ESP,0x1c
CMP EDX,0x1f
JZ 0x00036cb0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [EAX]
MOV ESI,EAX
MOV EAX,dword ptr [EDI + 0x148]
LEA ECX,[EAX + 0x1cb2]
LEA EDX,[EAX + 0x1cb3]
MOV byte ptr [EAX + 0x1cb2],0x1f
MOV dword ptr [ESP + 0xc],ECX
MOVZX ECX,word ptr [EAX + 0x1ca8]
LEA EBP,[EAX + 0x1cb0]
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,0xfffffaff
ROL CX,0x8
MOV word ptr [EAX + 0x1cb0],DX
MOVZX EDX,word ptr [EAX + 0x1caa]
MOV word ptr [EAX + 0x1cb3],CX
LEA ECX,[EAX + 0x1cb7]
ROL DX,0x8
MOV dword ptr [ESP + 0x8],ECX
MOV ECX,0xfffff0ff
MOV word ptr [EAX + 0x1cb5],DX
LEA EDX,[EAX + 0x1cb9]
MOV word ptr [EAX + 0x1cb7],CX
CMP byte ptr [EDI + 0x93c],0x0
MOV dword ptr [EAX + 0x1eb4],EDX
MOV dword ptr [EAX + 0x1eb0],EBP
JNZ 0x00036db0
PUSH 0x4000
PUSH 0x3
PUSH EBP
PUSH dword ptr [ESI + 0x190]
CALL 0x00018c00
ADD ESP,0x10
TEST EAX,EAX
JS 0x00036dd8
MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,0x4
MOV EAX,ESI
CALL 0x000366a0
PUSH 0x4000
PUSH 0x2
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESI + 0x190]
CALL 0x00018c00
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00036ca7
CALL 0x00018bd0
SUB ESP,0x4
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xfffcfab5]
PUSH EAX
PUSH EDI
CALL 0x00027240
ADD ESP,0x10
JMP 0x00036ca7
SUB EDX,EBP
SUB ESP,0xc
MOV EAX,EDI
SUB EDX,0x2
PUSH EDX
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,0x3e
CALL 0x00036850
ADD ESP,0x10
JMP 0x00036d3c
CALL 0x00018bd0
SUB ESP,0x4
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xfffcfab5]
PUSH EAX
PUSH EDI
CALL 0x00027240
ADD ESP,0x10
JMP 0x00036d5a
(translation_unit "void __regparm3 FUN_00036c90(undefined4 param_1,int param_2)\n\n{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00036c90(undefined4 param_1,int param_2)\n\n{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036c90(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}" { (declaration "void *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "ssize_t sVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (expression_statement "piVar4 = (int *)entry(param_2,0x36c99);" (assignment_expression "piVar4 = (int *)entry(param_2,0x36c99)" identifier = (cast_expression "(int *)entry(param_2,0x36c99)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "entry(param_2,0x36c99)" identifier (argument_list "(param_2,0x36c99)" ( identifier , number_literal ))))) ;) (if_statement "if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }" if (parenthesized_expression "(param_2 == 0x1f)" ( (binary_expression "param_2 == 0x1f" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }" { (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar3 = *(int *)(iVar2 + 0x148);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x148)" identifier = (pointer_expression "*(int *)(iVar2 + 0x148)" * (cast_expression "(int *)(iVar2 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x148)" ( (binary_expression "iVar2 + 0x148" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;" (assignment_expression "*(undefined1 *)(iVar3 + 0x1cb2) = 0x1f" (pointer_expression "*(undefined1 *)(iVar3 + 0x1cb2)" * (cast_expression "(undefined1 *)(iVar3 + 0x1cb2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb2)" ( (binary_expression "iVar3 + 0x1cb2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__buf = (void *)(iVar3 + 0x1cb0);" (assignment_expression "__buf = (void *)(iVar3 + 0x1cb0)" identifier = (cast_expression "(void *)(iVar3 + 0x1cb0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb0)" ( (binary_expression "iVar3 + 0x1cb0" identifier + number_literal) )))) ;) (expression_statement "*(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;" (assignment_expression "*(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff" (pointer_expression "*(undefined2 *)(iVar3 + 0x1cb0)" * (cast_expression "(undefined2 *)(iVar3 + 0x1cb0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb0)" ( (binary_expression "iVar3 + 0x1cb0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;" (assignment_expression "*(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1cb3)" * (cast_expression "(ushort *)(iVar3 + 0x1cb3)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb3)" ( (binary_expression "iVar3 + 0x1cb3" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8" (binary_expression "*(ushort *)(iVar3 + 0x1ca8) << 8" (pointer_expression "*(ushort *)(iVar3 + 0x1ca8)" * (cast_expression "(ushort *)(iVar3 + 0x1ca8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1ca8)" ( (binary_expression "iVar3 + 0x1ca8" identifier + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)(iVar3 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1ca8)" * (cast_expression "(ushort *)(iVar3 + 0x1ca8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1ca8)" ( (binary_expression "iVar3 + 0x1ca8" identifier + number_literal) )))) >> number_literal))) ;) (expression_statement "*(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;" (assignment_expression "*(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1cb5)" * (cast_expression "(ushort *)(iVar3 + 0x1cb5)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb5)" ( (binary_expression "iVar3 + 0x1cb5" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8" (binary_expression "*(ushort *)(iVar3 + 0x1caa) << 8" (pointer_expression "*(ushort *)(iVar3 + 0x1caa)" * (cast_expression "(ushort *)(iVar3 + 0x1caa)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1caa)" ( (binary_expression "iVar3 + 0x1caa" identifier + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)(iVar3 + 0x1caa) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1caa)" * (cast_expression "(ushort *)(iVar3 + 0x1caa)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1caa)" ( (binary_expression "iVar3 + 0x1caa" identifier + number_literal) )))) >> number_literal))) ;) (expression_statement "*(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;" (assignment_expression "*(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff" (pointer_expression "*(undefined2 *)(iVar3 + 0x1cb7)" * (cast_expression "(undefined2 *)(iVar3 + 0x1cb7)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb7)" ( (binary_expression "iVar3 + 0x1cb7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "cVar1 = *(char *)(iVar2 + 0x93c);" (assignment_expression "cVar1 = *(char *)(iVar2 + 0x93c)" identifier = (pointer_expression "*(char *)(iVar2 + 0x93c)" * (cast_expression "(char *)(iVar2 + 0x93c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x93c)" ( (binary_expression "iVar2 + 0x93c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;" (assignment_expression "*(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9" (pointer_expression "*(int *)(iVar3 + 0x1eb4)" * (cast_expression "(int *)(iVar3 + 0x1eb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1eb4)" ( (binary_expression "iVar3 + 0x1eb4" identifier + number_literal) )))) = (binary_expression "iVar3 + 0x1cb9" identifier + number_literal)) ;) (expression_statement "*(void **)(iVar3 + 0x1eb0) = __buf;" (assignment_expression "*(void **)(iVar3 + 0x1eb0) = __buf" (pointer_expression "*(void **)(iVar3 + 0x1eb0)" * (cast_expression "(void **)(iVar3 + 0x1eb0)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x1eb0)" ( (binary_expression "iVar3 + 0x1eb0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }" { (expression_statement "FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);" (call_expression "FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2)" identifier (argument_list "(((iVar3 + 0x1cb9) - (int)__buf) + -2)" ( (binary_expression "((iVar3 + 0x1cb9) - (int)__buf) + -2" (parenthesized_expression "((iVar3 + 0x1cb9) - (int)__buf)" ( (binary_expression "(iVar3 + 0x1cb9) - (int)__buf" (parenthesized_expression "(iVar3 + 0x1cb9)" ( (binary_expression "iVar3 + 0x1cb9" identifier + number_literal) )) - (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) ))) ;) })) (expression_statement "sVar5 = send(piVar4[100],__buf,3,0x4000);" (assignment_expression "sVar5 = send(piVar4[100],__buf,3,0x4000)" identifier = (call_expression "send(piVar4[100],__buf,3,0x4000)" identifier (argument_list "(piVar4[100],__buf,3,0x4000)" ( (subscript_expression "piVar4[100]" identifier [ number_literal ]) , identifier , number_literal , number_literal )))) ;) (if_statement "if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }" if (parenthesized_expression "(sVar5 < 0)" ( (binary_expression "sVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);" (call_expression "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6)" identifier (argument_list "(iVar2,unaff_EBX + 0x495fc,*piVar6)" ( identifier , (binary_expression "unaff_EBX + 0x495fc" identifier + number_literal) , (pointer_expression "*piVar6" * identifier) ))) ;) })) (expression_statement "FUN_000366a0();" (call_expression "FUN_000366a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);" (assignment_expression "sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" identifier = (call_expression "send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" identifier (argument_list "(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" ( (subscript_expression "piVar4[100]" identifier [ number_literal ]) , (cast_expression "(void *)(iVar3 + 0x1cb7)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb7)" ( (binary_expression "iVar3 + 0x1cb7" identifier + number_literal) ))) , number_literal , number_literal )))) ;) (if_statement "if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }" if (parenthesized_expression "(sVar5 < 0)" ( (binary_expression "sVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);" (call_expression "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4)" identifier (argument_list "(iVar2,unaff_EBX + 0x495fc,*piVar4)" ( identifier , (binary_expression "unaff_EBX + 0x495fc" identifier + number_literal) , (pointer_expression "*piVar4" * identifier) ))) ;) })) })) (return_statement "return;" return ;) })))
(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 sendsuboption(connectdata *conn,int option)\n\n{\n  void *__buf;\n  _Bool _Var1;\n  Curl_easy *data_00;\n  void *pvVar2;\n  Curl_easy **data;\n  ssize_t sVar3;\n  int *piVar4;\n  \n  if (option == 0x1f) {\n    data_00 = conn->data;\n    pvVar2 = (data_00->req).protop;\n    *(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f;\n    __buf = (void *)((int)pvVar2 + 0x1cb0);\n    *(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff;\n    *(ushort *)((int)pvVar2 + 0x1cb3) =\n         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8;\n    *(ushort *)((int)pvVar2 + 0x1cb5) =\n         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8;\n    *(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;\n    _Var1 = (data_00->set).verbose;\n    *(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;\n    *(void **)((int)pvVar2 + 0x1eb0) = __buf;\n    if (_Var1 != false) {\n      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);\n    }\n    sVar3 = send(conn->sock[0],__buf,3,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n    send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4);\n    sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 sendsuboption(connectdata *conn,int option)\n\n{\n  void *__buf;\n  _Bool _Var1;\n  Curl_easy *data_00;\n  void *pvVar2;\n  Curl_easy **data;\n  ssize_t sVar3;\n  int *piVar4;\n  \n  if (option == 0x1f) {\n    data_00 = conn->data;\n    pvVar2 = (data_00->req).protop;\n    *(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f;\n    __buf = (void *)((int)pvVar2 + 0x1cb0);\n    *(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff;\n    *(ushort *)((int)pvVar2 + 0x1cb3) =\n         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8;\n    *(ushort *)((int)pvVar2 + 0x1cb5) =\n         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8;\n    *(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;\n    _Var1 = (data_00->set).verbose;\n    *(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;\n    *(void **)((int)pvVar2 + 0x1eb0) = __buf;\n    if (_Var1 != false) {\n      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);\n    }\n    sVar3 = send(conn->sock[0],__buf,3,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n    send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4);\n    sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sendsuboption(connectdata *conn,int option)" identifier (parameter_list "(connectdata *conn,int option)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "int option" primitive_type identifier) ))) (compound_statement "{\n  void *__buf;\n  _Bool _Var1;\n  Curl_easy *data_00;\n  void *pvVar2;\n  Curl_easy **data;\n  ssize_t sVar3;\n  int *piVar4;\n  \n  if (option == 0x1f) {\n    data_00 = conn->data;\n    pvVar2 = (data_00->req).protop;\n    *(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f;\n    __buf = (void *)((int)pvVar2 + 0x1cb0);\n    *(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff;\n    *(ushort *)((int)pvVar2 + 0x1cb3) =\n         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8;\n    *(ushort *)((int)pvVar2 + 0x1cb5) =\n         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8;\n    *(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;\n    _Var1 = (data_00->set).verbose;\n    *(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;\n    *(void **)((int)pvVar2 + 0x1eb0) = __buf;\n    if (_Var1 != false) {\n      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);\n    }\n    sVar3 = send(conn->sock[0],__buf,3,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n    send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4);\n    sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n  }\n  return;\n}" { (declaration "void *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "Curl_easy *data_00;" type_identifier (pointer_declarator "*data_00" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "Curl_easy **data;" type_identifier (pointer_declarator "**data" * (pointer_declarator "*data" * identifier)) ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if (option == 0x1f) {\n    data_00 = conn->data;\n    pvVar2 = (data_00->req).protop;\n    *(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f;\n    __buf = (void *)((int)pvVar2 + 0x1cb0);\n    *(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff;\n    *(ushort *)((int)pvVar2 + 0x1cb3) =\n         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8;\n    *(ushort *)((int)pvVar2 + 0x1cb5) =\n         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8;\n    *(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;\n    _Var1 = (data_00->set).verbose;\n    *(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;\n    *(void **)((int)pvVar2 + 0x1eb0) = __buf;\n    if (_Var1 != false) {\n      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);\n    }\n    sVar3 = send(conn->sock[0],__buf,3,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n    send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4);\n    sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n  }" if (parenthesized_expression "(option == 0x1f)" ( (binary_expression "option == 0x1f" identifier == number_literal) )) (compound_statement "{\n    data_00 = conn->data;\n    pvVar2 = (data_00->req).protop;\n    *(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f;\n    __buf = (void *)((int)pvVar2 + 0x1cb0);\n    *(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff;\n    *(ushort *)((int)pvVar2 + 0x1cb3) =\n         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8;\n    *(ushort *)((int)pvVar2 + 0x1cb5) =\n         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8;\n    *(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;\n    _Var1 = (data_00->set).verbose;\n    *(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;\n    *(void **)((int)pvVar2 + 0x1eb0) = __buf;\n    if (_Var1 != false) {\n      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);\n    }\n    sVar3 = send(conn->sock[0],__buf,3,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n    send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4);\n    sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);\n    if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }\n  }" { (expression_statement "data_00 = conn->data;" (assignment_expression "data_00 = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "pvVar2 = (data_00->req).protop;" (assignment_expression "pvVar2 = (data_00->req).protop" identifier = (field_expression "(data_00->req).protop" (parenthesized_expression "(data_00->req)" ( (field_expression "data_00->req" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f;" (assignment_expression "*(undefined1 *)((int)pvVar2 + 0x1cb2) = 0x1f" (pointer_expression "*(undefined1 *)((int)pvVar2 + 0x1cb2)" * (cast_expression "(undefined1 *)((int)pvVar2 + 0x1cb2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb2)" ( (binary_expression "(int)pvVar2 + 0x1cb2" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "__buf = (void *)((int)pvVar2 + 0x1cb0);" (assignment_expression "__buf = (void *)((int)pvVar2 + 0x1cb0)" identifier = (cast_expression "(void *)((int)pvVar2 + 0x1cb0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb0)" ( (binary_expression "(int)pvVar2 + 0x1cb0" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff;" (assignment_expression "*(undefined2 *)((int)pvVar2 + 0x1cb0) = 0xfaff" (pointer_expression "*(undefined2 *)((int)pvVar2 + 0x1cb0)" * (cast_expression "(undefined2 *)((int)pvVar2 + 0x1cb0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb0)" ( (binary_expression "(int)pvVar2 + 0x1cb0" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(ushort *)((int)pvVar2 + 0x1cb3) =\n         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8;" (assignment_expression "*(ushort *)((int)pvVar2 + 0x1cb3) =\n         *(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)((int)pvVar2 + 0x1cb3)" * (cast_expression "(ushort *)((int)pvVar2 + 0x1cb3)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb3)" ( (binary_expression "(int)pvVar2 + 0x1cb3" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(ushort *)((int)pvVar2 + 0x1ca8) << 8 | *(ushort *)((int)pvVar2 + 0x1ca8) >> 8" (binary_expression "*(ushort *)((int)pvVar2 + 0x1ca8) << 8" (pointer_expression "*(ushort *)((int)pvVar2 + 0x1ca8)" * (cast_expression "(ushort *)((int)pvVar2 + 0x1ca8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1ca8)" ( (binary_expression "(int)pvVar2 + 0x1ca8" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)((int)pvVar2 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)((int)pvVar2 + 0x1ca8)" * (cast_expression "(ushort *)((int)pvVar2 + 0x1ca8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1ca8)" ( (binary_expression "(int)pvVar2 + 0x1ca8" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) >> number_literal))) ;) (expression_statement "*(ushort *)((int)pvVar2 + 0x1cb5) =\n         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8;" (assignment_expression "*(ushort *)((int)pvVar2 + 0x1cb5) =\n         *(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8" (pointer_expression "*(ushort *)((int)pvVar2 + 0x1cb5)" * (cast_expression "(ushort *)((int)pvVar2 + 0x1cb5)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb5)" ( (binary_expression "(int)pvVar2 + 0x1cb5" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(ushort *)((int)pvVar2 + 0x1caa) << 8 | *(ushort *)((int)pvVar2 + 0x1caa) >> 8" (binary_expression "*(ushort *)((int)pvVar2 + 0x1caa) << 8" (pointer_expression "*(ushort *)((int)pvVar2 + 0x1caa)" * (cast_expression "(ushort *)((int)pvVar2 + 0x1caa)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1caa)" ( (binary_expression "(int)pvVar2 + 0x1caa" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)((int)pvVar2 + 0x1caa) >> 8" (pointer_expression "*(ushort *)((int)pvVar2 + 0x1caa)" * (cast_expression "(ushort *)((int)pvVar2 + 0x1caa)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1caa)" ( (binary_expression "(int)pvVar2 + 0x1caa" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) >> number_literal))) ;) (expression_statement "*(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;" (assignment_expression "*(undefined2 *)((int)pvVar2 + 0x1cb7) = 0xf0ff" (pointer_expression "*(undefined2 *)((int)pvVar2 + 0x1cb7)" * (cast_expression "(undefined2 *)((int)pvVar2 + 0x1cb7)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb7)" ( (binary_expression "(int)pvVar2 + 0x1cb7" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "_Var1 = (data_00->set).verbose;" (assignment_expression "_Var1 = (data_00->set).verbose" identifier = (field_expression "(data_00->set).verbose" (parenthesized_expression "(data_00->set)" ( (field_expression "data_00->set" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;" (assignment_expression "*(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9" (pointer_expression "*(int *)((int)pvVar2 + 0x1eb4)" * (cast_expression "(int *)((int)pvVar2 + 0x1eb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1eb4)" ( (binary_expression "(int)pvVar2 + 0x1eb4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(int)pvVar2 + 0x1cb9" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "*(void **)((int)pvVar2 + 0x1eb0) = __buf;" (assignment_expression "*(void **)((int)pvVar2 + 0x1eb0) = __buf" (pointer_expression "*(void **)((int)pvVar2 + 0x1eb0)" * (cast_expression "(void **)((int)pvVar2 + 0x1eb0)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 0x1eb0)" ( (binary_expression "(int)pvVar2 + 0x1eb0" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (_Var1 != false) {\n      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);\n    }" if (parenthesized_expression "(_Var1 != false)" ( (binary_expression "_Var1 != false" identifier != false) )) (compound_statement "{\n      printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);\n    }" { (expression_statement "printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);" (call_expression "printsub(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2)" identifier (argument_list "(data_00,0x3e,(uchar *)((int)pvVar2 + 0x1cb2),\n               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2)" ( identifier , number_literal , (cast_expression "(uchar *)((int)pvVar2 + 0x1cb2)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb2)" ( (binary_expression "(int)pvVar2 + 0x1cb2" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (binary_expression "(((int)pvVar2 + 0x1cb9) - (int)__buf) - 2" (parenthesized_expression "(((int)pvVar2 + 0x1cb9) - (int)__buf)" ( (binary_expression "((int)pvVar2 + 0x1cb9) - (int)__buf" (parenthesized_expression "((int)pvVar2 + 0x1cb9)" ( (binary_expression "(int)pvVar2 + 0x1cb9" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier)) )) - number_literal) ))) ;) })) (expression_statement "sVar3 = send(conn->sock[0],__buf,3,0x4000);" (assignment_expression "sVar3 = send(conn->sock[0],__buf,3,0x4000)" identifier = (call_expression "send(conn->sock[0],__buf,3,0x4000)" identifier (argument_list "(conn->sock[0],__buf,3,0x4000)" ( (subscript_expression "conn->sock[0]" (field_expression "conn->sock" identifier -> field_identifier) [ number_literal ]) , identifier , number_literal , number_literal )))) ;) (if_statement "if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }" if (parenthesized_expression "(sVar3 < 0)" ( (binary_expression "sVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "Curl_failf(data_00,"Sending data failed (%d)",*piVar4);" (call_expression "Curl_failf(data_00,"Sending data failed (%d)",*piVar4)" identifier (argument_list "(data_00,"Sending data failed (%d)",*piVar4)" ( identifier , (string_literal ""Sending data failed (%d)"" " string_content ") , (pointer_expression "*piVar4" * identifier) ))) ;) })) (expression_statement "send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4);" (call_expression "send_telnet_data(conn,(char *)((int)pvVar2 + 0x1cb3),4)" identifier (argument_list "(conn,(char *)((int)pvVar2 + 0x1cb3),4)" ( identifier , (cast_expression "(char *)((int)pvVar2 + 0x1cb3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb3)" ( (binary_expression "(int)pvVar2 + 0x1cb3" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal ))) ;) (expression_statement "sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);" (assignment_expression "sVar3 = send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000)" identifier = (call_expression "send(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000)" identifier (argument_list "(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000)" ( (subscript_expression "conn->sock[0]" (field_expression "conn->sock" identifier -> field_identifier) [ number_literal ]) , (cast_expression "(void *)((int)pvVar2 + 0x1cb7)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x1cb7)" ( (binary_expression "(int)pvVar2 + 0x1cb7" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal , number_literal )))) ;) (if_statement "if (sVar3 < 0) {\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }" if (parenthesized_expression "(sVar3 < 0)" ( (binary_expression "sVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      Curl_failf(data_00,"Sending data failed (%d)",*piVar4);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "Curl_failf(data_00,"Sending data failed (%d)",*piVar4);" (call_expression "Curl_failf(data_00,"Sending data failed (%d)",*piVar4)" identifier (argument_list "(data_00,"Sending data failed (%d)",*piVar4)" ( identifier , (string_literal ""Sending data failed (%d)"" " string_content ") , (pointer_expression "*piVar4" * identifier) ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00036c90(undefined4 param_1,int param_2)\n\n{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00036c90(undefined4 param_1,int param_2)\n\n{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036c90(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}" { (declaration "void *__buf;" primitive_type (pointer_declarator "*__buf" * identifier) ;) (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "ssize_t sVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (expression_statement "piVar4 = (int *)entry(param_2,0x36c99);" (assignment_expression "piVar4 = (int *)entry(param_2,0x36c99)" identifier = (cast_expression "(int *)entry(param_2,0x36c99)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "entry(param_2,0x36c99)" identifier (argument_list "(param_2,0x36c99)" ( identifier , number_literal ))))) ;) (if_statement "if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }" if (parenthesized_expression "(param_2 == 0x1f)" ( (binary_expression "param_2 == 0x1f" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }" { (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar3 = *(int *)(iVar2 + 0x148);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x148)" identifier = (pointer_expression "*(int *)(iVar2 + 0x148)" * (cast_expression "(int *)(iVar2 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x148)" ( (binary_expression "iVar2 + 0x148" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;" (assignment_expression "*(undefined1 *)(iVar3 + 0x1cb2) = 0x1f" (pointer_expression "*(undefined1 *)(iVar3 + 0x1cb2)" * (cast_expression "(undefined1 *)(iVar3 + 0x1cb2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb2)" ( (binary_expression "iVar3 + 0x1cb2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__buf = (void *)(iVar3 + 0x1cb0);" (assignment_expression "__buf = (void *)(iVar3 + 0x1cb0)" identifier = (cast_expression "(void *)(iVar3 + 0x1cb0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb0)" ( (binary_expression "iVar3 + 0x1cb0" identifier + number_literal) )))) ;) (expression_statement "*(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;" (assignment_expression "*(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff" (pointer_expression "*(undefined2 *)(iVar3 + 0x1cb0)" * (cast_expression "(undefined2 *)(iVar3 + 0x1cb0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb0)" ( (binary_expression "iVar3 + 0x1cb0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;" (assignment_expression "*(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1cb3)" * (cast_expression "(ushort *)(iVar3 + 0x1cb3)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb3)" ( (binary_expression "iVar3 + 0x1cb3" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8" (binary_expression "*(ushort *)(iVar3 + 0x1ca8) << 8" (pointer_expression "*(ushort *)(iVar3 + 0x1ca8)" * (cast_expression "(ushort *)(iVar3 + 0x1ca8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1ca8)" ( (binary_expression "iVar3 + 0x1ca8" identifier + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)(iVar3 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1ca8)" * (cast_expression "(ushort *)(iVar3 + 0x1ca8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1ca8)" ( (binary_expression "iVar3 + 0x1ca8" identifier + number_literal) )))) >> number_literal))) ;) (expression_statement "*(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;" (assignment_expression "*(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1cb5)" * (cast_expression "(ushort *)(iVar3 + 0x1cb5)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb5)" ( (binary_expression "iVar3 + 0x1cb5" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8" (binary_expression "*(ushort *)(iVar3 + 0x1caa) << 8" (pointer_expression "*(ushort *)(iVar3 + 0x1caa)" * (cast_expression "(ushort *)(iVar3 + 0x1caa)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1caa)" ( (binary_expression "iVar3 + 0x1caa" identifier + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)(iVar3 + 0x1caa) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1caa)" * (cast_expression "(ushort *)(iVar3 + 0x1caa)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1caa)" ( (binary_expression "iVar3 + 0x1caa" identifier + number_literal) )))) >> number_literal))) ;) (expression_statement "*(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;" (assignment_expression "*(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff" (pointer_expression "*(undefined2 *)(iVar3 + 0x1cb7)" * (cast_expression "(undefined2 *)(iVar3 + 0x1cb7)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb7)" ( (binary_expression "iVar3 + 0x1cb7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "cVar1 = *(char *)(iVar2 + 0x93c);" (assignment_expression "cVar1 = *(char *)(iVar2 + 0x93c)" identifier = (pointer_expression "*(char *)(iVar2 + 0x93c)" * (cast_expression "(char *)(iVar2 + 0x93c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x93c)" ( (binary_expression "iVar2 + 0x93c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;" (assignment_expression "*(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9" (pointer_expression "*(int *)(iVar3 + 0x1eb4)" * (cast_expression "(int *)(iVar3 + 0x1eb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1eb4)" ( (binary_expression "iVar3 + 0x1eb4" identifier + number_literal) )))) = (binary_expression "iVar3 + 0x1cb9" identifier + number_literal)) ;) (expression_statement "*(void **)(iVar3 + 0x1eb0) = __buf;" (assignment_expression "*(void **)(iVar3 + 0x1eb0) = __buf" (pointer_expression "*(void **)(iVar3 + 0x1eb0)" * (cast_expression "(void **)(iVar3 + 0x1eb0)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x1eb0)" ( (binary_expression "iVar3 + 0x1eb0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }" { (expression_statement "FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);" (call_expression "FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2)" identifier (argument_list "(((iVar3 + 0x1cb9) - (int)__buf) + -2)" ( (binary_expression "((iVar3 + 0x1cb9) - (int)__buf) + -2" (parenthesized_expression "((iVar3 + 0x1cb9) - (int)__buf)" ( (binary_expression "(iVar3 + 0x1cb9) - (int)__buf" (parenthesized_expression "(iVar3 + 0x1cb9)" ( (binary_expression "iVar3 + 0x1cb9" identifier + number_literal) )) - (cast_expression "(int)__buf" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) ))) ;) })) (expression_statement "sVar5 = send(piVar4[100],__buf,3,0x4000);" (assignment_expression "sVar5 = send(piVar4[100],__buf,3,0x4000)" identifier = (call_expression "send(piVar4[100],__buf,3,0x4000)" identifier (argument_list "(piVar4[100],__buf,3,0x4000)" ( (subscript_expression "piVar4[100]" identifier [ number_literal ]) , identifier , number_literal , number_literal )))) ;) (if_statement "if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }" if (parenthesized_expression "(sVar5 < 0)" ( (binary_expression "sVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);" (call_expression "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6)" identifier (argument_list "(iVar2,unaff_EBX + 0x495fc,*piVar6)" ( identifier , (binary_expression "unaff_EBX + 0x495fc" identifier + number_literal) , (pointer_expression "*piVar6" * identifier) ))) ;) })) (expression_statement "FUN_000366a0();" (call_expression "FUN_000366a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);" (assignment_expression "sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" identifier = (call_expression "send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" identifier (argument_list "(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" ( (subscript_expression "piVar4[100]" identifier [ number_literal ]) , (cast_expression "(void *)(iVar3 + 0x1cb7)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1cb7)" ( (binary_expression "iVar3 + 0x1cb7" identifier + number_literal) ))) , number_literal , number_literal )))) ;) (if_statement "if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }" if (parenthesized_expression "(sVar5 < 0)" ( (binary_expression "sVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);" (call_expression "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4)" identifier (argument_list "(iVar2,unaff_EBX + 0x495fc,*piVar4)" ( identifier , (binary_expression "unaff_EBX + 0x495fc" identifier + number_literal) , (pointer_expression "*piVar4" * identifier) ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) | (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) | (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) ))) ;) })) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00036c90(undefined4 param_1,int param_2)\n\n{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00036c90(undefined4 param_1,int param_2)" (identifier "FUN_00036c90") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *__buf;\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  ssize_t sVar5;\n  int *piVar6;\n  int unaff_EBX;\n  \n  piVar4 = (int *)entry(param_2,0x36c99);\n  if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }\n  return;\n}" ({ "{") (declaration "void *__buf;" (primitive_type "void") (pointer_declarator "*__buf" (* "*") (identifier "__buf")) (; ";")) (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "ssize_t sVar5;" (primitive_type "ssize_t") (identifier "sVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (expression_statement "piVar4 = (int *)entry(param_2,0x36c99);" (assignment_expression "piVar4 = (int *)entry(param_2,0x36c99)" (identifier "piVar4") (= "=") (cast_expression "(int *)entry(param_2,0x36c99)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "entry(param_2,0x36c99)" (identifier "entry") (argument_list "(param_2,0x36c99)" (( "(") (identifier "param_2") (, ",") (number_literal "0x36c99") () ")"))))) (; ";")) (if_statement "if (param_2 == 0x1f) {\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0x1f)" (( "(") (binary_expression "param_2 == 0x1f" (identifier "param_2") (== "==") (number_literal "0x1f")) () ")")) (compound_statement "{\n    iVar2 = *piVar4;\n    iVar3 = *(int *)(iVar2 + 0x148);\n    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;\n    __buf = (void *)(iVar3 + 0x1cb0);\n    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;\n    *(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;\n    *(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;\n    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;\n    cVar1 = *(char *)(iVar2 + 0x93c);\n    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;\n    *(void **)(iVar3 + 0x1eb0) = __buf;\n    if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }\n    sVar5 = send(piVar4[100],__buf,3,0x4000);\n    if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }\n    FUN_000366a0();\n    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);\n    if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }\n  }" ({ "{") (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar2 + 0x148);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x148)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + 0x148)" (* "*") (cast_expression "(int *)(iVar2 + 0x148)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x148)" (( "(") (binary_expression "iVar2 + 0x148" (identifier "iVar2") (+ "+") (number_literal "0x148")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;" (assignment_expression "*(undefined1 *)(iVar3 + 0x1cb2) = 0x1f" (pointer_expression "*(undefined1 *)(iVar3 + 0x1cb2)" (* "*") (cast_expression "(undefined1 *)(iVar3 + 0x1cb2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1cb2)" (( "(") (binary_expression "iVar3 + 0x1cb2" (identifier "iVar3") (+ "+") (number_literal "0x1cb2")) () ")")))) (= "=") (number_literal "0x1f")) (; ";")) (expression_statement "__buf = (void *)(iVar3 + 0x1cb0);" (assignment_expression "__buf = (void *)(iVar3 + 0x1cb0)" (identifier "__buf") (= "=") (cast_expression "(void *)(iVar3 + 0x1cb0)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1cb0)" (( "(") (binary_expression "iVar3 + 0x1cb0" (identifier "iVar3") (+ "+") (number_literal "0x1cb0")) () ")")))) (; ";")) (expression_statement "*(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;" (assignment_expression "*(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff" (pointer_expression "*(undefined2 *)(iVar3 + 0x1cb0)" (* "*") (cast_expression "(undefined2 *)(iVar3 + 0x1cb0)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1cb0)" (( "(") (binary_expression "iVar3 + 0x1cb0" (identifier "iVar3") (+ "+") (number_literal "0x1cb0")) () ")")))) (= "=") (number_literal "0xfaff")) (; ";")) (expression_statement "*(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;" (assignment_expression "*(ushort *)(iVar3 + 0x1cb3) =\n         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1cb3)" (* "*") (cast_expression "(ushort *)(iVar3 + 0x1cb3)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1cb3)" (( "(") (binary_expression "iVar3 + 0x1cb3" (identifier "iVar3") (+ "+") (number_literal "0x1cb3")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8" (binary_expression "*(ushort *)(iVar3 + 0x1ca8) << 8" (pointer_expression "*(ushort *)(iVar3 + 0x1ca8)" (* "*") (cast_expression "(ushort *)(iVar3 + 0x1ca8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1ca8)" (( "(") (binary_expression "iVar3 + 0x1ca8" (identifier "iVar3") (+ "+") (number_literal "0x1ca8")) () ")")))) (<< "<<") (number_literal "8")) (| "|") (binary_expression "*(ushort *)(iVar3 + 0x1ca8) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1ca8)" (* "*") (cast_expression "(ushort *)(iVar3 + 0x1ca8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1ca8)" (( "(") (binary_expression "iVar3 + 0x1ca8" (identifier "iVar3") (+ "+") (number_literal "0x1ca8")) () ")")))) (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "*(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;" (assignment_expression "*(ushort *)(iVar3 + 0x1cb5) =\n         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1cb5)" (* "*") (cast_expression "(ushort *)(iVar3 + 0x1cb5)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1cb5)" (( "(") (binary_expression "iVar3 + 0x1cb5" (identifier "iVar3") (+ "+") (number_literal "0x1cb5")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8" (binary_expression "*(ushort *)(iVar3 + 0x1caa) << 8" (pointer_expression "*(ushort *)(iVar3 + 0x1caa)" (* "*") (cast_expression "(ushort *)(iVar3 + 0x1caa)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1caa)" (( "(") (binary_expression "iVar3 + 0x1caa" (identifier "iVar3") (+ "+") (number_literal "0x1caa")) () ")")))) (<< "<<") (number_literal "8")) (| "|") (binary_expression "*(ushort *)(iVar3 + 0x1caa) >> 8" (pointer_expression "*(ushort *)(iVar3 + 0x1caa)" (* "*") (cast_expression "(ushort *)(iVar3 + 0x1caa)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1caa)" (( "(") (binary_expression "iVar3 + 0x1caa" (identifier "iVar3") (+ "+") (number_literal "0x1caa")) () ")")))) (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "*(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;" (assignment_expression "*(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff" (pointer_expression "*(undefined2 *)(iVar3 + 0x1cb7)" (* "*") (cast_expression "(undefined2 *)(iVar3 + 0x1cb7)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1cb7)" (( "(") (binary_expression "iVar3 + 0x1cb7" (identifier "iVar3") (+ "+") (number_literal "0x1cb7")) () ")")))) (= "=") (number_literal "0xf0ff")) (; ";")) (expression_statement "cVar1 = *(char *)(iVar2 + 0x93c);" (assignment_expression "cVar1 = *(char *)(iVar2 + 0x93c)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar2 + 0x93c)" (* "*") (cast_expression "(char *)(iVar2 + 0x93c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x93c)" (( "(") (binary_expression "iVar2 + 0x93c" (identifier "iVar2") (+ "+") (number_literal "0x93c")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;" (assignment_expression "*(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9" (pointer_expression "*(int *)(iVar3 + 0x1eb4)" (* "*") (cast_expression "(int *)(iVar3 + 0x1eb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1eb4)" (( "(") (binary_expression "iVar3 + 0x1eb4" (identifier "iVar3") (+ "+") (number_literal "0x1eb4")) () ")")))) (= "=") (binary_expression "iVar3 + 0x1cb9" (identifier "iVar3") (+ "+") (number_literal "0x1cb9"))) (; ";")) (expression_statement "*(void **)(iVar3 + 0x1eb0) = __buf;" (assignment_expression "*(void **)(iVar3 + 0x1eb0) = __buf" (pointer_expression "*(void **)(iVar3 + 0x1eb0)" (* "*") (cast_expression "(void **)(iVar3 + 0x1eb0)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x1eb0)" (( "(") (binary_expression "iVar3 + 0x1eb0" (identifier "iVar3") (+ "+") (number_literal "0x1eb0")) () ")")))) (= "=") (identifier "__buf")) (; ";")) (if_statement "if (cVar1 != '\0') {\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);\n    }" ({ "{") (expression_statement "FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);" (call_expression "FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2)" (identifier "FUN_00036850") (argument_list "(((iVar3 + 0x1cb9) - (int)__buf) + -2)" (( "(") (binary_expression "((iVar3 + 0x1cb9) - (int)__buf) + -2" (parenthesized_expression "((iVar3 + 0x1cb9) - (int)__buf)" (( "(") (binary_expression "(iVar3 + 0x1cb9) - (int)__buf" (parenthesized_expression "(iVar3 + 0x1cb9)" (( "(") (binary_expression "iVar3 + 0x1cb9" (identifier "iVar3") (+ "+") (number_literal "0x1cb9")) () ")")) (- "-") (cast_expression "(int)__buf" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__buf"))) () ")")) (+ "+") (number_literal "-2")) () ")"))) (; ";")) (} "}"))) (expression_statement "sVar5 = send(piVar4[100],__buf,3,0x4000);" (assignment_expression "sVar5 = send(piVar4[100],__buf,3,0x4000)" (identifier "sVar5") (= "=") (call_expression "send(piVar4[100],__buf,3,0x4000)" (identifier "send") (argument_list "(piVar4[100],__buf,3,0x4000)" (( "(") (subscript_expression "piVar4[100]" (identifier "piVar4") ([ "[") (number_literal "100") (] "]")) (, ",") (identifier "__buf") (, ",") (number_literal "3") (, ",") (number_literal "0x4000") () ")")))) (; ";")) (if_statement "if (sVar5 < 0) {\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }" (if "if") (parenthesized_expression "(sVar5 < 0)" (( "(") (binary_expression "sVar5 < 0" (identifier "sVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar6 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);\n    }" ({ "{") (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);" (call_expression "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6)" (identifier "FUN_00027240") (argument_list "(iVar2,unaff_EBX + 0x495fc,*piVar6)" (( "(") (identifier "iVar2") (, ",") (binary_expression "unaff_EBX + 0x495fc" (identifier "unaff_EBX") (+ "+") (number_literal "0x495fc")) (, ",") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000366a0();" (call_expression "FUN_000366a0()" (identifier "FUN_000366a0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);" (assignment_expression "sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" (identifier "sVar5") (= "=") (call_expression "send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" (identifier "send") (argument_list "(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000)" (( "(") (subscript_expression "piVar4[100]" (identifier "piVar4") ([ "[") (number_literal "100") (] "]")) (, ",") (cast_expression "(void *)(iVar3 + 0x1cb7)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1cb7)" (( "(") (binary_expression "iVar3 + 0x1cb7" (identifier "iVar3") (+ "+") (number_literal "0x1cb7")) () ")"))) (, ",") (number_literal "2") (, ",") (number_literal "0x4000") () ")")))) (; ";")) (if_statement "if (sVar5 < 0) {\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }" (if "if") (parenthesized_expression "(sVar5 < 0)" (( "(") (binary_expression "sVar5 < 0" (identifier "sVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = __errno_location();\n      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);\n    }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);" (call_expression "FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4)" (identifier "FUN_00027240") (argument_list "(iVar2,unaff_EBX + 0x495fc,*piVar4)" (( "(") (identifier "iVar2") (, ",") (binary_expression "unaff_EBX + 0x495fc" (identifier "unaff_EBX") (+ "+") (number_literal "0x495fc")) (, ",") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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 *conn,int var_1)

{
  void *__buf;
  type_2 var_2;
  type_3 *data_00;
  void *pvVar2;
  type_3 **data;
  ssize_t var_5;
  int *piVar4;
  
  if (var_1 == 0x1f) {
    data_00 = conn->data;
    pvVar2 = (data_00->req).protop;
    *(type_4 *)((int)pvVar2 + 0x1cb2) = 0x1f;
    __buf = (void *)((int)pvVar2 + 0x1cb0);
    *(type_5 *)((int)pvVar2 + 0x1cb0) = 0xfaff;
    *(type_6 *)((int)pvVar2 + 0x1cb3) =
         *(type_6 *)((int)pvVar2 + 0x1ca8) << 8 | *(type_6 *)((int)pvVar2 + 0x1ca8) >> 8;
    *(type_6 *)((int)pvVar2 + 0x1cb5) =
         *(type_6 *)((int)pvVar2 + 0x1caa) << 8 | *(type_6 *)((int)pvVar2 + 0x1caa) >> 8;
    *(type_5 *)((int)pvVar2 + 0x1cb7) = 0xf0ff;
    var_2 = (data_00->set).verbose;
    *(int *)((int)pvVar2 + 0x1eb4) = (int)pvVar2 + 0x1cb9;
    *(void **)((int)pvVar2 + 0x1eb0) = __buf;
    if (var_2 != false) {
      var_3(data_00,0x3e,(type_7 *)((int)pvVar2 + 0x1cb2),
               (((int)pvVar2 + 0x1cb9) - (int)__buf) - 2);
    }
    var_5 = var_4(conn->sock[0],__buf,3,0x4000);
    if (var_5 < 0) {
      piVar4 = var_6();
      var_7(data_00,"Sending data failed (%d)",*piVar4);
    }
    var_8(conn,(char *)((int)pvVar2 + 0x1cb3),4);
    var_5 = var_4(conn->sock[0],(void *)((int)pvVar2 + 0x1cb7),2,0x4000);
    if (var_5 < 0) {
      piVar4 = var_6();
      var_7(data_00,"Sending data failed (%d)",*piVar4);
    }
  }
  return;
}


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

void __regparm3 MASKED(undefined4 param_1,int param_2)

{
  void *__buf;
  char cVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  ssize_t sVar5;
  int *piVar6;
  int unaff_EBX;
  
  piVar4 = (int *)entry(param_2,0x36c99);
  if (param_2 == 0x1f) {
    iVar2 = *piVar4;
    iVar3 = *(int *)(iVar2 + 0x148);
    *(undefined1 *)(iVar3 + 0x1cb2) = 0x1f;
    __buf = (void *)(iVar3 + 0x1cb0);
    *(undefined2 *)(iVar3 + 0x1cb0) = 0xfaff;
    *(ushort *)(iVar3 + 0x1cb3) =
         *(ushort *)(iVar3 + 0x1ca8) << 8 | *(ushort *)(iVar3 + 0x1ca8) >> 8;
    *(ushort *)(iVar3 + 0x1cb5) =
         *(ushort *)(iVar3 + 0x1caa) << 8 | *(ushort *)(iVar3 + 0x1caa) >> 8;
    *(undefined2 *)(iVar3 + 0x1cb7) = 0xf0ff;
    cVar1 = *(char *)(iVar2 + 0x93c);
    *(int *)(iVar3 + 0x1eb4) = iVar3 + 0x1cb9;
    *(void **)(iVar3 + 0x1eb0) = __buf;
    if (cVar1 != '\0') {
      FUN_00036850(((iVar3 + 0x1cb9) - (int)__buf) + -2);
    }
    sVar5 = send(piVar4[100],__buf,3,0x4000);
    if (sVar5 < 0) {
      piVar6 = __errno_location();
      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar6);
    }
    FUN_000366a0();
    sVar5 = send(piVar4[100],(void *)(iVar3 + 0x1cb7),2,0x4000);
    if (sVar5 < 0) {
      piVar4 = __errno_location();
      FUN_00027240(iVar2,unaff_EBX + 0x495fc,*piVar4);
    }
  }
  return;
}

