Function at 0x4f7cc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
push esi
push edi
mov dword [ebp - 0x64], ecx
mov esi, edx
mov dword [ebp - 8], eax
mov byte [ebp - 0x71], 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 - 0x68], eax
xor edx, edx
push ebp
push 0x4f851f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c1], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c2], 0
mov eax, dword [ebp - 8]
cmp byte [eax + 0x224], 0
je 0x4f7d7f
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c3], 0
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x228]
mov byte [edi + 0x21a], 1
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xd8]
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 al, byte [eax + 0x2c3]
mov byte [ebp - 0x1d], al
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4f84f3
push dword fs:[edx]
mov dword fs:[edx], 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 + 0x2c4], dl
lea ecx, [ebp - 0x41]
mov edx, dword [ebp - 0x64]
mov eax, esi
call fcn.0041c4e4
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x30]
mov eax, ebx
mov edx, dword [0x4f1ac8]
call fcn.00403cb0
test al, al
jne 0x4f7e3b
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 8]
call fcn.00479390
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xbc]
xor edx, edx
xor eax, eax
call fcn.0041c4e4
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 8]
call fcn.00472274
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x84], 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.0041c4e4
jmp 0x4f7ea3
lea eax, [ebp - 0x90]
push eax
mov eax, ebx
call fcn.00479390
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xbc]
xor edx, edx
xor eax, eax
call fcn.0041c4e4
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.00472274
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x49]
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x30]
mov edx, dword [ebx + 0x4c]
dec edx
mov eax, dword [ebx + 0x48]
dec eax
call fcn.0041c4e4
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x88]
sub dword [ebp - 0x41], eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x84]
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 [0x41b230]
call fcn.00403af4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x292], 2
je 0x4f7f01
push ebp
call fcn.004f7b54
pop ecx
jmp 0x4f7f1e
mov eax, dword [ebp - 8]
cmp byte [eax + 0x224], 0
je 0x4f7f1e
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x228]
mov eax, dword [ebp - 0x50]
call fcn.0041da08
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4f7f44
inc eax
mov dword [ebp - 0x80], eax
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0x50]
call fcn.0041dbb4
call fcn.004f3b48
inc ebx
dec dword [ebp - 0x80]
jne 0x4f7f2f
mov dl, 1
mov eax, dword [0x41b230]
call fcn.00403af4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
sub eax, 0xffffffff
jl 0x4f8156
inc eax
mov dword [ebp - 0x80], eax
mov ebx, 0xffffffff
mov eax, 0x20
call fcn.00402a34
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
xor edx, edx
mov dword [eax + 0x1c], edx
xor edx, edx
push ebp
push 0x4f8125
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 0x78]
cmp ebx, 0xffffffff
jne 0x4f7ff7
xor eax, eax
mov dword [esi], eax
lea eax, [esi + 4]
push eax
call sub.user32.dll_SetRectEmpty
push 1
push 0
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x238]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
call fcn.004f22a0
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xd8]
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xb0]
mov dword [esi + 0x18], eax
lea edx, [esi + 0x14]
mov eax, dword [ebp - 8]
call fcn.004f64e4
jmp 0x4f80ac
mov edx, ebx
mov eax, dword [ebp - 0x50]
call fcn.0041dbb4
mov edi, eax
mov dword [esi], edi
lea eax, [esi + 4]
push eax
mov eax, edi
call fcn.00479390
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
cmp eax, dword [esi]
je 0x4f8083
push 0
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x238]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
call fcn.004f22a0
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xd8]
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xb0]
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov al, byte [eax + 0x210]
add al, 0xfe
sub al, 2
setb cl
lea edx, [esi + 0x14]
mov eax, dword [ebp - 8]
call fcn.004f64b4
jmp 0x4f80ac
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call fcn.0041c4e4
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xb0]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
je 0x4f8110
mov dl, 1
mov eax, dword [0x41b230]
call fcn.00403af4
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov dl, 1
call fcn.004f2afc
mov esi, eax
test esi, esi
jl 0x4f8110
inc esi
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x72]
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov edx, dword [ebp - 0x7c]
call fcn.004f2984
movsx eax, ax
cmp byte [ebp - 0x72], 0
je 0x4f80fe
or eax, 0x10000
mov edx, dword [ebp - 0x78]
mov edx, dword [edx + 0x1c]
xchg edx, eax
call fcn.0041da08
inc dword [ebp - 0x7c]
dec esi
jne 0x4f80e0
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.0041da08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f814c
inc ebx
dec dword [ebp - 0x80]
jne 0x4f7f6c
mov eax, dword [ebp - 8]
call fcn.00479390
push eax
call sub.user32.dll_SetCapture
xor eax, eax
push ebp
push 0x4f81a2
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ddb30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f81a9
mov eax, dword [ebp - 8]
call fcn.00479390
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
setne bl
test bl, bl
jne 0x4f81a1
call sub.user32.dll_ReleaseCapture
ret