Function at 0x497420
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x34
mov eax, dword [0x67f3c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
call fcn.00474e90
mov ebx, eax
mov dword [esp + 0x28], ebx
call fcn.00474b50
test eax, eax
je 0x49744f
call fcn.00474e90
mov edi, dword [eax + 0x6c]
jmp 0x497451
xor edi, edi
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x30], xmm0
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
movd xmm1, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 8], xmm1
movss dword [ebx + 0xc], xmm0
cmp byte [edi + 0x26], 0
je 0x497499
call fcn.00497fa0
push ebp
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x20]
sbb edx, dword [edi + 0x14]
call fcn.00512590
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x14], xmm0
call fcn.00512590
movss xmm1, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebx + 0x10], xmm1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
call fcn.00474b50
test eax, eax
je 0x49750a
call fcn.00474e90
mov ebp, dword [eax + 0x6c]
jmp 0x49750c
xor ebp, ebp
call fcn.00474e90
mov esi, eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
setne byte [esp + 0x13]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
test ebx, ebx
je 0x49760a
mov eax, dword [ebp]
cmp ebx, eax
je 0x497559
push eax
push ebx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x497559
push ebx
call fcn.00474440
add esp, 4
test eax, eax
je 0x49760a
cmp byte [esi + 0x8f], 0
je 0x4975a7
test dword [esi], 0x400
cvttss2si eax, dword [esi + 0xd50]
cvttss2si ecx, dword [esi + 0xd54]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jne 0x497596
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x8f], 0
jne 0x49760a
cmp byte [ebp + 8], 0
mov al, byte [esp + 0x13]
jne 0x49760e
test al, al
je 0x49760e
test dword [esi], 0x400
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jne 0x4975e3
lea eax, [esp + 0x14]
push eax
push dword [ebp]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
mov ecx, esi
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.00464b80
xor ebx, ebx
jmp 0x497614
mov al, byte [esp + 0x13]
xor ebx, ebx
test al, al
je 0x497635
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_WindowFromPoint]
test eax, eax
je 0x497635
push eax
call fcn.00474440
add esp, 4
test eax, eax
je 0x497635
mov ebx, dword [eax]
push ebx
mov ecx, esi
call fcn.00464be0
push 0x210
call fcn.004767c0
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 4
pop ebp
test al, al
je 0x49768d
push 0xa0
call ebx
shr eax, 0xf
test al, 1
jne 0x49768d
call fcn.00474e90
mov esi, eax
push 0
push 0x210
mov ecx, esi
call fcn.004649a0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa0
push 0x210
mov ecx, esi
call fcn.00480a50
push 0x214
call fcn.004767c0
add esp, 4
test al, al
je 0x4976d6
push 0xa1
call ebx
shr eax, 0xf
test al, 1
jne 0x4976d6
call fcn.00474e90
mov esi, eax
push 0
push 0x214
mov ecx, esi
call fcn.004649a0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa1
push 0x214
mov ecx, esi
call fcn.00480a50
push 0x212
call fcn.004767c0
add esp, 4
test al, al
je 0x497719
push 0x5b
call ebx
shr eax, 0xf
test al, 1
jne 0x497719
call fcn.00474e90
mov esi, eax
push 0
push 0x212
mov ecx, esi
call fcn.004649a0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5b
push 0x212
mov ecx, esi
call fcn.00480a50
push 0x216
call fcn.004767c0
add esp, 4
test al, al
je 0x49775c
push 0x5c
call ebx
shr eax, 0xf
test al, 1
jne 0x49775c
call fcn.00474e90
mov esi, eax
push 0
push 0x216
mov ecx, esi
call fcn.004649a0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5c
push 0x216
mov ecx, esi
call fcn.00480a50
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x58], 0
je 0x49776b
or eax, 0xffffffff
jmp 0x497770
call fcn.00474f10
cmp dword [edi + 0x20], eax
je 0x49777d
mov dword [edi + 0x20], eax
call fcn.00498210
call fcn.00497a90
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511a59
add esp, 0x34
ret