Function at 0x771fe4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
push ebx
push esi
push edi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 8], eax
mov byte [ebp - 0x75], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x218]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x214]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x224], 0
je 0x7720b0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov edx, dword [ebp - 8]
mov dword [eax + 0x21c], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov byte [eax + 0x21a], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov byte [eax + 0x219], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov byte [eax + 0x221], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
call fcn.0076c288
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov al, byte [eax + 0x210]
add al, 0xfe
sub al, 2
setb al
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov al, byte [eax + 0x219]
mov byte [ebp - 0x1d], al
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7728af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x296]
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x59]
mov byte [eax + 0x2c1], dl
lea ecx, [ebp - 0x41]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
call fcn.0041f9e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov edx, dword [0x76adc0]
call fcn.004045ac
test al, al
jne 0x77216b
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 8]
call fcn.00490574
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xd0]
xor edx, edx
xor eax, eax
call fcn.0041f9e4
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 8]
call fcn.0048965c
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x49]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x4c]
dec edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
dec eax
call fcn.0041f9e4
jmp 0x7721dd
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.00490574
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xd0]
xor edx, edx
xor eax, eax
call fcn.0041f9e4
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.0048965c
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x49]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x4c]
dec edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x48]
dec eax
call fcn.0041f9e4
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x9c]
sub dword [ebp - 0x41], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x98]
sub dword [ebp - 0x3d], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl byte [ebp - 0x4b]
mov eax, dword [ebp - 8]
cmp byte [eax + 0x292], 0
setne byte [ebp - 0x51]
mov dl, 1
mov eax, dword [0x41e36c]
call fcn.004043e4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x292], 2
je 0x77223b
push ebp
call fcn.00771e78
pop ecx
jmp 0x772258
mov eax, dword [ebp - 8]
cmp byte [eax + 0x224], 0
je 0x772258
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x228]
mov eax, dword [ebp - 0x50]
call fcn.004210f8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x77228c
inc eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], 0
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x50]
call fcn.004212a4
call fcn.0076d20c
inc dword [ebp - 0x80]
dec dword [ebp - 0x8c]
jne 0x772271
mov dl, 1
mov eax, dword [0x41e36c]
call fcn.004043e4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
sub eax, 0xffffffff
jl 0x77251e
inc eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], 0xffffffff
mov eax, 0x20
call fcn.00402bc0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov dword [eax + 0x1c], edx
xor eax, eax
push ebp
push 0x7724e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x80], 0xffffffff
jne 0x772363
mov eax, dword [ebp - 0x90]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x90]
add eax, 4
push eax
call sub.user32.dll_SetRectEmpty
push 1
push 0
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x238]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
call fcn.0076b5b4
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xd4]
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0xc4]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x90]
lea edx, [eax + 0x14]
mov eax, dword [ebp - 8]
call fcn.00770444
jmp 0x77244d
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x50]
call fcn.004212a4
mov edx, dword [ebp - 0x90]
mov dword [edx], eax
mov eax, dword [ebp - 0x90]
add eax, 4
push eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
call fcn.00490574
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x228]
je 0x77241e
push 0
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x238]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
call fcn.0076b5b4
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xd4]
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0xc4]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov al, byte [eax + 0x210]
add al, 0xfe
sub al, 2
setb cl
mov eax, dword [ebp - 0x90]
lea edx, [eax + 0x14]
mov eax, dword [ebp - 8]
call fcn.00770408
jmp 0x77244d
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call fcn.0041f9e4
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0xc4]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x7c]
cmp dword [eax], 0
je 0x7724d3
mov dl, 1
mov eax, dword [0x41e36c]
call fcn.004043e4
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
mov dl, 1
call fcn.0076bfc4
test eax, eax
jl 0x7724d3
inc eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x76]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x84]
call fcn.0076bdf0
movsx eax, ax
mov dword [ebp - 0x88], eax
cmp byte [ebp - 0x76], 0
je 0x7724b4
or dword [ebp - 0x88], 0x10000
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x88]
call fcn.004210f8
inc dword [ebp - 0x84]
dec dword [ebp - 0x94]
jne 0x772488
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.004210f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x77250f
inc dword [ebp - 0x80]
dec dword [ebp - 0x8c]
jne 0x7722b9
call fcn.00769228
call sub.user32.dll_GetCursor
mov dword [ebp - 0x58], eax
cmp byte [ebp - 0x59], 0
jne 0x772553
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_LockWindowUpdate
push 0x403
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDCEx
mov dword [ebp - 0x60], eax
jmp 0x772558
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
push ebp
push 0x772764
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00490574
push eax
call sub.user32.dll_SetCapture
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x224]
mov byte [ebp - 0x4a], al
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_SetRectEmpty
lea eax, [ebp - 0x31]
push eax
call sub.user32.dll_GetCursorPos
mov eax, dword [ebp - 0x31]
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 0x2d]
mov dword [ebp - 0x35], eax
push ebp
call fcn.00771948
pop ecx
mov byte [ebp - 0x4a], 1
jmp 0x7726cc
push 0
push 0
push 0
lea eax, [ebp - 0xc0]
push eax
call sub.user32.dll_GetMessageA
sub eax, 0xffffffff
je 0x7726e3
dec eax
je 0x7725d3
jmp 0x7725e4
mov eax, dword [ebp - 0xb8]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x7726e3
mov eax, dword [ebp - 0xbc]
cmp eax, 0x202
jg 0x772614
je 0x7726ae
add eax, 0xffffff00
sub eax, 2
jb 0x77262e
sub eax, 0xfe
je 0x772670
dec eax
je 0x7726e3
jmp 0x7726b4
sub eax, 0x203
je 0x7726e3
dec eax
sub eax, 6
jb 0x7726cc
jmp 0x7726b4
mov eax, dword [ebp - 0xb8]
sub eax, 0x11
je 0x772647
sub eax, 0xa
je 0x7726e3
jmp 0x7726cc
cmp dword [ebp - 0xbc], 0x100
sete al
cmp al, byte [ebp - 0x4b]
je 0x7726cc
cmp dword [ebp - 0xbc], 0x100
sete byte [ebp - 0x4b]
push ebp
call fcn.00771948
pop ecx
jmp 0x7726cc
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0x74]
call fcn.00408e50
mov eax, dword [ebp - 0x39]
cmp eax, dword [ebp - 0x74]
jne 0x772699
mov eax, dword [ebp - 0x35]
cmp eax, dword [ebp - 0x70]
je 0x7726cc
push ebp
call fcn.00771948
pop ecx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x35], eax
jmp 0x7726cc
mov byte [ebp - 0x75], 1
jmp 0x7726e3
lea eax, [ebp - 0xc0]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0xc0]
push eax
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 8]
call fcn.00490574
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
je 0x7725b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x77276b
mov eax, dword [ebp - 8]
call fcn.00490574
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x772708
call sub.user32.dll_ReleaseCapture
cmp byte [ebp - 0x59], 0
jne 0x772763
mov eax, dword [ebp - 0x60]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_ReleaseDC
push 0x403
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDCEx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1c]
push eax
push 1
cmp dword [ebp - 0xc], 0
setne al
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.0077123c
mov eax, dword [ebp - 0x60]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_ReleaseDC
push 0
call sub.user32.dll_LockWindowUpdate
ret