Function at 0x1004f3f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
mov eax, dword [0x1009400c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
call fcn.10058b60
mov ebp, eax
call fcn.100589b0
test eax, eax
je 0x1004f41a
call fcn.10058b60
mov ebx, dword [eax + 0x68]
jmp 0x1004f41c
xor ebx, ebx
push esi
push edi
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x24], xmm0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
movd xmm1, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x18]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebp + 8], xmm1
movss dword [ebp + 0xc], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x1c]
sbb edx, dword [ebx + 0x14]
call fcn.1007b700
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.1007b700
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
call fcn.100589b0
test eax, eax
je 0x1004f4cb
call fcn.10058b60
mov edi, dword [eax + 0x68]
jmp 0x1004f4cd
xor edi, edi
call fcn.10058b60
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x1004f579
cmp byte [esi + 0x89], 0
je 0x1004f52c
cvttss2si eax, dword [esi + 0xdf8]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xdfc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1004f523
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x89], 0
jne 0x1004f579
cmp dword [edi + 8], 0
jne 0x1004f579
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1004f579
lea eax, [esp + 0x10]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1004f579
movd xmm0, dword [esp + 0x14]
sub esp, 8
cvtdq2ps xmm0, xmm0
mov ecx, esi
movss dword [esp + 4], xmm0
movd xmm0, dword [esp + 0x18]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.10052b90
push 0x210
call fcn.1005a050
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 4
test al, al
je 0x1004f5c8
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x1004f5c8
call fcn.10058b60
mov esi, eax
push 0
push 0x210
mov ecx, esi
call fcn.10052a40
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa0
push 0x210
mov ecx, esi
call fcn.10062cd0
push 0x214
call fcn.1005a050
add esp, 4
test al, al
je 0x1004f611
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x1004f611
call fcn.10058b60
mov esi, eax
push 0
push 0x214
mov ecx, esi
call fcn.10052a40
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa1
push 0x214
mov ecx, esi
call fcn.10062cd0
push 0x212
call fcn.1005a050
add esp, 4
test al, al
je 0x1004f654
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x1004f654
call fcn.10058b60
mov esi, eax
push 0
push 0x212
mov ecx, esi
call fcn.10052a40
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5b
push 0x212
mov ecx, esi
call fcn.10062cd0
push 0x216
call fcn.1005a050
add esp, 4
test al, al
je 0x1004f697
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x1004f697
call fcn.10058b60
mov esi, eax
push 0
push 0x216
mov ecx, esi
call fcn.10052a40
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5c
push 0x216
mov ecx, esi
call fcn.10062cd0
cmp byte [ebp + 0x3c], 0
pop edi
pop esi
je 0x1004f6a4
or eax, 0xffffffff
jmp 0x1004f6a9
call fcn.10058e10
cmp dword [ebx + 0x20], eax
je 0x1004f6b6
mov dword [ebx + 0x20], eax
call fcn.1004fc70
call fcn.1004f720
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.1004d763
add esp, 0x24
ret