Function at 0x10051ea0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x34
mov eax, dword [0x100b3100]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
mov ebp, dword [0x100b7db4]
push esi
push edi
test ebp, ebp
je 0x10051ec1
mov ebx, dword [ebp + 0x74]
jmp 0x10051ec3
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.1006fa00
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.1006fa00
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp + 0x18], xmm1
mov dword [ebx + 0x14], esi
mov esi, dword [0x100b7db4]
mov dword [ebx + 0x10], edi
test esi, esi
je 0x10051f68
mov edi, dword [esi + 0x74]
jmp 0x10051f6a
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x10052002
cmp byte [esi + 0x95], 0
je 0x10051fc2
cvttss2si eax, dword [esi + 0xbc]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xc0]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10051fb9
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x95], 0
jne 0x10052002
cmp dword [edi + 8], 0
jne 0x10052002
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10052002
lea eax, [esp + 0x24]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10052002
movd xmm2, dword [esp + 0x28]
lea ecx, [esi + 8]
movd xmm1, dword [esp + 0x24]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.10016fb0
mov eax, dword [0x100b7db4]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax + 0x1e0], 0
je 0x1005204e
cmp byte [eax + 0x13cc], 0
jne 0x1005204e
push 0xa0
call esi
shr eax, 0xf
test al, 1
jne 0x1005204e
mov ecx, dword [0x100b7db4]
add ecx, 8
cmp byte [ecx + 0xb49], 0
je 0x1005204e
push 0
push 0x210
xorps xmm3, xmm3
call fcn.10016ea0
mov eax, dword [0x100b7db4]
cmp byte [eax + 0x220], 0
je 0x10052094
cmp byte [eax + 0x13fc], 0
jne 0x10052094
push 0xa1
call esi
shr eax, 0xf
test al, 1
jne 0x10052094
mov ecx, dword [0x100b7db4]
add ecx, 8
cmp byte [ecx + 0xb49], 0
je 0x10052094
push 0
push 0x214
xorps xmm3, xmm3
call fcn.10016ea0
mov eax, dword [0x100b7db4]
cmp byte [eax + 0x200], 0
je 0x100520d7
cmp byte [eax + 0x13e4], 0
jne 0x100520d7
push 0x5b
call esi
shr eax, 0xf
test al, 1
jne 0x100520d7
mov ecx, dword [0x100b7db4]
add ecx, 8
cmp byte [ecx + 0xb49], 0
je 0x100520d7
push 0
push 0x212
xorps xmm3, xmm3
call fcn.10016ea0
mov eax, dword [0x100b7db4]
cmp byte [eax + 0x240], 0
je 0x1005211a
cmp byte [eax + 0x1414], 0
jne 0x1005211a
push 0x5c
call esi
shr eax, 0xf
test al, 1
jne 0x1005211a
mov ecx, dword [0x100b7db4]
add ecx, 8
cmp byte [ecx + 0xb49], 0
je 0x1005211a
push 0
push 0x216
xorps xmm3, xmm3
call fcn.10016ea0
cmp byte [ebp + 0x44], 0
je 0x10052125
or eax, 0xffffffff
jmp 0x10052130
mov eax, dword [0x100b7db4]
mov eax, dword [eax + 0x203c]
cmp dword [ebx + 0x20], eax
je 0x1005213d
mov dword [ebx + 0x20], eax
call fcn.10051680
call fcn.100517f0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10054aad
add esp, 0x34
ret