Function at 0x4991d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, 0x44f
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x49934c
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x14], ebx
je 0x499229
movzx edi, byte [ebp + 0x14]
jmp 0x49923c
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edi, edi
mov di, ax
and edi, 0x8000
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x49928e
mov al, byte [esi + 0x7b]
cmp al, bl
jle 0x49926b
push 1
push ebx
push dword [esi + 0x18]
mov byte [esi + 0x7b], bl
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x499378
dec al
cmp al, 0x9c
mov byte [esi + 0x7b], al
jge 0x499378
push 0x2713
push dword [esi + 0x18]
mov byte [esi + 0x7b], bl
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x499378
cmp edi, ebx
je 0x4992c5
cmp byte [esi + 0x7b], bl
jg 0x499378
push 1
push ebx
push dword [esi + 0x18]
mov byte [esi + 0x7b], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push 0xa
push 0x2713
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp + 0x14], 0x201
jmp 0x49932f
cmp byte [esi + 0x7b], bl
jle 0x499378
push 1
push ebx
push dword [esi + 0x18]
mov byte [esi + 0x7b], bl
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x2713
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_KillTimer]
test byte [esi + 0x7c], 0x40
jne 0x499378
push dword [esi + 0x18]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
call edi
push dword [esi + 0x18]
mov dword [ebp + 0x14], 0x202
call edi
movzx eax, ax
push 0x202
or eax, 0x2020000
push eax
push 0x441
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0043c225
mov ecx, dword [esi + 0x4c]
push ebx
push 0x80
push dword [esi + 0x18]
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.0049316c
jmp 0x499378
cmp edi, 0x44e
jne 0x499364
mov ecx, dword [ebp + 8]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x70]
jmp 0x4994e2
cmp edi, 0x462
jne 0x4993fd
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x14], esi
je 0x49937f
xor eax, eax
jmp 0x4994e2
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
cmp word [eax], 0x3f
jne 0x4993a0
xor ecx, ecx
mov cl, byte [esi + 0x7c]
shr cl, 6
not cl
and ecx, 1
mov word [eax], cx
jmp 0x49942a
mov dword [ebp + 0x14], ebx
cmp word [eax], 0x23
jne 0x4993af
add eax, 2
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00442f59
cmp dword [ebp + 0x14], ebx
pop ecx
pop ecx
jle 0x4993c9
and byte [esi + 0x7c], 0xbf
jmp 0x4993de
push 0x2713
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_KillTimer]
or byte [esi + 0x7c], 0x40
mov byte [esi + 0x7b], bl
cmp dword [ebp + 0x14], ebx
push 1
jg 0x4993f1
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x49942a
push dword [esi + 0x18]
call fcn.00499062
pop ecx
pop ecx
jmp 0x49942a
cmp edi, 0x45a
jne 0x499432
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x79]
test cl, 0x10
jne 0x499418
test cl, 3
je 0x499418
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [eax + 0x18]
call fcn.0046f969
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4994e2
cmp edi, 0xbc19
mov esi, dword [ebp + 8]
jne 0x499451
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x4c]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x499458
mov dword [ebp - 8], 1
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jle 0x499470
push dword [esi + 0x18]
call fcn.0048bd70
pop ecx
jmp 0x499472
xor eax, eax
push ebx
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043a0a2
cmp dword [ebp + 0xc], ebx
jle 0x4994a6
mov ecx, dword [esi + 0x4c]
lea eax, [ebp + 8]
push eax
push 1
push dword [esi + 0x18]
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0049316c
test al, 4
je 0x4994a6
mov esi, dword [ebp + 8]
jmp 0x4994d8
cmp dword [ebp - 8], ebx
je 0x4994bb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.0048bfac
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], ebx
jle 0x4994d5
mov ecx, dword [esi + 0x4c]
push ebx
push 2
push dword [esi + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0049316c
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.0043a101
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10