Function at 0x10159b20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov dword [ebp + 0x6c], ecx
mov eax, dword [0x101d96d0]
cmp dword [eax], 0
je 0x10159b41
mov dword [ebp + 0x64], 1
jmp 0x10159b48
mov dword [ebp + 0x64], 0
movzx ecx, byte [ebp + 0x64]
test ecx, ecx
jne 0x10159b55
jmp 0x10159db5
mov edx, dword [0x101d84bc]
mov dword [ebp + 0x40], edx
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax + 0x39a0]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
and edx, 1
je 0x10159b7d
mov byte [0x101df9d4], 1
mov eax, dword [0x101d96d0]
mov ecx, dword [eax]
mov dword [ebp + 0x3c], ecx
mov ecx, dword [ebp + 0x3c]
call fcn.1003fcb0
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x68], 0
je 0x10159db5
movzx edx, byte [0x101df9d4]
test edx, edx
je 0x10159db5
mov eax, dword [ebp + 0x68]
add eax, 8
mov dword [ebp + 0x60], eax
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 0x60]
mov eax, dword [edx]
mov ecx, dword [ecx + eax]
mov dword [ebp + 0x38], ecx
mov ecx, dword [ebp + 0x60]
call dword [ebp + 0x38]
mov dword [ebp + 0x34], eax
mov edx, dword [ebp + 0x34]
cmp dword [edx + 0x14], 0x68
jne 0x10159ca7
mov eax, dword [0x101d84b8]
mov dword [ebp + 0x30], eax
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0x28], edx
mov eax, dword [0x101d96d0]
mov ecx, dword [eax]
mov dword [ebp + 0x2c], ecx
mov dword [ebp - 0x14], 0xf412939a
mov edx, dword [ebp - 0x18]
mov dword [ebp + 0x5c], edx
mov eax, dword [0x101d84cc]
mov dword [ebp + 0x5c], eax
push 0xf412939a
mov ecx, dword [ebp + 0x5c]
call fcn.1003fbc0
movzx ecx, ax
add ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x20], ecx
push 0
mov ecx, dword [ebp + 0x28]
call fcn.1016a140
fstp dword [ebp + 0x24]
movss xmm0, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
comiss xmm0, dword [edx]
jb 0x10159ca7
mov eax, dword [0x101d84b8]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0x18], edx
mov dword [ebp - 0x1c], 0xb439d47
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x58], eax
mov ecx, dword [0x101d84cc]
mov dword [ebp + 0x58], ecx
push 0xb439d47
mov ecx, dword [ebp + 0x58]
call fcn.1003fbc0
movzx edx, ax
add edx, dword [ebp + 0x68]
mov dword [ebp + 0x10], edx
push 0
mov ecx, dword [ebp + 0x18]
call fcn.1016a140
fstp dword [ebp + 0x14]
movss xmm0, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
comiss xmm0, dword [eax]
jb 0x10159ca7
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ecx + 0x30]
or edx, 1
mov eax, dword [ebp + 0x6c]
mov dword [eax + 0x30], edx
jmp 0x10159dae
mov ecx, dword [0x101d96d0]
mov edx, dword [ecx]
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 0xc]
call fcn.1005ae30
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x70], eax
mov ecx, dword [ebp + 0x54]
add ecx, 0x100
mov dword [ebp + 8], ecx
jmp 0x10159cda
mov edx, dword [ebp + 0x70]
add edx, 4
mov dword [ebp + 0x70], edx
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp + 8]
je 0x10159dae
mov ecx, dword [ebp + 0x70]
mov edx, dword [ecx]
mov dword [ebp + 0x50], edx
cmp dword [ebp + 0x50], 0xffffffff
jne 0x10159cf9
jmp 0x10159dae
mov eax, dword [0x101d84c4]
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x14]
mov dword [ebp + 0x4c], edx
mov eax, 4
shl eax, 2
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [eax + edx]
mov dword [ebp], eax
mov ecx, dword [ebp + 0x50]
push ecx
mov ecx, dword [ebp + 0x4c]
call dword [ebp]
mov dword [ebp + 0x74], eax
cmp dword [ebp + 0x74], 0
je 0x10159da9
mov edx, dword [ebp + 0x74]
add edx, 8
mov dword [ebp + 0x48], edx
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 0x48]
mov edx, dword [ecx]
mov eax, dword [eax + edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x48]
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 0x68
jne 0x10159da9
mov edx, dword [ebp + 0x74]
add edx, 8
mov dword [ebp + 0x44], edx
mov eax, 4
imul ecx, eax, 0xa
mov edx, dword [ebp + 0x44]
mov eax, dword [edx]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x44]
call dword [ebp - 0xc]
mov edx, dword [ebp + 0x6c]
mov dword [edx + 0x38], eax
mov eax, 4
imul ecx, eax, 0x119
mov edx, dword [ebp + 0x74]
mov eax, dword [edx]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x74]
call dword [ebp - 0x10]
mov edx, dword [ebp + 0x6c]
mov dword [edx + 0x3c], eax
jmp 0x10159db5
jmp 0x10159cd1
mov byte [0x101df9d4], 0
add ebp, 0x78
mov esp, ebp
pop ebp
ret