Function at 0x52aac2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x30
mov eax, 0
mov edx, dword [ebp + 0x14]
cmp eax, edx
jne 0x52aae4
mov eax, dword [ebp + 0x10]
cmp eax, 0x3e8
jge 0x52aae4
jmp 0x52aae8
xor eax, eax
jmp 0x52aaeb
xor eax, eax
inc eax
cmp eax, 0
je 0x52ab1b
mov eax, 0
mov edx, dword [0x583afc]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x52ab1b
push dword [ebp + 8]
call fcn.0053202d
jmp 0x52b1f9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, 0
mov edx, dword [0x583c70]
cmp eax, edx
jne 0x52ab37
call fcn.0052aa75
jmp 0x52ab41
mov eax, dword [0x583c70]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
sar eax, 0x10
cmp eax, 0
je 0x52abb0
cmp eax, 3
je 0x52ad93
cmp eax, 0x300
je 0x52ae4c
cmp eax, 0x100
je 0x52aee6
cmp eax, 4
je 0x52aee6
cmp eax, 0x200
je 0x52afbf
cmp eax, 1
je 0x52afde
cmp eax, 5
je 0x52b134
cmp eax, 0
je 0x52b1b8
mov eax, 0
jmp 0x52b1d2
push 0
push dword [0x583c70]
call fcn.0053cfeb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044ec5c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582fb8]
cmp eax, edx
jne 0x52abf4
mov eax, 9
jmp 0x52ad43
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582fc4]
cmp eax, edx
jne 0x52ac16
push dword [0x583c70]
call fcn.0053ec26
mov eax, 0x1a
jmp 0x52ad43
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582fd0]
cmp eax, edx
jne 0x52acc0
push 0xb
push dword [0x583c70]
call fcn.0053cfeb
push eax
call fcn.00525e18
mov edx, eax
mov eax, 0x20000
and eax, edx
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x52acab
push 0
push 0
push 0xf0
push dword [ebp - 0x30]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, 0
je 0x52ac82
cmp eax, 2
je 0x52ac89
cmp eax, 1
je 0x52ac90
mov eax, 0
jmp 0x52ac95
mov eax, 1
jmp 0x52ac95
mov eax, 0
jmp 0x52ac95
mov eax, 2
mov dword [ebp - 0x28], eax
push 0
push dword [ebp - 0x28]
push 0xf1
push dword [ebp - 0x30]
call dword [sym.imp.USER32.DLL_SendMessageW]
push dword [0x583c70]
call fcn.0053ec26
mov eax, 0x1a
jmp 0x52ad43
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582fdc]
cmp eax, edx
jne 0x52ad09
push 0
push 0
push 0xf2
push dword [ebp - 0x30]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov edx, eax
mov eax, 1
and eax, edx
mov edx, eax
mov eax, 1
cmp eax, edx
je 0x52ad09
push 9
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
jne 0x52ad09
jmp 0x52ad0d
xor eax, eax
jmp 0x52ad10
xor eax, eax
inc eax
cmp eax, 0
je 0x52ad29
push dword [0x583c70]
call fcn.0053ec26
mov eax, 9
jmp 0x52ad43
xor eax, eax
inc eax
je 0x52ad35
mov eax, 0
jmp 0x52ad43
call fcn.0052ad3a
push 0
push dword [0x583c70]
call fcn.0053cfeb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582fdc]
cmp eax, edx
jne 0x52adf7
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push 0
push 0
push 0xf2
push dword [ebp - 0x30]
call dword [sym.imp.USER32.DLL_SendMessageW]
xor edi, edi
cmp eax, 0
je 0x52addb
inc edi
mov eax, edi
xor al, 1
cmp eax, 0
je 0x52adf5
push 0x1a
push 0
push dword [0x583c70]
call fcn.0052a33b
jmp 0x52ae47
push dword [ebp + 8]
call fcn.0053cf4d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x52ae1d
mov eax, dword [ebp - 0x10]
add eax, 0xa0
push eax
push dword [ebp - 0x30]
call fcn.00529122
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push 0
push dword [0x583c70]
call fcn.0053cfeb
mov dword [ebp - 0xc], eax
push 0x11
push 0
push dword [0x583c70]
call fcn.0052a33b
jmp 0x52b1d2
mov eax, 0
mov edx, dword [0x583c70]
cmp eax, edx
je 0x52ae6e
push dword [ebp + 8]
call fcn.0053ce82
cmp eax, 0
jne 0x52ae6e
xor eax, eax
jmp 0x52ae71
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x52aedc
push dword [ebp - 0x30]
call fcn.0053ce82
xor al, 1
cmp eax, 0
je 0x52aedc
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push 0x1a
push 0xffffffffffffffff
push dword [0x583c70]
call fcn.0052a33b
push 0
push dword [0x583c70]
call fcn.0053cfeb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ff4]
cmp eax, edx
jne 0x52aedc
push 0x10
push dword [ebp - 0x30]
call fcn.00541129
push 0
push dword [ebp - 0x30]
call fcn.0053d4cf
mov eax, 0
jmp 0x52b1d2
push dword [ebp + 8]
call fcn.0053cf4d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x52af0c
mov eax, dword [ebp - 0x10]
add eax, 0xa0
push eax
push dword [ebp - 0x30]
call fcn.00529122
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push 0
push dword [0x583c70]
call fcn.0053cfeb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044ec5c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582fe8]
cmp eax, edx
je 0x52af57
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ff4]
cmp eax, edx
je 0x52af57
xor eax, eax
jmp 0x52af5a
xor eax, eax
inc eax
cmp eax, 0
je 0x52af72
push dword [ebp - 0x30]
call fcn.0053cf4d
push eax
push dword [ebp - 0x30]
call fcn.0054137c
mov eax, dword [ebp - 0x24]
mov edx, dword [0x58303c]
cmp eax, edx
je 0x52af90
mov eax, dword [ebp - 0x24]
mov edx, dword [0x58304c]
cmp eax, edx
je 0x52af90
xor eax, eax
jmp 0x52af93
xor eax, eax
inc eax
cmp eax, 0
je 0x52afab
push 0x12
push 0
push dword [0x583c70]
call fcn.0052a33b
jmp 0x52afba
push 0x11
push 0
push dword [0x583c70]
call fcn.0052a33b
jmp 0x52b1d2
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push 0x12
push 0
push dword [0x583c70]
call fcn.0052a33b
jmp 0x52b1d2
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push dword [ebp - 0x30]
call fcn.0053cf4d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x583010]
cmp eax, edx
jne 0x52b019
mov eax, 0x188
jmp 0x52b01e
mov eax, 0x147
mov dword [ebp - 0x38], eax
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add eax, 0xa0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xb
jne 0x52b067
mov eax, dword [ebp - 0x1c]
inc eax
push eax
pop edx
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
xchg edx, eax
cmp eax, edx
jne 0x52b067
jmp 0x52b06b
xor eax, eax
jmp 0x52b06e
xor eax, eax
inc eax
cmp eax, 0
je 0x52b07a
jmp 0x52b1f9
push 0x19
push dword [ebp - 0x1c]
push dword [0x583c70]
call fcn.0052a33b
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0xf0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 5
je 0x52b0ae
jmp 0x52b1f9
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xb
jne 0x52b0e9
mov eax, dword [ebp - 0x1c]
inc eax
push eax
pop edx
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
xchg edx, eax
cmp eax, edx
jne 0x52b0e9
jmp 0x52b0ed
xor eax, eax
jmp 0x52b0f0
xor eax, eax
inc eax
cmp eax, 0
je 0x52b0fc
jmp 0x52b1f9
mov eax, 0xb
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
inc eax
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x20]
cmp eax, 1
jne 0x52b12f
push 0x1a
push 0
push dword [0x583c70]
call fcn.0052a33b
jmp 0x52b1d2
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push 0
push dword [0x583c70]
call fcn.0053cfeb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x583010]
cmp eax, edx
je 0x52b179
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582fdc]
cmp eax, edx
je 0x52b179
xor eax, eax
jmp 0x52b17c
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x52b194
push 0x1a
push 0xffffffffffffffff
push dword [0x583c70]
call fcn.0052a33b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x583010]
cmp eax, edx
jne 0x52b1b6
push 0x12
push 0
push dword [0x583c70]
call fcn.0052a33b
jmp 0x52b1d2
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583c70]
mov dword [eax], edx
push 1
push 0
push dword [0x583c70]
call fcn.0052a33b