Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. signed int __fastcall Messaging::send(Messaging *this, PiranhaMessage *a2)
  2. {
  3. __int64 v2; // d8
  4. __int64 v3; // d9
  5. __int64 v4; // d10
  6. __int64 v5; // d11
  7. __int64 v6; // d12
  8. __int64 v7; // d13
  9. __int64 v8; // d14
  10. __int64 v9; // d15
  11. _QWORD *v10; // r4
  12. _QWORD *v11; // r4
  13. PiranhaMessage *v12; // r6
  14. Messaging *v13; // r5
  15. int v14; // r8
  16. int v15; // r4
  17. const String *v16; // r1
  18. const String *v17; // r1
  19. signed int v18; // r4
  20. void (__fastcall *v19)(PiranhaMessage *); // r1
  21. void (__fastcall *v20)(PiranhaMessage *); // r1
  22. int v22; // [sp+0h] [bp-C8h]
  23. Connection *v23; // [sp+4h] [bp-C4h]
  24. Messaging *v24; // [sp+8h] [bp-C0h]
  25. PiranhaMessage *v25; // [sp+Ch] [bp-BCh]
  26. String v26; // [sp+10h] [bp-B8h]
  27. String v27; // [sp+24h] [bp-A4h]
  28. PiranhaMessage *v28; // [sp+38h] [bp-90h]
  29. struct SjLj_Function_Context fctx; // [sp+3Ch] [bp-8Ch]
  30. int v30; // [sp+60h] [bp-68h]
  31. int *v31; // [sp+64h] [bp-64h]
  32. char v32; // [sp+70h] [bp-58h]
  33. __int64 savedregs; // [sp+C8h] [bp+0h]
  34.  
  35. v10 = (&v32 & 0xFFFFFFF0);
  36. *v10 = v2;
  37. v10[1] = v3;
  38. v10[2] = v4;
  39. v10[3] = v5;
  40. v11 = ((&v32 & 0xFFFFFFF0) + 32);
  41. *v11 = v6;
  42. v11[1] = v7;
  43. v11[2] = v8;
  44. v11[3] = v9;
  45. v12 = a2;
  46. v13 = this;
  47. v28 = a2;
  48. v14 = (*(*a2 + 20))(a2);
  49. v23 = (v13 + 224);
  50. v15 = Connection::isConnected((v13 + 224));
  51. fctx.personality = &__gxx_personality_sj0;
  52. fctx.lsda = &GCC_except_table14_41;
  53. fctx.jbuf[0] = &savedregs;
  54. v31 = &v22;
  55. v30 = (0xE8 | 1) + 1659922;
  56. _Unwind_SjLj_Register(&fctx);
  57. if ( !v15 )
  58. {
  59. v24 = v13;
  60. v25 = v12;
  61. fctx.call_site = -1;
  62. v22 = v14;
  63. String::format(&v27, "Messaging::send message type %d when not connected", v14);
  64. fctx.call_site = 1;
  65. Debugger::warning(&v27, v16);
  66. fctx.call_site = -1;
  67. String::~String(&v27);
  68. v12 = v25;
  69. v13 = v24;
  70. v14 = v22;
  71. }
  72. fctx.call_site = -1;
  73. if ( PiranhaMessage::isServerToClientMessage(v12) == 1 )
  74. {
  75. v24 = v13;
  76. v25 = v12;
  77. fctx.call_site = -1;
  78. String::format(&v26, "Messaging::send server to client message type %d", v14);
  79. fctx.call_site = 3;
  80. Debugger::warning(&v26, v17);
  81. fctx.call_site = -1;
  82. String::~String(&v26);
  83. v12 = v25;
  84. v13 = v24;
  85. }
  86. fctx.call_site = -1;
  87. v18 = Queue<PiranhaMessage *>::enqueue(v13 + 8, &v28);
  88. if ( v18 )
  89. {
  90. fctx.call_site = -1;
  91. Connection::wakeup(v23);
  92. }
  93. else
  94. {
  95. v19 = *(*v12 + 24);
  96. fctx.call_site = -1;
  97. v19(v12);
  98. v20 = *(*v12 + 4);
  99. fctx.call_site = -1;
  100. v20(v12);
  101. v28 = 0;
  102. }
  103. _Unwind_SjLj_Unregister(&fctx);
  104. return v18;
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement