Function at 0x14017c3f4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
cmp dword [rdx + 8], 0x20a
mov rbx, rcx
jne 0x14017c46d
mov rax, qword [rcx + 0xe8]
mov rcx, qword [rax + 0xd0]
test rcx, rcx
je 0x14017c46d
mov rcx, qword [rcx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14017c46d
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rax + 0xd0]
mov r9, qword [rdi + 0x18]
mov r8, qword [rdi + 0x10]
mov edx, dword [rdi + 8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x14017c784
cmp dword [rdi + 8], 0x100
jne 0x14017c779
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14017c5d7
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14017c5d7
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rax + 0xd0]
test rcx, rcx
je 0x14017c5d7
mov rax, qword [rdi + 0x10]
cmp rax, 0xd
je 0x14017c4fe
cmp rax, 0x28
ja 0x14017c5d7
movabs rdx, 0x15e00000000
bt rdx, rax
jae 0x14017c5d7
mov rcx, qword [rcx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14017c5d7
mov rcx, rbx
call fcn.14003ab58
mov rax, qword [rbx + 0xe8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
mov rcx, qword [rax + 0xd0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rax + 0xd0]
jne 0x14017c44e
mov rax, qword [rcx + 0xa0]
test rax, rax
jne 0x14017c555
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140034258
test rax, rax
je 0x14017c463
mov rdx, qword [rbx + 0xe8]
mov rcx, rbx
add rdx, 0xd8
call fcn.1400349b0
mov rax, qword [rbx + 0xe8]
mov rdi, rsi
mov rcx, qword [rax + 0xd0]
test rcx, rcx
je 0x14017c596
mov rdi, qword [rcx + 0x40]
mov rax, qword [rcx + 0xa0]
test rax, rax
jne 0x14017c5ac
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140034258
mov rcx, qword [rbx + 0xe8]
mov r9, rdi
mov edx, 0x111
movzx r8d, word [rcx + 0x24]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14017c463
mov rax, qword [rdi + 0x10]
cmp rax, 9
je 0x14017c72a
cmp rax, 0x1b
je 0x14017c6eb
add rax, 0xffffffffffffffda
test rax, 0xfffffffffffffffd
jne 0x14017c779
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14017c779
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14017c779
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rax + 0xd0]
test rcx, rcx
je 0x14017c779
mov rcx, qword [rcx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x14017c463
mov rax, qword [rbx + 0xe8]
xor r9d, r9d
mov edx, 0x14f
mov rcx, qword [rax + 0xd0]
lea r8d, [r9 + 1]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rax + 0xd0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140034258
test rax, rax
je 0x14017c463
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rax + 0xd0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140034258
mov rdx, qword [rbx + 0xe8]
mov r8d, 1
add rdx, 0xa8
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x14017c463
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rax + 0xd0]
test rcx, rcx
je 0x14017c713
mov rcx, qword [rcx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14f
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
call fcn.1400348a4
test rax, rax
je 0x14017c779
mov rcx, rbx
call fcn.1400348a4
jmp 0x14017c76c
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140034258
test rax, rax
je 0x14017c779
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140034258
mov rdx, qword [rbx + 0x40]
xor r8d, r8d
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.140034258
mov rcx, rax
call fcn.14003ab58
jmp 0x14017c463
mov rdx, rdi
mov rcx, rbx
call fcn.1400370b0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret