Function at 0x52a51c
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 0x52a53e
mov eax, dword [ebp + 0x10]
cmp eax, 0x3e8
jge 0x52a53e
jmp 0x52a542
xor eax, eax
jmp 0x52a545
xor eax, eax
inc eax
cmp eax, 0
je 0x52a575
mov eax, 0
mov edx, dword [0x5839e0]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x52a575
push dword [ebp + 8]
call fcn.00531a87
jmp 0x52ac53
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, 0
mov edx, dword [0x583b58]
cmp eax, edx
jne 0x52a591
call fcn.0052a4cf
jmp 0x52a59b
mov eax, dword [0x583b58]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
sar eax, 0x10
cmp eax, 0
je 0x52a60a
cmp eax, 3
je 0x52a7ed
cmp eax, 0x300
je 0x52a8a6
cmp eax, 0x100
je 0x52a940
cmp eax, 4
je 0x52a940
cmp eax, 0x200
je 0x52aa19
cmp eax, 1
je 0x52aa38
cmp eax, 5
je 0x52ab8e
cmp eax, 0
je 0x52ac12
mov eax, 0
jmp 0x52ac2c
push 0
push dword [0x583b58]
call fcn.0053ca45
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044ebdc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582e9c]
cmp eax, edx
jne 0x52a64e
mov eax, 9
jmp 0x52a79d
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ea8]
cmp eax, edx
jne 0x52a670
push dword [0x583b58]
call fcn.0053e680
mov eax, 0x1a
jmp 0x52a79d
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582eb4]
cmp eax, edx
jne 0x52a71a
push 0xb
push dword [0x583b58]
call fcn.0053ca45
push eax
call fcn.00525872
mov edx, eax
mov eax, 0x20000
and eax, edx
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x52a705
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 0x52a6dc
cmp eax, 2
je 0x52a6e3
cmp eax, 1
je 0x52a6ea
mov eax, 0
jmp 0x52a6ef
mov eax, 1
jmp 0x52a6ef
mov eax, 0
jmp 0x52a6ef
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 [0x583b58]
call fcn.0053e680
mov eax, 0x1a
jmp 0x52a79d
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ec0]
cmp eax, edx
jne 0x52a763
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 0x52a763
push 9
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
jne 0x52a763
jmp 0x52a767
xor eax, eax
jmp 0x52a76a
xor eax, eax
inc eax
cmp eax, 0
je 0x52a783
push dword [0x583b58]
call fcn.0053e680
mov eax, 9
jmp 0x52a79d
xor eax, eax
inc eax
je 0x52a78f
mov eax, 0
jmp 0x52a79d
call fcn.0052a794
push 0
push dword [0x583b58]
call fcn.0053ca45
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ec0]
cmp eax, edx
jne 0x52a851
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
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 0x52a835
inc edi
mov eax, edi
xor al, 1
cmp eax, 0
je 0x52a84f
push 0x1a
push 0
push dword [0x583b58]
call fcn.00529d95
jmp 0x52a8a1
push dword [ebp + 8]
call fcn.0053c9a7
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x52a877
mov eax, dword [ebp - 0x10]
add eax, 0xa0
push eax
push dword [ebp - 0x30]
call fcn.00528b7c
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
push 0
push dword [0x583b58]
call fcn.0053ca45
mov dword [ebp - 0xc], eax
push 0x11
push 0
push dword [0x583b58]
call fcn.00529d95
jmp 0x52ac2c
mov eax, 0
mov edx, dword [0x583b58]
cmp eax, edx
je 0x52a8c8
push dword [ebp + 8]
call fcn.0053c8dc
cmp eax, 0
jne 0x52a8c8
xor eax, eax
jmp 0x52a8cb
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x52a936
push dword [ebp - 0x30]
call fcn.0053c8dc
xor al, 1
cmp eax, 0
je 0x52a936
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
push 0x1a
push 0xffffffffffffffff
push dword [0x583b58]
call fcn.00529d95
push 0
push dword [0x583b58]
call fcn.0053ca45
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ed8]
cmp eax, edx
jne 0x52a936
push 0x10
push dword [ebp - 0x30]
call fcn.00540b83
push 0
push dword [ebp - 0x30]
call fcn.0053cf29
mov eax, 0
jmp 0x52ac2c
push dword [ebp + 8]
call fcn.0053c9a7
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x52a966
mov eax, dword [ebp - 0x10]
add eax, 0xa0
push eax
push dword [ebp - 0x30]
call fcn.00528b7c
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
push 0
push dword [0x583b58]
call fcn.0053ca45
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044ebdc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ecc]
cmp eax, edx
je 0x52a9b1
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ed8]
cmp eax, edx
je 0x52a9b1
xor eax, eax
jmp 0x52a9b4
xor eax, eax
inc eax
cmp eax, 0
je 0x52a9cc
push dword [ebp - 0x30]
call fcn.0053c9a7
push eax
push dword [ebp - 0x30]
call fcn.00540dd6
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582f20]
cmp eax, edx
je 0x52a9ea
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582f30]
cmp eax, edx
je 0x52a9ea
xor eax, eax
jmp 0x52a9ed
xor eax, eax
inc eax
cmp eax, 0
je 0x52aa05
push 0x12
push 0
push dword [0x583b58]
call fcn.00529d95
jmp 0x52aa14
push 0x11
push 0
push dword [0x583b58]
call fcn.00529d95
jmp 0x52ac2c
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
push 0x12
push 0
push dword [0x583b58]
call fcn.00529d95
jmp 0x52ac2c
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
push dword [ebp - 0x30]
call fcn.0053c9a7
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 [0x582ef4]
cmp eax, edx
jne 0x52aa73
mov eax, 0x188
jmp 0x52aa78
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 0x52aac1
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 0x52aac1
jmp 0x52aac5
xor eax, eax
jmp 0x52aac8
xor eax, eax
inc eax
cmp eax, 0
je 0x52aad4
jmp 0x52ac53
push 0x19
push dword [ebp - 0x1c]
push dword [0x583b58]
call fcn.00529d95
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 0x52ab08
jmp 0x52ac53
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 0x52ab43
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 0x52ab43
jmp 0x52ab47
xor eax, eax
jmp 0x52ab4a
xor eax, eax
inc eax
cmp eax, 0
je 0x52ab56
jmp 0x52ac53
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 0x52ab89
push 0x1a
push 0
push dword [0x583b58]
call fcn.00529d95
jmp 0x52ac2c
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
push 0
push dword [0x583b58]
call fcn.0053ca45
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ef4]
cmp eax, edx
je 0x52abd3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ec0]
cmp eax, edx
je 0x52abd3
xor eax, eax
jmp 0x52abd6
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x52abee
push 0x1a
push 0xffffffffffffffff
push dword [0x583b58]
call fcn.00529d95
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ef4]
cmp eax, edx
jne 0x52ac10
push 0x12
push 0
push dword [0x583b58]
call fcn.00529d95
jmp 0x52ac2c
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b58]
mov dword [eax], edx
push 1
push 0
push dword [0x583b58]
call fcn.00529d95