Function at 0x47e840
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [0x629148]
push esi
push edi
test ebp, ebp
je 0x47e856
mov ebx, dword [ebp + 0x78]
jmp 0x47e858
xor ebx, ebx
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x2c], xmm0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
movd xmm1, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x18]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 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.0049c020
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.0049c020
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp + 0x18], xmm1
mov dword [ebx + 0x14], esi
mov esi, dword [0x629148]
mov dword [ebx + 0x10], edi
test esi, esi
je 0x47e8fd
mov edi, dword [esi + 0x78]
jmp 0x47e8ff
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x47e997
cmp byte [esi + 0x9b], 0
je 0x47e957
cvttss2si eax, dword [esi + 0xdc0]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xdc4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x47e94e
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x9b], 0
jne 0x47e997
cmp dword [edi + 8], 0
jne 0x47e997
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x47e997
lea eax, [esp + 0x20]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x47e997
movd xmm2, dword [esp + 0x24]
lea ecx, [esi + 8]
movd xmm1, dword [esp + 0x20]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.00453f60
mov eax, dword [0x629148]
cmp byte [eax + 0x2ee4], 0
je 0x47e9f5
cmp byte [eax + 0x3f98], 0
jne 0x47e9f5
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x47e9f5
mov esi, dword [0x629148]
cmp byte [esi + 0x3771], 0
je 0x47e9e1
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00453e30
mov dword [esi + 0x340], 0x210
mov dword [esi + 0x900], 0xa0
mov eax, dword [0x629148]
cmp byte [eax + 0x2f24], 0
je 0x47ea53
cmp byte [eax + 0x3fc8], 0
jne 0x47ea53
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x47ea53
mov esi, dword [0x629148]
cmp byte [esi + 0x3771], 0
je 0x47ea3f
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00453e30
mov dword [esi + 0x344], 0x214
mov dword [esi + 0x910], 0xa1
mov eax, dword [0x629148]
cmp byte [eax + 0x2f04], 0
je 0x47eaae
cmp byte [eax + 0x3fb0], 0
jne 0x47eaae
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x47eaae
mov esi, dword [0x629148]
cmp byte [esi + 0x3771], 0
je 0x47ea9a
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00453e30
mov dword [esi + 0x22c], 0x212
mov dword [esi + 0x908], 0x5b
mov eax, dword [0x629148]
cmp byte [eax + 0x2f44], 0
je 0x47eb09
cmp byte [eax + 0x3fe0], 0
jne 0x47eb09
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x47eb09
mov esi, dword [0x629148]
cmp byte [esi + 0x3771], 0
je 0x47eaf5
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00453e30
mov dword [esi + 0x230], 0x216
mov dword [esi + 0x918], 0x5c
cmp byte [ebp + 0x60], 0
je 0x47eb14
or eax, 0xffffffff
jmp 0x47eb1f
mov eax, dword [0x629148]
mov eax, dword [eax + 0x4960]
cmp dword [ebx + 0x20], eax
je 0x47eb2c
mov dword [ebx + 0x20], eax
call fcn.0047e070
call fcn.0047e1a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret