Function at 0x4587f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x48
xor eax, eax
push esi
mov esi, ecx
cmp dword [esi + 0xfc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
je 0x458b00
cmp dword [esi + 0x198], 3
je 0x458b00
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx ebp, ax
push 0x11
and ebp, 0x8000
call edi
push 0x12
and eax, 0x8000
mov dword [esp + 0x1c], eax
call edi
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esi + 0x124]
and eax, 0x8000
mov dword [esp + 0x1c], eax
mov ax, bx
sub ax, word [esi + 0x1ac]
sub ax, word [esi + 0x14c]
movzx eax, ax
movsx eax, ax
cmp eax, ecx
movzx eax, ax
jl 0x458874
movzx eax, cx
mov ecx, dword [esi + 0x120]
movsx eax, ax
cmp eax, ecx
movzx eax, ax
jg 0x458887
movzx eax, cx
movsx ecx, ax
push ecx
mov ecx, esi
call fcn.00456e20
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.0048c790
test eax, eax
je 0x4588ec
mov edx, dword [esi]
mov edx, dword [edx + 0xd0]
push 1
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0x4c
call edx
mov dword [esi + 0x19c], 1
mov eax, dword [esi + 0x180]
sub eax, dword [esi + 0x188]
xor ecx, ecx
movzx edi, bx
shr ebx, 0x10
cmp ebx, eax
setg cl
mov dword [esi + 0x114], 0
cmp dword [0x5aa830], 0
mov eax, ecx
je 0x458965
test ebp, ebp
je 0x45892c
cmp dword [esp + 0x18], 0
jne 0x45892c
cmp dword [esp + 0x1c], 0
je 0x458930
test eax, eax
je 0x458965
mov ecx, dword [esi + 0x17c]
mov eax, dword [esi + 0x184]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp edi, eax
jge 0x458953
mov dword [esp + 0x14], 1
jmp 0x45895b
mov dword [esp + 0x10], 1
mov dword [esi + 0x160], 1
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
push ebx
lea eax, [esi + 0x174]
push edi
push eax
call ebp
test eax, eax
jne 0x458a11
cmp dword [esp + 0x14], eax
jne 0x458a11
push ebx
lea eax, [esi + 0x184]
push edi
push eax
call ebp
test eax, eax
jne 0x4589a1
cmp dword [esp + 0x10], eax
je 0x458a8d
mov ecx, dword [esi + 0xcc]
lea edx, [esp + 0x24]
push edx
call fcn.00496590
mov edx, dword [esi + 0x154]
sub edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x140]
sub edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x144]
add edx, dword [esp + 0x2c]
cmp dword [esp + 0x10], 0
mov dword [esi + 0x128], eax
mov dword [esi + 0x12c], ecx
mov dword [esi + 0x120], edx
je 0x458a83
push ebx
push edi
lea ebx, [esi + 0x184]
push ebx
mov dword [esi + 0x114], 2
call ebp
test eax, eax
je 0x458a79
sub edi, dword [ebx]
mov dword [esi + 0x1ac], edi
jmp 0x458a83
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x24]
push eax
call fcn.00496590
mov eax, dword [esi + 0x158]
sub eax, dword [esi + 0x14c]
cmp dword [esp + 0x14], 0
mov ecx, dword [esi + 0x140]
mov edx, dword [esi + 0x144]
mov dword [esi + 0x128], ecx
mov dword [esi + 0x12c], edx
mov dword [esi + 0x124], eax
je 0x458a83
push ebx
push edi
lea eax, [esi + 0x174]
push eax
mov dword [esi + 0x114], 1
call ebp
test eax, eax
je 0x458a79
sub edi, dword [esi + 0x17c]
mov dword [esi + 0x1ac], edi
jmp 0x458a83
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x160], 1
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
cmp dword [esi + 0x160], 0
pop edi
pop ebp
pop ebx
je 0x458ad7
mov ecx, esi
call fcn.0045b930
test eax, eax
je 0x458ad7
push 1
mov ecx, esi
call fcn.00456c90
test eax, eax
je 0x458ad7
mov edx, dword [esi + 0x118]
push edx
mov ecx, esi
call fcn.00456520
mov eax, dword [esi + 0x11c]
push eax
mov ecx, esi
call fcn.00456620
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004563a0
mov ecx, esi
mov dword [esi + 0x100], 1
call fcn.00457330
mov edx, dword [esp + 0x50]
push edx
mov ecx, esi
call fcn.00457930
pop esi
add esp, 0x48
ret 4