Function at 0x1002a9c5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10083040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov dword [ebp - 0x40], ecx
call fcn.100299be
mov edi, eax
test edi, edi
je case.default.0x1002ae13
call fcn.10009158
mov edx, eax
mov eax, 0x203
mov dword [ebp - 0x44], edx
push 2
pop ecx
mov dword [ebp - 8], ecx
cmp esi, eax
ja 0x1002adea
je case.0x1002ae13.516
mov eax, 0x101
cmp esi, eax
ja 0x1002ab3f
je 0x1002ac6e
lea eax, [esi - 1]
sub eax, 1
je 0x1002aafc
sub eax, 5
je 0x1002aae6
sub eax, 1
je 0x1002aae6
sub eax, 0x18
je 0x1002aac4
sub eax, 0x31
je 0x1002aaba
sub eax, 0x4f
je 0x1002ab9d
sub eax, 0x60
jne case.default.0x1002ae13
mov byte [ebp - 0x39], 1
cmp dword [ebx + 8], 0x100
jae case.default.0x1002ae13
call fcn.10029d04
mov esi, dword [ebx + 8]
mov ecx, esi
mov edx, dword [ebx + 0xc]
call fcn.1002a3ff
mov edi, eax
mov ecx, 0x262
cmp edi, ecx
jne 0x1002ac77
mov al, byte [ebp - 0x39]
test al, al
jne 0x1002ac7e
push ecx
push esi
mov dl, 1
call fcn.10029bdf
pop ecx
pop ecx
jmp 0x1002ac7b
call fcn.100299d3
jmp case.default.0x1002ae13
xor eax, eax
inc eax
cmp word [ebx + 0xc], ax
jne case.default.0x1002ae13
call fcn.10029b37
test al, al
je case.default.0x1002ae13
xor eax, eax
inc eax
jmp 0x1002af9d
cmp esi, 7
mov ecx, edx
sete al
movzx eax, al
push eax
call fcn.10005432
jmp case.default.0x1002ae13
mov eax, dword [ebp - 0x40]
cmp dword [edi + 4], eax
jne case.default.0x1002ae13
xor esi, esi
cmp dword [edi + 8], esi
je case.default.0x1002ae13
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], 0x80000000
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov ecx, dword [ebp - 0x44]
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x1002af8b
mov eax, esi
sub eax, 0x102
je 0x1002ad90
sub eax, ecx
je 0x1002ac62
sub eax, 1
je 0x1002ac62
sub eax, 0xfb
je 0x1002ab9d
sub eax, 1
je case.0x1002ae13.516
sub eax, 1
jne case.default.0x1002ae13
call fcn.1002a9a2
xor ecx, ecx
mov dword [ebp - 0x48], eax
cmp esi, 0x205
sete cl
cmp esi, 0x208
jne 0x1002aeb9
push 2
pop ecx
jmp 0x1002aed9
call fcn.1002a9a2
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
xor eax, eax
cmp esi, 0x200
mov dword [edi + 4], edx
setne al
inc eax
mov dword [ebp - 8], eax
cmp dword [edi + 8], eax
je 0x1002ac12
and dword [ebp - 0x1c], 0
cmp esi, 0x200
push 0x10
pop eax
push 0x12
pop ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
push 2
pop eax
cmovne eax, ecx
mov dword [ebp - 0x24], 0x80000000
and dword [ebp - 0x2c], 0
cmp dword [edi + 8], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
je 0x1002abff
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TrackMouseEvent]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov ecx, dword [ebx + 0xc]
movsx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x10], eax
movsx eax, cx
mov dword [ebp - 0xc], eax
cmp esi, 0xa0
jne 0x1002ac3f
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.default.0x1002ae13
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
call fcn.100053f8
movd xmm2, dword [ebp - 0xc]
movd xmm1, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
jmp 0x1002af96
cmp esi, 0x104
je 0x1002aa6d
mov byte [ebp - 0x39], 0
jmp 0x1002aa71
test edi, edi
je 0x1002ac8b
mov al, byte [ebp - 0x39]
push ecx
push esi
mov dl, al
mov ecx, edi
call fcn.10029bdf
pop ecx
pop ecx
cmp esi, 0x10
jne 0x1002acdf
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0xa0
push edi
call esi
mov cl, byte [ebp - 0x39]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002acba
push ecx
mov dl, cl
mov ecx, 0x210
push edi
call fcn.10029bdf
pop ecx
pop ecx
mov edi, 0xa1
push edi
call esi
mov cl, byte [ebp - 0x39]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.default.0x1002ae13
push ecx
mov dl, cl
mov ecx, 0x214
jmp 0x1002ad83
cmp esi, 0x11
jne 0x1002ad30
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0xa2
push edi
call esi
mov cl, byte [ebp - 0x39]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002ad0e
push ecx
mov dl, cl
mov ecx, 0x20f
push edi
call fcn.10029bdf
pop ecx
pop ecx
mov edi, 0xa3
push edi
call esi
mov cl, byte [ebp - 0x39]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.default.0x1002ae13
push ecx
mov dl, cl
mov ecx, 0x213
jmp 0x1002ad83
cmp esi, 0x12
jne case.default.0x1002ae13
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0xa4
push edi
call esi
mov cl, byte [ebp - 0x39]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002ad63
push ecx
mov dl, cl
mov ecx, 0x211
push edi
call fcn.10029bdf
pop ecx
pop ecx
mov edi, 0xa5
push edi
call esi
mov cl, byte [ebp - 0x39]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.default.0x1002ae13
push ecx
mov dl, cl
mov ecx, 0x215
push edi
call fcn.10029bdf
pop ecx
pop ecx
jmp case.default.0x1002ae13
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1002adbd
mov ecx, dword [ebx + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.default.0x1002ae13
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.10004d93
jmp case.default.0x1002ae13
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
xor eax, eax
inc eax
push eax
push ecx
push eax
lea ecx, [ebx + 8]
push ecx
push eax
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0x44]
push eax
call fcn.10004d13
jmp case.default.0x1002ae13
mov eax, 0x219
cmp esi, eax
ja 0x1002af5a
je 0x1002af4e
lea eax, [esi - 0x204]
cmp eax, 0xa
ja case.default.0x1002ae13
movzx eax, byte [eax + 0x1002afc1]
jmp dword [eax*4 + 0x1002afb1]
call fcn.1002a9a2
xor ecx, ecx
mov dword [ebp - 0x48], eax
inc ecx
cmp esi, 0x204
je 0x1002ae39
and dword [ebp - 8], 0
cmp esi, 0x206
jne 0x1002ae3c
mov dword [ebp - 8], ecx
cmp esi, 0x207
je 0x1002ae4c
cmp esi, 0x209
jne 0x1002ae52
push 2
pop eax
mov dword [ebp - 8], eax
cmp esi, 0x20b
je 0x1002ae62
cmp esi, 0x20d
jne 0x1002ae76
mov eax, dword [ebx + 8]
xor edx, edx
shr eax, 0x10
cmp ax, cx
setne dl
add edx, 3
mov dword [ebp - 8], edx
cmp dword [edi + 0xc], 0
jne 0x1002ae90
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1002ae90
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
bts eax, ecx
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0xc], eax
call fcn.100053f8
push 1
push dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
call fcn.100051fd
jmp case.default.0x1002ae13
mov dword [ebp - 8], ecx
cmp esi, 0x20c
jne 0x1002aed9
mov eax, dword [ebx + 8]
xor ecx, ecx
shr eax, 0x10
cmp ax, 1
setne cl
add ecx, 3
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
btr eax, ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x1002aef7
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x40]
jne 0x1002aef7
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
call fcn.100053f8
mov eax, dword [ebp - 8]
push 0
push eax
jmp 0x1002aeac
mov eax, dword [ebx + 8]
xorps xmm1, xmm1
shr eax, 0x10
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x1007d6d0]
mov ecx, edx
call fcn.10005350
jmp case.default.0x1002ae13
mov eax, dword [ebx + 8]
xorps xmm2, xmm2
shr eax, 0x10
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x1007da70]
divss xmm1, dword [0x1007d6d0]
jmp 0x1002af23
cmp dword [ebx + 8], 7
jne case.default.0x1002ae13
mov byte [edi + 0x29], 1
jmp case.default.0x1002ae13
mov eax, esi
sub eax, 0x2a2
je 0x1002af68
sub eax, 1
jne case.default.0x1002ae13
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edi + 8], eax
jne case.default.0x1002ae13
mov ecx, dword [ebp - 0x40]
cmp dword [edi + 4], ecx
jne 0x1002af85
and dword [edi + 4], 0
and dword [edi + 8], 0
mov ecx, edx
movss xmm1, dword [0x1007d718]
movaps xmm2, xmm1
call fcn.100050f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10040b6d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret