Function at 0x140055350
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14012c080]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov ecx, dword [0x140130f4c]
test ecx, ecx
je 0x1400555f4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400555f4
cmp byte [0x140130e6b], 0
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xc0], rdi
je 0x140055499
mov ecx, dword [0x140130f4c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400555e4
movabs rbx, 0x7fffffffffffffff
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x45
call qword [sym.imp.USER32.dll_keybd_event]
movsxd rdi, dword [0x14012f838]
lea rcx, [rbp - 0x19]
call fcn.1400527f0
mov rax, qword [rbp - 0x19]
mov qword [rbp - 0x29], rax
test rdi, rdi
jle 0x14005541d
imul rdx, rdi, 0xf4240
mov rcx, rbx
sub rcx, rdx
cmp rax, rcx
jge 0x140055419
lea rcx, [rdx + rax]
mov qword [rbp - 0x29], rcx
jmp 0x14005541d
mov qword [rbp - 0x29], rbx
lea rcx, [rbp - 0x29]
call fcn.14006ec20
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov cl, 0x45
call qword [sym.imp.USER32.dll_keybd_event]
movsxd rdi, dword [0x14012f838]
lea rcx, [rbp - 0x21]
call fcn.1400527f0
mov rax, qword [rbp - 0x21]
mov qword [rbp - 0x29], rax
test rdi, rdi
jle 0x140055476
imul rdx, rdi, 0xf4240
mov rcx, rbx
sub rcx, rdx
cmp rax, rcx
jge 0x140055472
lea rcx, [rdx + rax]
mov qword [rbp - 0x29], rcx
jmp 0x140055476
mov qword [rbp - 0x29], rbx
lea rcx, [rbp - 0x29]
call fcn.14006ec20
mov ecx, dword [0x140130f4c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1400553d0
jmp 0x1400555e4
xorps xmm0, xmm0
mov qword [rsp + 0xb8], rsi
movups xmmword [rbp - 9], xmm0
mov esi, 0x45
mov r8d, Ordinal_41
movups xmmword [rbp + 0x27], xmm0
lea rdx, [rbp - 9]
mov ecx, 2
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp - 9], 1
mov word [rbp - 1], si
mov dword [rbp + 0x1f], 1
mov word [rbp + 0x27], si
mov dword [rbp + 0x2b], 2
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x37], xmm0
call qword [sym.imp.USER32.dll_SendInput]
mov eax, dword [0x14012f838]
lea rcx, [rbp - 0x21]
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
call fcn.1400527f0
mov rcx, qword [rbp - 0x21]
movabs rbx, 0x7fffffffffffffff
mov qword [rbp - 0x29], rcx
test rdi, rdi
jle 0x14005553d
imul rdx, rdi, 0xf4240
mov rax, rbx
sub rax, rdx
cmp rcx, rax
jge 0x140055539
lea rax, [rdx + rcx]
mov qword [rbp - 0x29], rax
jmp 0x14005553d
mov qword [rbp - 0x29], rbx
lea rcx, [rbp - 0x29]
call fcn.14006ec20
xorps xmm0, xmm0
lea rdx, [rbp - 9]
movups xmmword [rbp - 9], xmm0
mov r8d, Ordinal_41
mov ecx, 2
movups xmmword [rbp + 0x27], xmm0
mov dword [rbp - 9], 1
movups xmmword [rbp + 0x17], xmm0
mov word [rbp - 1], si
mov dword [rbp + 0x1f], 1
mov word [rbp + 0x27], si
mov dword [rbp + 0x2b], 2
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x37], xmm0
call qword [sym.imp.USER32.dll_SendInput]
mov eax, dword [0x14012f838]
lea rcx, [rbp - 0x21]
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
call fcn.1400527f0
mov rcx, qword [rbp - 0x21]
mov rsi, qword [rsp + 0xb8]
mov qword [rbp - 0x29], rcx
test rdi, rdi
jle 0x1400555db
imul rdx, rdi, 0xf4240
mov rax, rbx
sub rax, rdx
cmp rcx, rax
jge 0x1400555d7
lea rax, [rdx + rcx]
mov qword [rbp - 0x29], rax
jmp 0x1400555db
mov qword [rbp - 0x29], rbx
lea rcx, [rbp - 0x29]
call fcn.14006ec20
mov rbx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400dace0
add rsp, 0xa0
pop rbp
ret