Function at 0x4a6b6b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [ebp + 8], 0
je 0x4a6bab
mov eax, dword [0x5dcd8c]
cmp dword [eax], 0
je 0x4a6bab
mov ecx, dword [0x5dcd8c]
cmp dword [ecx + 8], 0
je 0x4a6bab
mov edx, dword [0x5dcd8c]
cmp dword [edx + 4], 1
jl 0x4a6bab
mov eax, dword [ebp + 8]
push eax
call dword [0x5bf6d8]
add esp, 4
cmp eax, dword [ebp + 0xc]
je 0x4a6bb3
or eax, 0xffffffff
jmp 0x4a6e9c
mov ecx, dword [0x5dcd8c]
cmp dword [ecx + 4], 1
jne 0x4a6c03
mov edx, dword [0x5dcd8c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp + 8]
jne 0x4a6bfe
mov ecx, dword [ebp + 0x14]
and ecx, 4
test ecx, ecx
je 0x4a6be6
mov edx, dword [ebp + 8]
push edx
call dword [0x5bf2bc]
add esp, 4
jmp 0x4a6bfe
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a6ea0
add esp, 0x10
jmp 0x4a6e9a
mov ecx, dword [ebp + 0x14]
and ecx, 8
test ecx, ecx
je 0x4a6cf1
mov edx, dword [0x5dcd8c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp + 8]
jne 0x4a6c26
xor eax, eax
jmp 0x4a6e9c
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov edx, dword [0x5dcd8c]
cmp dword [edx + 8], 0
je 0x4a6c61
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [0x5dcd8c]
mov edx, dword [ecx + 8]
push edx
call dword [0x5bf314]
add esp, 8
push 7
push 7
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [0x5dcd8c]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [0x5dcd8c]
mov edx, dword [ecx + 8]
push edx
call dword [0x5bf314]
add esp, 8
push 7
push 7
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_UnionRect]
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x5dcd8c]
cmp dword [edx + 0x28], 0
je 0x4a6cec
mov eax, dword [0x5dcd8c]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [0x5dcd8c]
call dword [edx + 0x28]
add esp, 4
jmp 0x4a6e9a
mov eax, dword [ebp + 0x14]
and eax, 4
test eax, eax
je 0x4a6d0d
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5bf2bc]
add esp, 4
jmp 0x4a6e9a
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
and edx, 0x8000
neg edx
sbb edx, edx
neg edx
test edx, edx
je 0x4a6d6e
mov eax, dword [0x5dcd8c]
mov ecx, dword [eax]
push ecx
call dword [0x5bf438]
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [0x5bf138]
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a6d69
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
je 0x4a6d67
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5bf2bc]
add esp, 4
jmp 0x4a6d3c
jmp 0x4a6e9a
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x5dcd8c]
mov edx, dword [ecx]
push edx
call dword [0x5bf438]
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x5bf138]
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a6e4a
push 3
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5be85c]
add esp, 8
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [0x5bed14]
add esp, 8
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5be4b4]
add esp, 8
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [0x5efa94], 0
je 0x4a6e05
mov ecx, dword [0x5efa94]
mov dword [ebp - 0x50], ecx
jmp 0x4a6e0d
call fcn.0047ff50
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [0x5bf9e0]
add esp, 8
mov dword [ebp - 0x4c], eax
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [0x5be850]
add esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5be708]
add esp, 8
jmp 0x4a6d9a
lea edx, [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x7f86
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [0x5dcd8c]
mov eax, dword [ebp - 8]
mov dword [edx + 0x20], eax
mov ecx, dword [0x5dcd8c]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x24], edx
mov eax, dword [0x5dcd8c]
mov dword [eax + 0x1c], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret