Function at 0x456965
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00445e2a
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push 0x20
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [0x4850a0], 0
mov dword [ebp - 0x14], eax
je 0x456ab1
mov ecx, ebx
call fcn.00442f35
cmp dword [0x485098], 0
mov ebx, eax
je 0x4569de
test esi, 0x1000
je 0x4569de
cmp ebx, 3
jne 0x4569ca
mov ebx, 2
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4569de
xor eax, eax
jmp 0x456cf0
cmp ebx, 0xa
jb 0x4569e8
cmp ebx, 0x11
jbe 0x4569f4
cmp ebx, 4
je 0x4569f4
mov eax, ebx
jmp 0x456cf0
test esi, 0x800
je 0x456a06
mov eax, 2
jmp 0x456cf0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
neg edi
neg eax
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
test esi, 0x200
je 0x456aaa
cmp ebx, 4
je 0x456a3e
cmp ebx, 0xd
je 0x456a59
cmp ebx, 0xe
je 0x456a74
cmp ebx, 0x10
je 0x456a8f
cmp ebx, 0x11
jne 0x456aaa
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
mov eax, 0xf
jl 0x456cf0
mov eax, 0xb
jmp 0x456cf0
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0xc], eax
mov eax, 0xa
jle 0x456cf0
mov eax, 0xc
jmp 0x456cf0
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0xc], eax
mov eax, 0xb
jle 0x456cf0
mov eax, 0xc
jmp 0x456cf0
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
mov eax, 0xf
jl 0x456cf0
mov eax, 0xa
jmp 0x456cf0
mov eax, ebx
jmp 0x456cf0
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x456acc
xor eax, eax
jmp 0x456cf0
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 8]
push 0
mov ecx, ebx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
call fcn.004568f7
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x456b33
mov eax, 1
jmp 0x456cf0
test esi, 0x40600
je 0x456ca3
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
imul eax, eax, 3
sub ecx, eax
add edx, edx
add ecx, dword [0x485380]
mov eax, dword [0x485384]
sub eax, edx
lea edx, [eax + edi]
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [ebp + 0xc]
jle 0x456bae
test esi, 0x200
je 0x456b7d
mov ebx, 0xc
jmp 0x456c7b
mov eax, dword [ebp - 0x10]
add eax, ecx
cmp eax, dword [ebp + 8]
jl 0x456b91
mov ebx, 0xd
jmp 0x456c7b
mov eax, dword [ebp - 8]
mov ebx, 0xe
sub eax, ecx
cmp eax, dword [ebp + 8]
jle 0x456c7b
mov ebx, 0xc
jmp 0x456c7b
mov eax, dword [ebp - 4]
sub eax, edi
cmp eax, dword [ebp + 0xc]
jg 0x456bfb
test esi, 0x200
je 0x456bca
mov ebx, 0xf
jmp 0x456c7b
mov eax, dword [ebp - 0x10]
add eax, ecx
cmp eax, dword [ebp + 8]
jl 0x456bde
mov ebx, 0x10
jmp 0x456c7b
mov eax, dword [ebp - 8]
mov ebx, 0x11
sub eax, ecx
cmp eax, dword [ebp + 8]
jle 0x456c7b
mov ebx, 0xf
jmp 0x456c7b
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jle 0x456c3c
test esi, 0x200
je 0x456c15
mov ebx, 0xa
jmp 0x456c7b
mov eax, dword [ebp - 0xc]
add eax, edx
cmp eax, dword [ebp + 0xc]
jl 0x456c26
mov ebx, 0xd
jmp 0x456c7b
mov eax, dword [ebp - 4]
mov ebx, 0x10
sub eax, edx
cmp eax, dword [ebp + 0xc]
jle 0x456c7b
mov ebx, 0xa
jmp 0x456c7b
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jg 0x456c7b
test esi, 0x200
je 0x456c56
mov ebx, 0xb
jmp 0x456c7b
mov eax, dword [ebp - 0xc]
add eax, edx
cmp eax, dword [ebp + 0xc]
jl 0x456c67
mov ebx, 0xe
jmp 0x456c7b
mov eax, dword [ebp - 4]
mov ebx, 0x11
sub eax, edx
cmp eax, dword [ebp + 0xc]
jle 0x456c7b
mov ebx, 0xb
test ebx, ebx
je 0x456c90
test esi, 0x800
mov eax, 2
jne 0x456cf0
mov eax, ebx
jmp 0x456cf0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
neg edi
neg eax
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [0x485384]
add eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x456ceb
mov eax, dword [0x485380]
add eax, dword [ebp - 0x10]
sub eax, 2
cmp eax, dword [ebp + 8]
jle 0x456ce4
test esi, 0x80000
je 0x456ce4
mov eax, 3
jmp 0x456cf0
mov eax, 2
jmp 0x456cf0
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8