Advertisement
Guest User

PacketSelector

a guest
Aug 30th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.23 KB | None | 0 0
  1.  
  2. struct s1 {
  3.     uint8_t f0;
  4.     int32_t f1;
  5.     uint16_t f5;
  6. };
  7.  
  8. struct s0 {
  9.     int8_t[92] pad92;
  10.     struct s1* f92;
  11.     int8_t[292] pad388;
  12.     int8_t f388;
  13. };
  14.  
  15. int32_t g3922878 = 0;
  16.  
  17. void fun_12eec40(int32_t ecx);
  18.  
  19. int8_t fun_12eeec0(int32_t ecx, void* a2, struct s1* a3);
  20.  
  21. void packetswitch(uint32_t ecx, struct s1* a2);
  22.  
  23. int8_t packetselector(struct s0* ecx, struct s1* a2, struct s1* a3) {
  24.     uint32_t edi4;
  25.     int1_t zf5;
  26.     int32_t esi6;
  27.     struct s1* v7;
  28.     int8_t al8;
  29.  
  30.     edi4 = static_cast<uint32_t>(a3->f0);
  31.     if (a3->f0 == 0xfe) {
  32.         edi4 = static_cast<uint32_t>(a3->f5);
  33.     }
  34.     if (*(int16_t*)&edi4 == 0xdd || !ecx->f388 && (*(int16_t*)&edi4 != 0x88 && (*(int16_t*)&edi4 != 0x92 && (*(int16_t*)&edi4 != 84 && (*(int16_t*)&edi4 != 0x95 && *(int16_t*)&edi4 != 0xc6))))) {
  35.         return 1;
  36.     }
  37.     ecx->f92 = a2;
  38.     zf5 = a3->f1 == g3922878;
  39.     if (!zf5) {
  40.         esi6 = (int32_t)ecx + 12;
  41.         fun_12eec40(esi6);
  42.         v7 = a3;
  43.         al8 = fun_12eeec0(esi6 + 12, (int32_t)__zero_stack_offset() - 4 - 12, v7);
  44.         if (al8) {
  45.             addr_0x12eb3a0_7:
  46.         }
  47.     } else {
  48.         v7 = a2;
  49.     }
  50.     packetswitch(edi4, v7);
  51.     goto addr_0x12eb3a0_7;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement