Function at 0x1401d2530
Capabilities:
Log keystrokes via polling

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov r14d, r9d
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x200]
lea rcx, [rax + 8]
call fcn.1401d7460
mov r12, rdx
test edi, 0xff0000
je 0x1401d258e
mov eax, edi
shr eax, 0x10
xor ecx, ecx
test edi, 0x1000000
sete cl
movzx eax, al
shl ecx, 0xd
lea r13d, [rcx + rax]
add r13d, 0xffffe000
jmp 0x1401d25a7
movzx ecx, bp
mov r8, qword [r12 + 0x90]
mov edx, 4
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov r13d, eax
movzx ebx, r13w
mov ecx, ebx
call fcn.1401dc290
mov r15, rax
mov rdx, qword [r12 + 0x90]
mov ecx, ebx
call fcn.1401d3820
mov ebx, eax
lea rcx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, byte [rsp + 0xac]
movzx r9d, byte [rsp + 0x128]
movzx r8d, byte [rsp + 0x138]
movzx eax, byte [rsp + 0x13a]
movzx edx, byte [rsp + 0x13c]
or r8b, byte [rsp + 0xa8]
or r8b, byte [rsp + 0x139]
or al, byte [rsp + 0xa9]
or al, byte [rsp + 0x13b]
or dl, byte [rsp + 0xaa]
or dl, byte [rsp + 0x13d]
shr r8b, 7
shr al, 6
and al, 2
shr dl, 5
and dl, 4
shl cl, 3
and cl, 8
or cl, r8b
lea r8d, [rax + rcx]
or r8b, dl
test dl, dl
movzx ecx, cl
movzx r8d, r8b
cmove r8d, ecx
test al, al
mov byte [rsp + 0x43], r14b
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x44], r13d
mov byte [rsp + 0x42], bl
je 0x1401d269e
lea ecx, [r15 - 5]
movzx edx, cx
lea r10, [rdx + 1]
xor ecx, ecx
cmp edx, 0xc2
cmovb rcx, r10
cmp rcx, 0x55
je 0x1401d2761
cmp ecx, 0x79
jne 0x1401d269e
mov r14d, 0x30
jmp 0x1401d2767
test al, al
setne r13b
and r9b, 1
mov dword [rsp + 0x98], 0x134
mov qword [rsp + 0x30], r15
mov eax, dword [rsp + 0x44]
mov word [rsp + 0x28], ax
mov word [rsp + 0x20], bp
lea rcx, [rsp + 0x68]
mov rdx, r12
call fcn.1401d6fe0
cmp dword [rsp + 0x68], 0
setne bl
or bl, r14b
or bl, r13b
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], r15
mov eax, dword [rsp + 0x44]
mov word [rsp + 0x28], ax
mov word [rsp + 0x20], bp
xor ebp, ebp
lea rcx, [rsp + 0x80]
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call fcn.1401d6fe0
mov r14d, dword [rsp + 0x80]
mov eax, dword [rsp + 0x84]
cmp r14d, 2
jne 0x1401d274a
cmp eax, 0x110000
jne 0x1401d27a9
mov r14d, 1
xor r13d, r13d
jmp 0x1401d2879
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov ebp, eax
jmp 0x1401d2879
mov r14d, 9
and r9b, 1
mov dword [rsp + 0x98], r14d
mov qword [rsp + 0x30], r15
mov word [rsp + 0x28], r13w
mov word [rsp + 0x20], bp
lea rcx, [rsp + 0x68]
mov rdx, r12
call fcn.1401d6fe0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x98]
call fcn.1401d3e40
mov bl, 1
jmp 0x1401d2879
mov dword [rsp + 0x3c], 0
cmp eax, 0x80
jae 0x1401d27cf
mov byte [rsp + 0x3c], al
mov r8d, 1
mov rcx, qword [rsp + 0x200]
jmp 0x1401d2860
cmp eax, 0x800
mov rcx, qword [rsp + 0x200]
mov edx, eax
jae 0x1401d27fa
shr edx, 6
or dl, 0xc0
mov byte [rsp + 0x3c], dl
and al, 0x3f
or al, 0x80
mov byte [rsp + 0x3d], al
mov r8d, 2
jmp 0x1401d2860
cmp eax, 0x10000
jae 0x1401d282a
shr edx, 0xc
or dl, 0xe0
mov byte [rsp + 0x3c], dl
mov edx, eax
shr edx, 6
and dl, 0x3f
or dl, 0x80
mov byte [rsp + 0x3d], dl
and al, 0x3f
or al, 0x80
mov byte [rsp + 0x3e], al
mov r8d, 3
jmp 0x1401d2860
shr edx, 0x12
or dl, 0xf0
mov byte [rsp + 0x3c], dl
mov edx, eax
shr edx, 0xc
and dl, 0x3f
or dl, 0x80
mov byte [rsp + 0x3d], dl
mov edx, eax
shr edx, 6
and dl, 0x3f
or dl, 0x80
mov byte [rsp + 0x3e], dl
and al, 0x3f
or al, 0x80
mov byte [rsp + 0x3f], al
mov r8d, 4
add rcx, 0x38
lea rdx, [rsp + 0x3c]
call fcn.1401d9360
mov r13, rax
mov r12, rdx
xor r14d, r14d
xor ebp, ebp
movzx eax, byte [0x1405b1481]
mov ecx, 0x10
mov edx, 2
call fcn.1401159f0
test rax, rax
je 0x1401d2946
movzx ecx, bl
mov edx, edi
shr edx, 0x1e
shr edi, 0x1f
xor edi, edx
mov rdx, r15
shr rdx, 0x10
mov r8, qword [rsp + 0x48]
mov word [rsi + 0x70], r8w
mov r8d, dword [rsp + 0x44]
mov word [rsi + 0x72], r8w
movzx r8d, byte [rsp + 0x43]
mov byte [rsi + 0x74], r8b
and dil, 1
mov byte [rsi + 0x75], dil
mov word [rsi + 0x68], r15w
shr r15, 0x30
mov word [rsi + 0x6e], r15w
mov dword [rsi + 0x6a], edx
movzx edx, byte [rsp + 0x42]
mov byte [rsi + 0x76], dl
mov qword [rsi], rcx
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 8], xmm0
mov rcx, qword [rsp + 0x60]
mov qword [rsi + 0x18], rcx
mov dword [rsi + 0x50], r14d
mov dword [rsi + 0x54], ebp
mov qword [rsi + 0x58], r13
mov qword [rsi + 0x60], r12
mov qword [rsi + 0x20], 8
mov qword [rsi + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
mov qword [rsi + 0x40], 2
mov qword [rsi + 0x48], 0
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
mov edx, 0x10
call fcn.140299c70
int3