Function at 0x1002c740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x100d8054]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, dword [0x101dbe34]
mov dword [esp + 0x10], esi
push edi
test esi, esi
je 0x1002c76a
mov ebx, dword [esi + 0x74]
jmp 0x1002c76c
xor ebx, ebx
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x30], xmm0
push dword [ebx]
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
lea eax, [esp + 0x18]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esi + 0x10], xmm1
movss dword [esi + 0x14], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x18]
mov ecx, edi
sub ecx, dword [ebx + 0x10]
mov esi, dword [esp + 0x1c]
mov edx, esi
sbb edx, dword [ebx + 0x14]
call fcn.100af660
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xc], xmm0
call fcn.100af660
movss xmm1, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
mov eax, dword [esp + 0x14]
divss xmm1, xmm0
movss dword [eax + 0x18], xmm1
mov dword [ebx + 0x14], esi
mov esi, dword [0x101dbe34]
mov dword [ebx + 0x10], edi
test esi, esi
je 0x1002c815
mov edi, dword [esi + 0x74]
jmp 0x1002c817
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x1002c8af
cmp byte [esi + 0x97], 0
je 0x1002c86f
cvttss2si eax, dword [esi + 0xdbc]
mov dword [esp + 0xc], eax
cvttss2si eax, dword [esi + 0xdc0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1002c866
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x97], 0
jne 0x1002c8af
cmp dword [edi + 8], 0
jne 0x1002c8af
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1002c8af
lea eax, [esp + 0x24]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1002c8af
movd xmm2, dword [esp + 0x28]
lea ecx, [esi + 8]
movd xmm1, dword [esp + 0x24]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.10008270
mov eax, dword [0x101dbe34]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax + 0x2edc], 0
je 0x1002c916
xor edx, edx
mov ecx, 0x210
call fcn.10014d60
test al, al
je 0x1002c916
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x1002c916
mov esi, dword [0x101dbe34]
cmp byte [esi + 0x3769], 0
je 0x1002c902
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.10008110
mov dword [esi + 0x33c], 0x210
mov dword [esi + 0x8fc], 0xa0
mov eax, dword [0x101dbe34]
cmp byte [eax + 0x2f1c], 0
je 0x1002c977
xor edx, edx
mov ecx, 0x214
call fcn.10014d60
test al, al
je 0x1002c977
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x1002c977
mov esi, dword [0x101dbe34]
cmp byte [esi + 0x3769], 0
je 0x1002c963
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.10008110
mov dword [esi + 0x340], 0x214
mov dword [esi + 0x90c], 0xa1
mov eax, dword [0x101dbe34]
cmp byte [eax + 0x2efc], 0
je 0x1002c9d5
xor edx, edx
mov ecx, 0x212
call fcn.10014d60
test al, al
je 0x1002c9d5
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x1002c9d5
mov esi, dword [0x101dbe34]
cmp byte [esi + 0x3769], 0
je 0x1002c9c1
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.10008110
mov dword [esi + 0x228], 0x212
mov dword [esi + 0x904], 0x5b
mov eax, dword [0x101dbe34]
cmp byte [eax + 0x2f3c], 0
je 0x1002ca33
xor edx, edx
mov ecx, 0x216
call fcn.10014d60
test al, al
je 0x1002ca33
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x1002ca33
mov esi, dword [0x101dbe34]
cmp byte [esi + 0x3769], 0
je 0x1002ca1f
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.10008110
mov dword [esi + 0x22c], 0x216
mov dword [esi + 0x914], 0x5c
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x60], 0
je 0x1002ca42
or eax, 0xffffffff
jmp 0x1002ca4d
mov eax, dword [0x101dbe34]
mov eax, dword [eax + 0x4938]
cmp dword [ebx + 0x20], eax
je 0x1002ca5a
mov dword [ebx + 0x20], eax
call fcn.1002bf90
call fcn.1002c0c0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10046dd3
mov esp, ebp
pop ebp
ret