Guest User

Untitled

a guest
Oct 16th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov edx, edi
  2. add edx, USER.readbuffer
  3. mov dword ptr [edi+USER.bufsize], 0
  4. read_loop:
  5.     push edx
  6.  
  7.     push 0
  8.     push 1
  9.     push edx ; buffer
  10.     push dword ptr [edi + USER.socket]
  11.     call recv
  12.  
  13.     pop edx
  14.  
  15.     cmp eax, 0
  16.      je disconn
  17.     cmp eax, SOCKET_ERROR
  18.      je disconn
  19.  
  20.     add dword ptr [edi+USER.bufsize], eax
  21.     add edx, eax
  22.     cmp dword ptr [edi+USER.bufsize], 1Fh ; 1Fh+1h = 20h
  23.      jg disconn
  24.     cmp byte ptr [edx-1], 0FFh
  25.      jne read_loop
Add Comment
Please, Sign In to add comment