Function at 0x140001c40
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
movaps xmmword [rsp + 0xd0], xmm9
mov rax, qword [0x140068010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [rcx + 0x14]
mov rsi, rdx
mov r14, rcx
mov r13d, 1
test eax, eax
jne 0x140001c86
xor ebx, ebx
jmp 0x140001c91
mov ebx, dword [rsp + 0x40]
cmp eax, r13d
cmove ebx, r13d
mov rax, qword gs:[0x58]
mov r15d, 4
movaps xmmword [rsp + 0x100], xmm6
mov rdi, qword [rax]
mov eax, dword [r15 + rdi]
cmp dword [0x1400a4cf8], eax
jle 0x140001d07
lea rcx, [0x1400a4cf8]
call fcn.140055ab0
cmp dword [0x1400a4cf8], 0xffffffff
jne 0x140001d07
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
movd xmm6, eax
cvtdq2ps xmm6, xmm6
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea rcx, [0x1400a4cf8]
movss dword [0x1400a4d04], xmm6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [0x1400a4d00], xmm0
call fcn.140055a44
mov r9d, ebx
lea rdx, [rsp + 0x50]
mov r8, rsi
call fcn.1400553f0
mov eax, dword [r15 + rdi]
cmp dword [0x1400a4cf8], eax
jle 0x140001d73
lea rcx, [0x1400a4cf8]
call fcn.140055ab0
cmp dword [0x1400a4cf8], 0xffffffff
jne 0x140001d73
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
movd xmm6, eax
cvtdq2ps xmm6, xmm6
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea rcx, [0x1400a4cf8]
movss dword [0x1400a4d04], xmm6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [0x1400a4d00], xmm0
call fcn.140055a44
movsd xmm0, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
mov eax, dword [rsp + 0x58]
lea rdx, [rsp + 0x30]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
call fcn.140055680
movss xmm9, dword [rsp + 0x30]
xorps xmm0, xmm0
ucomiss xmm9, xmm0
jp 0x140001dac
je 0x1400021e9
movaps xmmword [rsp + 0xe0], xmm8
movss xmm8, dword [rsp + 0x34]
ucomiss xmm8, xmm0
jp 0x140001dc8
je 0x1400021e0
xor ecx, ecx
movaps xmmword [rsp + 0xf0], xmm7
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
mov ecx, r13d
sub eax, edx
sar eax, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cvtps2pd xmm0, xmm8
mov esi, eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm0, xmm1
movsd xmm1, qword [0x14005f140]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd xmm1, qword [0x14005f140]
movaps xmm7, xmm0
movd xmm2, ebx
cvtdq2pd xmm2, xmm2
cvtps2pd xmm0, xmm9
subsd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm7
ucomiss xmm1, xmm0
ja 0x140001e45
sqrtss xmm0, xmm0
jmp 0x140001e4a
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movd xmm1, dword [r14]
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1400021d8
mov eax, dword [r15 + rdi]
cmp dword [0x1400a4a90], eax
jle 0x140001e92
lea rcx, [0x1400a4a90]
call fcn.140055ab0
cmp dword [0x1400a4a90], 0xffffffff
jne 0x140001e92
lea rcx, [0x1400a4a90]
mov dword [0x1400a4a88], 0
call fcn.140055a44
mov ecx, dword [0x1400a4a8c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400021d8
mov eax, dword [r14 + 4]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm10
xorps xmm2, xmm2
movaps xmmword [rsp + 0xb0], xmm11
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm12
xorps xmm12, xmm12
movaps xmmword [rsp + 0x90], xmm13
xorps xmm13, xmm13
movaps xmmword [rsp + 0x80], xmm14
xorps xmm14, xmm14
xorps xmm7, xmm7
xorps xmm11, xmm11
xorps xmm10, xmm10
cvtsi2ss xmm0, ebx
cvtsi2sd xmm2, eax
subss xmm0, xmm9
xorps xmm0, xmmword [0x14005f710]
cvtss2sd xmm13, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, esi
mov esi, r13d
divsd xmm13, xmm2
subss xmm0, xmm8
xorps xmm0, xmmword [0x14005f710]
cvtss2sd xmm14, xmm0
divsd xmm14, xmm2
cmp eax, r13d
jl 0x1400021ab
movsd xmm9, qword [0x14005f120]
movabs rdi, 0x7fffffffffffffff
movsd xmm8, qword [0x14005f228]
movabs r15, 0x311cdad160000
mov qword [rsp + 0x160], r12
movabs r12, 0x112e0be826d694b3
nop word [rax + rax]
movd xmm2, esi
lea rdx, [rsp + 0x30]
cvtdq2pd xmm2, xmm2
movaps xmm0, xmm13
movaps xmm1, xmm14
mulsd xmm0, xmm2
mulsd xmm1, xmm2
movsd qword [rsp + 0x30], xmm0
movsd qword [rsp + 0x40], xmm1
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_modf]
addsd xmm11, xmm0
comisd xmm11, xmm9
jbe 0x140001fe7
lea rdx, [rsp + 0x50]
movsd qword [rsp + 0x50], xmm12
movaps xmm0, xmm11
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_modf]
movsd xmm1, qword [rsp + 0x30]
movaps xmm11, xmm0
addsd xmm1, qword [rsp + 0x50]
movsd qword [rsp + 0x30], xmm1
movsd xmm0, qword [rsp + 0x40]
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_modf]
addsd xmm10, xmm0
comisd xmm10, xmm9
jbe 0x140002032
lea rdx, [rsp + 0x50]
movsd qword [rsp + 0x50], xmm12
movaps xmm0, xmm10
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_modf]
movsd xmm1, qword [rsp + 0x40]
movaps xmm10, xmm0
addsd xmm1, qword [rsp + 0x50]
movsd qword [rsp + 0x40], xmm1
jmp 0x140002038
movsd xmm1, qword [rsp + 0x40]
movsd xmm0, qword [rsp + 0x30]
subsd xmm1, xmm7
subsd xmm0, xmm6
cvttsd2si eax, xmm1
cvttsd2si ecx, xmm0
test ecx, ecx
jne 0x140002056
test eax, eax
je 0x140002083
movd xmm1, ecx
xor r9d, r9d
movd xmm0, eax
mov ecx, r13d
cvtdq2ps xmm0, xmm0
mov qword [rsp + 0x20], 0
cvtdq2ps xmm1, xmm1
cvttss2si r8, xmm0
cvttss2si rdx, xmm1
call qword [sym.imp.USER32.dll_mouse_event]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400020a1
imul rax, rax, 0x64
jmp 0x1400020bf
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffffff0bdbe
cmp rax, rcx
jg 0x1400020d5
lea rdi, [rax + 0xf4240]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400020f3
imul rbx, rax, 0x64
jmp 0x140002114
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
cmp rdi, rbx
je 0x140002181
jl 0x140002181
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rcx, rax, 0x64
xorps xmm0, xmm0
mov rax, rdi
sub rax, rbx
cvtsi2sd xmm0, rax
comisd xmm0, xmm8
jbe 0x140002143
mov rax, r15
lea r8, [rcx + r15]
jmp 0x140002147
lea r8, [rax + rcx]
add rcx, rax
mov rax, r12
imul rcx
lea rcx, [rsp + 0x60]
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
mov qword [rsp + 0x60], rdx
sub r8d, eax
mov dword [rsp + 0x68], r8d
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x1400020d5
movsd xmm6, qword [rsp + 0x30]
inc esi
movabs rdi, 0x7fffffffffffffff
movsd xmm7, qword [rsp + 0x40]
cmp esi, dword [r14 + 4]
jle 0x140001f80
mov r12, qword [rsp + 0x160]
movaps xmm13, xmmword [rsp + 0x90]
movaps xmm12, xmmword [rsp + 0xa0]
movaps xmm11, xmmword [rsp + 0xb0]
movaps xmm10, xmmword [rsp + 0xc0]
movaps xmm14, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm8, xmmword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0x100]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140055970
movaps xmm9, xmmword [rsp + 0xd0]
add rsp, 0x110
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret