Function at 0x4a68a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8eb0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push edi
mov edi, ecx
test edi, edi
je 0x4a6be8
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
push esi
mov esi, dword [ebp + 8]
push edx
push esi
call eax
test al, al
je 0x4a6be7
mov ecx, dword [0x52fe30]
cmp byte [ecx + 0x1141b], 0
je 0x4a6be7
cmp esi, 1
jne 0x4a6912
mov ecx, edi
call fcn.004a5e70
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 2
jne 0x4a69ce
mov ecx, dword [0x52fe2c]
add ecx, 0xe8
call fcn.00438cd0
test al, al
je 0x4a6973
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
mov ecx, dword [0x52fe2c]
mov ecx, dword [ecx + 0x409c]
sete dl
movzx eax, dl
push eax
push 0
push 0
call fcn.0044a820
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x52fe30]
cmp byte [edx + 0x11430], 0
jne 0x4a699d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x4a699d
xor eax, eax
jmp 0x4a69a2
mov eax, 1
mov ecx, dword [0x52fe34]
push 0
push eax
call fcn.0046aa90
mov ecx, dword [0x52fe2c]
push eax
call fcn.0040fca0
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 3
jne 0x4a6a5a
lea ecx, [ebp - 0x18]
call fcn.004bc8c0
mov ecx, dword [0x52fe2c]
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.0040a790
test eax, eax
jl 0x4a6a17
lea ecx, [ebp - 0x18]
call fcn.004bc9d0
test eax, eax
je 0x4a6a17
mov ecx, eax
call fcn.004bcc80
mov ecx, eax
call fcn.00486f30
jmp 0x4a6a19
xor eax, eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x74]
test eax, eax
setne al
movzx eax, al
push eax
push 3
call edx
mov ecx, dword [0x52fe2c]
call fcn.0040d8c0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 4
jne 0x4a6ae6
lea ecx, [ebp - 0x18]
call fcn.004bc8c0
mov ecx, dword [0x52fe2c]
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
call fcn.0040a790
test eax, eax
jl 0x4a6aa3
lea ecx, [ebp - 0x18]
call fcn.004bc9d0
test eax, eax
je 0x4a6aa3
mov ecx, eax
call fcn.004bcc80
mov ecx, eax
call fcn.00486ee0
jmp 0x4a6aa5
xor eax, eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x74]
test eax, eax
setne al
movzx eax, al
push eax
push 4
call edx
mov ecx, dword [0x52fe2c]
call fcn.0040d780
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 5
jne 0x4a6b15
mov eax, dword [0x52fe14]
push 0
push 0xf020
push 0x112
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 6
jne 0x4a6b48
mov eax, dword [0x52fe2c]
mov ecx, 0x200
or word [eax + 0x4148], cx
mov ecx, dword [0x52fe2c]
call fcn.00420050
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 7
jne 0x4a6b70
mov ecx, dword [0x52fe2c]
add ecx, 0xb0
call fcn.00437af0
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 8
jne 0x4a6b92
mov ecx, dword [0x52fe2c]
call fcn.004349b0
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp esi, 9
jne 0x4a6be7
mov ecx, dword [edi + 4]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [ebp - 0x28]
push eax
push esi
call edx
mov ecx, dword [0x52fe30]
mov edx, dword [ebp - 0x1c]
xor eax, eax
cmp byte [ecx + 0x1133e], 1
mov ecx, dword [0x52fe2c]
mov ecx, dword [ecx + 0x409c]
setne al
dec eax
and eax, 0x20
or eax, 8
push eax
mov eax, dword [ebp - 0x20]
push edx
push eax
call fcn.0044bff0
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8