Function at 0x180051520
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1802eac28]
mov rdi, qword [rax]
test rdi, rdi
je 0x180051855
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x180051855
mov rax, qword [0x1802eac60]
mov qword [rsp + 0x68], rsi
mov rsi, qword [rax + rdi]
test rsi, rsi
je 0x180051850
cmp byte [0x1802eacb1], 0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
je 0x18005159d
movss xmm0, dword [0x18014bb94]
comiss xmm0, dword [rdi + 0x280]
jbe 0x18005159d
movss xmm0, dword [rdi + 0x2a0]
movss dword [rdi + 0x280], xmm0
cmp byte [0x1802eacb2], 0
je 0x1800515cb
mov rax, qword [0x1802eac48]
movss xmm0, dword [0x18014bb7c]
comiss xmm0, dword [rax + rdi]
jbe 0x1800515cb
movd xmm0, dword [0x18024dff8]
cvtdq2ps xmm0, xmm0
movss dword [rax + rdi], xmm0
movzx eax, byte [0x1802eacc8]
test al, al
je 0x1800515e7
mov edx, eax
movabs rcx, 0xfc18db55ae19e046
call fcn.180014cf0
cmp byte [reloc.WS2_32.dll_accept], 0
movabs r14, 0xd80958fc74e988a6
jne 0x18005161c
mov rcx, r14
call fcn.180014430
cmp byte [0x1802eacca], 0
je 0x18005161c
mov edx, eax
movabs rcx, 0xa6f312fcce9c1dfe
call fcn.180014cf0
xor r15d, r15d
mov rbp, r14
cmp byte [0x1802eacbd], r15b
mov ebx, r15d
jne 0x180051632
lea ebx, [r15 + 1]
mov rcx, rbp
call fcn.180014430
mov edx, eax
mov r8d, ebx
movabs rcx, 0xebd76f2359f190ac
call fcn.180014dc0
mov ebx, r15d
mov rcx, rbp
cmp byte [0x1802eacbc], bl
sete bl
call fcn.180014430
mov edx, eax
xor r9d, r9d
mov r8d, ebx
movabs rcx, 0xea1c610a04db6bbb
call fcn.180014eb0
cmp byte [0x1802eacb0], r15b
setne al
mov byte [rdi + 0x189], al
movzx ecx, byte [0x1802eacbf]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
test cl, cl
jne 0x1800516ab
mov rax, qword [0x1802eac98]
cmp byte [rax + rdi], 0x40
jne 0x1800516bc
test cl, cl
mov eax, reloc.WLDAP32.dll_Ordinal_32
cmovne eax, r15d
mov byte [rdi + 0x10b8], al
cmp byte [0x1802eacb6], 0
mov r15, qword [rsp + 0x30]
je 0x1800516d7
movd xmm0, dword [reloc.WS2_32.dll_accept]
cvtdq2ps xmm0, xmm0
jmp 0x1800516df
movss xmm0, dword [0x18014bab8]
movss dword [rsi + 0xcf0], xmm0
cmp byte [0x1802eacbe], 0
je 0x18005171e
mov rax, qword [0x1802eac38]
test rax, rax
je 0x180051701
mov rax, qword [rax]
jmp 0x180051706
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
movss xmm0, dword [0x18024e00c]
movss dword [rax + 0x30], xmm0
mov byte [0x1802eacbe], 0
cmp byte [0x1802eacc9], 0
je 0x180051754
mov rcx, r14
call fcn.180014430
movzx ecx, byte [0x1802eacc9]
mov r9d, 1
mov dword [rsp + 0x20], ecx
xor r8d, r8d
movabs rcx, 0xae4086104e067b1
mov edx, eax
call fcn.180014fc0
cmp byte [0x1802eacb3], 0
mov r14, qword [rsp + 0x38]
je 0x180051781
mov eax, dword [str.ddyzWS]
add eax, 0x64
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x280], xmm0
mov byte [0x1802eacb3], 0
cmp byte [0x1802eacb4], 0
je 0x1800517a8
movd xmm0, dword [0x18024dff8]
mov rax, qword [0x1802eac48]
cvtdq2ps xmm0, xmm0
movss dword [rax + rdi], xmm0
mov byte [0x1802eacb4], 0
mov ecx, dword [0x18024dffc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800517c0
mov byte [0x1802eacb3], 1
mov ecx, dword [0x18024e000]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800517d8
mov byte [0x1802eacb4], 1
mov ecx, dword [0x1802eb09c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1800517f6
cmp byte [0x1802eacb7], 0
sete byte [0x1802eacb7]
mov ecx, dword [0x1802eb094]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180051814
cmp byte [0x1802eacb0], 0
sete byte [0x1802eacb0]
mov ecx, dword [0x1802eb0a0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180051832
cmp byte [0x1802ead14], 0
sete byte [0x1802ead14]
mov ecx, dword [0x1802eb098]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180051850
cmp byte [0x1802eace0], 0
sete byte [0x1802eace0]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret