Function at 0x180010350
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov r9, qword [0x18006e0a0]
mov rbx, r8
movaps xmmword [rax - 0x48], xmm6
mov r13, rdx
mov rsi, rcx
mov rax, qword [r9 + 0x1af0]
mov byte [rax + 0x80], 1
mov rdi, qword [r9 + 0x1af0]
cmp byte [rdi + 0x83], 0
jne 0x180010bea
mov r14, qword [0x18006e0a0]
mov rdx, rcx
mov rcx, rdi
xor r8d, r8d
call fcn.18002c390
movss xmm0, dword [0x18005f5cc]
lea rcx, [rbp - 0x31]
mov r9b, 1
movss dword [rsp + 0x20], xmm0
xor r8d, r8d
mov dword [rbp + 0x7f], eax
mov rdx, rsi
mov r15d, eax
call fcn.1800290c0
movss xmm6, dword [r14 + 0x1594]
addss xmm6, xmm6
addss xmm6, dword [rbp - 0x2d]
call fcn.180028e50
mov rdx, qword [rbx]
lea rcx, [rbp - 0x39]
movaps xmm3, xmm6
movaps xmm2, xmm0
call fcn.180028d60
movss xmm2, dword [rdi + 0xd0]
lea rcx, [rbp - 9]
movss xmm1, dword [rdi + 0xd4]
movss xmm0, dword [rbp - 0x31]
addss xmm0, dword [r14 + 0x15a8]
movss xmm4, dword [rbp - 0x39]
movss xmm3, dword [rbp - 0x35]
addss xmm4, xmm2
addss xmm3, xmm1
movss dword [rbp - 0x15], xmm1
addss xmm0, xmm2
movss dword [rbp - 0x11], xmm4
movss dword [rbp - 0xd], xmm3
movss dword [rbp - 0x19], xmm0
movss xmm0, dword [rdi + 0xd0]
movss dword [rbp - 9], xmm0
movss xmm1, dword [rdi + 0xd4]
movss dword [rbp - 5], xmm1
movss dword [rbp - 1], xmm4
movss dword [rbp + 3], xmm3
movss xmm1, dword [r14 + 0x1594]
call fcn.18002e110
xor r8d, r8d
lea rcx, [rbp - 9]
mov edx, r15d
call fcn.18002de80
test al, al
je 0x180010bea
xor edx, edx
mov qword [rsp + 0xf0], r12
cmp dword [r14 + 0x1b38], r15d
mov rcx, rdi
sete dl
call fcn.18002bba0
mov edx, r15d
lea rcx, [rbp - 0x19]
movzx esi, al
call fcn.18002dfc0
test al, al
je 0x1800104ef
mov ecx, r15d
call fcn.180035b90
mov dword [r14 + 0x1f78], 1
cmp byte [r14 + 0x420], 0
je 0x1800104ef
mov al, 1
jmp 0x1800104f1
xor al, al
test sil, sil
jne 0x180010513
test al, al
jne 0x180010513
cmp byte [r14 + 0x420], al
je 0x18001055b
cmp dword [r14 + 0x1b38], r15d
jne 0x18001055b
call fcn.1800297f0
jmp 0x18001055b
cmp dword [r14 + 0x1b38], r15d
je 0x180010548
xor eax, eax
lea rcx, [r14 + 0x14c]
mov dword [r14 + 0x138], eax
xor edx, edx
mov r8d, 0x200
mov byte [r14 + 0x13c], al
call sub.VCRUNTIME140.dll_memset
mov dword [r13], 0
mov rdx, rdi
mov ecx, r15d
call fcn.1800357e0
mov rcx, rdi
call fcn.18002b9a0
mov ebx, dword [r13]
xor r12b, r12b
cmp dword [r14 + 0x1b38], r15d
jne 0x180010658
xor edi, edi
lea rsi, [r14 + 0x138]
lea r13d, [rdi + 5]
lea r15d, [rdi + 6]
cmp byte [rsi], 0
jne 0x1800105a1
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1800105a1
mov ecx, r15d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800105ea
mov ecx, edi
test edi, edi
je 0x1800105bd
sub ecx, 1
je 0x1800105b6
cmp ecx, 1
jne 0x1800105c2
lea ebx, [rcx + 3]
jmp 0x1800105c2
mov ebx, 2
jmp 0x1800105c2
mov ebx, 1
mov ecx, r15d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov ecx, r13d
cmovne ebx, r15d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov r12b, 1
cmovne ebx, r13d
call fcn.1800297f0
inc edi
inc rsi
cmp edi, r15d
jle 0x180010580
mov r15d, dword [rbp + 0x7f]
mov r13, qword [rbp + 0x6f]
test r12b, r12b
jne 0x18001062c
mov edi, 8
lea rsi, [r14 + 0x154]
nop dword [rax]
cmp byte [rsi], 0
je 0x18001061f
mov ebx, edi
mov r12b, 1
call fcn.1800297f0
inc edi
inc rsi
cmp edi, 0xa5
jle 0x180010610
mov rax, qword [0x18006e0a0]
mov ecx, dword [rax + 0x74]
test ecx, ecx
js 0x180010654
xor edx, edx
call fcn.18002dbf0
test al, al
je 0x180010654
mov dword [r13], 0
call fcn.1800297f0
jmp 0x180010658
mov dword [r13], ebx
mov eax, dword [r13]
lea rsi, str.None
test eax, eax
je 0x180010ab9
cmp dword [r14 + 0x1b38], r15d
je 0x180010ac6
dec eax
cmp eax, 0x9f
ja case.0x1800106a0.3
lea rdx, [0x180000000]
cdqe
movzx eax, byte [rdx + rax + 0x10d18]
mov ecx, dword [rdx + rax*4 + 0x10c08]
add rcx, rdx
jmp rcx
lea rsi, str.control
movss xmm4, dword [rbp - 0x19]
lea rcx, [rbp + 7]
movss xmm5, dword [rbp - 0x15]
lea rax, [r14 + 0x15dc]
movss xmm0, dword [rbp - 0x39]
lea rdx, [rbp + 0x7f]
movss xmm1, dword [rbp - 0x35]
addss xmm0, xmm4
addss xmm1, xmm5
mov qword [rsp + 0x30], rcx
movss dword [rbp + 7], xmm4
lea rcx, [rbp - 0x29]
movss dword [rbp + 0xb], xmm5
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rsi
movss dword [rbp + 0xf], xmm0
movss xmm0, dword [rbp - 0x11]
movss dword [rbp + 0x13], xmm1
movss xmm3, dword [r14 + 0x1590]
movss xmm2, dword [r14 + 0x1594]
subss xmm0, xmm3
movss xmm1, dword [rbp - 0xd]
addss xmm3, xmm4
subss xmm1, xmm2
mov qword [rsp + 0x20], 0
addss xmm2, xmm5
movss dword [rbp + 0x7f], xmm0
movss dword [rbp - 0x29], xmm3
movss dword [rbp + 0x83], xmm1
movss dword [rbp - 0x25], xmm2
call fcn.180033ad0
movss xmm0, dword [rbp - 0x31]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x180010784
movss xmm1, dword [rbp - 0x15]
mov r9b, 1
addss xmm1, dword [r14 + 0x1594]
movss xmm0, dword [rbp - 9]
xor r8d, r8d
mov rdx, qword [rbp + 0x67]
unpcklps xmm0, xmm1
movq rcx, xmm0
call fcn.1800339b0
movzx eax, r12b
mov r12, qword [rsp + 0xf0]
jmp 0x180010bec
lea rsi, str.shift
jmp 0x1800106a9
lea rsi, [0x18005e2c0]
jmp 0x1800106a9
lea rsi, [0x18005e2c4]
jmp 0x1800106a9
lea rsi, str.mouse_1
jmp 0x1800106a9
lea rsi, str.mouse_2
jmp 0x1800106a9
lea rsi, str.mouse_3
jmp 0x1800106a9
lea rsi, str.mouse_4
jmp 0x1800106a9
lea rsi, str.mouse_5
jmp 0x1800106a9
lea rsi, str.page_up
jmp 0x1800106a9
lea rsi, str.page_down
jmp 0x1800106a9
lea rsi, [0x18005e304]
jmp 0x1800106a9
lea rsi, str.home
jmp 0x1800106a9
lea rsi, str.left_arrow
jmp 0x1800106a9
lea rsi, str.up_arrow
jmp 0x1800106a9
lea rsi, str.right_arrow
jmp 0x1800106a9
lea rsi, str.down_arrow
jmp 0x1800106a9
lea rsi, str.insert
jmp 0x1800106a9
lea rsi, str.delete
jmp 0x1800106a9
lea rsi, str.abcdefghijklmnopqrstuvwxyz
jmp 0x1800106a9
lea rsi, [0x18005e360]
jmp 0x1800106a9
lea rsi, [0x18005e364]
jmp 0x1800106a9
lea rsi, [0x18005e368]
jmp 0x1800106a9
lea rsi, [0x18005e36c]
jmp 0x1800106a9
lea rsi, [0x18005e370]
jmp 0x1800106a9
lea rsi, [0x18005e374]
jmp 0x1800106a9
lea rsi, [0x18005e378]
jmp 0x1800106a9
lea rsi, [0x18005e37c]
jmp 0x1800106a9
lea rsi, [0x18005e380]
jmp 0x1800106a9
lea rsi, [0x18005e384]
jmp 0x1800106a9
lea rsi, [0x18005e388]
jmp 0x1800106a9
lea rsi, [0x18005e38c]
jmp 0x1800106a9
lea rsi, [0x18005e390]
jmp 0x1800106a9
lea rsi, [0x18005e394]
jmp 0x1800106a9
lea rsi, [0x18005e398]
jmp 0x1800106a9
lea rsi, [0x18005e39c]
jmp 0x1800106a9
lea rsi, [0x18005e3a0]
jmp 0x1800106a9
lea rsi, [0x18005e3a4]
jmp 0x1800106a9
lea rsi, [0x18005e3a8]
jmp 0x1800106a9
lea rsi, [0x18005e3ac]
jmp 0x1800106a9
lea rsi, [0x18005e3b0]
jmp 0x1800106a9
lea rsi, [0x18005e3b4]
jmp 0x1800106a9
lea rsi, [0x18005e3b8]
jmp 0x1800106a9
lea rsi, [0x18005e3bc]
jmp 0x1800106a9
lea rsi, [0x18005e3c0]
jmp 0x1800106a9
lea rsi, str.numpad_0
jmp 0x1800106a9
lea rsi, str.numpad_1
jmp 0x1800106a9
lea rsi, str.numpad_2
jmp 0x1800106a9
lea rsi, str.numpad_3
jmp 0x1800106a9
lea rsi, str.numpad_4
jmp 0x1800106a9
lea rsi, str.numpad_5
jmp 0x1800106a9
lea rsi, str.numpad_6
jmp 0x1800106a9
lea rsi, str.numpad_7
jmp 0x1800106a9
lea rsi, str.numpad_8
jmp 0x1800106a9
lea rsi, str.numpad_9
jmp 0x1800106a9
lea rsi, [0x18005e464]
jmp 0x1800106a9
lea rsi, [0x18005e468]
jmp 0x1800106a9
lea rsi, [0x18005e46c]
jmp 0x1800106a9
lea rsi, [0x18005e470]
jmp 0x1800106a9
lea rsi, [0x18005e474]
jmp 0x1800106a9
lea rsi, [0x18005e478]
jmp 0x1800106a9
lea rsi, [0x18005e47c]
jmp 0x1800106a9
lea rsi, [0x18005e480]
jmp 0x1800106a9
lea rsi, [0x18005e484]
jmp 0x1800106a9
lea rsi, [0x18005e488]
jmp 0x1800106a9
lea rsi, [0x18005e48c]
jmp 0x1800106a9
lea rsi, [0x18005e490]
jmp 0x1800106a9
lea rsi, str.unknown
jmp 0x1800106a9
cmp dword [r14 + 0x1b38], r15d
jne 0x1800106a9
lea rsi, str.Press
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x180010ae9
imul rax, rax, 0x64
jmp 0x180010b07
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffffb3b4bff
lea rdi, [rax + 0x4c4b400]
cmp rax, rcx
jl 0x180010b27
movabs rdi, 0x7fffffffffffffff
movsd xmm6, qword [0x18005f580]
movabs r15, 0x311cdad160000
movabs r13, 0x112e0be826d694b3
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x180010b5f
imul rax, rax, 0x64
jmp 0x180010b7d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rdi
jge 0x1800106a9
mov rbx, rdi
sub rbx, rax
call sub.MSVCP140.dll__Xtime_get_ticks
imul rcx, rax, 0x64
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
comisd xmm0, xmm6
lea r8, [rcx + r15]
ja 0x180010bab
lea r8, [rbx + rcx]
lea rax, [rbx + rcx]
lea rdx, [rcx + r15]
cmovbe rdx, rax
lea rcx, [rbp - 0x29]
mov rax, r13
imul rdx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
mov qword [rbp - 0x29], rdx
sub r8d, eax
mov dword [rbp - 0x21], r8d
call sub.MSVCP140.dll__Thrd_sleep
jmp 0x180010b43
xor al, al
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret