Function at 0x180018070
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x60
movss xmm0, dword [0x1802bec4c]
mov esi, dword [0x1802be424]
movaps xmmword [rsp + 0x50], xmm6
xorps xmm6, xmm6
ucomiss xmm0, xmm6
mov r15d, 4
mov ebx, r15d
jne 0x18001811c
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
mov rdi, rax
test rax, rax
je 0x180018114
mov rax, qword gs:[0x58]
mov rcx, qword [rax + rsi*8]
mov eax, dword [r15 + rcx]
cmp dword [0x1802f4cf0], eax
jle 0x180018108
lea rcx, [0x1802f4cf0]
call fcn.18007ffa8
cmp dword [0x1802f4cf0], 0xffffffff
jne 0x180018108
mov ecx, 0xc566d10
call fcn.18000ca80
lea rcx, [0x1802f4cf0]
mov qword [0x1802f4bb8], rax
call fcn.18007ff3c
mov rax, qword [0x1802f4bb8]
movss xmm6, dword [rax + rdi]
movss dword [0x1802bec4c], xmm6
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
mov rcx, rax
call fcn.180012950
cmp byte [0x1802bebd3], 0
mov rdi, rax
je 0x1800183d5
mov qword [rsp + 0x88], r14
test rax, rax
je 0x180018213
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx + rsi*8]
mov ecx, dword [r15 + rdx]
cmp dword [0x1802f4c20], ecx
jle 0x18001819f
lea rcx, [0x1802f4c20]
call fcn.18007ffa8
cmp dword [0x1802f4c20], 0xffffffff
jne 0x18001819f
mov ecx, 0x754c7fa7
call fcn.18000ca80
lea rcx, [0x1802f4c20]
mov qword [0x1802f5248], rax
call fcn.18007ff3c
mov rax, qword [0x1802f5248]
mov rbp, qword [rax + rdi]
test rbp, rbp
je 0x180018213
mov rax, qword gs:[0x58]
mov rcx, qword [rax + rsi*8]
mov eax, dword [r15 + rcx]
cmp dword [0x1802f4f04], eax
jle 0x1800181fa
lea rcx, [0x1802f4f04]
call fcn.18007ffa8
cmp dword [0x1802f4f04], 0xffffffff
jne 0x1800181fa
mov ecx, 0xcf6c2c0b
call fcn.18000ca80
lea rcx, [0x1802f4f04]
mov qword [0x1802f4eb8], rax
call fcn.18007ff3c
mov rax, qword [0x1802f4eb8]
mov r14, rbx
cmp dword [rax + rbp], 0x40547fde
je 0x1800182dd
jmp 0x180018216
mov r14, rbx
test rdi, rdi
je 0x1800183cd
mov rax, qword gs:[0x58]
mov rcx, qword [rax + rsi*8]
mov eax, dword [r15 + rcx]
cmp dword [0x1802f4c20], eax
jle 0x18001826a
lea rcx, [0x1802f4c20]
call fcn.18007ffa8
cmp dword [0x1802f4c20], 0xffffffff
jne 0x18001826a
mov ecx, 0x754c7fa7
call fcn.18000ca80
lea rcx, [0x1802f4c20]
mov qword [0x1802f5248], rax
call fcn.18007ff3c
mov rax, qword [0x1802f5248]
mov rdi, qword [rax + rdi]
test rdi, rdi
je 0x1800183cd
mov rax, qword gs:[0x58]
mov rcx, qword [rax + rsi*8]
mov eax, dword [r15 + rcx]
cmp dword [0x1802f4f04], eax
jle 0x1800182c9
lea rcx, [0x1802f4f04]
call fcn.18007ffa8
cmp dword [0x1802f4f04], 0xffffffff
jne 0x1800182c9
mov ecx, 0xcf6c2c0b
call fcn.18000ca80
lea rcx, [0x1802f4f04]
mov qword [0x1802f4eb8], rax
call fcn.18007ff3c
mov rax, qword [0x1802f4eb8]
cmp dword [rdi + rax], 0x847b9bf0
jne 0x1800183cd
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
mov rbx, rax
test rax, rax
je 0x180018354
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx + rsi*8]
mov ecx, dword [r14 + rdx]
cmp dword [0x1802f523c], ecx
jle 0x18001833f
lea rcx, [0x1802f523c]
call fcn.18007ffa8
cmp dword [0x1802f523c], 0xffffffff
jne 0x18001833f
mov ecx, 0x43f29029
call fcn.18000ca80
lea rcx, [0x1802f523c]
mov qword [0x1802f5018], rax
call fcn.18007ff3c
mov rax, qword [0x1802f5018]
movss xmm0, dword [rbx + rax]
comiss xmm0, dword [0x1802715a8]
jae 0x1800183cd
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
mov rcx, rax
call fcn.18003ff60
mov rcx, qword [0x1802beb00]
mov rbx, rax
add rcx, 0x40cbe0
call rcx
mov rcx, rax
call fcn.180012280
movss xmm0, dword [0x1802bec4c]
addss xmm0, dword [0x180271118]
comiss xmm0, dword [rax]
jae 0x1800183cd
lea rdx, str.UseSelf
mov rcx, rbx
call fcn.180010d80
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
mov rcx, rax
call fcn.180012280
movss xmm0, dword [rax]
movss dword [0x1802bec4c], xmm0
mov r14, qword [rsp + 0x88]
mov rcx, qword [0x1802beb00]
xor ebp, ebp
add rcx, 0x299b4c0
movabs rdi, 0x7fffffff0000
cmp rcx, 0x40000
jbe 0x180018422
lea rax, [rcx + 8]
cmp rax, rdi
jae 0x180018422
mov rbx, qword [rcx]
add rbx, 0xb8
cmp rbx, 0x40000
jbe 0x180018422
lea rax, [rbx + 8]
cmp rax, rdi
jae 0x180018422
mov rbx, qword [rbx]
jmp 0x180018425
mov rbx, rbp
cmp byte [0x1802beb82], bpl
je 0x18001845d
mov ecx, dword [0x1802bec10]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18001845d
lea rcx, [rbx + 0x18]
cmp rcx, 0x40000
jbe 0x18001847f
lea rax, [rcx + 4]
cmp rax, rdi
jae 0x18001847f
mov dword [rcx], 0x41200000
jmp 0x18001847f
lea rcx, [rbx + 0x18]
cmp rcx, 0x40000
jbe 0x18001847f
lea rax, [rcx + 4]
cmp rax, rdi
jae 0x18001847f
movss xmm0, dword [0x1802853ac]
movss dword [rcx], xmm0
cmp byte [0x1802bebe0], bpl
je 0x18001848d
call fcn.180011ca0
cmp byte [0x1802bebde], bpl
je 0x1800184f9
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
add rax, 0x4d0
cmp rax, 0x40000
jbe 0x1800184f9
lea rcx, [rax + 8]
cmp rcx, rdi
jae 0x1800184f9
mov rcx, qword [rax]
mov rdx, rcx
lea r8, [rcx + 0xb4]
cmp r8, 0x40000
jbe 0x1800184de
lea rax, [r8 + 4]
cmp rax, rdi
jae 0x1800184de
mov dword [r8], ebp
lea rcx, [rdx + 0xb8]
cmp rcx, 0x40000
jbe 0x1800184f9
lea rax, [rcx + 4]
cmp rax, rdi
jae 0x1800184f9
mov dword [rcx], ebp
cmp byte [0x1802bebe1], bpl
je 0x18001854a
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
lea rcx, [rax + 0x5f8]
cmp rcx, 0x40000
jbe 0x18001854a
lea rax, [rcx + 4]
cmp rax, rdi
jae 0x180018531
mov edx, dword [rcx]
or edx, 4
jmp 0x180018548
cmp rcx, 0x40000
jbe 0x18001854a
lea rax, [rcx + 4]
mov edx, 4
cmp rax, rdi
jae 0x18001854a
mov dword [rcx], edx
cmp byte [0x1802bebd2], bpl
je 0x1800185bf
mov rax, qword [0x1802beb00]
add rax, 0x40cbe0
call rax
mov rcx, qword [0x1802beb00]
add rcx, 0x2998760
cmp rcx, 0x40000
jbe 0x1800185bf
lea rax, [rcx + 8]
cmp rax, rdi
jae 0x1800185bf
mov rcx, qword [rcx]
add rcx, 0xb8
cmp rcx, 0x40000
jbe 0x1800185bf
lea rax, [rcx + 8]
cmp rax, rdi
jae 0x1800185bf
mov rcx, qword [rcx]
cmp rcx, 0x40000
jbe 0x1800185bf
lea rax, [rcx + 4]
cmp rax, rdi
jae 0x1800185bf
movss xmm0, dword [0x1802853a8]
movss dword [rcx], xmm0
cmp byte [0x1802bebd1], bpl
je 0x1800185cd
call fcn.180011ca0
cmp byte [0x1802bebee], bpl
je 0x1800187cf
mov ecx, dword [0x1802bec20]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800187cf
mov rax, qword [0x1802beb00]
movaps xmmword [rsp + 0x30], xmm8
add rax, 0x40cbe0
movaps xmmword [rsp + 0x40], xmm7
call rax
mov edx, dword [0x1802f5298]
mov rbx, rax
test edx, edx
je 0x18001862b
sub edx, 1
je 0x18001862b
cmp edx, 1
je 0x18001862b
movss xmm7, dword [rsp + 0x80]
jmp 0x180018634
call qword [0x1802f5290]
movaps xmm7, xmm0
test rbx, rbx
jne 0x180018675
mov rcx, rbx
call fcn.180012740
subss xmm7, dword [0x180271010]
movaps xmm8, xmm0
lea rax, [rsp + 0x20]
mulss xmm7, dword [0x180271368]
addss xmm7, dword [0x180271058]
mulss xmm8, xmm7
addss xmm8, dword [0x180270fe8]
jmp 0x1800187b9
mov rax, qword gs:[0x58]
mov rdx, qword [rax + rsi*8]
mov eax, dword [r15 + rdx]
cmp dword [0x1802f4cf0], eax
jle 0x1800186c0
lea rcx, [0x1802f4cf0]
call fcn.18007ffa8
cmp dword [0x1802f4cf0], 0xffffffff
jne 0x1800186c0
mov ecx, 0xc566d10
call fcn.18000ca80
lea rcx, [0x1802f4cf0]
mov qword [0x1802f4bb8], rax
call fcn.18007ff3c
mov rax, qword [0x1802f4bb8]
mov rcx, rbx
movss xmm6, dword [rbx + rax]
call fcn.180012740
mov rax, qword gs:[0x58]
subss xmm7, xmm6
movaps xmm8, xmm0
mov rcx, qword [rax + rsi*8]
subss xmm7, dword [0x180271010]
mov eax, dword [r15 + rcx]
cmp dword [0x1802f4de4], eax
mulss xmm7, dword [0x180271368]
addss xmm7, dword [0x180271058]
mulss xmm8, xmm7
addss xmm8, dword [0x180270fe8]
jle 0x18001874d
lea rcx, [0x1802f4de4]
call fcn.18007ffa8
cmp dword [0x1802f4de4], 0xffffffff
jne 0x18001874d
mov ecx, 0x6d5c7dd2
call fcn.18000ca80
lea rcx, [0x1802f4de4]
mov qword [0x1802f51d0], rax
call fcn.18007ff3c
mov rax, qword [0x1802f51d0]
mov rbx, qword [rbx + rax]
test rbx, rbx
jne 0x180018764
lea rax, [rsp + 0x20]
jmp 0x1800187b9
mov rax, qword gs:[0x58]
mov rcx, qword [rax + rsi*8]
mov eax, dword [r15 + rcx]
cmp dword [0x1802f4d30], eax
jle 0x1800187af
lea rcx, [0x1802f4d30]
call fcn.18007ffa8
cmp dword [0x1802f4d30], 0xffffffff
jne 0x1800187af
mov ecx, 0x7cd71351
call fcn.18000ca80
lea rcx, [0x1802f4d30]
mov qword [0x1802f4d70], rax
call fcn.18007ff3c
mov rax, qword [0x1802f4d70]
add rax, rbx
mov dword [rax], ebp
movss dword [rax + 4], xmm8
mov dword [rax + 8], ebp
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x50]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rsi
ret