Function at 0x10002470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10011ffb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1001a018]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [0x1001c168], 1
push eax
call fcn.10002f80
mov edi, dword [eax]
test edi, edi
jne 0x100024f7
push 0x4c
call fcn.100045e9
add esp, 4
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
test eax, eax
je 0x100024dc
push esi
push dword [ebp + 8]
mov ecx, eax
call fcn.100023e0
mov edi, eax
jmp 0x100024de
xor edi, edi
lea eax, [ebp + 8]
mov dword [esp + 0x20], 0xffffffff
push eax
call fcn.10002f80
mov dword [0x1001c16c], esi
mov dword [eax], edi
mov ecx, edi
call fcn.10001c70
cmp dword [edi + 0x20], 0
mov dword [0x1001c168], 0
je 0x10002546
mov ecx, dword [0x1001c16c]
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x468], eax
mov dword [ecx + 0x478], 0
mov ecx, dword [ecx + 0x45c]
mov eax, dword [0x1001c16c]
push ecx
mov eax, dword [eax + 0x460]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 0x20], 0
mov eax, dword [0x1001c16c]
cmp dword [eax + 0x478], 0
je 0x100026f1
mov eax, dword [0x1001c16c]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [eax + 0x454], 0
je 0x100025b7
call esi
mov ecx, dword [edi + 0x1c]
add ecx, 0xfa
cmp eax, ecx
jbe 0x100025b7
mov eax, dword [0x1001c16c]
mov eax, dword [eax + 0x454]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test al, 1
jne 0x1000259f
test eax, 0x8000
jne 0x1000259f
xor eax, eax
jmp 0x100025a4
mov eax, 1
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
test eax, eax
je 0x100025b7
call esi
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x20], 0
jne 0x100026bf
mov eax, dword [0x1001c16c]
cmp dword [eax + 0x458], 0
je 0x100026b9
call esi
mov ecx, dword [edi + 0x1c]
add ecx, 0xfa
cmp eax, ecx
jbe 0x100026b9
mov eax, dword [0x1001c16c]
cmp dword [eax + 0x428], 0
je 0x100026b9
mov eax, dword [0x1001c16c]
mov eax, dword [eax + 0x458]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test al, 1
jne 0x1000261c
test eax, 0x8000
jne 0x1000261c
xor eax, eax
jmp 0x10002621
mov eax, 1
mov dword [edi + 0x20], eax
test eax, eax
je 0x100026b9
mov dword [edi + 0x24], 1
call esi
mov dword [edi + 0x1c], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x1001c16c]
mov eax, dword [eax + 0x428]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0xc]
lea esi, [edi + 0x38]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x2c], eax
mov eax, dword [0x1001c16c]
push esi
mov eax, dword [eax + 0x428]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x40]
sub eax, dword [esi]
movd xmm1, dword [edi + 0x28]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x3c]
divss xmm1, xmm0
movd xmm0, eax
movss dword [edi + 0x30], xmm1
movd xmm1, dword [edi + 0x2c]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [edi + 0x34], xmm1
cmp dword [edi + 0x20], 0
je 0x100026f1
mov eax, dword [edi + 0x48]
push 0
mov dword [0x1001c164], 1
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0xffff00ff
push 1
push 0
push 0
push eax
call dword [ecx + 0xac]
mov dword [edi + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8