Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mov edx, edi
- add edx, USER.readbuffer
- mov dword ptr [edi+USER.bufsize], 0
- read_loop:
- push edx
- push 0
- push 1
- push edx ; buffer
- push dword ptr [edi + USER.socket]
- call recv
- pop edx
- cmp eax, 0
- je disconn
- cmp eax, SOCKET_ERROR
- je disconn
- add dword ptr [edi+USER.bufsize], eax
- add edx, eax
- cmp dword ptr [edi+USER.bufsize], 1Fh ; 1Fh+1h = 20h
- jg disconn
- cmp byte ptr [edx-1], 0FFh
- jne read_loop
Add Comment
Please, Sign In to add comment