Function at 0x100f5560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x1039b040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [0x1039da5c]
mov dword [esp + 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test ecx, ecx
je case.0x100f59d1.527
lea edi, [ecx + 8]
mov dword [esp + 8], edi
mov edi, dword [ecx + 0x6c]
mov dword [esp + 0x38], edi
cmp edx, 0x200
ja 0x100f59b9
je 0x100f58dd
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x100f59d1.527
movzx eax, byte [eax + 0x100f5bf8]
jmp dword [eax*4 + 0x100f5be0]
cmp esi, 0x100
jae case.0x100f59d1.527
mov eax, dword [esp + 8]
mov byte [esi + eax + 0xac], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
cmp esi, 0x100
jae 0x100f5608
mov eax, dword [esp + 8]
mov byte [esi + eax + 0xac], 0
xor al, al
mov byte [esp + 0xc], al
cmp esi, 0x100
jae case.0x100f59d1.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ecx, dword [esp + 8]
shr eax, 0xf
and eax, 0xffffff01
push eax
push 0x281
call fcn.100c0e70
push 0x10
call edi
mov ecx, dword [esp + 8]
shr eax, 0xf
and eax, 0xffffff01
push eax
push 0x282
call fcn.100c0e70
push 0x12
call edi
mov ecx, dword [esp + 8]
shr eax, 0xf
and eax, 0xffffff01
push eax
push 0x283
call fcn.100c0e70
push 0x5d
call edi
mov ecx, dword [esp + 8]
shr eax, 0xf
and eax, 0xffffff01
push eax
push 0x284
call fcn.100c0e70
cmp esi, 0xd
jne 0x100f56a4
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.100f5020
test eax, eax
je 0x100f56c1
push dword [esp + 0xc]
push eax
mov eax, dword [0x1039da5c]
lea ecx, [eax + 8]
call fcn.100c0e70
cmp esi, 0x10
jne 0x100f572c
push 0xa0
call edi
mov ecx, dword [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x100f56ed
mov eax, dword [0x1039da5c]
push ecx
push 0x210
lea ecx, [eax + 8]
call fcn.100c0e70
push 0xa1
call edi
mov ecx, dword [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x100f59d1.527
push ecx
mov ecx, dword [0x1039da5c]
push 0x214
lea ecx, [ecx + 8]
call fcn.100c0e70
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x100f5797
push 0xa2
call edi
mov ecx, dword [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x100f5758
mov eax, dword [0x1039da5c]
push ecx
push 0x20f
lea ecx, [eax + 8]
call fcn.100c0e70
push 0xa3
call edi
mov ecx, dword [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x100f59d1.527
push ecx
mov ecx, dword [0x1039da5c]
push 0x213
lea ecx, [ecx + 8]
call fcn.100c0e70
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x100f59d1.527
push 0xa4
call edi
mov ecx, dword [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x100f57c7
mov eax, dword [0x1039da5c]
push ecx
push 0x211
lea ecx, [eax + 8]
call fcn.100c0e70
push 0xa5
call edi
mov ecx, dword [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x100f59d1.527
push ecx
mov ecx, dword [0x1039da5c]
push 0x215
lea ecx, [ecx + 8]
call fcn.100c0e70
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea esi, [ecx + 0xd00]
cmp edx, 7
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], 6
sete byte [esp + 0x18]
mov ecx, dword [esi]
mov edi, dword [esi + 4]
cmp ecx, edi
jne 0x100f584f
inc ecx
test edi, edi
je 0x100f583d
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100f5842
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100d3ad0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
test esi, esi
je case.0x100f59d1.527
cmp esi, 0x10000
jae case.0x100f59d1.527
mov ecx, dword [esp + 8]
push esi
call fcn.100c0cd0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x100f59d1.527
call fcn.100f4c10
test al, al
je case.0x100f59d1.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
cmp byte [edi + 8], 0
mov dword [edi + 4], eax
jne 0x100f5911
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 2
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [edi + 8], 1
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [0x1039da5c]
movsx eax, cx
movlpd qword [esp + 0x20], xmm0
shr ecx, 0x10
add esi, 0xd00
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, cx
movss dword [esp + 0x18], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
cmp ecx, edi
jne 0x100f5987
inc ecx
test edi, edi
je 0x100f5975
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100f597a
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100d3ad0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x100f59d1.527
movzx eax, byte [eax + 0x100f5d14]
jmp dword [eax*4 + 0x100f5cf8]
mov edx, dword [esp + 0xc]
cmp dword [edi + 4], edx
jne 0x100f59e8
mov dword [edi + 4], 0
xorps xmm0, xmm0
mov byte [edi + 8], 0
movlpd qword [esp + 0x20], xmm0
lea esi, [ecx + 0xd00]
mov dword [esp + 0x18], 0xff7fffff
mov dword [esp + 0x1c], 0xff7fffff
jmp 0x100f594c
cmp edx, 0x204
je 0x100f5a22
xor edi, edi
cmp edx, 0x206
jne 0x100f5a27
mov edi, 1
cmp edx, 0x207
je 0x100f5a37
cmp edx, 0x209
jne 0x100f5a3c
mov edi, 2
cmp edx, 0x20b
je 0x100f5a4c
cmp edx, 0x20d
jne 0x100f5a5b
mov edi, esi
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
mov esi, dword [esp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x100f5a80
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x100f5a7a
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [0x1039da5c]
mov eax, dword [esi + 0xc]
xorps xmm0, xmm0
bts eax, edi
movaps xmmword [esp + 0x10], xmm0
mov dword [esi + 0xc], eax
lea esi, [ecx + 0xd00]
mov ecx, dword [esi]
mov dword [esp + 0x18], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 1
mov byte [esp + 0x1c], 1
cmp ecx, edi
jne 0x100f584f
inc ecx
test edi, edi
je 0x100f583d
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100f5842
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [esp + 8], ecx
cmp edx, 0x208
jne 0x100f5af2
mov ecx, 2
jmp 0x100f5b09
cmp edx, 0x20c
jne 0x100f5b0d
mov ecx, esi
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 8], ecx
mov eax, dword [edi + 0xc]
btr eax, ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x100f5b30
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0xc]
jne 0x100f5b2c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 8]
mov esi, dword [0x1039da5c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
add esi, 0xd00
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], 0
jmp 0x100f5824
shr esi, 0x10
xorps xmm1, xmm1
movsx eax, si
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x1038dc44]
call fcn.100c0fb0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
shr esi, 0x10
xorps xmm2, xmm2
movsx eax, si
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1038dc44]
call fcn.100c0fb0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret
cmp esi, 7
jne case.0x100f59d1.527
mov byte [edi + 0x25], 1
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1012583c
mov esp, ebp
pop ebp
ret