Function at 0x10049920
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x34
mov eax, dword [0x100aa040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
mov ebp, dword [0x100ad250]
push esi
push edi
test ebp, ebp
je 0x10049941
mov ebx, dword [ebp + 0x70]
jmp 0x10049943
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 [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.10066570
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.10066570
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp + 0x18], xmm1
mov dword [ebx + 0x14], esi
mov esi, dword [0x100ad250]
mov dword [ebx + 0x10], edi
test esi, esi
je 0x100499e8
mov edi, dword [esi + 0x70]
jmp 0x100499ea
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x10049a82
cmp byte [esi + 0x95], 0
je 0x10049a42
cvttss2si eax, dword [esi + 0xdbc]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xdc0]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10049a39
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x95], 0
jne 0x10049a82
cmp dword [edi + 8], 0
jne 0x10049a82
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10049a82
lea eax, [esp + 0x24]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10049a82
movd xmm2, dword [esp + 0x28]
lea ecx, [esi + 8]
movd xmm1, dword [esp + 0x24]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.100108d0
mov eax, dword [0x100ad250]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax + 0x2ee0], 0
je 0x10049ae2
cmp byte [eax + 0x3fb0], 0
jne 0x10049ae2
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x10049ae2
mov esi, dword [0x100ad250]
cmp byte [esi + 0x3771], 0
je 0x10049ace
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100107a0
mov dword [esi + 0x33c], 0x210
mov dword [esi + 0x8fc], 0xa0
mov eax, dword [0x100ad250]
cmp byte [eax + 0x2f20], 0
je 0x10049b3c
cmp byte [eax + 0x3fe0], 0
jne 0x10049b3c
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x10049b3c
mov esi, dword [0x100ad250]
cmp byte [esi + 0x3771], 0
je 0x10049b28
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100107a0
mov dword [esi + 0x340], 0x214
mov dword [esi + 0x90c], 0xa1
mov eax, dword [0x100ad250]
cmp byte [eax + 0x2f00], 0
je 0x10049b93
cmp byte [eax + 0x3fc8], 0
jne 0x10049b93
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x10049b93
mov esi, dword [0x100ad250]
cmp byte [esi + 0x3771], 0
je 0x10049b7f
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100107a0
mov dword [esi + 0x228], 0x212
mov dword [esi + 0x904], 0x5b
mov eax, dword [0x100ad250]
cmp byte [eax + 0x2f40], 0
je 0x10049bea
cmp byte [eax + 0x3ff8], 0
jne 0x10049bea
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x10049bea
mov esi, dword [0x100ad250]
cmp byte [esi + 0x3771], 0
je 0x10049bd6
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100107a0
mov dword [esi + 0x22c], 0x216
mov dword [esi + 0x914], 0x5c
cmp byte [ebp + 0x44], 0
je 0x10049bf5
or eax, 0xffffffff
jmp 0x10049c00
mov eax, dword [0x100ad250]
mov eax, dword [eax + 0x4ac8]
cmp dword [ebx + 0x20], eax
je 0x10049c0d
mov dword [ebx + 0x20], eax
call fcn.100490e0
call fcn.10049270
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004b5fe
add esp, 0x34
ret