Function at 0x52a504
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 0x52a526
mov eax, dword [ebp + 0x10]
cmp eax, 0x3e8
jge 0x52a526
jmp 0x52a52a
xor eax, eax
jmp 0x52a52d
xor eax, eax
inc eax
cmp eax, 0
je 0x52a55d
mov eax, 0
mov edx, dword [0x5839e8]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x52a55d
push dword [ebp + 8]
call fcn.00531a6f
jmp 0x52ac3b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, 0
mov edx, dword [0x583b60]
cmp eax, edx
jne 0x52a579
call fcn.0052a4b7
jmp 0x52a583
mov eax, dword [0x583b60]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
sar eax, 0x10
cmp eax, 0
je 0x52a5f2
cmp eax, 3
je 0x52a7d5
cmp eax, 0x300
je 0x52a88e
cmp eax, 0x100
je 0x52a928
cmp eax, 4
je 0x52a928
cmp eax, 0x200
je 0x52aa01
cmp eax, 1
je 0x52aa20
cmp eax, 5
je 0x52ab76
cmp eax, 0
je 0x52abfa
mov eax, 0
jmp 0x52ac14
push 0
push dword [0x583b60]
call fcn.0053ca2d
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 [0x583b60]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ea4]
cmp eax, edx
jne 0x52a636
mov eax, 9
jmp 0x52a785
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582eb0]
cmp eax, edx
jne 0x52a658
push dword [0x583b60]
call fcn.0053e668
mov eax, 0x1a
jmp 0x52a785
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ebc]
cmp eax, edx
jne 0x52a702
push 0xb
push dword [0x583b60]
call fcn.0053ca2d
push eax
call fcn.0052585a
mov edx, eax
mov eax, 0x20000
and eax, edx
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x52a6ed
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 0x52a6c4
cmp eax, 2
je 0x52a6cb
cmp eax, 1
je 0x52a6d2
mov eax, 0
jmp 0x52a6d7
mov eax, 1
jmp 0x52a6d7
mov eax, 0
jmp 0x52a6d7
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 [0x583b60]
call fcn.0053e668
mov eax, 0x1a
jmp 0x52a785
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ec8]
cmp eax, edx
jne 0x52a74b
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 0x52a74b
push 9
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
jne 0x52a74b
jmp 0x52a74f
xor eax, eax
jmp 0x52a752
xor eax, eax
inc eax
cmp eax, 0
je 0x52a76b
push dword [0x583b60]
call fcn.0053e668
mov eax, 9
jmp 0x52a785
xor eax, eax
inc eax
je 0x52a777
mov eax, 0
jmp 0x52a785
call fcn.0052a77c
push 0
push dword [0x583b60]
call fcn.0053ca2d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ec8]
cmp eax, edx
jne 0x52a839
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
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 0x52a81d
inc edi
mov eax, edi
xor al, 1
cmp eax, 0
je 0x52a837
push 0x1a
push 0
push dword [0x583b60]
call fcn.00529d7d
jmp 0x52a889
push dword [ebp + 8]
call fcn.0053c98f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x52a85f
mov eax, dword [ebp - 0x10]
add eax, 0xa0
push eax
push dword [ebp - 0x30]
call fcn.00528b64
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
mov dword [eax], edx
push 0
push dword [0x583b60]
call fcn.0053ca2d
mov dword [ebp - 0xc], eax
push 0x11
push 0
push dword [0x583b60]
call fcn.00529d7d
jmp 0x52ac14
mov eax, 0
mov edx, dword [0x583b60]
cmp eax, edx
je 0x52a8b0
push dword [ebp + 8]
call fcn.0053c8c4
cmp eax, 0
jne 0x52a8b0
xor eax, eax
jmp 0x52a8b3
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x52a91e
push dword [ebp - 0x30]
call fcn.0053c8c4
xor al, 1
cmp eax, 0
je 0x52a91e
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
mov dword [eax], edx
push 0x1a
push 0xffffffffffffffff
push dword [0x583b60]
call fcn.00529d7d
push 0
push dword [0x583b60]
call fcn.0053ca2d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ee0]
cmp eax, edx
jne 0x52a91e
push 0x10
push dword [ebp - 0x30]
call fcn.00540b6b
push 0
push dword [ebp - 0x30]
call fcn.0053cf11
mov eax, 0
jmp 0x52ac14
push dword [ebp + 8]
call fcn.0053c98f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x52a94e
mov eax, dword [ebp - 0x10]
add eax, 0xa0
push eax
push dword [ebp - 0x30]
call fcn.00528b64
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
mov dword [eax], edx
push 0
push dword [0x583b60]
call fcn.0053ca2d
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 [0x582ed4]
cmp eax, edx
je 0x52a999
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582ee0]
cmp eax, edx
je 0x52a999
xor eax, eax
jmp 0x52a99c
xor eax, eax
inc eax
cmp eax, 0
je 0x52a9b4
push dword [ebp - 0x30]
call fcn.0053c98f
push eax
push dword [ebp - 0x30]
call fcn.00540dbe
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582f28]
cmp eax, edx
je 0x52a9d2
mov eax, dword [ebp - 0x24]
mov edx, dword [0x582f38]
cmp eax, edx
je 0x52a9d2
xor eax, eax
jmp 0x52a9d5
xor eax, eax
inc eax
cmp eax, 0
je 0x52a9ed
push 0x12
push 0
push dword [0x583b60]
call fcn.00529d7d
jmp 0x52a9fc
push 0x11
push 0
push dword [0x583b60]
call fcn.00529d7d
jmp 0x52ac14
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
mov dword [eax], edx
push 0x12
push 0
push dword [0x583b60]
call fcn.00529d7d
jmp 0x52ac14
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
mov dword [eax], edx
push dword [ebp - 0x30]
call fcn.0053c98f
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 [0x582efc]
cmp eax, edx
jne 0x52aa5b
mov eax, 0x188
jmp 0x52aa60
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 0x52aaa9
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 0x52aaa9
jmp 0x52aaad
xor eax, eax
jmp 0x52aab0
xor eax, eax
inc eax
cmp eax, 0
je 0x52aabc
jmp 0x52ac3b
push 0x19
push dword [ebp - 0x1c]
push dword [0x583b60]
call fcn.00529d7d
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 0x52aaf0
jmp 0x52ac3b
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 0x52ab2b
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 0x52ab2b
jmp 0x52ab2f
xor eax, eax
jmp 0x52ab32
xor eax, eax
inc eax
cmp eax, 0
je 0x52ab3e
jmp 0x52ac3b
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 0x52ab71
push 0x1a
push 0
push dword [0x583b60]
call fcn.00529d7d
jmp 0x52ac14
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
mov dword [eax], edx
push 0
push dword [0x583b60]
call fcn.0053ca2d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582efc]
cmp eax, edx
je 0x52abbb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582ec8]
cmp eax, edx
je 0x52abbb
xor eax, eax
jmp 0x52abbe
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x52abd6
push 0x1a
push 0xffffffffffffffff
push dword [0x583b60]
call fcn.00529d7d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x582efc]
cmp eax, edx
jne 0x52abf8
push 0x12
push 0
push dword [0x583b60]
call fcn.00529d7d
jmp 0x52ac14
mov eax, dword [ebp - 0x30]
xchg edx, eax
mov eax, dword [0x583b60]
mov dword [eax], edx
push 1
push 0
push dword [0x583b60]
call fcn.00529d7d