Function at 0x180031b10
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movzx eax, byte [0x1801200a0]
mov rsi, rdx
mov byte [rcx + 0x31], al
mov rbx, rcx
test al, al
jne 0x180031b45
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0xfa
call fcn.1800048b0
add rsp, 0x28
pop rsi
pop rbx
ret
mov rax, qword gs:[0x58]
mov ecx, dword [0x18011fee8]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rdi
mov ebp, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + rbp]
cmp dword [0x180121be8], eax
jle 0x180031b9f
lea rcx, [0x180121be8]
call fcn.1800a7540
cmp dword [0x180121be8], 0xffffffff
jne 0x180031b9f
lea rcx, [0x1800ae9b0]
call fcn.1800a7408
lea rcx, [0x180121be8]
call fcn.1800a74d4
cmp byte [0x1801200f9], 0
je 0x180031dc5
cmp byte [0x18012009a], 0
mov qword [rsp + 0x20], r14
movabs r14, 0x431bde82d7b634db
je 0x180031d5d
mov eax, dword [rdi + rbp]
cmp dword [0x180121bec], eax
jle 0x180031c13
lea rcx, [0x180121bec]
call fcn.1800a7540
cmp dword [0x180121bec], 0xffffffff
jne 0x180031c13
lea rcx, [rsp + 0x40]
mov qword [0x180121bf0], 0
call fcn.180005e10
lea rcx, [0x180121bec]
mov rdx, qword [rax]
mov qword [0x180121bf0], rdx
call fcn.1800a74d4
mov rax, qword [0x1801200e0]
mov rdx, qword [0x1801200e8]
cmp rax, rdx
je 0x180031ce2
lea rcx, [rsp + 0x40]
call fcn.180005e10
xorps xmm0, xmm0
mov rcx, qword [rax]
mov rax, r14
sub rcx, qword [0x180121bf0]
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cvtsi2ss xmm0, rdx
comiss xmm0, dword [0x18010740c]
jb 0x180031ccf
lea rcx, [rsp + 0x40]
call fcn.180005e10
mov rdx, qword [0x1801200e8]
movss xmm1, dword [0x180107650]
movss xmm2, dword [0x180107228]
mov rcx, qword [rax]
mov qword [0x180121bf0], rcx
mov r8, qword [rsi]
movss xmm0, dword [rdx - 0xc]
add r8, 0x24
subss xmm0, dword [r8]
andps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x180031ce9
movss xmm0, dword [rdx - 8]
subss xmm0, dword [r8 + 4]
andps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x180031ce9
movss xmm0, dword [rdx - 4]
subss xmm0, dword [r8 + 8]
andps xmm0, xmm1
comiss xmm2, xmm0
ja 0x180031d11
jmp 0x180031ce9
mov rdx, qword [0x1801200e8]
mov rax, qword [0x1801200e0]
cmp rax, rdx
jne 0x180031d11
mov r8, qword [rsi]
add r8, 0x24
cmp rdx, qword [0x1801200f0]
je 0x180031d0c
movsd xmm0, qword [r8]
movsd qword [rdx], xmm0
mov eax, dword [r8 + 8]
mov dword [rdx + 8], eax
add qword [0x1801200e8], 0xc
jmp 0x180031d11
call fcn.180032460
movzx eax, byte [rbx + 0x58]
test al, al
je 0x180031d5d
lea rcx, [rbx + 0x60]
lea rax, [0x1801200e0]
cmp rcx, rax
je 0x180031d5d
mov r8, qword [0x1801200e8]
movabs rax, 0x2aaaaaaaaaaaaaab
sub r8, qword [0x1801200e0]
imul r8
sar rdx, 1
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov rdx, qword [0x1801200e0]
call fcn.180032230
lea rcx, [rsp + 0x40]
call fcn.180005e10
movss xmm0, dword [0x18011d338]
xorps xmm1, xmm1
mulss xmm0, dword [0x180107440]
mov rcx, qword [rax]
mov rax, r14
sub rcx, qword [rbx + 0x50]
mov r14, qword [rsp + 0x20]
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cvtsi2ss xmm1, rdx
comiss xmm1, xmm0
jb 0x180031e2a
cmp byte [0x1801200f8], 0
mov byte [0x1801200f9], 0
je 0x180031dbf
mov byte [0x1801200f8], 0
mov byte [rbx + 0x59], 0
jmp 0x180031e2a
movzx eax, byte [rbx + 0x58]
test al, al
jne 0x180031df2
movzx eax, byte [rbx + 0x58]
test al, al
jne 0x180031df2
mov qword [rsp + 0x40], 1
nop
lea rcx, [rsp + 0x40]
call fcn.1800048b0
movzx eax, byte [rbx + 0x58]
test al, al
je 0x180031de0
mov rax, qword [rbx + 0x60]
cmp rax, qword [rbx + 0x68]
je 0x180031e00
mov qword [rbx + 0x68], rax
mov rax, qword [0x1801200e0]
cmp rax, qword [0x1801200e8]
je 0x180031e17
mov qword [0x1801200e8], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0xa
call fcn.1800048b0
movzx eax, byte [0x1801200d8]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
test al, al
jne 0x180031ec4
mov ecx, dword [0x18012009c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180031e88
cmp byte [rbx + 0x59], 0
je 0x180031e88
cmp byte [0x18012009b], 0
mov byte [0x1801200f9], 1
je 0x180031e71
mov byte [0x1801200f8], 1
lea rcx, [rsp + 0x50]
call fcn.180005e10
mov rcx, qword [rax]
mov qword [rbx + 0x50], rcx
mov byte [rbx + 0x59], 0
jmp 0x180031ec4
mov ecx, dword [0x18012009c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180031ec4
cmp byte [0x1801200f8], al
mov byte [0x1801200f9], al
je 0x180031ead
mov byte [0x1801200f8], al
lea rcx, [rsp + 0x40]
mov byte [rbx + 0x59], 1
mov qword [rsp + 0x40], 0xa
call fcn.1800048b0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 1
call fcn.1800048b0
add rsp, 0x28
pop rsi
pop rbx
ret