Function at 0x180039a20
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rsi, qword [0x180085e10]
test rsi, rsi
je 0x180039a43
mov r14, qword [rsi + 0x90]
jmp 0x180039a46
xor r14d, r14d
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movdqu xmmword [rbp - 0x30], xmm0
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x28]
lea rcx, [rbp + 0x40]
sub eax, dword [rbp - 0x30]
mov qword [rbp + 0x40], 0
movd xmm1, eax
mov eax, dword [rbp - 0x24]
sub eax, dword [rbp - 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + 0x10], xmm1
movss dword [rsi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x40]
xorps xmm1, xmm1
mov rbx, qword [0x180085e10]
mov rax, rcx
sub rax, qword [r14 + 0x18]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [r14 + 0x20]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rsi + 0x18], xmm1
mov qword [r14 + 0x18], rcx
test rbx, rbx
je 0x180039acf
mov rdi, qword [rbx + 0x90]
jmp 0x180039ad1
xor edi, edi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rdi]
cmp rax, rcx
jne 0x180039bf8
cmp byte [rbx + 0xd3], 0
je 0x180039b29
cvttss2si eax, dword [rbx + 0xd94]
lea rdx, [rbp + 0x30]
mov dword [rbp + 0x30], eax
cvttss2si eax, dword [rbx + 0xd98]
mov dword [rbp + 0x34], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x180039b1c
mov edx, dword [rbp + 0x34]
mov ecx, dword [rbp + 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rbx + 0xd3], 0
jne 0x180039bf8
cmp dword [rdi + 0x10], 0
jne 0x180039bf8
lea rcx, [rbp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x180039bf8
mov rcx, qword [rdi]
lea rdx, [rbp + 0x38]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x180039bf8
cmp byte [rbx + 0x37c1], 0
je 0x180039bf8
movd xmm0, dword [rbp + 0x38]
movd xmm1, dword [rbp + 0x3c]
mov rbx, qword [0x180085e10]
add rbx, 0x37d8
mov qword [rbp - 0x10], 0
cvtdq2ps xmm0, xmm0
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x1c], 1
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
cvtdq2ps xmm1, xmm1
movss dword [rbp - 0x18], xmm0
movss dword [rbp - 0x14], xmm1
cmp ecx, r8d
jne 0x180039bd8
inc ecx
test r8d, r8d
je 0x180039bc4
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180039bc9
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1800273f0
movsxd rax, dword [rbx]
movups xmm0, xmmword [rbp - 0x20]
movsd xmm1, qword [rbp - 0x10]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm0
movsd qword [rax + rcx*8 + 0x10], xmm1
inc dword [rbx]
mov rax, qword [0x180085e10]
cmp byte [rax + 0x2f04], 0
je 0x180039c52
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180039c52
mov rbx, qword [0x180085e10]
cmp byte [rbx + 0x37c1], 0
je 0x180039c3e
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180010bf0
mov dword [rbx + 0x378], 0x210
mov dword [rbx + 0x938], 0xa0
mov rax, qword [0x180085e10]
cmp byte [rax + 0x2f44], 0
je 0x180039cac
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180039cac
mov rbx, qword [0x180085e10]
cmp byte [rbx + 0x37c1], 0
je 0x180039c98
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180010bf0
mov dword [rbx + 0x37c], 0x214
mov dword [rbx + 0x948], 0xa1
mov rax, qword [0x180085e10]
cmp byte [rax + 0x2f24], 0
je 0x180039d06
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180039d06
mov rbx, qword [0x180085e10]
cmp byte [rbx + 0x37c1], 0
je 0x180039cf2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180010bf0
mov dword [rbx + 0x264], 0x212
mov dword [rbx + 0x940], 0x5b
mov rax, qword [0x180085e10]
cmp byte [rax + 0x2f64], 0
je 0x180039d60
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180039d60
mov rbx, qword [0x180085e10]
cmp byte [rbx + 0x37c1], 0
je 0x180039d4c
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180010bf0
mov dword [rbx + 0x268], 0x216
mov dword [rbx + 0x950], 0x5c
cmp byte [rsi + 0x70], 0
je 0x180039d6d
mov eax, 0xffffffff
jmp 0x180039d7a
mov rax, qword [0x180085e10]
mov eax, dword [rax + 0x4248]
cmp dword [r14 + 0x28], eax
je 0x180039e70
mov dword [r14 + 0x28], eax
mov rax, qword [0x180085e10]
test byte [rax + 8], 0x20
jne 0x180039e70
movsxd rcx, dword [rax + 0x4248]
cmp ecx, 0xffffffff
je 0x180039e68
cmp byte [rax + 0x70], 0
jne 0x180039e68
mov edx, 0x7f00
cmp ecx, 8
ja case.0x180039dd3.0
lea r8, [0x180000000]
mov ecx, dword [r8 + rcx*4 + 0x39e80]
add rcx, r8
jmp rcx
mov edx, 0x7f01
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
mov edx, 0x7f86
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
mov edx, 0x7f84
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
mov edx, 0x7f85
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
mov edx, 0x7f83
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
mov edx, 0x7f82
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
mov edx, 0x7f88
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x180039e6a
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
call fcn.1800393e0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret