Function at 0x1800fc940
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov esi, r9d
mov r12d, r8d
mov edi, edx
mov rbx, rcx
xor r14d, r14d
mov qword [rbp + 0x30], r14
lea rax, vtable.FB::WindowsEvent.0
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], edx
mov dword [rbp - 0x14], r8d
mov dword [rbp - 0x10], r9d
lea rax, [rbp + 0x30]
mov qword [rbp - 8], rax
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
test al, al
je 0x1800fc9b9
mov rax, qword [rbp - 8]
mov rcx, qword [rax]
mov rax, qword [rbp + 0x50]
mov qword [rax], rcx
mov al, 1
jmp 0x1800fcc54
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r13d, ax
shr r13d, 0xf
and r13d, 1
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r11d, ax
shr r11d, 0xe
and r11d, 2
add r13d, r11d
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r11d, ax
shr r11d, 0xd
and r11d, 4
add r13d, r11d
cmp edi, 0x200
ja 0x1800fcabd
je 0x1800fca84
sub edi, 0x100
je 0x1800fca53
dec edi
jne case.0x1800fcadf.515
mov ecx, r12d
call fcn.1800e3750
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], r12d
mov dword [rbp - 0x18], r14d
lea rax, vtable.FB::KeyUpEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
mov ecx, r12d
call fcn.1800e3750
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], r12d
mov dword [rbp - 0x18], r14d
lea rax, vtable.FB::KeyDownEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
mov eax, esi
shr eax, 0x10
movsx ecx, ax
movsx eax, si
sub eax, dword [rbx + 0x58]
sub ecx, dword [rbx + 0x5c]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x18], r14d
lea rax, vtable.FB::MouseMoveEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
add edi, 0xfffffdff
cmp edi, 7
ja case.0x1800fcadf.515
mov eax, edi
lea rdx, [0x180000000]
mov ecx, dword [rdx + rdi*4 + 0xfcc70]
add rcx, rdx
jmp rcx
mov eax, esi
shr eax, 0x10
movsx ecx, ax
movsx eax, si
sub eax, dword [rbx + 0x58]
sub ecx, dword [rbx + 0x5c]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x18], r13d
mov dword [rbp - 0x10], r14d
lea rax, vtable.FB::MouseDownEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
mov eax, esi
shr eax, 0x10
movsx ecx, ax
movsx eax, si
sub eax, dword [rbx + 0x58]
sub ecx, dword [rbx + 0x5c]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x18], r13d
mov dword [rbp - 0x10], 1
lea rax, vtable.FB::MouseDownEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
mov eax, esi
shr eax, 0x10
movsx ecx, ax
movsx eax, si
sub eax, dword [rbx + 0x58]
sub ecx, dword [rbx + 0x5c]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x18], r13d
mov dword [rbp - 0x10], 2
lea rax, vtable.FB::MouseDownEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
mov eax, esi
shr eax, 0x10
movsx ecx, ax
movsx eax, si
sub eax, dword [rbx + 0x58]
sub ecx, dword [rbx + 0x5c]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x18], r13d
mov dword [rbp - 0x10], r14d
lea rax, vtable.FB::MouseUpEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
mov eax, esi
shr eax, 0x10
movsx ecx, ax
movsx eax, si
sub eax, dword [rbx + 0x58]
sub ecx, dword [rbx + 0x5c]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x18], r13d
mov dword [rbp - 0x10], 1
lea rax, vtable.FB::MouseUpEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
mov eax, esi
shr eax, 0x10
movsx ecx, ax
movsx eax, si
sub eax, dword [rbx + 0x58]
sub ecx, dword [rbx + 0x5c]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x18], r13d
mov dword [rbp - 0x10], 2
lea rax, vtable.FB::MouseUpEvent.0
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
jmp 0x1800fcc54
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret