
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void share_disconnect(ssh_sharing_connstate *cs,char *message)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *pkt;
  
  iVar2 = (*(code *)PTR_strlen_00112534)(message);
  pkt = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);
  pkt[3] = 2;
  pkt[4] = (char)((uint)iVar2 >> 0x18);
  pkt[5] = (char)((uint)iVar2 >> 0x10);
  pkt[7] = (char)iVar2;
  pkt[6] = (char)((uint)iVar2 >> 8);
  *pkt = 0;
  pkt[1] = 0;
  puVar1 = PTR_memcpy_0011256c;
  pkt[2] = 0;
  (*(code *)puVar1)(pkt + 8,message,iVar2);
  pkt[iVar2 + 0xb] = 2;
  pkt[iVar2 + 8] = 0;
  pkt[iVar2 + 9] = 0;
  pkt[iVar2 + 10] = 0;
  pkt[iVar2 + 0xc] = 0x65;
  (pkt + iVar2 + 0xc)[1] = 0x6e;
  send_packet_to_downstream
            ((ssh_sharing_connstate *)&cs->sock,1,pkt,iVar2 + 0xe,(share_channel *)0x0,
             (share_channel *)0xc);
  (*(*cs->sock)->close)(cs->sock);
  cs->sock = (Socket)0x0;
  share_try_cleanup(cs);
  return;
}



void FUN_000887e0(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  
  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);
  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);
  puVar3[3] = 2;
  puVar3[4] = (char)((uint)iVar2 >> 0x18);
  puVar3[5] = (char)((uint)iVar2 >> 0x10);
  puVar3[7] = (char)iVar2;
  puVar3[6] = (char)((uint)iVar2 >> 8);
  *puVar3 = 0;
  puVar3[1] = 0;
  puVar1 = PTR_memcpy_0011256c;
  puVar3[2] = 0;
  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);
  puVar3[iVar2 + 0xb] = 2;
  puVar3[iVar2 + 8] = 0;
  puVar3[iVar2 + 9] = 0;
  puVar3[iVar2 + 10] = 0;
  puVar3[iVar2 + 0xc] = 0x65;
  (puVar3 + iVar2 + 0xc)[1] = 0x6e;
  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);
  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));
  *(undefined4 *)(param_1 + 8) = 0;
  FUN_000882d0(param_1);
  return;
}


lui gp,0x9
addiu gp,gp,0xad0
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x6d7c(gp)
sw ra,0x34(sp)
sw s4,0x30(sp)
or s4,a1,zero
sw s3,0x2c(sp)
li s3,0x2
sw s2,0x28(sp)
or s2,a0,zero
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
jalr t9
_or a0,a1,zero
li a1,0x1
lw gp,0x18(sp)
addiu a0,v0,0x100
lw t9,-0x7fc4(gp)
jalr t9
_or s1,v0,zero
sra a0,s1,0x18
lw gp,0x18(sp)
or s0,v0,zero
sb s3,0x3(v0)
sra v1,s1,0x10
sra v0,s1,0x8
sb a0,0x4(s0)
addiu a0,s0,0x8
sb v1,0x5(s0)
sb s1,0x7(s0)
or a2,s1,zero
sb v0,0x6(s0)
or a1,s4,zero
sb zero,0x0(s0)
sb zero,0x1(s0)
lw t9,-0x6d44(gp)
jalr t9
_sb zero,0x2(s0)
addu v1,s0,s1
addiu v0,s1,0xc
lw gp,0x18(sp)
addiu a3,s1,0xe
addu v0,s0,v0
sb s3,0xb(v1)
sb zero,0x8(v1)
addiu a0,s2,0x8
sb zero,0x9(v1)
li a1,0x1
sb zero,0xa(v1)
li v1,0x65
lw t9,-0x7888(gp)
or a2,s0,zero
sb v1,0x0(v0)
li v1,0x6e
sb v1,0x1(v0)
li v0,0xc
addiu t9,t9,0x77b4
sw zero,0x10(sp)
bal 0x000877b4
_sw v0,0x14(sp)
lw v0,0x8(s2)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0x4(v0)
jalr t9
_nop
or a0,s2,zero
lw gp,0x18(sp)
lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw t9,-0x77d8(gp)
lw s1,0x24(sp)
lw s0,0x20(sp)
sw zero,0x8(s2)
addiu t9,t9,-0x7d30
lw s2,0x28(sp)
b 0x000882d0
_addiu sp,sp,0x38
(translation_unit "void FUN_000887e0(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000887e0(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000887e0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00112534)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + 0x100,1)" ( (binary_expression "iVar2 + 0x100" identifier + number_literal) , number_literal ))))) ;) (expression_statement "puVar3[3] = 2;" (assignment_expression "puVar3[3] = 2" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[4] = (char)((uint)iVar2 >> 0x18);" (assignment_expression "puVar3[4] = (char)((uint)iVar2 >> 0x18)" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x18)" ( (binary_expression "(uint)iVar2 >> 0x18" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar3[5] = (char)((uint)iVar2 >> 0x10);" (assignment_expression "puVar3[5] = (char)((uint)iVar2 >> 0x10)" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x10)" ( (binary_expression "(uint)iVar2 >> 0x10" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar3[7] = (char)iVar2;" (assignment_expression "puVar3[7] = (char)iVar2" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar3[6] = (char)((uint)iVar2 >> 8);" (assignment_expression "puVar3[6] = (char)((uint)iVar2 >> 8)" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_memcpy_0011256c;" (assignment_expression "puVar1 = PTR_memcpy_0011256c" identifier = identifier) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*(code *)puVar1)(puVar3 + 8,param_2,iVar2);" (call_expression "(*(code *)puVar1)(puVar3 + 8,param_2,iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + 8,param_2,iVar2)" ( (binary_expression "puVar3 + 8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar3[iVar2 + 0xb] = 2;" (assignment_expression "puVar3[iVar2 + 0xb] = 2" (subscript_expression "puVar3[iVar2 + 0xb]" identifier [ (binary_expression "iVar2 + 0xb" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 8] = 0;" (assignment_expression "puVar3[iVar2 + 8] = 0" (subscript_expression "puVar3[iVar2 + 8]" identifier [ (binary_expression "iVar2 + 8" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 9] = 0;" (assignment_expression "puVar3[iVar2 + 9] = 0" (subscript_expression "puVar3[iVar2 + 9]" identifier [ (binary_expression "iVar2 + 9" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 10] = 0;" (assignment_expression "puVar3[iVar2 + 10] = 0" (subscript_expression "puVar3[iVar2 + 10]" identifier [ (binary_expression "iVar2 + 10" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 0xc] = 0x65;" (assignment_expression "puVar3[iVar2 + 0xc] = 0x65" (subscript_expression "puVar3[iVar2 + 0xc]" identifier [ (binary_expression "iVar2 + 0xc" identifier + number_literal) ]) = number_literal) ;) (expression_statement "(puVar3 + iVar2 + 0xc)[1] = 0x6e;" (assignment_expression "(puVar3 + iVar2 + 0xc)[1] = 0x6e" (subscript_expression "(puVar3 + iVar2 + 0xc)[1]" (parenthesized_expression "(puVar3 + iVar2 + 0xc)" ( (binary_expression "puVar3 + iVar2 + 0xc" (binary_expression "puVar3 + iVar2" identifier + identifier) + number_literal) )) [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);" (call_expression "FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc)" identifier (argument_list "(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc)" ( (binary_expression "param_1 + 8" identifier + number_literal) , number_literal , identifier , (binary_expression "iVar2 + 0xe" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" ( (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8))" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000882d0(param_1);" (call_expression "FUN_000882d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid share_disconnect(ssh_sharing_connstate *cs,char *message)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *pkt;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(message);\n  pkt = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  pkt[3] = 2;\n  pkt[4] = (char)((uint)iVar2 >> 0x18);\n  pkt[5] = (char)((uint)iVar2 >> 0x10);\n  pkt[7] = (char)iVar2;\n  pkt[6] = (char)((uint)iVar2 >> 8);\n  *pkt = 0;\n  pkt[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  pkt[2] = 0;\n  (*(code *)puVar1)(pkt + 8,message,iVar2);\n  pkt[iVar2 + 0xb] = 2;\n  pkt[iVar2 + 8] = 0;\n  pkt[iVar2 + 9] = 0;\n  pkt[iVar2 + 10] = 0;\n  pkt[iVar2 + 0xc] = 0x65;\n  (pkt + iVar2 + 0xc)[1] = 0x6e;\n  send_packet_to_downstream\n            ((ssh_sharing_connstate *)&cs->sock,1,pkt,iVar2 + 0xe,(share_channel *)0x0,\n             (share_channel *)0xc);\n  (*(*cs->sock)->close)(cs->sock);\n  cs->sock = (Socket)0x0;\n  share_try_cleanup(cs);\n  return;\n}\n\n" comment (function_definition "void share_disconnect(ssh_sharing_connstate *cs,char *message)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *pkt;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(message);\n  pkt = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  pkt[3] = 2;\n  pkt[4] = (char)((uint)iVar2 >> 0x18);\n  pkt[5] = (char)((uint)iVar2 >> 0x10);\n  pkt[7] = (char)iVar2;\n  pkt[6] = (char)((uint)iVar2 >> 8);\n  *pkt = 0;\n  pkt[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  pkt[2] = 0;\n  (*(code *)puVar1)(pkt + 8,message,iVar2);\n  pkt[iVar2 + 0xb] = 2;\n  pkt[iVar2 + 8] = 0;\n  pkt[iVar2 + 9] = 0;\n  pkt[iVar2 + 10] = 0;\n  pkt[iVar2 + 0xc] = 0x65;\n  (pkt + iVar2 + 0xc)[1] = 0x6e;\n  send_packet_to_downstream\n            ((ssh_sharing_connstate *)&cs->sock,1,pkt,iVar2 + 0xe,(share_channel *)0x0,\n             (share_channel *)0xc);\n  (*(*cs->sock)->close)(cs->sock);\n  cs->sock = (Socket)0x0;\n  share_try_cleanup(cs);\n  return;\n}" primitive_type (function_declarator "share_disconnect(ssh_sharing_connstate *cs,char *message)" identifier (parameter_list "(ssh_sharing_connstate *cs,char *message)" ( (parameter_declaration "ssh_sharing_connstate *cs" type_identifier (pointer_declarator "*cs" * identifier)) , (parameter_declaration "char *message" primitive_type (pointer_declarator "*message" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *pkt;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(message);\n  pkt = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  pkt[3] = 2;\n  pkt[4] = (char)((uint)iVar2 >> 0x18);\n  pkt[5] = (char)((uint)iVar2 >> 0x10);\n  pkt[7] = (char)iVar2;\n  pkt[6] = (char)((uint)iVar2 >> 8);\n  *pkt = 0;\n  pkt[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  pkt[2] = 0;\n  (*(code *)puVar1)(pkt + 8,message,iVar2);\n  pkt[iVar2 + 0xb] = 2;\n  pkt[iVar2 + 8] = 0;\n  pkt[iVar2 + 9] = 0;\n  pkt[iVar2 + 10] = 0;\n  pkt[iVar2 + 0xc] = 0x65;\n  (pkt + iVar2 + 0xc)[1] = 0x6e;\n  send_packet_to_downstream\n            ((ssh_sharing_connstate *)&cs->sock,1,pkt,iVar2 + 0xe,(share_channel *)0x0,\n             (share_channel *)0xc);\n  (*(*cs->sock)->close)(cs->sock);\n  cs->sock = (Socket)0x0;\n  share_try_cleanup(cs);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *pkt;" type_identifier (pointer_declarator "*pkt" * identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00112534)(message);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00112534)(message)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(message)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(message)" ( identifier )))) ;) (expression_statement "pkt = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);" (assignment_expression "pkt = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + 0x100,1)" ( (binary_expression "iVar2 + 0x100" identifier + number_literal) , number_literal ))))) ;) (expression_statement "pkt[3] = 2;" (assignment_expression "pkt[3] = 2" (subscript_expression "pkt[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pkt[4] = (char)((uint)iVar2 >> 0x18);" (assignment_expression "pkt[4] = (char)((uint)iVar2 >> 0x18)" (subscript_expression "pkt[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x18)" ( (binary_expression "(uint)iVar2 >> 0x18" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pkt[5] = (char)((uint)iVar2 >> 0x10);" (assignment_expression "pkt[5] = (char)((uint)iVar2 >> 0x10)" (subscript_expression "pkt[5]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x10)" ( (binary_expression "(uint)iVar2 >> 0x10" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pkt[7] = (char)iVar2;" (assignment_expression "pkt[7] = (char)iVar2" (subscript_expression "pkt[7]" identifier [ number_literal ]) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pkt[6] = (char)((uint)iVar2 >> 8);" (assignment_expression "pkt[6] = (char)((uint)iVar2 >> 8)" (subscript_expression "pkt[6]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*pkt = 0;" (assignment_expression "*pkt = 0" (pointer_expression "*pkt" * identifier) = number_literal) ;) (expression_statement "pkt[1] = 0;" (assignment_expression "pkt[1] = 0" (subscript_expression "pkt[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_memcpy_0011256c;" (assignment_expression "puVar1 = PTR_memcpy_0011256c" identifier = identifier) ;) (expression_statement "pkt[2] = 0;" (assignment_expression "pkt[2] = 0" (subscript_expression "pkt[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*(code *)puVar1)(pkt + 8,message,iVar2);" (call_expression "(*(code *)puVar1)(pkt + 8,message,iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pkt + 8,message,iVar2)" ( (binary_expression "pkt + 8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "pkt[iVar2 + 0xb] = 2;" (assignment_expression "pkt[iVar2 + 0xb] = 2" (subscript_expression "pkt[iVar2 + 0xb]" identifier [ (binary_expression "iVar2 + 0xb" identifier + number_literal) ]) = number_literal) ;) (expression_statement "pkt[iVar2 + 8] = 0;" (assignment_expression "pkt[iVar2 + 8] = 0" (subscript_expression "pkt[iVar2 + 8]" identifier [ (binary_expression "iVar2 + 8" identifier + number_literal) ]) = number_literal) ;) (expression_statement "pkt[iVar2 + 9] = 0;" (assignment_expression "pkt[iVar2 + 9] = 0" (subscript_expression "pkt[iVar2 + 9]" identifier [ (binary_expression "iVar2 + 9" identifier + number_literal) ]) = number_literal) ;) (expression_statement "pkt[iVar2 + 10] = 0;" (assignment_expression "pkt[iVar2 + 10] = 0" (subscript_expression "pkt[iVar2 + 10]" identifier [ (binary_expression "iVar2 + 10" identifier + number_literal) ]) = number_literal) ;) (expression_statement "pkt[iVar2 + 0xc] = 0x65;" (assignment_expression "pkt[iVar2 + 0xc] = 0x65" (subscript_expression "pkt[iVar2 + 0xc]" identifier [ (binary_expression "iVar2 + 0xc" identifier + number_literal) ]) = number_literal) ;) (expression_statement "(pkt + iVar2 + 0xc)[1] = 0x6e;" (assignment_expression "(pkt + iVar2 + 0xc)[1] = 0x6e" (subscript_expression "(pkt + iVar2 + 0xc)[1]" (parenthesized_expression "(pkt + iVar2 + 0xc)" ( (binary_expression "pkt + iVar2 + 0xc" (binary_expression "pkt + iVar2" identifier + identifier) + number_literal) )) [ number_literal ]) = number_literal) ;) (expression_statement "send_packet_to_downstream\n            ((ssh_sharing_connstate *)&cs->sock,1,pkt,iVar2 + 0xe,(share_channel *)0x0,\n             (share_channel *)0xc);" (call_expression "send_packet_to_downstream\n            ((ssh_sharing_connstate *)&cs->sock,1,pkt,iVar2 + 0xe,(share_channel *)0x0,\n             (share_channel *)0xc)" identifier (argument_list "((ssh_sharing_connstate *)&cs->sock,1,pkt,iVar2 + 0xe,(share_channel *)0x0,\n             (share_channel *)0xc)" ( (cast_expression "(ssh_sharing_connstate *)&cs->sock" ( (type_descriptor "ssh_sharing_connstate *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&cs->sock" & (field_expression "cs->sock" identifier -> field_identifier))) , number_literal , identifier , (binary_expression "iVar2 + 0xe" identifier + number_literal) , (cast_expression "(share_channel *)0x0" ( (type_descriptor "share_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(share_channel *)0xc" ( (type_descriptor "share_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "(*(*cs->sock)->close)(cs->sock);" (call_expression "(*(*cs->sock)->close)(cs->sock)" (parenthesized_expression "(*(*cs->sock)->close)" ( (pointer_expression "*(*cs->sock)->close" * (field_expression "(*cs->sock)->close" (parenthesized_expression "(*cs->sock)" ( (pointer_expression "*cs->sock" * (field_expression "cs->sock" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(cs->sock)" ( (field_expression "cs->sock" identifier -> field_identifier) ))) ;) (expression_statement "cs->sock = (Socket)0x0;" (assignment_expression "cs->sock = (Socket)0x0" (field_expression "cs->sock" identifier -> field_identifier) = (cast_expression "(Socket)0x0" ( (type_descriptor "Socket" type_identifier) ) number_literal)) ;) (expression_statement "share_try_cleanup(cs);" (call_expression "share_try_cleanup(cs)" identifier (argument_list "(cs)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000887e0(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000887e0(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000887e0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00112534)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + 0x100,1)" ( (binary_expression "iVar2 + 0x100" identifier + number_literal) , number_literal ))))) ;) (expression_statement "puVar3[3] = 2;" (assignment_expression "puVar3[3] = 2" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[4] = (char)((uint)iVar2 >> 0x18);" (assignment_expression "puVar3[4] = (char)((uint)iVar2 >> 0x18)" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x18)" ( (binary_expression "(uint)iVar2 >> 0x18" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar3[5] = (char)((uint)iVar2 >> 0x10);" (assignment_expression "puVar3[5] = (char)((uint)iVar2 >> 0x10)" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x10)" ( (binary_expression "(uint)iVar2 >> 0x10" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar3[7] = (char)iVar2;" (assignment_expression "puVar3[7] = (char)iVar2" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar3[6] = (char)((uint)iVar2 >> 8);" (assignment_expression "puVar3[6] = (char)((uint)iVar2 >> 8)" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = (cast_expression "(char)((uint)iVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_memcpy_0011256c;" (assignment_expression "puVar1 = PTR_memcpy_0011256c" identifier = identifier) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*(code *)puVar1)(puVar3 + 8,param_2,iVar2);" (call_expression "(*(code *)puVar1)(puVar3 + 8,param_2,iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + 8,param_2,iVar2)" ( (binary_expression "puVar3 + 8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar3[iVar2 + 0xb] = 2;" (assignment_expression "puVar3[iVar2 + 0xb] = 2" (subscript_expression "puVar3[iVar2 + 0xb]" identifier [ (binary_expression "iVar2 + 0xb" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 8] = 0;" (assignment_expression "puVar3[iVar2 + 8] = 0" (subscript_expression "puVar3[iVar2 + 8]" identifier [ (binary_expression "iVar2 + 8" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 9] = 0;" (assignment_expression "puVar3[iVar2 + 9] = 0" (subscript_expression "puVar3[iVar2 + 9]" identifier [ (binary_expression "iVar2 + 9" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 10] = 0;" (assignment_expression "puVar3[iVar2 + 10] = 0" (subscript_expression "puVar3[iVar2 + 10]" identifier [ (binary_expression "iVar2 + 10" identifier + number_literal) ]) = number_literal) ;) (expression_statement "puVar3[iVar2 + 0xc] = 0x65;" (assignment_expression "puVar3[iVar2 + 0xc] = 0x65" (subscript_expression "puVar3[iVar2 + 0xc]" identifier [ (binary_expression "iVar2 + 0xc" identifier + number_literal) ]) = number_literal) ;) (expression_statement "(puVar3 + iVar2 + 0xc)[1] = 0x6e;" (assignment_expression "(puVar3 + iVar2 + 0xc)[1] = 0x6e" (subscript_expression "(puVar3 + iVar2 + 0xc)[1]" (parenthesized_expression "(puVar3 + iVar2 + 0xc)" ( (binary_expression "puVar3 + iVar2 + 0xc" (binary_expression "puVar3 + iVar2" identifier + identifier) + number_literal) )) [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);" (call_expression "FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc)" identifier (argument_list "(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc)" ( (binary_expression "param_1 + 8" identifier + number_literal) , number_literal , identifier , (binary_expression "iVar2 + 0xe" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" ( (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8))" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000882d0(param_1);" (call_expression "FUN_000882d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )) [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , IDENT , (binary_expression IDENT + LIT) , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000887e0(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000887e0(int param_1,undefined4 param_2)" (identifier "FUN_000887e0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);\n  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);\n  puVar3[3] = 2;\n  puVar3[4] = (char)((uint)iVar2 >> 0x18);\n  puVar3[5] = (char)((uint)iVar2 >> 0x10);\n  puVar3[7] = (char)iVar2;\n  puVar3[6] = (char)((uint)iVar2 >> 8);\n  *puVar3 = 0;\n  puVar3[1] = 0;\n  puVar1 = PTR_memcpy_0011256c;\n  puVar3[2] = 0;\n  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);\n  puVar3[iVar2 + 0xb] = 2;\n  puVar3[iVar2 + 8] = 0;\n  puVar3[iVar2 + 9] = 0;\n  puVar3[iVar2 + 10] = 0;\n  puVar3[iVar2 + 0xc] = 0x65;\n  (puVar3 + iVar2 + 0xc)[1] = 0x6e;\n  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000882d0(param_1);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00112534)(param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" (( "(") (pointer_expression "*(code *)PTR_strlen_00112534" (* "*") (cast_expression "(code *)PTR_strlen_00112534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00112534"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(iVar2 + 0x100,1)" (( "(") (binary_expression "iVar2 + 0x100" (identifier "iVar2") (+ "+") (number_literal "0x100")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "puVar3[3] = 2;" (assignment_expression "puVar3[3] = 2" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "puVar3[4] = (char)((uint)iVar2 >> 0x18);" (assignment_expression "puVar3[4] = (char)((uint)iVar2 >> 0x18)" (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(char)((uint)iVar2 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar2 >> 0x18)" (( "(") (binary_expression "(uint)iVar2 >> 0x18" (cast_expression "(uint)iVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar2")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "puVar3[5] = (char)((uint)iVar2 >> 0x10);" (assignment_expression "puVar3[5] = (char)((uint)iVar2 >> 0x10)" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(char)((uint)iVar2 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar2 >> 0x10)" (( "(") (binary_expression "(uint)iVar2 >> 0x10" (cast_expression "(uint)iVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar2")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "puVar3[7] = (char)iVar2;" (assignment_expression "puVar3[7] = (char)iVar2" (subscript_expression "puVar3[7]" (identifier "puVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (cast_expression "(char)iVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar2"))) (; ";")) (expression_statement "puVar3[6] = (char)((uint)iVar2 >> 8);" (assignment_expression "puVar3[6] = (char)((uint)iVar2 >> 8)" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(char)((uint)iVar2 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar2 >> 8)" (( "(") (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_memcpy_0011256c;" (assignment_expression "puVar1 = PTR_memcpy_0011256c" (identifier "puVar1") (= "=") (identifier "PTR_memcpy_0011256c")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar1)(puVar3 + 8,param_2,iVar2);" (call_expression "(*(code *)puVar1)(puVar3 + 8,param_2,iVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(puVar3 + 8,param_2,iVar2)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) (, ",") (identifier "param_2") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "puVar3[iVar2 + 0xb] = 2;" (assignment_expression "puVar3[iVar2 + 0xb] = 2" (subscript_expression "puVar3[iVar2 + 0xb]" (identifier "puVar3") ([ "[") (binary_expression "iVar2 + 0xb" (identifier "iVar2") (+ "+") (number_literal "0xb")) (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "puVar3[iVar2 + 8] = 0;" (assignment_expression "puVar3[iVar2 + 8] = 0" (subscript_expression "puVar3[iVar2 + 8]" (identifier "puVar3") ([ "[") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[iVar2 + 9] = 0;" (assignment_expression "puVar3[iVar2 + 9] = 0" (subscript_expression "puVar3[iVar2 + 9]" (identifier "puVar3") ([ "[") (binary_expression "iVar2 + 9" (identifier "iVar2") (+ "+") (number_literal "9")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[iVar2 + 10] = 0;" (assignment_expression "puVar3[iVar2 + 10] = 0" (subscript_expression "puVar3[iVar2 + 10]" (identifier "puVar3") ([ "[") (binary_expression "iVar2 + 10" (identifier "iVar2") (+ "+") (number_literal "10")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[iVar2 + 0xc] = 0x65;" (assignment_expression "puVar3[iVar2 + 0xc] = 0x65" (subscript_expression "puVar3[iVar2 + 0xc]" (identifier "puVar3") ([ "[") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) (] "]")) (= "=") (number_literal "0x65")) (; ";")) (expression_statement "(puVar3 + iVar2 + 0xc)[1] = 0x6e;" (assignment_expression "(puVar3 + iVar2 + 0xc)[1] = 0x6e" (subscript_expression "(puVar3 + iVar2 + 0xc)[1]" (parenthesized_expression "(puVar3 + iVar2 + 0xc)" (( "(") (binary_expression "puVar3 + iVar2 + 0xc" (binary_expression "puVar3 + iVar2" (identifier "puVar3") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "0xc")) () ")")) ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x6e")) (; ";")) (expression_statement "FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);" (call_expression "FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc)" (identifier "FUN_000877b4") (argument_list "(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) (, ",") (number_literal "1") (, ",") (identifier "puVar3") (, ",") (binary_expression "iVar2 + 0xe" (identifier "iVar2") (+ "+") (number_literal "0xe")) (, ",") (number_literal "0") (, ",") (number_literal "0xc") () ")"))) (; ";")) (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" (( "(") (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 8))" (( "(") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000882d0(param_1);" (call_expression "FUN_000882d0(param_1)" (identifier "FUN_000882d0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *cs,char *message)

{
  type_2 *puVar1;
  int var_1;
  type_3 *var_2;
  
  var_1 = (*(type_4 *)PTR_strlen_00112534)(message);
  var_2 = (type_3 *)(*(type_4 *)PTR_safemalloc_001112ec)(var_1 + 0x100,1);
  var_2[3] = 2;
  var_2[4] = (char)((type_5)var_1 >> 0x18);
  var_2[5] = (char)((type_5)var_1 >> 0x10);
  var_2[7] = (char)var_1;
  var_2[6] = (char)((type_5)var_1 >> 8);
  *var_2 = 0;
  var_2[1] = 0;
  puVar1 = PTR_memcpy_0011256c;
  var_2[2] = 0;
  (*(type_4 *)puVar1)(var_2 + 8,message,var_1);
  var_2[var_1 + 0xb] = 2;
  var_2[var_1 + 8] = 0;
  var_2[var_1 + 9] = 0;
  var_2[var_1 + 10] = 0;
  var_2[var_1 + 0xc] = 0x65;
  (var_2 + var_1 + 0xc)[1] = 0x6e;
  var_3
            ((type_1 *)&cs->sock,1,var_2,var_1 + 0xe,(type_6 *)0x0,
             (type_6 *)0xc);
  (*(*cs->sock)->close)(cs->sock);
  cs->sock = (type_7)0x0;
  var_4(cs);
  return;
}


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

void MASKED(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  
  iVar2 = (*(code *)PTR_strlen_00112534)(param_2);
  puVar3 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar2 + 0x100,1);
  puVar3[3] = 2;
  puVar3[4] = (char)((uint)iVar2 >> 0x18);
  puVar3[5] = (char)((uint)iVar2 >> 0x10);
  puVar3[7] = (char)iVar2;
  puVar3[6] = (char)((uint)iVar2 >> 8);
  *puVar3 = 0;
  puVar3[1] = 0;
  puVar1 = PTR_memcpy_0011256c;
  puVar3[2] = 0;
  (*(code *)puVar1)(puVar3 + 8,param_2,iVar2);
  puVar3[iVar2 + 0xb] = 2;
  puVar3[iVar2 + 8] = 0;
  puVar3[iVar2 + 9] = 0;
  puVar3[iVar2 + 10] = 0;
  puVar3[iVar2 + 0xc] = 0x65;
  (puVar3 + iVar2 + 0xc)[1] = 0x6e;
  FUN_000877b4(param_1 + 8,1,puVar3,iVar2 + 0xe,0,0xc);
  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));
  *(undefined4 *)(param_1 + 8) = 0;
  FUN_000882d0(param_1);
  return;
}

