Function at 0x102a8bec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x340
mov esi, dword [ebp + 8]
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x338], ecx
cmp dword [ecx], esi
je 0x102a8ec7
lea edi, [ebp - 0x110]
push 0x100
push 0xff
push edi
call fcn.102f7d80
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x102a8ec7
mov eax, dword [ebp - 0x338]
mov dword [eax], esi
push esi
mov esi, eax
call fcn.102e08aa
add esp, 4
lea edi, [esi + 8]
mov ecx, edi
call fcn.101ba126
mov byte [esi + 4], 0
movss xmm0, dword [0x103aebe8]
divss xmm0, dword [esi + 0x18]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.10322e40
add esp, 8
fstp dword [ebp - 0x34c]
movss xmm0, dword [ebp - 0x34c]
cvttss2si eax, xmm0
mov ecx, eax
sar ecx, 0x1f
subss xmm0, dword [0x10339b48]
cvttss2si edx, xmm0
and edx, ecx
or edx, eax
mov dword [ebp - 0x33c], edi
mov ecx, edi
push edx
call fcn.10095900
xor esi, esi
push 0x100
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.102f7d80
add esp, 0xc
xor eax, eax
xor ecx, ecx
bt esi, eax
jae 0x102a8cda
or ecx, dword [eax*4 + 0x103aeee4]
inc eax
cmp eax, 4
jne 0x102a8cce
test cl, 2
je 0x102a8cec
mov byte [ebp - 0x200], 0x80
test cl, 4
lea eax, [ebp - 0x21c]
mov edx, ecx
mov ecx, dword [sym.imp.USER32.dll_ToUnicodeEx]
je 0x102a8d06
mov byte [ebp - 0x1ff], 0x80
test dl, 8
je 0x102a8d12
mov byte [ebp - 0x1fe], 0x80
mov dword [ebp - 0x344], esi
bt edx, 9
jae 0x102a8d25
mov byte [ebp - 0x1fc], 1
mov dword [ebp - 0x340], edx
and edx, 0xc
mov dword [ebp - 0x348], edx
xor edi, edi
xor esi, esi
dec esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], esi
mov word [ebp - 0x214], 0xffff
mov edx, dword [ebp - 0x338]
push dword [edx]
xor edx, edx
push edx
push 5
push eax
lea eax, [ebp - 0x210]
push eax
push edx
push edi
mov ebx, ecx
call ecx
cmp eax, esi
je 0x102a8dfd
cmp eax, 1
jne 0x102a8e91
movzx eax, word [ebp - 0x21c]
cmp ax, 0x20
jb 0x102a8e91
movzx esi, ax
or esi, 0x400000
mov dword [ebp - 0x324], edi
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x320], eax
lea edx, [ebp - 0x324]
mov dword [ebp - 0x334], edx
mov ecx, dword [ebp - 0x33c]
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x334]
push eax
push 0x103aeef4
push edx
lea eax, [ebp - 0x31c]
push eax
call fcn.102a93ea
mov eax, dword [ebp - 0x31c]
mov dword [eax + 0x10], esi
cmp dword [ebp - 0x348], 0xc
jne 0x102a8e91
mov eax, dword [ebp - 0x338]
mov byte [eax + 4], 1
jmp 0x102a8e91
push 0x100
xor esi, esi
push esi
lea eax, [ebp - 0x31c]
push eax
call fcn.102f7d80
add esp, 0xc
mov eax, dword [ebp - 0x338]
push dword [eax]
push esi
push 5
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x31c]
push eax
push esi
push 0x20
call ebx
cmp eax, 1
jne 0x102a8e91
movzx esi, word [ebp - 0x21c]
or esi, 0x600000
mov dword [ebp - 0x334], edi
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x334]
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x33c]
lea edx, [ebp - 0x325]
push edx
lea edx, [ebp - 0x32c]
push edx
push 0x103aeef4
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.102a93ea
mov eax, dword [ebp - 0x324]
mov dword [eax + 0x10], esi
inc edi
cmp edi, 0x100
lea eax, [ebp - 0x21c]
mov ecx, dword [sym.imp.USER32.dll_ToUnicodeEx]
jne 0x102a8d36
mov esi, dword [ebp - 0x344]
inc esi
cmp esi, 0x10
jne 0x102a8cb4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102f4c53
add esp, 0x340
pop esi
pop edi
pop ebx
pop ebp
ret 4