Function at 0x1800a82c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x180162040]
xor rax, rsp
mov qword [rbp - 1], rax
mov rbx, qword [0x180181128]
mov r13, r9
mov qword [rbp - 0x11], r8
mov r15d, edx
mov r12, rcx
test rbx, rbx
je case.0x1800a8b31.527
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je case.0x1800a8b31.527
add rbx, 8
cmp edx, 0x200
ja 0x1800a8b07
je case.0x1800a83a7.160
cmp edx, 7
ja 0x1800a8380
je 0x1800a8774
cmp edx, 2
jne case.0x1800a8b31.527
cmp qword [rsi + 8], rcx
jne case.0x1800a8b31.527
cmp dword [rsi + 0x10], 0
je case.0x1800a8b31.527
mov qword [rbp - 0x29], rcx
xor edi, edi
lea rcx, [rbp - 0x31]
mov dword [rbp - 0x21], edi
mov dword [rbp - 0x31], 0x18
mov dword [rbp - 0x2d], 0x80000000
call qword [sym.imp.USER32.dll_TrackMouseEvent]
jmp 0x1800a8b52
lea eax, [rdx - 8]
cmp eax, 0xfd
ja case.0x1800a8b31.527
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0xa8d3c]
mov ecx, dword [rdx + rax*4 + 0xa8d20]
add rcx, rdx
jmp rcx
lea eax, [r15 - 0x100]
test eax, 0xfffffffb
sete dil
cmp r8, 0x100
jae case.0x1800a8b31.527
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x180148f1c]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x2b69], 0
je 0x1800a8404
test al, al
je 0x1800a83f0
movaps xmm3, xmm6
jmp 0x1800a83f3
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x1000
mov rcx, rbx
call fcn.18008e790
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x2b69], 0
je 0x1800a843a
test al, al
je 0x1800a8426
movaps xmm3, xmm6
jmp 0x1800a8429
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x2000
mov rcx, rbx
call fcn.18008e790
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x2b69], 0
je 0x1800a8470
test al, al
je 0x1800a845c
movaps xmm3, xmm6
jmp 0x1800a845f
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x4000
mov rcx, rbx
call fcn.18008e790
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800a8499
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800a8499
xor r8b, r8b
jmp 0x1800a849c
mov r8b, 1
cmp byte [rbx + 0x2b69], 0
je 0x1800a84bf
test r8b, r8b
je 0x1800a84af
movaps xmm3, xmm6
jmp 0x1800a84b2
xorps xmm3, xmm3
mov edx, 0x8000
mov rcx, rbx
call fcn.18008e790
mov rbx, qword [rbp - 0x11]
mov rdx, r13
mov rcx, rbx
call fcn.1800a8f60
mov r14d, eax
cmp eax, 0x262
jne 0x1800a851c
test dil, dil
jne 0x1800a8521
mov rsi, qword [0x180181128]
cmp byte [rsi + 0x2b71], dil
je 0x1800a84fe
movaps xmm3, xmm6
lea rcx, [rsi + 8]
mov r8b, 1
mov edx, eax
call fcn.18008e790
cmp ebx, 0x1ff
ja 0x1800a8521
movsxd rax, ebx
mov dword [rsi + rax*4 + 0x2b88], 0x262
mov dword [rsi + 0x3510], ebx
jmp 0x1800a8521
test r14d, r14d
je 0x1800a8530
mov r8d, ebx
movzx edx, dil
mov ecx, r14d
call fcn.1800aa290
cmp ebx, 0x10
jne 0x1800a85f0
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x1800a8591
mov rbx, qword [0x180181128]
cmp byte [rbx + 0x2b71], 0
je 0x1800a857d
test dil, dil
je 0x1800a8568
movaps xmm3, xmm6
jmp 0x1800a856b
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x210
call fcn.18008e790
mov dword [rbx + 0x2e08], 0x210
mov dword [rbx + 0x33c8], 0xa0
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x1800a8b31.527
mov rbx, qword [0x180181128]
cmp byte [rbx + 0x2b71], 0
je 0x1800a85d7
test dil, dil
jne 0x1800a85c2
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x214
call fcn.18008e790
mov dword [rbx + 0x2e0c], 0x214
mov dword [rbx + 0x33d8], 0xa1
jmp case.0x1800a8b31.527
cmp ebx, 0x11
jne 0x1800a86b0
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x1800a8651
mov rbx, qword [0x180181128]
cmp byte [rbx + 0x2b71], 0
je 0x1800a863d
test dil, dil
je 0x1800a8628
movaps xmm3, xmm6
jmp 0x1800a862b
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x20f
call fcn.18008e790
mov dword [rbx + 0x2e10], 0x20f
mov dword [rbx + 0x33c4], 0xa2
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x1800a8b31.527
mov rbx, qword [0x180181128]
cmp byte [rbx + 0x2b71], 0
je 0x1800a8697
test dil, dil
jne 0x1800a8682
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x213
call fcn.18008e790
mov dword [rbx + 0x2e14], 0x213
mov dword [rbx + 0x33d4], 0xa3
jmp case.0x1800a8b31.527
cmp ebx, 0x12
jne case.0x1800a8b31.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x1800a8711
mov rbx, qword [0x180181128]
cmp byte [rbx + 0x2b71], 0
je 0x1800a86fd
test dil, dil
je 0x1800a86e8
movaps xmm3, xmm6
jmp 0x1800a86eb
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x211
call fcn.18008e790
mov dword [rbx + 0x2e18], 0x211
mov dword [rbx + 0x33cc], 0xa4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x1800a8b31.527
mov rbx, qword [0x180181128]
cmp byte [rbx + 0x2b71], 0
je 0x1800a8757
test dil, dil
jne 0x1800a8742
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x215
call fcn.18008e790
mov dword [rbx + 0x2e1c], 0x215
mov dword [rbx + 0x33dc], 0xa5
jmp case.0x1800a8b31.527
cmp r15d, 7
mov rdx, qword [rbx + 0xd0]
sete r8b
lea r9, [rdx + 0x4040]
mov eax, dword [r9]
sub eax, 1
js 0x1800a87af
movsxd rcx, eax
imul rax, rcx, 0x1c
add rax, qword [rdx + 0x4048]
nop dword [rax]
cmp dword [rax], 6
je 0x1800a880f
sub rax, 0x1c
sub rcx, 1
jns 0x1800a87a0
cmp byte [rdx + 0x2b70], 0
sete cl
cmp cl, r8b
je case.0x1800a8b31.527
cmp byte [rbx + 0x78], 0
je 0x1800a87d2
cmp r15d, 7
jne case.0x1800a8b31.527
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], rax
mov rcx, r9
mov dword [rbp - 0x39], eax
mov eax, dword [rdx + 0x4064]
mov dword [rbp - 0x49], eax
inc eax
mov dword [rdx + 0x4064], eax
lea rdx, [rbp - 0x51]
mov dword [rbp - 0x51], 6
mov byte [rbp - 0x45], r8b
call fcn.18001c520
jmp case.0x1800a8b31.527
test rax, rax
je 0x1800a87af
movzx ecx, byte [rax + 0xc]
jmp 0x1800a87b9
call fcn.1800aa750
jmp case.0x1800a8b31.527
mov rcx, r12
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1800a8956
mov rsi, qword [rbp - 0x11]
lea rax, [rsi - 1]
cmp rax, 0xfffe
ja case.0x1800a8b31.527
test si, si
jne 0x1800a885b
cmp word [rbx + 0x2b6c], si
je case.0x1800a8b31.527
cmp byte [rbx + 0x2b69], 0
je case.0x1800a8b31.527
mov ecx, 0xfc00
movzx eax, si
and ax, cx
mov edx, 0xd800
movzx ecx, word [rbx + 0x2b6c]
cmp ax, dx
jne 0x1800a88df
test cx, cx
je 0x1800a88d3
mov rcx, qword [rbx + 0xd0]
lea rdx, [rbp - 0x51]
xor edi, edi
mov dword [rbp - 0x51], 5
mov r14d, 2
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x39], edi
mov eax, dword [rcx + 0x4064]
mov dword [rbp - 0x49], eax
inc eax
mov dword [rcx + 0x4064], eax
mov eax, 0xfffd
add rcx, 0x4040
mov dword [rbp - 0x45], eax
mov dword [rbp - 0x4d], r14d
call fcn.18001c520
mov word [rbx + 0x2b6c], si
jmp case.0x1800a8b31.527
test cx, cx
je 0x1800a8946
mov ecx, 0xdc00
xor edi, edi
cmp ax, cx
je 0x1800a893a
mov rcx, qword [rbx + 0xd0]
lea rdx, [rbp - 0x51]
mov r14d, 2
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x39], edi
mov dword [rbp - 0x51], 5
mov eax, dword [rcx + 0x4064]
mov dword [rbp - 0x49], eax
inc eax
mov dword [rcx + 0x4064], eax
mov eax, 0xfffd
add rcx, 0x4040
mov dword [rbp - 0x45], eax
mov dword [rbp - 0x4d], r14d
call fcn.18001c520
jmp 0x1800a893f
mov esi, 0xfffd
mov word [rbx + 0x2b6c], di
movzx edx, si
mov rcx, rbx
call fcn.18008edb0
jmp case.0x1800a8b31.527
mov eax, 1
lea rcx, [rbp - 0x19]
mov dword [rsp + 0x28], eax
lea r8, [rbp - 0x11]
mov qword [rsp + 0x20], rcx
xor edi, edi
mov ecx, dword [rsi + 0x2c]
mov r9d, eax
mov edx, eax
mov word [rbp - 0x19], di
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx edx, word [rbp - 0x19]
mov rcx, qword [rbx + 0xd0]
test edx, edx
je case.0x1800a8b31.527
cmp byte [rbx + 0x2b69], dil
je case.0x1800a8b31.527
mov eax, dword [rcx + 0x4064]
mov r14d, 2
mov dword [rbp - 0x49], eax
inc eax
mov dword [rcx + 0x4064], eax
add rcx, 0x4040
mov dword [rbp - 0x45], edx
lea rdx, [rbp - 0x51]
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x39], edi
mov dword [rbp - 0x51], 5
mov dword [rbp - 0x4d], r14d
call fcn.18001c520
jmp case.0x1800a8b31.527
cmp r13w, 1
jne case.0x1800a8b31.527
call fcn.1800aa330
test al, al
je case.0x1800a8b31.527
mov eax, 1
jmp 0x1800a8cf7
call qword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, 0xffffff80
xor edi, edi
and rax, rcx
mov r14d, 2
mov ecx, 0xff515700
cmp rax, rcx
jne 0x1800a8a29
mov dword [rbp - 0x19], r14d
jmp 0x1800a8a39
mov ecx, edi
mov edx, 0xff515780
cmp rax, rdx
sete cl
mov dword [rbp - 0x19], ecx
mov ecx, dword [rsi + 0x10]
cmp r15d, 0x200
mov eax, edi
mov qword [rsi + 8], r12
setne al
inc eax
mov dword [rbp - 0x59], eax
cmp ecx, eax
je 0x1800a8aaa
cmp r15d, 0x200
mov dword [rbp - 0x31], 0x18
mov eax, 0x12
mov dword [rbp - 0x2d], 0x80000000
cmovne r14d, eax
mov qword [rbp - 0x29], r12
mov dword [rbp - 0x4d], r14d
mov dword [rbp - 0x21], edi
mov dword [rbp - 0x51], 0x18
mov qword [rbp - 0x49], r12
mov dword [rbp - 0x41], edi
test ecx, ecx
je 0x1800a8a9a
lea rcx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
lea rcx, [rbp - 0x51]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov eax, dword [rbp - 0x59]
mov dword [rsi + 0x10], eax
movsx eax, r13w
shr r13, 0x10
mov dword [rbp - 9], eax
movsx eax, r13w
mov dword [rbp - 5], eax
cmp r15d, 0xa0
jne 0x1800a8ada
lea rdx, [rbp - 9]
mov rcx, r12
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1800a8b31.527
mov rax, qword [rbx + 0xd0]
mov ecx, dword [rbp - 0x19]
mov dword [rax + 0x4060], ecx
mov rcx, rbx
movd xmm2, dword [rbp - 5]
movd xmm1, dword [rbp - 9]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.18008e5e0
jmp case.0x1800a8b31.527
lea eax, [rdx - 0x201]
cmp eax, 0xa2
ja case.0x1800a8b31.527
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0xa8e58]
mov ecx, dword [rdx + rax*4 + 0xa8e3c]
add rcx, rdx
jmp rcx
xor edi, edi
cmp r15d, 0x2a3
mov eax, edi
setne al
inc eax
cmp dword [rsi + 0x10], eax
jne case.0x1800a8b31.527
cmp qword [rsi + 8], r12
jne 0x1800a8b56
mov qword [rsi + 8], rdi
movss xmm1, dword [0x180149128]
mov rcx, rbx
movaps xmm2, xmm1
mov dword [rsi + 0x10], edi
call fcn.18008e5e0
jmp case.0x1800a8b31.527
call fcn.1800a8f10
xor edi, edi
mov dword [rbp - 0x59], eax
lea ecx, [r15 - 0x204]
mov eax, 1
test ecx, 0xfffffffd
mov r13d, edi
lea ecx, [r15 - 0x207]
mov r14d, 2
cmove r13d, eax
test ecx, 0xfffffffd
lea eax, [r15 - 0x20b]
cmove r13d, r14d
test eax, 0xfffffffd
jne 0x1800a8bd0
mov rax, qword [rbp - 0x11]
mov r13d, edi
shr rax, 0x10
cmp ax, 1
setne r13b
add r13d, 3
cmp dword [rsi + 0x14], edi
jne 0x1800a8be9
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x1800a8be9
mov rcx, r12
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [rsi + 0x14]
mov r8b, 1
mov ecx, dword [rbp - 0x59]
bts eax, r13d
mov dword [rsi + 0x14], eax
mov edx, r13d
mov rax, qword [rbx + 0xd0]
mov dword [rax + 0x4060], ecx
mov rcx, rbx
call fcn.18008e410
jmp case.0x1800a8b31.527
call fcn.1800a8f10
xor edi, edi
mov r13d, eax
cmp r15d, 0x205
mov r14d, edi
sete r14b
cmp r15d, 0x208
jne 0x1800a8c3f
mov r14d, 2
jmp 0x1800a8c5f
cmp r15d, 0x20c
jne 0x1800a8c5f
mov rax, qword [rbp - 0x11]
mov r14d, edi
shr rax, 0x10
cmp ax, 1
setne r14b
add r14d, 3
mov eax, dword [rsi + 0x14]
btr eax, r14d
mov dword [rsi + 0x14], eax
test eax, eax
jne 0x1800a8c7e
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r12
jne 0x1800a8c7e
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rax, qword [rbx + 0xd0]
xor r8d, r8d
mov edx, r14d
mov rcx, rbx
mov dword [rax + 0x4060], r13d
call fcn.18008e410
jmp case.0x1800a8b31.527
shr r8, 0x10
xorps xmm1, xmm1
movsx eax, r8w
mov rcx, rbx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x18014905c]
call fcn.18008e380
jmp case.0x1800a8b31.527
shr r8, 0x10
xorps xmm2, xmm2
movsx eax, r8w
mov rcx, rbx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x180149700]
divss xmm1, dword [0x18014905c]
call fcn.18008e380
jmp case.0x1800a8b31.527
cmp r8d, 7
jne case.0x1800a8b31.527
mov byte [rsi + 0x31], 1
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.18003eb20
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret