Function at 0x140035514
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 [0x140083010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov r13d, 2
test byte [0x140085901], r13b
je 0x140035576
mov r8, rcx
lea rdx, [0x140067d78]
lea rcx, [0x140083040]
call fcn.14001bdd0
nop
lea r12, [0x140083518]
xor r15d, r15d
cmp qword [rbx + 0xa8], r15
je 0x1400355a3
mov rax, qword [0x140083518]
mov edx, 0x3d415f
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
nop
cmp byte [rbx + 0x193], r15b
je 0x1400355c6
mov rax, qword [0x140083518]
mov edx, 0x3d4160
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
nop
mov byte [rbx + 0x193], r15b
cmp dword [rbx + 0x60], r15d
je 0x1400355ed
mov rax, qword [0x140083518]
mov edx, 0x3d4161
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.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, [0x140036f50]
mov qword [rbp - 0x51], rax
lea rdi, str.OfficePowerManagerWindow
mov qword [rbp - 0x19], rdi
lea rcx, [rbp - 0x59]
call fcn.140001f44
test ax, ax
jne 0x14003563a
mov edi, 0x80004005
jmp 0x140035aa8
mov r14d, 1
mov byte [rbx + 0x190], r14b
xor ecx, ecx
call qword [sym.imp.IMM32.dll_ImmDisableIME]
test eax, eax
jne 0x14003565a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, str.DiscardableCacheTimerInterval
call fcn.140033ff0
mov dword [rbx + 0x2fc], eax
mov esi, 0x2710
cmp eax, esi
jae 0x14003567b
mov dword [rbx + 0x2fc], esi
lea rcx, str.DiscardableCacheDefaultTimeoutMilliseconds
call fcn.140033ff0
mov dword [rbx + 0x2f8], eax
lea rcx, str.DiscardableCacheDisableCallbacks
call fcn.140033ff0
mov dword [rbx + 0x300], eax
lea rcx, str.DiscardableCacheDontQueueCallbacks
call fcn.140033ff0
mov dword [rbx + 0x304], eax
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9d, 0x8000000
mov r8, rdi
mov rdx, rdi
call fcn.140002000
mov qword [rbx + 0xa8], rax
test rax, rax
je 0x140035630
lea rcx, str.AppUserIdleTimerInterval
call fcn.140033ff0
mov eax, eax
mov qword [rbx + 0x1e8], rax
lea rcx, str.AppUserIdleResetInterval
call fcn.140033ff0
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]
test eax, eax
je 0x140035630
mov rax, qword [rbx + 0x1e8]
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140035ae9
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x65], 0xfff
mov al, byte [rbx + 0x194]
neg al
sbb rdx, rdx
mov r13d, 0x100
and rdx, r13
add rdx, 5
lea r8, [rbp - 0x69]
mov rcx, qword [rbx + 0xa8]
call fcn.1400583b8
test rax, rax
jne 0x1400357c7
mov rax, qword [0x140083518]
mov edx, 0x3d4185
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.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 0x1400357fe
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140035630
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, r13
add rdx, 7
lea r8, [rbp - 0x69]
mov rcx, qword [rbx + 0xa8]
call fcn.1400583b8
test rax, rax
jne 0x140035854
mov rax, qword [0x140083518]
mov edx, 0x3d4187
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
mov rcx, rbx
call fcn.140035b3c
nop
mov r8, rbx
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbp - 9]
call fcn.140038d54
cmp qword [rbx + 0xb0], r15
je 0x14003589f
cmp qword [rbx + 0xb8], r15
je 0x14003589f
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.140037340
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.140038e3c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov rsi, rax
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x1400358d6
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 0x140035903
mov qword [rbx + 0x1f8], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x1f8], rsi
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x14003591b
test rsi, rsi
jne 0x14003593b
mov rax, qword [0x140083518]
mov edx, 0x3d4188
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x140035a43
cmp qword [rbx + 0x1f8], r15
je 0x140035a35
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140035978
mov r8, rbx
mov rdx, qword [rbx + 0xa0]
mov rcx, rax
call fcn.140034510
mov rsi, rax
jmp 0x14003597b
mov rsi, r15
test rsi, rsi
jne 0x1400359e8
mov rax, qword [0x140083518]
mov edx, 0x3d4189
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
nop
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [case.0x140015ba5.0]
test eax, eax
jne 0x1400359cc
mov rax, qword [0x140083518]
mov edx, 0x3d418a
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
nop
test rsi, rsi
je 0x140035a5d
lea rcx, [rsi + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140015ba5.0]
jmp 0x140035a5d
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.0x140015ba5.0]
test eax, eax
js 0x14003599a
mov rcx, qword [r14]
mov rax, qword [rcx]
mov r8d, 0xffffffff
mov rdx, qword [rbx + 0x1f0]
mov rax, qword [rax + 0xd8]
call qword [case.0x140015ba5.0]
jmp 0x1400359cc
mov qword [rbx + 0x1f0], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x1f8]
test rcx, rcx
je 0x140035a5d
mov qword [rbx + 0x1f8], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r9d, dword [0x140085c18]
xor r8d, r8d
lea rdx, [0x140035360]
lea ecx, [r8 + 5]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 0x720], rax
test rax, rax
jne 0x140035aa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140035aa8
mov rax, qword [0x140083518]
mov edx, 0x3d418b
mov rcx, r12
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
nop
cmp byte [rbx + 0x192], r15b
jne 0x140035aba
mov rcx, rbx
call fcn.140034fa8
nop
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14005ccf0
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.14000c5dc
nop
jmp 0x140035af4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 0x218]
test rcx, rcx
je 0x140035b33
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140015ba5.0]
and qword [rbx + 0x218], 0
add rsp, 0x30
pop rbx
ret