Function at 0x18005f184
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r8
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r14, qword [0x18029fae0]
xor r13d, r13d
mov r15, r9
mov r12, rcx
test r14, r14
je 0x18005f7d3
mov eax, 0x204
lea rsi, [r14 + 8]
mov r14, qword [r14 + 0x98]
lea ebx, [r13 + 1]
lea r10d, [rax + 1]
lea r9d, [rax + 8]
cmp edx, eax
ja 0x18005f69c
je 0x18005f539
mov ecx, 0x100
lea eax, [rcx + 4]
cmp edx, eax
ja 0x18005f502
je 0x18005f4fa
mov eax, edx
sub eax, 7
je 0x18005f4ea
sub eax, ebx
je 0x18005f4ea
sub eax, 0x18
je 0x18005f4cb
sub eax, 0xe0
je 0x18005f3ad
sub eax, ebx
je 0x18005f3ad
cmp eax, ebx
jne 0x18005f7d3
mov rcx, r12
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x18005f2f1
mov rbx, qword [rbp + 0x40]
lea rax, [rbx - 1]
cmp rax, 0xfffe
ja 0x18005f7d3
test bx, bx
jne 0x18005f26f
cmp word [rsi + 0x37a4], r13w
je 0x18005f7d3
cmp byte [rsi + 0x37a1], r13b
je 0x18005f7d3
mov ecx, 0xfc00
movzx eax, bx
and ax, cx
mov edx, 0xd800
movzx ecx, word [rsi + 0x37a4]
cmp ax, dx
jne 0x18005f2b6
test cx, cx
je 0x18005f2aa
mov edx, 0xfffd
mov rcx, rsi
call fcn.180041588
mov word [rsi + 0x37a4], bx
jmp 0x18005f7d3
test cx, cx
je 0x18005f2e1
mov ecx, 0xdc00
cmp ax, cx
je 0x18005f2d4
mov edx, 0xfffd
mov rcx, rsi
call fcn.180041588
jmp 0x18005f2d9
mov ebx, 0xfffd
mov word [rsi + 0x37a4], r13w
movzx edx, bx
mov rcx, rsi
call fcn.180041588
jmp 0x18005f7d3
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x40]
mov word [rbp - 0x20], r13w
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rbp - 0x20]
test eax, eax
je 0x18005f7d3
cmp byte [rsi + 0x37a1], r13b
je 0x18005f7d3
mov edi, 2
mov qword [rbp - 0xc], r13
mov dword [rbp - 0x14], edi
mov rdi, qword [0x18029fae0]
add rdi, 0x37c0
mov dword [rbp - 4], r13d
mov dword [rbp - 0x18], 5
mov dword [rbp - 0x10], eax
mov ecx, dword [rdi]
mov r8d, dword [rdi + 4]
cmp ecx, r8d
jne 0x18005f388
inc ecx
test r8d, r8d
je 0x18005f374
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18005f379
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rdi
call fcn.1800555dc
movsxd rax, dword [rdi]
movups xmm0, xmmword [rbp - 0x18]
movsd xmm1, qword [rbp - 8]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
movups xmmword [rax + rcx*8], xmm0
movsd qword [rax + rcx*8 + 0x10], xmm1
add dword [rdi], ebx
jmp 0x18005f7d3
cmp edx, ecx
je 0x18005f4fa
mov dil, r13b
cmp r8, rcx
jae 0x18005f7d3
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x1000
and al, bl
mov rcx, rsi
mov r8b, al
call fcn.1800417a8
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x2000
and al, bl
mov rcx, rsi
mov r8b, al
call fcn.1800417a8
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x4000
and al, bl
mov rcx, rsi
mov r8b, al
call fcn.1800417a8
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x8000
and al, bl
mov rcx, rsi
mov r8b, al
call fcn.1800417a8
mov rsi, qword [rbp + 0x40]
cmp rsi, 0xd
jne 0x18005f45d
shr r15, 0x10
mov eax, 0x10d
bt r15w, 8
cmovb esi, eax
movsxd rcx, esi
call fcn.18005ebf0
test eax, eax
je 0x18005f476
mov r8d, esi
mov dl, dil
mov ecx, eax
call fcn.18005e46c
cmp esi, 0x10
jne 0x18005f5ee
mov esi, 0xa0
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
cmp al, dil
jne 0x18005f4a6
mov r8d, esi
mov dl, dil
mov ecx, 0x210
call fcn.18005e46c
mov esi, 0xa1
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
cmp al, dil
jne 0x18005f7d3
mov ecx, 0x214
jmp 0x18005f68c
cmp r15w, bx
jne 0x18005f7d3
call fcn.18005e3c0
test al, al
je 0x18005f7d3
mov rax, rbx
jmp 0x18005f7d5
cmp edx, 7
sete dl
call fcn.180041a88
jmp 0x18005f7d3
mov dil, bl
jmp 0x18005f3b8
mov eax, edx
sub eax, 0x105
je 0x18005f3b5
sub eax, 0xfb
je 0x18005f5a0
sub eax, ebx
je 0x18005f52e
sub eax, ebx
je 0x18005f776
cmp eax, ebx
jne 0x18005f7d3
mov r15d, r13d
cmp edx, 0x206
jne 0x18005f53c
mov r15d, ebx
lea eax, [rdx - 0x207]
mov ecx, 0xfffffffd
test ecx, eax
mov edi, 2
lea eax, [rdx - 0x20b]
cmove r15d, edi
test ecx, eax
jne 0x18005f56f
shr r8, 0x10
mov r15d, r13d
cmp r8w, bx
setne r15b
add r15d, 3
cmp dword [r14 + 0x14], r13d
jne 0x18005f589
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x18005f589
mov rcx, r12
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [r14 + 0x14]
mov r8b, bl
bts eax, r15d
mov edx, r15d
mov dword [r14 + 0x14], eax
jmp 0x18005f7cb
mov qword [r14 + 8], r12
cmp byte [r14 + 0x10], r13b
jne 0x18005f5cf
mov edi, 2
mov dword [rbp - 0x18], 0x18
lea rcx, [rbp - 0x18]
mov dword [rbp - 0x14], edi
mov qword [rbp - 0x10], r12
mov dword [rbp - 8], r13d
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [r14 + 0x10], bl
mov rax, r15
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, r15w
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
jmp 0x18005f741
cmp esi, 0x11
jne 0x18005f63c
mov esi, 0xa2
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
cmp al, dil
jne 0x18005f61a
mov r8d, esi
mov dl, dil
mov ecx, 0x20f
call fcn.18005e46c
mov esi, 0xa3
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
cmp al, dil
jne 0x18005f7d3
mov ecx, 0x213
jmp 0x18005f68c
cmp esi, 0x12
jne 0x18005f7d3
mov esi, 0xa4
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
cmp al, dil
jne 0x18005f66c
mov r8d, esi
mov dl, dil
mov ecx, 0x211
call fcn.18005e46c
mov esi, 0xa5
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
cmp al, dil
jne 0x18005f7d3
mov ecx, 0x215
mov r8d, esi
mov dl, dil
call fcn.18005e46c
jmp 0x18005f7d3
mov eax, 0x20b
cmp edx, eax
ja 0x18005f705
je 0x18005f52e
mov eax, edx
sub eax, r10d
je 0x18005f776
sub eax, ebx
je 0x18005f52e
sub eax, ebx
je 0x18005f52e
sub eax, ebx
je 0x18005f776
sub eax, ebx
je 0x18005f52e
cmp eax, ebx
jne 0x18005f7d3
shr r8, 0x10
xorps xmm1, xmm1
movsx eax, r8w
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [0x18027fd14]
mov rcx, rsi
call fcn.1800419dc
jmp 0x18005f7d3
mov eax, edx
sub eax, r9d
je 0x18005f776
sub eax, ebx
je 0x18005f52e
sub eax, ebx
je 0x18005f75a
sub eax, 0xb
je 0x18005f74e
cmp eax, 0x8a
jne 0x18005f7d3
cmp qword [r14 + 8], r12
jne 0x18005f732
mov qword [r14 + 8], r13
movss xmm1, dword [0x1802805b8]
movaps xmm2, xmm1
mov byte [r14 + 0x10], r13b
mov rcx, rsi
call fcn.1800417d4
jmp 0x18005f7d3
cmp r8d, 7
jne 0x18005f7d3
mov byte [r14 + 0x2d], bl
jmp 0x18005f7d3
shr r8, 0x10
xorps xmm2, xmm2
movsx eax, r8w
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x18027fd14]
jmp 0x18005f6f8
cmp edx, r10d
mov edi, r13d
sete dil
cmp edx, 0x208
jne 0x18005f78f
mov edi, 2
jmp 0x18005f7a6
cmp edx, r9d
jne 0x18005f7a6
shr r8, 0x10
mov edi, r13d
cmp r8w, bx
setne dil
add edi, 3
mov eax, dword [r14 + 0x14]
btr eax, edi
mov dword [r14 + 0x14], eax
test eax, eax
jne 0x18005f7c6
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r12
jne 0x18005f7c6
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call fcn.180041910
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret