Function at 0x1004af70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
mov eax, dword [0x100a9570]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
call fcn.10015540
mov ebp, eax
call fcn.10015340
test eax, eax
je 0x1004af9a
call fcn.10015540
mov ebx, dword [eax + 0x68]
jmp 0x1004af9c
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.1004d9f0
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.1004d9f0
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.10015340
test eax, eax
je 0x1004b04b
call fcn.10015540
mov edi, dword [eax + 0x68]
jmp 0x1004b04d
xor edi, edi
call fcn.10015540
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x1004b0f9
cmp byte [esi + 0x8d], 0
je 0x1004b0ac
cvttss2si eax, dword [esi + 0xdb4]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xdb8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1004b0a3
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x8d], 0
jne 0x1004b0f9
cmp dword [edi + 8], 0
jne 0x1004b0f9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1004b0f9
lea eax, [esp + 0x10]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1004b0f9
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.1000e9e0
push 0x210
call fcn.10017270
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 4
test al, al
je 0x1004b148
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x1004b148
call fcn.10015540
mov esi, eax
push 0
push 0x210
mov ecx, esi
call fcn.1000e7c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa0
push 0x210
mov ecx, esi
call fcn.10020c80
push 0x214
call fcn.10017270
add esp, 4
test al, al
je 0x1004b191
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x1004b191
call fcn.10015540
mov esi, eax
push 0
push 0x214
mov ecx, esi
call fcn.1000e7c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa1
push 0x214
mov ecx, esi
call fcn.10020c80
push 0x212
call fcn.10017270
add esp, 4
test al, al
je 0x1004b1d4
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x1004b1d4
call fcn.10015540
mov esi, eax
push 0
push 0x212
mov ecx, esi
call fcn.1000e7c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5b
push 0x212
mov ecx, esi
call fcn.10020c80
push 0x216
call fcn.10017270
add esp, 4
test al, al
je 0x1004b217
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x1004b217
call fcn.10015540
mov esi, eax
push 0
push 0x216
mov ecx, esi
call fcn.1000e7c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5c
push 0x216
mov ecx, esi
call fcn.10020c80
cmp byte [ebp + 0x3c], 0
pop edi
pop esi
je 0x1004b224
or eax, 0xffffffff
jmp 0x1004b229
call fcn.10015830
cmp dword [ebx + 0x20], eax
je 0x1004b236
mov dword [ebx + 0x20], eax
call fcn.1004b760
call fcn.1004b250
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.1004d4b3
add esp, 0x24
ret