Function at 0x1002a996
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x1004f040]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov edi, dword [0x1004f950]
mov eax, ecx
mov dword [esp + 0x14], eax
test edi, edi
je case.0x1002b07b.527
mov ecx, dword [edi + 0x74]
lea esi, [edi + 8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
cmp edx, 0x200
ja 0x1002b063
je 0x1002afb6
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x1002b07b.527
movzx eax, byte [eax + 0x1002b3a0]
jmp dword [eax*4 + 0x1002b38c]
cmp edx, 0x100
je 0x1002a9ab
mov byte [esp + 0x18], 0
cmp edx, 0x104
jne 0x1002a9b0
mov byte [esp + 0x18], 1
mov edi, dword [ebp + 8]
cmp edi, 0x100
jae case.0x1002b07b.527
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002a9fa
test al, al
je 0x1002a9e7
movss xmm3, dword [0x1004c7a0]
jmp 0x1002a9ea
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, esi
push 0x281
call fcn.10004fb0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002aa35
test al, al
je 0x1002aa22
movss xmm3, dword [0x1004c7a0]
jmp 0x1002aa25
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, esi
push 0x282
call fcn.10004fb0
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002aa70
test al, al
je 0x1002aa5d
movss xmm3, dword [0x1004c7a0]
jmp 0x1002aa60
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, esi
push 0x283
call fcn.10004fb0
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002aaab
test al, al
je 0x1002aa98
movss xmm3, dword [0x1004c7a0]
jmp 0x1002aa9b
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, esi
push 0x284
call fcn.10004fb0
cmp edi, 0xd
jne 0x1002aac3
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne edi, eax
mov ecx, edi
call fcn.1002a3f0
mov esi, eax
test esi, esi
je 0x1002ab1f
mov eax, dword [0x1004f950]
add eax, 8
mov dword [esp + 0x14], eax
cmp byte [eax + 0x3761], 0
je 0x1002ab09
cmp byte [esp + 0x18], 0
je 0x1002aaf6
movss xmm3, dword [0x1004c7a0]
jmp 0x1002aaf9
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, eax
push esi
call fcn.10004fb0
mov eax, dword [esp + 0x14]
cmp edi, 0x1ff
ja 0x1002ab1f
mov dword [eax + edi*4 + 0xb4], esi
mov dword [eax + esi*4 + 0xb4], edi
cmp edi, 0x10
jne 0x1002abfb
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002ab88
mov eax, dword [0x1004f950]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1002ab74
test cl, cl
je 0x1002ab61
movss xmm3, dword [0x1004c7a0]
jmp 0x1002ab64
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, esi
push 0x210
call fcn.10004fb0
mov dword [esi + 0x334], 0x210
mov dword [esi + 0x8f4], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1002b07b.527
mov esi, dword [0x1004f950]
cmp byte [esi + 0x3769], 0
je 0x1002abd4
test cl, cl
je 0x1002abbd
movss xmm0, dword [0x1004c7a0]
jmp 0x1002abc0
xorps xmm0, xmm0
push dword [esp + 0x18]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.10004fb0
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
cmp edi, 0x11
jne 0x1002acd7
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002ac64
mov eax, dword [0x1004f950]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1002ac50
test cl, cl
je 0x1002ac3d
movss xmm3, dword [0x1004c7a0]
jmp 0x1002ac40
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, esi
push 0x20f
call fcn.10004fb0
mov dword [esi + 0x33c], 0x20f
mov dword [esi + 0x8f0], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1002b07b.527
mov esi, dword [0x1004f950]
cmp byte [esi + 0x3769], 0
je 0x1002acb0
test cl, cl
je 0x1002ac99
movss xmm0, dword [0x1004c7a0]
jmp 0x1002ac9c
xorps xmm0, xmm0
push dword [esp + 0x18]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.10004fb0
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
cmp edi, 0x12
jne case.0x1002b07b.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002ad40
mov eax, dword [0x1004f950]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1002ad2c
test cl, cl
je 0x1002ad19
movss xmm3, dword [0x1004c7a0]
jmp 0x1002ad1c
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, esi
push 0x211
call fcn.10004fb0
mov dword [esi + 0x344], 0x211
mov dword [esi + 0x8f8], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1002b07b.527
mov esi, dword [0x1004f950]
cmp byte [esi + 0x3769], 0
je 0x1002ad8c
test cl, cl
je 0x1002ad75
movss xmm0, dword [0x1004c7a0]
jmp 0x1002ad78
xorps xmm0, xmm0
push dword [esp + 0x18]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.10004fb0
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea eax, [esp + 0x20]
cmp edx, 7
movaps xmmword [esp + 0x20], xmm0
push eax
lea ecx, [edi + 0x3780]
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x24], 6
sete byte [esp + 0x2c]
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je case.0x1002b07b.527
cmp eax, 0x10000
jae case.0x1002b07b.527
movzx eax, ax
mov ecx, eax
mov edx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
test ax, ax
jne 0x1002ae2b
cmp word [esi + 0x3764], ax
je case.0x1002b07b.527
cmp byte [esi + 0x3761], 0
mov eax, dword [esp + 0x14]
movzx eax, ax
je case.0x1002b07b.527
movzx edx, word [esi + 0x3764]
and ecx, 0xfc00
mov dword [esp + 0x14], 0xd800
cmp cx, word [esp + 0x14]
jne 0x1002aec2
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x14], eax
test dx, dx
je 0x1002aea8
lea eax, [esp + 0x40]
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 5
push eax
lea ecx, [edi + 0x3780]
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 0xfffd
call fcn.100197f0
mov eax, dword [esp + 0x14]
mov word [esi + 0x3764], ax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], eax
test dx, dx
je 0x1002af28
mov eax, 0xdc00
cmp cx, ax
je 0x1002af1a
lea eax, [esp + 0x40]
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 5
push eax
lea ecx, [edi + 0x3780]
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 0xfffd
call fcn.100197f0
mov edi, dword [0x1004f950]
mov eax, dword [esp + 0x14]
jmp 0x1002af1f
mov eax, 0xfffd
xor ecx, ecx
mov word [esi + 0x3764], cx
movzx eax, ax
test eax, eax
je case.0x1002b07b.527
cmp byte [esi + 0x3761], 0
je case.0x1002b07b.527
mov dword [esp + 0x48], eax
lea ecx, [edi + 0x3780]
lea eax, [esp + 0x40]
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 5
push eax
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x48], 2
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1002b07b.527
call fcn.10029910
test al, al
je case.0x1002b07b.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
cmp byte [ecx + 8], 0
mov dword [ecx + 4], eax
jne 0x1002aff4
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x48], 2
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov edx, dword [esp + 0x18]
mov edi, dword [0x1004f950]
mov byte [edx + 8], 1
cmp byte [esi + 0x3761], 0
je case.0x1002b07b.527
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
movsx eax, cx
movlpd qword [esp + 0x30], xmm0
shr ecx, 0x10
mov dword [esp + 0x20], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, cx
lea ecx, [edi + 0x3780]
mov dword [esp + 0x24], 1
movss dword [esp + 0x28], xmm0
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esp + 0x30], xmm0
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x1002b07b.527
movzx eax, byte [eax + 0x1002b4bc]
jmp dword [eax*4 + 0x1002b4a0]
mov edx, dword [esp + 0x14]
cmp dword [ecx + 4], edx
jne 0x1002b092
mov dword [ecx + 4], 0
mov byte [ecx + 8], 0
cmp byte [esi + 0x3761], 0
je case.0x1002b07b.527
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
xorps xmm0, xmm0
mov dword [esp + 0x24], 1
push eax
lea ecx, [edi + 0x3780]
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x2c], 0xff7fffff
mov dword [esp + 0x30], 0xff7fffff
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
cmp edx, 0x204
je 0x1002b101
xor esi, esi
cmp edx, 0x206
jne 0x1002b106
mov esi, 1
cmp edx, 0x207
je 0x1002b116
cmp edx, 0x209
jne 0x1002b11b
mov esi, 2
cmp edx, 0x20b
je 0x1002b12b
cmp edx, 0x20d
jne 0x1002b13b
mov esi, dword [ebp + 8]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
cmp dword [ecx + 0xc], 0
jne 0x1002b160
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1002b156
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x18]
mov edi, dword [0x1004f950]
mov eax, dword [ecx + 0xc]
bts eax, esi
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x3761], 0
je case.0x1002b07b.527
xorps xmm0, xmm0
lea eax, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
lea ecx, [edi + 0x3780]
push eax
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], esi
mov byte [esp + 0x50], 1
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [esp + 0x1c], ecx
cmp edx, 0x208
jne 0x1002b1e2
mov ecx, 2
jmp 0x1002b1fa
cmp edx, 0x20c
jne 0x1002b1fe
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x1002b22b
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x14]
jne 0x1002b221
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x1c]
mov edi, dword [0x1004f950]
cmp byte [esi + 0x3761], 0
je case.0x1002b07b.527
xorps xmm0, xmm0
lea eax, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x48], ecx
lea ecx, [edi + 0x3780]
push eax
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 1
mov byte [esp + 0x50], 0
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
shr eax, 0x10
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1004c828]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1002b07b.527
cmp byte [esi + 0x3761], 0
je case.0x1002b07b.527
lea eax, [esp + 0x20]
movlpd qword [esp + 0x30], xmm0
push eax
lea ecx, [edi + 0x3780]
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
movss dword [esp + 0x30], xmm1
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
shr eax, 0x10
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1004c828]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1002b07b.527
cmp byte [esi + 0x3761], 0
je case.0x1002b07b.527
lea eax, [esp + 0x20]
movlpd qword [esp + 0x30], xmm0
push eax
lea ecx, [edi + 0x3780]
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 1
movss dword [esp + 0x2c], xmm1
mov dword [esp + 0x30], 0
call fcn.100197f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1002b07b.527
mov byte [ecx + 0x25], 1
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10041f82
mov esp, ebp
pop ebp
ret