Advertisement
Guest User

Untitled

a guest
Jan 27th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.91 KB | None | 0 0
  1. Func CreateChatLog()
  2.     _('ChatLogProc:')
  3.  
  4.     _('pushad')
  5.     _('mov ecx,dword[esp+1F4]')
  6.     _('mov ebx,eax')
  7.     _('mov eax,dword[ChatLogCounter]')
  8.     _('push eax')
  9.     _('shl eax,9')
  10.     _('add eax,ChatLogBase')
  11.     _('mov dword[eax],ebx')
  12.  
  13.     _('mov edi,eax')
  14.     _('add eax,4')
  15.     _('xor ebx,ebx')
  16.  
  17.     _('ChatLogCopyLoop:')
  18.     _('mov dx,word[ecx]')
  19.     _('mov word[eax],dx')
  20.     _('add ecx,2')
  21.     _('add eax,2')
  22.     _('inc ebx')
  23.     _('cmp ebx,FF')
  24.     _('jz ChatLogCopyExit')
  25.     _('test dx,dx')
  26.     _('jnz ChatLogCopyLoop')
  27.  
  28.     _('ChatLogCopyExit:')
  29.     _('push 4')
  30.     _('push edi')
  31.     _('push CallbackEvent')
  32.     _('push dword[CallbackHandle]')
  33.     _('call dword[PostMessage]')
  34.  
  35.     _('pop eax')
  36.     _('inc eax')
  37.     _('cmp eax,ChatLogSize')
  38.     _('jnz ChatLogSkipReset')
  39.     _('xor eax,eax')
  40.     _('ChatLogSkipReset:')
  41.     _('mov dword[ChatLogCounter],eax')
  42.     _('popad')
  43.  
  44.     _('ChatLogExit:')
  45.     _('add edi,E')
  46.     _('cmp eax,B')
  47.     _('ljmp ChatLogReturn')
  48. EndFunc   ;==>CreateChatLog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement