Function at 0x18003bc70
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov rax, qword [0x180077680]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12, r9
mov qword [rbp - 9], r8
mov edi, edx
mov r13, rcx
call fcn.180014350
test rax, rax
je case.0x18003c13f.527
call fcn.180014710
mov rsi, qword [rax + 0x90]
test rsi, rsi
je case.0x18003c13f.527
call fcn.180014710
mov r15, rax
cmp edi, 0x200
ja 0x18003c115
je case.0x18003bd55.160
cmp edi, 7
ja 0x18003bd2e
je 0x18003bf90
cmp edi, 2
jne case.0x18003c13f.527
cmp qword [rsi + 8], r13
jne case.0x18003c13f.527
cmp dword [rsi + 0x10], 0
je case.0x18003c13f.527
xor ebx, ebx
mov dword [rbp - 0x41], 0x18
lea rcx, [rbp - 0x41]
mov dword [rbp - 0x31], ebx
mov dword [rbp - 0x3d], 0x80000000
mov qword [rbp - 0x39], r13
call qword [sym.imp.USER32.dll_TrackMouseEvent]
jmp 0x18003c15f
lea eax, [rdi - 8]
cmp eax, 0xfd
ja case.0x18003c13f.527
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x3c334]
mov ecx, dword [rdx + rax*4 + 0x3c318]
add rcx, rdx
jmp rcx
lea eax, [rdi - 0x100]
test eax, 0xfffffffb
sete bl
cmp qword [rbp - 9], 0x100
jae case.0x18003c13f.527
call fcn.180014710
mov ecx, 0x11
mov rdi, rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x1000
and al, 1
mov rcx, rdi
movzx r8d, al
call fcn.18000b520
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x2000
and al, 1
mov rcx, rdi
movzx r8d, al
call fcn.18000b520
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x4000
and al, 1
mov rcx, rdi
movzx r8d, al
call fcn.18000b520
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003be07
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003be07
xor r8d, r8d
jmp 0x18003be0a
mov r8b, 1
mov edx, 0x8000
mov rcx, rdi
call fcn.18000b520
mov rsi, qword [rbp - 9]
mov rdx, r12
mov rcx, rsi
call fcn.18003acc0
shr r12, 0x10
mov r14d, eax
movzx edi, r12b
cmp eax, 0x262
jne 0x18003be4d
test bl, bl
jne 0x18003be52
mov r9d, edi
mov r8d, esi
mov dl, 1
mov ecx, eax
call fcn.18003aa50
jmp 0x18003be52
test r14d, r14d
je 0x18003be63
mov r9d, edi
mov r8d, esi
movzx edx, bl
mov ecx, r14d
call fcn.18003aa50
cmp esi, 0x10
jne 0x18003bec5
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x18003be92
mov r9d, edi
mov r8d, 0xa0
movzx edx, bl
mov ecx, 0x210
call fcn.18003aa50
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x18003c13f.527
mov r9d, edi
mov r8d, 0xa1
movzx edx, bl
mov ecx, 0x214
call fcn.18003aa50
jmp case.0x18003c13f.527
cmp esi, 0x11
jne 0x18003bf27
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x18003bef4
mov r9d, edi
mov r8d, 0xa2
movzx edx, bl
mov ecx, 0x20f
call fcn.18003aa50
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x18003c13f.527
mov r9d, edi
mov r8d, 0xa3
movzx edx, bl
mov ecx, 0x213
call fcn.18003aa50
jmp case.0x18003c13f.527
cmp esi, 0x12
jne case.0x18003c13f.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x18003bf5a
mov r9d, edi
mov r8d, 0xa4
movzx edx, bl
mov ecx, 0x211
call fcn.18003aa50
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x18003c13f.527
mov r9d, edi
mov r8d, 0xa5
movzx edx, bl
mov ecx, 0x215
call fcn.18003aa50
jmp case.0x18003c13f.527
cmp edi, 7
sete dl
mov rcx, r15
call fcn.18000b0a0
jmp case.0x18003c13f.527
call fcn.18003ba90
jmp case.0x18003c13f.527
mov rcx, r13
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x18003bfd8
mov rdx, qword [rbp - 9]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja case.0x18003c13f.527
mov rcx, r15
call fcn.18000b1c0
jmp case.0x18003c13f.527
mov ecx, dword [rsi + 0x2c]
lea rax, [rbp - 0x11]
mov r12d, 1
lea r8, [rbp - 9]
xor ebx, ebx
mov dword [rsp + 0x28], r12d
mov r9d, r12d
mov qword [rsp + 0x20], rax
mov edx, r12d
mov word [rbp - 0x11], bx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx edx, word [rbp - 0x11]
mov rcx, r15
call fcn.18000b150
jmp case.0x18003c13f.527
cmp r12w, 1
jne case.0x18003c13f.527
call fcn.18003baf0
test al, al
je case.0x18003c13f.527
mov eax, 1
jmp 0x18003c2f6
call fcn.18003aa10
mov ecx, dword [rsi + 0x10]
xor ebx, ebx
mov r14d, eax
mov dword [rbp - 0x49], eax
cmp edi, 0x200
mov qword [rsi + 8], r13
mov eax, ebx
setne al
inc eax
mov dword [rbp - 0x11], eax
cmp ecx, eax
je 0x18003c0be
cmp edi, 0x200
mov dword [rbp - 0x41], 0x18
mov eax, 0x12
mov dword [rbp - 0x3d], 0x80000000
mov r14d, 2
mov qword [rbp - 0x39], r13
cmovne r14d, eax
mov dword [rbp - 0x31], ebx
mov dword [rbp - 0x25], r14d
mov dword [rbp - 0x29], 0x18
mov qword [rbp - 0x21], r13
mov dword [rbp - 0x19], ebx
test ecx, ecx
je 0x18003c0aa
lea rcx, [rbp - 0x41]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov eax, dword [rbp - 0x11]
mov r14d, dword [rbp - 0x49]
mov dword [rsi + 0x10], eax
movsx eax, r12w
shr r12, 0x10
mov dword [rbp - 1], eax
movsx eax, r12w
mov dword [rbp + 3], eax
cmp edi, 0xa0
jne 0x18003c0ed
lea rdx, [rbp - 1]
mov rcx, r13
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x18003c13f.527
mov edx, r14d
mov rcx, r15
call fcn.18000b860
movd xmm2, dword [rbp + 3]
mov rcx, r15
movd xmm1, dword [rbp - 1]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.18000b720
jmp case.0x18003c13f.527
lea eax, [rdi - 0x201]
cmp eax, 0xa2
ja case.0x18003c13f.527
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x3c450]
mov ecx, dword [rdx + rax*4 + 0x3c434]
add rcx, rdx
jmp rcx
xor ebx, ebx
cmp edi, 0x2a3
mov eax, ebx
setne al
inc eax
cmp dword [rsi + 0x10], eax
jne case.0x18003c13f.527
cmp qword [rsi + 8], r13
jne 0x18003c163
mov qword [rsi + 8], rbx
movss xmm1, dword [0x18006793c]
mov rcx, r15
movaps xmm2, xmm1
mov dword [rsi + 0x10], ebx
call fcn.18000b720
jmp case.0x18003c13f.527
call fcn.18003aa10
xor ebx, ebx
mov dword [rbp - 0x49], eax
cmp edi, 0x204
je 0x18003c19b
mov r12d, ebx
cmp edi, 0x206
jne 0x18003c1a1
mov r12d, 1
lea ecx, [rdi - 0x207]
mov r14d, 2
test ecx, 0xfffffffd
lea eax, [rdi - 0x20b]
cmove r12d, r14d
test eax, 0xfffffffd
jne 0x18003c1d7
mov rax, qword [rbp - 9]
shr rax, 0x10
cmp ax, 1
setne bl
lea r12d, [rbx + 3]
cmp dword [rsi + 0x14], 0
jne 0x18003c1f1
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x18003c1f1
mov rcx, r13
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [rsi + 0x14]
mov rcx, r15
mov edx, dword [rbp - 0x49]
bts eax, r12d
mov dword [rsi + 0x14], eax
call fcn.18000b860
mov r8b, 1
mov edx, r12d
mov rcx, r15
call fcn.18000b550
jmp case.0x18003c13f.527
call fcn.18003aa10
xor ebx, ebx
mov r12d, eax
cmp edi, 0x205
mov r14d, ebx
sete r14b
cmp edi, 0x208
jne 0x18003c240
mov r14d, 2
jmp 0x18003c25f
cmp edi, 0x20c
jne 0x18003c25f
mov rax, qword [rbp - 9]
mov r14d, ebx
shr rax, 0x10
cmp ax, 1
setne r14b
add r14d, 3
mov eax, dword [rsi + 0x14]
btr eax, r14d
mov dword [rsi + 0x14], eax
test eax, eax
jne 0x18003c27e
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r13
jne 0x18003c27e
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, r12d
mov rcx, r15
call fcn.18000b860
xor r8d, r8d
mov edx, r14d
mov rcx, r15
call fcn.18000b550
jmp case.0x18003c13f.527
mov rax, qword [rbp - 9]
xorps xmm1, xmm1
shr rax, 0x10
mov rcx, r15
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x180064c00]
call fcn.18000b870
jmp case.0x18003c13f.527
mov rax, qword [rbp - 9]
xorps xmm2, xmm2
shr rax, 0x10
mov rcx, r15
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x180067990]
divss xmm1, dword [0x180064c00]
call fcn.18000b870
jmp case.0x18003c13f.527
cmp dword [rbp - 9], 7
jne case.0x18003c13f.527
mov byte [rsi + 0x31], 1
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.180061980
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret