Function at 0x10089970
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [0x10163478]
push esi
push edi
test ecx, ecx
je case.0x10089bae.527
mov esi, dword [ecx + 0xc4]
lea edi, [ecx + 8]
cmp edx, 0x200
ja 0x10089b96
je 0x10089b5a
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x10089bae.527
movzx eax, byte [eax + 0x10089d44]
jmp dword [eax*4 + 0x10089d30]
cmp edx, 0x100
je 0x100899d4
cmp edx, 0x104
je 0x100899d4
xor cl, cl
jmp 0x100899d6
mov cl, 1
mov eax, dword [ebp + 8]
cmp eax, 0x100
jae 0x100899e7
mov byte [edi + eax + 0xf8], cl
cmp eax, 0x11
jne 0x10089a43
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call esi
shr eax, 0xf
and al, 1
push 0xa3
mov byte [edi + 0x19a], al
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x19a], 0
mov byte [edi + 0x19b], al
jne 0x10089a32
test al, al
jne 0x10089a32
mov byte [edi + 0xf4], al
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov byte [edi + 0xf4], al
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jne 0x10089a9f
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call esi
shr eax, 0xf
and al, 1
push 0xa1
mov byte [edi + 0x198], al
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x198], 0
mov byte [edi + 0x199], al
jne 0x10089a8e
test al, al
jne 0x10089a8e
mov byte [edi + 0xf5], al
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov byte [edi + 0xf5], al
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x12
jne case.0x10089bae.527
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call esi
shr eax, 0xf
and al, 1
push 0xa5
mov byte [edi + 0x19c], al
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x19c], 0
mov byte [edi + 0x19d], al
jne 0x10089aee
test al, al
jne 0x10089aee
mov byte [edi + 0xf6], al
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov byte [edi + 0xf6], al
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 7
setne al
mov byte [edi + 0x1510], al
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x10089bae.527
push ecx
mov ecx, edi
call fcn.10061f00
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x10089bae.527
call fcn.100892c0
test al, al
je case.0x10089bae.527
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 8], 0
mov dword [esi + 4], ebx
jne case.0x10089bae.527
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x10
push eax
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
pop edi
mov byte [esi + 8], 1
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x10089bae.527
movzx eax, byte [eax + 0x10089e60]
jmp dword [eax*4 + 0x10089e44]
cmp dword [esi + 4], ebx
jne 0x10089bc1
mov dword [esi + 4], 0
pop edi
mov byte [esi + 8], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp edx, 0x204
je 0x10089be0
cmp edx, 0x206
jne 0x10089be5
mov esi, 1
cmp edx, 0x207
je 0x10089bf5
cmp edx, 0x209
jne 0x10089bfa
mov esi, 2
cmp edx, 0x20b
je 0x10089c0a
cmp edx, 0x20d
jne 0x10089c1a
mov esi, dword [ebp + 8]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
xor eax, eax
nop dword [eax]
cmp byte [ecx + eax + 0xec], 0
jne 0x10089c41
inc eax
cmp eax, 5
jl 0x10089c20
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x10089c41
push ebx
call dword [sym.imp.USER32.dll_SetCapture]
mov byte [esi + edi + 0xe4], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edx, 0x205
sete al
cmp edx, 0x208
jne 0x10089c6c
mov eax, 2
jmp 0x10089c84
cmp edx, 0x20c
jne 0x10089c84
mov eax, dword [ebp + 8]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov byte [eax + edi + 0xe4], 0
xor eax, eax
nop
cmp byte [ecx + eax + 0xec], 0
jne case.0x10089bae.527
inc eax
cmp eax, 5
jl 0x10089c90
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, ebx
jne case.0x10089bae.527
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
shr eax, 0x10
vxorps xmm0, xmm0, xmm0
cwde
vcvtsi2ss xmm0, xmm0, eax
vdivss xmm0, xmm0, dword [0x1014ea00]
vaddss xmm0, xmm0, dword [edi + 0xec]
vmovss dword [edi + 0xec], xmm0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
shr eax, 0x10
vxorps xmm0, xmm0, xmm0
cwde
vcvtsi2ss xmm0, xmm0, eax
vdivss xmm0, xmm0, dword [0x1014ea00]
vaddss xmm0, xmm0, dword [edi + 0xf0]
vmovss dword [edi + 0xf0], xmm0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x10089bae.527
mov byte [esi + 0x25], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret