Function at 0x1800cb940
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [0x180259040]
xor rax, rsp
mov qword [rsp + 0xf0], rax
movzx eax, byte [0x180782631]
test eax, eax
je 0x1800cbc8a
mov ecx, dword [0x18078e1bc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1800cbc8a
mov qword [rsp + 0x30], 0
mov eax, dword [0x180781a6c]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800cb9af
cmp dword [rsp + 0x38], 1
je 0x1800cb9bd
cmp dword [rsp + 0x38], 2
je 0x1800cb9cb
jmp 0x1800cb9d7
xor ecx, ecx
call fcn.1800cae70
mov qword [rsp + 0x30], rax
jmp 0x1800cb9d7
xor ecx, ecx
call fcn.1800ca070
mov qword [rsp + 0x30], rax
jmp 0x1800cb9d7
xor ecx, ecx
call fcn.1800ca6e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800cb9e4
jmp 0x1800cbc8a
mov r8d, 0x796e
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xd8]
call fcn.1800c0a40
mov eax, dword [0x18078e1d4]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 6
ja case.default.0x1800cba27
movsxd rax, dword [rsp + 0x3c]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0xcbca4]
add rax, rcx
jmp rax
mov r8d, 0x796e
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.1800c0a40
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
jmp case.default.0x1800cba27
mov r8d, 0x9995
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x8c]
call fcn.1800c0a40
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
jmp case.default.0x1800cba27
mov r8d, 0x2e28
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x98]
call fcn.1800c0a40
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
jmp case.default.0x1800cba27
mov r8d, 0x3779
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xa4]
call fcn.1800c0a40
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
jmp case.default.0x1800cba27
mov r8d, 0xcc4d
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.1800c0a40
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
jmp case.default.0x1800cba27
mov r8d, 0xdead
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xbc]
call fcn.1800c0a40
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
jmp case.default.0x1800cba27
mov r8d, 0x49d9
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xc8]
call fcn.1800c0a40
lea rcx, [rsp + 0xd8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0xd8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xe8]
call fcn.1800bdfb0
movss xmm0, dword [0x1802452a0]
comiss xmm0, dword [rsp + 0xe8]
jb 0x1800cbbd1
movss xmm0, dword [0x1802452a0]
comiss xmm0, dword [rsp + 0xec]
jb 0x1800cbbd1
jmp 0x1800cbc8a
call fcn.18006f2f0
movss xmm0, dword [rax + 8]
divss xmm0, dword [0x180245428]
movss dword [rsp + 0x44], xmm0
call fcn.18006f2f0
movss xmm0, dword [rax + 0xc]
divss xmm0, dword [0x180245428]
movss dword [rsp + 0x40], xmm0
cvtss2sd xmm0, dword [rsp + 0xec]
cvtss2sd xmm1, dword [rsp + 0xe8]
cvtss2sd xmm2, dword [rsp + 0x40]
cvtss2sd xmm3, dword [rsp + 0x44]
movsd qword [rsp + 0x50], xmm3
movsd qword [rsp + 0x20], xmm0
movaps xmm3, xmm1
movsd xmm0, qword [rsp + 0x50]
movaps xmm1, xmm0
lea rcx, [rsp + 0xd4]
call fcn.1800cadf0
movss dword [rsp + 0x48], xmm0
cvtss2sd xmm0, dword [rsp + 0x48]
cvtsi2sd xmm1, dword [0x180781a68]
mulsd xmm1, qword [0x180245418]
comisd xmm1, xmm0
jbe 0x1800cbc8a
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0xd8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.1800cb5d0
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180189ea0
add rsp, 0x108
pop rdi
pop rsi
ret