Function at 0x1001f69f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
call fcn.10003715
test eax, eax
jne 0x1001f3f6
xor eax, eax
jmp 0x1001f9da
call fcn.10001e2e
mov dword [ebp - 8], eax
call fcn.1001eb60
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x200
ja 0x1001f445
cmp dword [ebp - 0xc], 0x200
je 0x1001f46f
mov ecx, dword [ebp - 0xc]
sub ecx, 7
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xfe
ja case.0x1001f468.14
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x1001f9f4]
jmp dword [eax*4 + 0x1001f9e0]
mov ecx, dword [ebp - 0xc]
sub ecx, 0x201
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xa2
ja case.0x1001f468.14
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x1001fb10]
jmp dword [eax*4 + 0x1001faf4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 8]
test ecx, ecx
jne 0x1001f4af
mov dword [ebp - 0x58], 0x10
mov dword [ebp - 0x54], 2
mov edx, dword [ebp + 8]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 8], 1
jmp case.0x1001f468.14
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
cmp eax, dword [ebp + 8]
jne 0x1001f4c9
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 8], 0
jmp case.0x1001f468.14
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0x201
je 0x1001f4ee
cmp dword [ebp + 0xc], 0x203
jne 0x1001f4f5
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0x204
je 0x1001f507
cmp dword [ebp + 0xc], 0x206
jne 0x1001f50e
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0xc], 0x207
je 0x1001f520
cmp dword [ebp + 0xc], 0x209
jne 0x1001f527
mov dword [ebp - 0x14], 2
cmp dword [ebp + 0xc], 0x20b
je 0x1001f539
cmp dword [ebp + 0xc], 0x20d
jne 0x1001f562
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 1
jne 0x1001f555
mov dword [ebp - 0x1c], 3
jmp 0x1001f55c
mov dword [ebp - 0x1c], 4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
call fcn.100069b5
movzx eax, al
test eax, eax
jne 0x1001f582
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1001f582
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
mov byte [edx + 0xe4], 1
xor eax, eax
jmp 0x1001f9da
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0x202
jne 0x1001f5ad
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0x205
jne 0x1001f5bd
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], 0x208
jne 0x1001f5cd
mov dword [ebp - 0x18], 2
cmp dword [ebp + 0xc], 0x20c
jne 0x1001f5ff
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 1
jne 0x1001f5f2
mov dword [ebp - 0x20], 3
jmp 0x1001f5f9
mov dword [ebp - 0x20], 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov byte [eax + 0xe4], 0
call fcn.100069b5
movzx ecx, al
test ecx, ecx
jne 0x1001f629
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x1001f629
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
jmp 0x1001f9da
mov edx, dword [ebp + 0x10]
shr edx, 0x10
and edx, 0xffff
movsx eax, dx
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1016c950]
mov ecx, dword [ebp - 8]
addss xmm0, dword [ecx + 0xec]
mov edx, dword [ebp - 8]
movss dword [edx + 0xec], xmm0
xor eax, eax
jmp 0x1001f9da
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movsx ecx, ax
cvtsi2ss xmm0, ecx
divss xmm0, dword [0x1016c950]
mov edx, dword [ebp - 8]
addss xmm0, dword [edx + 0xf0]
mov eax, dword [ebp - 8]
movss dword [eax + 0xf0], xmm0
xor eax, eax
jmp 0x1001f9da
cmp dword [ebp + 0xc], 0x100
je 0x1001f6ba
cmp dword [ebp + 0xc], 0x104
je 0x1001f6ba
mov dword [ebp - 0x24], 0
jmp 0x1001f6c1
mov dword [ebp - 0x24], 1
mov cl, byte [ebp - 0x24]
mov byte [ebp - 2], cl
cmp dword [ebp + 0x10], 0x100
jae 0x1001f6df
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x10]
mov al, byte [ebp - 2]
mov byte [edx + 0xf8], al
cmp dword [ebp + 0x10], 0x11
jne 0x1001f7b2
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x1001f708
mov dword [ebp - 0x28], 1
jmp 0x1001f70f
mov dword [ebp - 0x28], 0
mov edx, 1
imul eax, edx, 0xa2
mov ecx, dword [ebp - 8]
mov dl, byte [ebp - 0x28]
mov byte [ecx + eax + 0xf8], dl
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x1001f743
mov dword [ebp - 0x2c], 1
jmp 0x1001f74a
mov dword [ebp - 0x2c], 0
mov ecx, 1
imul edx, ecx, 0xa3
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 0x2c]
mov byte [eax + edx + 0xf8], cl
mov edx, 1
imul eax, edx, 0xa2
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax + 0xf8]
test edx, edx
jne 0x1001f79f
mov eax, 1
imul ecx, eax, 0xa3
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx + 0xf8]
test eax, eax
jne 0x1001f79f
mov dword [ebp - 0x30], 0
jmp 0x1001f7a6
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 8]
mov dl, byte [ebp - 0x30]
mov byte [ecx + 0xf4], dl
cmp dword [ebp + 0x10], 0x10
jne 0x1001f885
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x1001f7d8
mov dword [ebp - 0x34], 1
jmp 0x1001f7df
mov dword [ebp - 0x34], 0
mov ecx, 1
imul edx, ecx, 0xa0
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 0x34]
mov byte [eax + edx + 0xf8], cl
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x1001f816
mov dword [ebp - 0x38], 1
jmp 0x1001f81d
mov dword [ebp - 0x38], 0
mov eax, 1
imul ecx, eax, 0xa1
mov edx, dword [ebp - 8]
mov al, byte [ebp - 0x38]
mov byte [edx + ecx + 0xf8], al
mov ecx, 1
imul edx, ecx, 0xa0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx + 0xf8]
test ecx, ecx
jne 0x1001f872
mov edx, 1
imul eax, edx, 0xa1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax + 0xf8]
test edx, edx
jne 0x1001f872
mov dword [ebp - 0x3c], 0
jmp 0x1001f879
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 0x3c]
mov byte [eax + 0xf5], cl
cmp dword [ebp + 0x10], 0x12
jne 0x1001f95b
push 0xa4
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x1001f8ae
mov dword [ebp - 0x40], 1
jmp 0x1001f8b5
mov dword [ebp - 0x40], 0
mov eax, 1
imul ecx, eax, 0xa4
mov edx, dword [ebp - 8]
mov al, byte [ebp - 0x40]
mov byte [edx + ecx + 0xf8], al
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x1001f8ec
mov dword [ebp - 0x44], 1
jmp 0x1001f8f3
mov dword [ebp - 0x44], 0
mov edx, 1
imul eax, edx, 0xa5
mov ecx, dword [ebp - 8]
mov dl, byte [ebp - 0x44]
mov byte [ecx + eax + 0xf8], dl
mov eax, 1
imul ecx, eax, 0xa4
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx + 0xf8]
test eax, eax
jne 0x1001f948
mov ecx, 1
imul edx, ecx, 0xa5
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx + 0xf8]
test ecx, ecx
jne 0x1001f948
mov dword [ebp - 0x48], 0
jmp 0x1001f94f
mov dword [ebp - 0x48], 1
mov edx, dword [ebp - 8]
mov al, byte [ebp - 0x48]
mov byte [edx + 0xf6], al
xor eax, eax
jmp 0x1001f9da
cmp dword [ebp + 0xc], 7
jne 0x1001f96b
mov byte [ebp - 1], 1
jmp 0x1001f96f
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10001e4c
xor eax, eax
jmp 0x1001f9da
cmp dword [ebp + 0x10], 0
jbe 0x1001f99c
cmp dword [ebp + 0x10], 0x10000
jae 0x1001f99c
movzx edx, word [ebp + 0x10]
push edx
mov ecx, dword [ebp - 8]
call fcn.10001889
xor eax, eax
jmp 0x1001f9da
mov eax, dword [ebp + 0x14]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 1
jne 0x1001f9c3
call fcn.1001eb90
movzx edx, al
test edx, edx
je 0x1001f9c3
mov eax, 1
jmp 0x1001f9da
xor eax, eax
jmp 0x1001f9da
cmp dword [ebp + 0x10], 7
jne 0x1001f9d4
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x25], 1
xor eax, eax
jmp 0x1001f9da
xor eax, eax
mov esp, ebp
pop ebp
ret