Function at 0x10008943
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, 0x102b782d
push ebx
push esi
push edi
call fcn.10124b2c
call fcn.10013e20
test eax, eax
je case.0x10008cd1.527
call fcn.100141d0
mov edi, eax
mov dword [ebp - 0xc], edi
call fcn.10013e20
test eax, eax
je 0x1000890d
call fcn.100141d0
mov ebx, dword [eax + 0x70]
jmp 0x1000890f
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp esi, 0x200
ja 0x10008cb9
je case.0x1000893c.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x10008cd1.527
movzx eax, byte [eax + 0x10008ea4]
jmp dword [eax*4 + 0x10008e8c]
cmp esi, 0x100
je 0x10008957
cmp esi, 0x104
je 0x10008957
xor bl, bl
jmp 0x10008959
mov bl, 1
cmp dword [ebp + 0x10], 0x100
mov byte [ebp - 4], bl
jae case.0x10008cd1.527
call fcn.100141d0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, eax
push 0x11
call esi
shr eax, 0xf
and al, 1
movzx ecx, al
push ecx
push 0x1000
mov ecx, edi
call fcn.1000c5e0
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.1000c5e0
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.1000c5e0
push 0x5d
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.1000c5e0
mov esi, dword [ebp + 0x10]
cmp esi, 0xd
jne 0x100089f5
mov eax, dword [ebp + 0x14]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
push esi
call fcn.10008310
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movzx edi, al
test ecx, ecx
je 0x10008a1b
push edi
push esi
push dword [ebp - 4]
push ecx
call fcn.10007810
add esp, 0x10
cmp esi, 0x10
jne 0x10008a7a
push 0xa0
call fcn.10009070
mov esi, dword [ebp - 4]
add esp, 4
cmp al, bl
jne 0x10008a48
push edi
push 0xa0
push esi
push 0x210
call fcn.10007810
add esp, 0x10
push 0xa1
call fcn.10009070
add esp, 4
cmp al, bl
jne case.0x10008cd1.527
push edi
push 0xa1
push esi
push 0x214
call fcn.10007810
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x10008ad9
push 0xa2
call fcn.10009070
mov esi, dword [ebp - 4]
add esp, 4
cmp al, bl
jne 0x10008aa7
push edi
push 0xa2
push esi
push 0x20f
call fcn.10007810
add esp, 0x10
push 0xa3
call fcn.10009070
add esp, 4
cmp al, bl
jne case.0x10008cd1.527
push edi
push 0xa3
push esi
push 0x213
call fcn.10007810
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x10008cd1.527
push 0xa4
call fcn.10009070
mov esi, dword [ebp - 4]
add esp, 4
cmp al, bl
jne 0x10008b0a
push edi
push 0xa4
push esi
push 0x211
call fcn.10007810
add esp, 0x10
push 0xa5
call fcn.10009070
add esp, 4
cmp al, bl
jne case.0x10008cd1.527
push edi
push 0xa5
push esi
push 0x215
call fcn.10007810
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 7
mov ecx, edi
sete al
movzx eax, al
push eax
call fcn.1000c2f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x10008b85
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x10008cd1.527
push ecx
mov ecx, edi
call fcn.1000c3e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
lea eax, [ebp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 4]
mov ecx, edi
push eax
call fcn.1000c380
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x14], 1
jne case.0x10008cd1.527
call fcn.100081d0
test al, al
je case.0x10008cd1.527
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 8]
xor eax, eax
mov ecx, dword [ebp + 8]
cmp esi, 0x200
mov dword [ebx + 4], ecx
setne al
inc eax
mov dword [ebp - 0xc], eax
cmp edx, eax
je 0x10008c5c
cmp esi, 0x200
mov dword [ebp - 4], 0x12
mov eax, 2
mov dword [ebp - 0x1c], 0x10
cmovne eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x18], 0x80000000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test edx, edx
je 0x10008c4d
lea ecx, [ebp - 0x1c]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [ebp - 0x2c]
push ecx
call eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x14]
movsx edx, ax
shr eax, 0x10
cwde
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp esi, 0xa0
jne 0x10008c8d
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x10008cd1.527
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
movd xmm0, eax
sub esp, 8
cvtdq2ps xmm0, xmm0
mov ecx, edi
movss dword [esp + 4], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.1000c7c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x10008cd1.527
movzx eax, byte [eax + 0x10008fc0]
jmp dword [eax*4 + 0x10008fa4]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [ebx + 8], eax
jne case.0x10008cd1.527
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 8]
jne 0x10008cfc
mov dword [ebx + 4], 0
sub esp, 8
mov dword [ebx + 8], 0
mov ecx, edi
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.1000c7c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x204
je 0x10008d37
xor edi, edi
cmp esi, 0x206
jne 0x10008d3c
mov edi, 1
cmp esi, 0x207
je 0x10008d4c
cmp esi, 0x209
jne 0x10008d51
mov edi, 2
cmp esi, 0x20b
je 0x10008d61
cmp esi, 0x20d
jne 0x10008d71
mov edi, dword [ebp + 0x10]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
cmp dword [ebx + 0xc], 0
jne 0x10008d8a
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x10008d8a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xc]
bts eax, edi
push 1
push edi
mov dword [ebx + 0xc], eax
call fcn.1000c720
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp esi, 0x205
sete bl
cmp esi, 0x208
jne 0x10008dc1
mov ebx, 2
jmp 0x10008dd9
cmp esi, 0x20c
jne 0x10008dd9
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
dec ebx
neg ebx
sbb ebx, ebx
neg ebx
add ebx, 3
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
btr eax, ebx
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x10008dfa
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x10008dfa
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push ebx
mov ecx, edi
call fcn.1000c720
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
mov ecx, edi
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x101672a8]
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.1000c8f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
mov ecx, edi
cwde
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x101672b4]
movss dword [esp], xmm0
call fcn.1000c8f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 7
jne case.0x10008cd1.527
mov byte [ebx + 0x25], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret