Function at 0x140108734
Capabilities:
Register raw input devices

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401cd010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov r12d, 2
test byte [0x1401d3cc1], r12b
je 0x140108796
mov r8, rcx
lea rdx, [0x14015f878]
lea rcx, [0x1401cd310]
call fcn.14007bb58
nop
xor r15d, r15d
cmp qword [rbx + 0xa8], r15
je 0x1401087bc
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d415f
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
cmp byte [rbx + 0x193], r15b
je 0x1401087df
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d4160
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
mov byte [rbx + 0x193], r15b
cmp dword [rbx + 0x60], r15d
je 0x140108806
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d4161
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x60], eax
mov edi, 0x50
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x59], edi
lea rax, [0x14010a0f0]
mov qword [rbp - 0x51], rax
lea rax, str.OfficePowerManagerWindow
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x59]
call fcn.14010cf6c
test ax, ax
jne 0x140108853
mov edi, 0x80004005
jmp 0x140108cb4
mov r14d, 1
mov byte [rbx + 0x190], r14b
xor ecx, ecx
call qword [sym.imp.IMM32.dll_ImmDisableIME]
test eax, eax
jne 0x140108873
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, str.DiscardableCacheTimerInterval
call fcn.140012470
mov dword [rbx + 0x2fc], eax
mov esi, 0x2710
cmp eax, esi
jae 0x140108894
mov dword [rbx + 0x2fc], esi
lea rcx, str.DiscardableCacheDefaultTimeoutMilliseconds
call fcn.140012470
mov dword [rbx + 0x2f8], eax
lea rcx, str.DiscardableCacheDisableCallbacks
call fcn.140012470
nop dword [rax]
nop word [rax + rax]
mov dword [rbx + 0x300], eax
lea rcx, str.DiscardableCacheDontQueueCallbacks
call fcn.140012470
mov dword [rbx + 0x304], eax
call fcn.14007bd04
mov qword [rbx + 0xa8], rax
test rax, rax
je 0x140108849
nop dword [rax]
lea rcx, str.AppUserIdleTimerInterval
call fcn.140012470
mov eax, eax
mov qword [rbx + 0x1e8], rax
lea rcx, str.AppUserIdleResetInterval
call fcn.140012470
mov eax, eax
mov qword [rbx + 0x1e0], rax
mov rax, qword [rbx + 0xa8]
mov qword [rbp - 9], 0x20001
mov qword [rbp - 1], rax
mov qword [rbp + 7], 0x60001
mov qword [rbp + 0xf], rax
mov dword [rbp + 0x17], 0xd
mov dword [rbp + 0x1b], 0x20
mov qword [rbp + 0x1f], rax
mov edx, 3
lea r8d, [rdx + 0xd]
lea rcx, [rbp - 9]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
nop
test eax, eax
je 0x140108849
mov rax, qword [rbx + 0x1e8]
mov r13d, 0xffffffff
cmp rax, r13
ja 0x140108cf5
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x65], 0xfff
mov al, byte [rbx + 0x194]
neg al
sbb rdx, rdx
mov r12d, 0x100
and rdx, r12
add rdx, 5
lea r8, [rbp - 0x69]
mov rcx, qword [rbx + 0xa8]
call fcn.1400e82e0
test rax, rax
jne 0x1401089cf
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d4185
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, rbx
mov edx, 0xffffffeb
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
test rax, rax
jne 0x1401089ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140108849
mov edi, r15d
mov dword [rbp - 0x69], 0x1388
mov dword [rbp - 0x65], esi
mov al, byte [rbx + 0x194]
neg al
sbb rdx, rdx
and rdx, r12
add rdx, 7
lea r8, [rbp - 0x69]
mov rcx, qword [rbx + 0xa8]
call fcn.1400e82e0
test rax, rax
jne 0x140108a55
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d4187
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
mov rcx, rbx
call fcn.140108d3c
nop
mov r8, rbx
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbp - 9]
call fcn.14010bea4
cmp qword [rbx + 0xb0], r15
je 0x140108aa0
cmp qword [rbx + 0xb8], r15
je 0x140108aa0
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.14010a4d0
mov ecx, dword [rbp - 9]
shr ecx, 0xb
not cl
and rcx, r14
mov rcx, qword [rbx + rcx*8 + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov word [rbx + 0x191], 0x101
lea rcx, [rbp - 9]
call fcn.14010bf90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov rsi, rax
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x140108ad7
mov qword [rbx + 0x1f0], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x1f0], rsi
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov rsi, rax
mov rcx, qword [rbx + 0x1f8]
test rcx, rcx
je 0x140108b10
mov qword [rbx + 0x1f8], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop dword [rax]
nop dword [rax + rax]
mov qword [rbx + 0x1f8], rsi
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x140108b28
test rsi, rsi
jne 0x140108b48
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d4188
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x140108c4f
cmp qword [rbx + 0x1f8], r15
je 0x140108c41
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140108b87
nop
mov r8, rbx
mov rdx, qword [rbx + 0xa0]
mov rcx, rax
call fcn.140107750
mov rsi, rax
jmp 0x140108b8a
mov rsi, r15
test rsi, rsi
jne 0x140108bf7
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d4189
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [case.0x1400ee2b6.0]
test eax, eax
jne 0x140108bdb
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d418a
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
test rsi, rsi
je 0x140108c69
lea rcx, [rsi + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ee2b6.0]
jmp 0x140108c69
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea r14, [rbx + 0x200]
lea r8, [rsi + 0x10]
mov r9, r14
mov edx, 0x2101
mov rax, qword [rax + 0x28]
call qword [case.0x1400ee2b6.0]
test eax, eax
js 0x140108ba9
mov rcx, qword [r14]
mov rax, qword [rcx]
mov r8d, r13d
mov rdx, qword [rbx + 0x1f0]
mov rax, qword [rax + 0xd8]
call qword [case.0x1400ee2b6.0]
jmp 0x140108bdb
mov qword [rbx + 0x1f0], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x1f8]
test rcx, rcx
je 0x140108c69
mov qword [rbx + 0x1f8], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r9d, dword [0x1401d3be0]
xor r8d, r8d
lea rdx, [0x140108580]
lea ecx, [r8 + 5]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 0x720], rax
test rax, rax
jne 0x140108cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140108cb4
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov edx, 0x3d418b
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
nop
cmp byte [rbx + 0x192], r15b
jne 0x140108cc6
mov rcx, rbx
call fcn.1401081c8
nop
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14012aa20
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140011f3c
nop
jmp 0x140108cfe
nop
nop
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 0x218]
test rcx, rcx
je 0x140108d33
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ee2b6.0]
and qword [rbx + 0x218], 0
add rsp, 0x30
pop rbx
ret