Function at 0x14006d240
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
xor esi, esi
test rdx, rdx
lea r14, [rax + 0x20]
mov edi, ecx
mov rcx, qword [0x1401fbb08]
cmovne r14, rdx
lea edx, [rsi + 1]
mov qword [rax + 0x20], rsi
call qword [sym.imp.USER32.dll_GetScrollPos]
mov rcx, qword [0x1401fbb08]
xor edx, edx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetScrollPos]
mov r9d, dword [0x1401f7128]
movsd xmm2, qword [0x1401f7170]
mov rdx, qword [r14]
mov rcx, qword [0x1401fbb08]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], eax
mov eax, dword [0x1402094e0]
mov dword [rsp + 0x30], eax
mov eax, dword [0x1402094e4]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
call fcn.1400f2ec0
cmp dword [0x1401fbbd4], esi
mov dword [rsp + 0x30], esi
mov rbx, rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], edi
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401f7170]
je 0x14006d2fd
mov r8d, dword [0x1401fbbf4]
mov edx, dword [0x1401fbbf0]
jmp 0x14006d30a
mov r8d, dword [0x1402094b8]
mov edx, dword [0x1402094bc]
call fcn.140056c20
test eax, eax
js 0x14006d4f6
mov ecx, dword [0x1401f7120]
call fcn.1400ed690
test eax, eax
je 0x14006d3b3
mov rcx, qword [0x1401fbb20]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14006d3b3
mov rcx, qword [0x1401fbb20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x808
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401fbb20]
xor r8d, r8d
movsd xmm0, qword [0x1401f7170]
addsd xmm0, qword [0x140183398]
mov edx, 0x46c
cvttsd2si r9d, xmm0
mov r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401fbb20]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1401fbb20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x806
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401fbb08]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x412
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
test eax, eax
jne 0x14006d3e6
lea ecx, [rax + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x10001
test ax, ax
cmovs edi, ecx
call fcn.1400f5510
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x80]
xor r8d, r8d
call fcn.1400567f0
mov rcx, qword [0x1401fbb08]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x1402094e4]
movzx r8d, di
mov r9, rbx
xor edx, edx
mov qword [rsp + 0x20], r14
call fcn.14006cfe0
mov ecx, dword [0x1402094e0]
mov eax, edi
shr rax, 0x10
mov r9, rbx
mov edx, 1
movzx r8d, ax
mov qword [rsp + 0x20], r14
call fcn.14006cfe0
mov rcx, qword [0x1401fbaf0]
test rcx, rcx
je 0x14006d477
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [0x1401fbaf0]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x1401fbaf0], rsi
cmp dword [0x1401fbc30], esi
jne 0x14006d4b1
cmp dword [0x1402094e4], esi
jne 0x14006d48f
cmp dword [0x1402094e0], esi
je 0x14006d494
mov esi, 1
mov rcx, qword [0x1401fbae0]
movsd xmm3, qword [0x1401f7170]
mov r8d, esi
xor edx, edx
call fcn.140060500
test eax, eax
je 0x14006d4b6
call fcn.140056fd0
mov rcx, qword [0x1401fbb08]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x1401fbb08]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, 4
call fcn.1400d8990
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret