Function at 0x1800d23f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
mov rax, qword [r8]
shr rax, 0x20
sub eax, dword [rcx + 0x9c]
test eax, eax
jle 0x1800d2719
cdq
idiv dword [rcx + 0xa0]
mov ebx, eax
mov dword [rbp + 0x30], 0
mov r9, qword [rcx]
xor r8d, r8d
lea rdx, [rbp + 0x30]
call qword [r9 + VarUI4FromDisp]
test al, al
je 0x1800d2719
mov r14d, dword [rbp + 0x30]
add r14d, ebx
mov dword [rbp + 0x40], r14d
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x1800d24ea
mov r15d, dword [rsi + 0x90]
cmp r15d, 0xffffffff
je 0x1800d24ea
lea rcx, [rsi + 0x80]
call fcn.1800d2d70
mov edi, r15d
cmp r15d, r14d
cmovge edi, r14d
cmovle r15d, r14d
mov dword [rbp + 0x40], edi
cmp edi, r15d
jg 0x1800d24d2
movzx ebx, byte [rbp + 0x30]
nop word [rax + rax]
mov byte [rsp + 0x20], bl
lea r9, [rbp + 0x40]
lea rdx, [rbp - 0x18]
lea rcx, [rsi + 0x80]
call fcn.1800d3090
inc edi
mov dword [rbp + 0x40], edi
cmp edi, r15d
jle 0x1800d24b0
mov dword [rsi + 0x90], r14d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd0]
jmp 0x1800d2719
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
call fcn.1800d3040
mov qword [rbp - 0x28], rax
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
shr edi, 0xf
and dil, 1
je 0x1800d25ce
lea r15, [rsi + 0x80]
lea rax, [rbp - 0x28]
cmp rax, r15
je 0x1800d25ce
lea rcx, [rbp - 0x28]
call fcn.1800d2d70
mov rdx, qword [r15]
mov rbx, qword [rbp - 0x28]
movzx r9d, byte [rbp + 0x30]
mov r8, rbx
mov rdx, qword [rdx + 8]
lea rcx, [rbp - 0x28]
call fcn.1800d31d0
mov qword [rbx + 8], rax
mov rax, qword [r15 + 8]
mov qword [rbp - 0x20], rax
mov r8, qword [rbp - 0x28]
mov rdx, qword [r8 + 8]
cmp byte [rdx + 0x19], 0
jne 0x1800d25c3
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x1800d258f
nop dword [rax]
nop word [rax + rax]
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1800d2580
mov qword [r8], rdx
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rdx + 8]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1800d25bd
nop dword [rax]
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1800d25b0
mov qword [rdx + 0x10], rcx
jmp 0x1800d25ce
mov qword [r8], r8
mov rax, qword [rbp - 0x28]
mov qword [rax + 0x10], rax
test r14d, r14d
js 0x1800d26a4
cmp r14d, dword [rsi + 0x78]
jge 0x1800d26a4
test dil, dil
je 0x1800d2684
mov rcx, qword [rbp - 0x28]
mov rdx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800d2684
nop
cmp dword [rax + 0x1c], r14d
jge 0x1800d260c
mov rax, qword [rax + 0x10]
jmp 0x1800d2612
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800d2600
cmp rdx, rcx
je 0x1800d2684
cmp r14d, dword [rdx + 0x1c]
jl 0x1800d2684
mov rax, rdx
mov rcx, qword [rdx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1800d2655
mov rcx, qword [rdx + 8]
cmp byte [rcx + 0x19], 0
jne 0x1800d266c
nop word [rax + rax]
cmp rax, qword [rcx + 0x10]
jne 0x1800d266c
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1800d2640
jmp 0x1800d266c
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1800d266c
nop
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1800d2660
lea rcx, [rbp - 0x28]
call fcn.180086640
mov edx, 0x20
mov rcx, rax
call fcn.180468ddc
jmp 0x1800d269d
movzx eax, byte [rbp + 0x30]
mov byte [rsp + 0x20], al
lea r9, [rbp + 0x40]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x28]
call fcn.1800d3090
mov dword [rsi + 0x90], r14d
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.1800d2740
test al, al
je 0x1800d2701
lea rdx, [rsi + 0x80]
lea rax, [rbp - 0x28]
cmp rdx, rax
je 0x1800d26e2
mov rcx, qword [rdx]
mov rax, qword [rbp - 0x28]
mov qword [rdx], rax
mov qword [rbp - 0x28], rcx
mov rcx, qword [rdx + 8]
mov rax, qword [rbp - 0x20]
mov qword [rdx + 8], rax
mov qword [rbp - 0x20], rcx
mov rcx, qword [rsi + 0x128]
test rcx, rcx
je 0x1800d26f4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd0]
nop
lea rcx, [rbp - 0x28]
call fcn.1800d2d70
nop
mov edx, 0x20
mov rcx, qword [rbp - 0x28]
call fcn.180468ddc
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret