Function at 0x10027000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x1003a0b4]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov edi, dword [0x1003a568]
mov dword [esp + 0x14], ecx
test edi, edi
je case.0x10027794.527
mov esi, dword [edi + 0x6c]
lea eax, [edi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
cmp edx, 0x200
ja 0x1002777c
je 0x1002769a
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x10027794.527
movzx eax, byte [eax + 0x10027988]
jmp dword [eax*4 + 0x10027974]
cmp edx, 0x100
je 0x10027079
mov byte [esp + 0x18], 0
cmp edx, 0x104
jne 0x1002707e
mov byte [esp + 0x18], 1
mov esi, dword [ebp + 8]
cmp esi, 0x100
jae case.0x10027794.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
shr eax, 0xf
and al, 1
mov byte [esp + 0x14], al
je 0x100270ac
movss xmm3, dword [0x1003739c]
jmp 0x100270af
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 0x281
call fcn.10003b80
push 0x10
call edi
shr eax, 0xf
and al, 1
mov byte [esp + 0x14], al
je 0x100270da
movss xmm3, dword [0x1003739c]
jmp 0x100270dd
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 0x282
call fcn.10003b80
push 0x12
call edi
shr eax, 0xf
and al, 1
mov byte [esp + 0x14], al
je 0x10027108
movss xmm3, dword [0x1003739c]
jmp 0x1002710b
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 0x283
call fcn.10003b80
push 0x5d
call edi
shr eax, 0xf
and al, 1
mov byte [esp + 0x14], al
je 0x10027136
movss xmm3, dword [0x1003739c]
jmp 0x10027139
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 0x284
call fcn.10003b80
cmp esi, 0xd
jne 0x10027163
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.10026ac0
mov dword [esp + 0x14], eax
test eax, eax
je 0x100271bb
mov ecx, dword [0x1003a568]
add ecx, 8
cmp byte [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
je 0x10027190
movss xmm3, dword [0x1003739c]
jmp 0x10027193
xorps xmm3, xmm3
push dword [esp + 0x18]
push eax
call fcn.10003b80
cmp esi, 0x1ff
ja 0x100271bb
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [ecx + esi*4 + 0xac], eax
mov dword [ecx + eax*4 + 0xac], esi
cmp esi, 0x10
jne 0x1002728b
push 0xa0
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x10027220
mov eax, dword [0x1003a568]
add eax, 8
mov dword [esp + 0x14], eax
test cl, cl
je 0x100271f2
movss xmm3, dword [0x1003739c]
jmp 0x100271f5
xorps xmm3, xmm3
mov esi, dword [esp + 0x18]
mov ecx, eax
push esi
push 0x210
call fcn.10003b80
mov eax, dword [esp + 0x14]
mov dword [eax + 0x32c], 0x210
mov dword [eax + 0x8ec], 0xa0
jmp 0x10027224
mov esi, dword [esp + 0x18]
push 0xa1
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x10027794.527
mov edi, dword [0x1003a568]
test cl, cl
je 0x10027250
movss xmm0, dword [0x1003739c]
jmp 0x10027253
xorps xmm0, xmm0
push esi
push 0x214
movaps xmm3, xmm0
lea ecx, [edi + 8]
call fcn.10003b80
mov dword [edi + 0x338], 0x214
xor eax, eax
mov dword [edi + 0x904], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1002735b
push 0xa2
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x100272f0
mov eax, dword [0x1003a568]
add eax, 8
mov dword [esp + 0x14], eax
test cl, cl
je 0x100272c2
movss xmm3, dword [0x1003739c]
jmp 0x100272c5
xorps xmm3, xmm3
mov esi, dword [esp + 0x18]
mov ecx, eax
push esi
push 0x20f
call fcn.10003b80
mov eax, dword [esp + 0x14]
mov dword [eax + 0x334], 0x20f
mov dword [eax + 0x8e8], 0xa2
jmp 0x100272f4
mov esi, dword [esp + 0x18]
push 0xa3
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x10027794.527
mov edi, dword [0x1003a568]
test cl, cl
je 0x10027320
movss xmm0, dword [0x1003739c]
jmp 0x10027323
xorps xmm0, xmm0
push esi
push 0x213
movaps xmm3, xmm0
lea ecx, [edi + 8]
call fcn.10003b80
mov dword [edi + 0x340], 0x213
xor eax, eax
mov dword [edi + 0x900], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x10027794.527
push 0xa4
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x100273c0
mov eax, dword [0x1003a568]
add eax, 8
mov dword [esp + 0x14], eax
test cl, cl
je 0x10027392
movss xmm3, dword [0x1003739c]
jmp 0x10027395
xorps xmm3, xmm3
mov esi, dword [esp + 0x18]
mov ecx, eax
push esi
push 0x211
call fcn.10003b80
mov eax, dword [esp + 0x14]
mov dword [eax + 0x33c], 0x211
mov dword [eax + 0x8f0], 0xa4
jmp 0x100273c4
mov esi, dword [esp + 0x18]
push 0xa5
call edi
mov cl, byte [esp + 0x18]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x10027794.527
mov edi, dword [0x1003a568]
test cl, cl
je 0x100273f0
movss xmm0, dword [0x1003739c]
jmp 0x100273f3
xorps xmm0, xmm0
push esi
push 0x215
movaps xmm3, xmm0
lea ecx, [edi + 8]
call fcn.10003b80
mov dword [edi + 0x348], 0x215
xor eax, eax
mov dword [edi + 0x908], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
cmp edx, 7
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], 6
sete byte [esp + 0x28]
mov eax, dword [edi + 0x3798]
add edi, 0x3798
mov esi, dword [edi + 4]
cmp eax, esi
jne 0x1002747c
lea ecx, [eax + 1]
test esi, esi
je 0x10027468
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1002746d
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10016700
mov eax, dword [edi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je case.0x10027794.527
cmp eax, 0x10000
jae case.0x10027794.527
movzx esi, ax
lea edx, [edi + 8]
test si, si
jne 0x100274d7
cmp word [edx + 0x377c], si
je case.0x10027794.527
movzx ecx, word [edx + 0x377c]
mov eax, esi
and eax, 0xfc00
mov dword [esp + 0x14], 0xd800
cmp ax, word [esp + 0x14]
jne 0x1002759e
test cx, cx
je 0x10027584
mov eax, dword [edi + 0x3798]
add edi, 0x3798
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0xfffd
cmp eax, dword [edi + 4]
jne 0x10027567
lea ecx, [eax + 1]
mov eax, dword [edi + 4]
test eax, eax
je 0x1002754f
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x10027554
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10016700
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x40]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x50]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
mov word [edx + 0x377c], si
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], esi
test cx, cx
je 0x10027650
mov ecx, 0xdc00
cmp ax, cx
je 0x10027642
mov eax, dword [edi + 0x3798]
add edi, 0x3798
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x40], 5
mov esi, dword [edi + 4]
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0xfffd
cmp eax, esi
jne 0x1002761f
lea ecx, [eax + 1]
test esi, esi
je 0x10027607
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1002760c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10016700
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x40]
mov esi, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x50]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
jmp 0x10027647
mov esi, 0xfffd
xor eax, eax
mov word [edx + 0x377c], ax
movzx eax, si
push eax
call fcn.10003af0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x10027794.527
call fcn.10026090
test al, al
je case.0x10027794.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
cmp byte [esi + 8], 0
mov dword [esi + 4], ecx
jne 0x100276d4
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x10
push eax
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov edi, dword [0x1003a568]
mov byte [esi + 8], 1
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
movsx eax, cx
movlpd qword [esp + 0x30], xmm0
shr ecx, 0x10
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, cx
movss dword [esp + 0x28], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x2c], xmm0
mov eax, dword [edi + 0x3798]
add edi, 0x3798
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 1
mov esi, dword [edi + 4]
cmp eax, esi
jne 0x1002774c
lea ecx, [eax + 1]
test esi, esi
je 0x10027738
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1002773d
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10016700
mov eax, dword [edi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x10027794.527
movzx eax, byte [eax + 0x10027aa4]
jmp dword [eax*4 + 0x10027a88]
cmp dword [esi + 4], ecx
jne 0x100277a7
mov dword [esi + 4], 0
xorps xmm0, xmm0
mov byte [esi + 8], 0
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x28], 0xff7fffff
mov dword [esp + 0x2c], 0xff7fffff
jmp 0x10027703
cmp edx, 0x204
je 0x100277db
xor esi, esi
cmp edx, 0x206
jne 0x100277e0
mov esi, 1
cmp edx, 0x207
je 0x100277f0
cmp edx, 0x209
jne 0x100277f5
mov esi, 2
cmp edx, 0x20b
je 0x10027805
cmp edx, 0x20d
jne 0x10027815
mov esi, dword [ebp + 8]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], 0
jne 0x1002783d
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x10027833
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x18]
mov edi, dword [0x1003a568]
mov eax, dword [ecx + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
bts eax, esi
mov dword [ecx + 0xc], eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], 1
jmp 0x10027443
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [esp + 0x1c], ecx
cmp edx, 0x208
jne 0x1002788a
mov ecx, 2
jmp 0x100278a2
cmp edx, 0x20c
jne 0x100278a6
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 eax, dword [esi + 0xc]
btr eax, ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x100278cf
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x14]
jne 0x100278c5
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x1c]
mov edi, dword [0x1003a568]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], 0
jmp 0x10027443
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x100373f8]
call fcn.10003cd0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
shr eax, 0x10
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x100373f8]
call fcn.10003cd0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x10027794.527
mov byte [esi + 0x25], 1
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1002ebc0
mov esp, ebp
pop ebp
ret