Function at 0x140133da4
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 [0x1403bf028]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov r13d, 2
test byte [0x1403d6fc1], r13b
je 0x140133e06
mov r8, rcx
lea rdx, [0x1402e3b18]
lea rcx, [0x1403bfeb0]
call fcn.14009cfd4
nop
lea r12, str.x___
xor r15d, r15d
cmp qword [rbx + 0xa8], r15
je 0x140133e32
mov rax, qword [str.x___]
mov edx, 0x3d415f
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.0]
nop
cmp byte [rbx + 0x193], r15b
je 0x140133e54
mov rax, qword [str.x___]
mov edx, 0x3d4160
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.0]
nop
mov byte [rbx + 0x193], r15b
cmp dword [rbx + 0x60], r15d
je 0x140133e7a
mov rax, qword [str.x___]
mov edx, 0x3d4161
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.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 fcn.140238d40
mov dword [rbp - 0x59], edi
lea rax, [0x140135800]
mov qword [rbp - 0x51], rax
lea rax, str.OfficePowerManagerWindow
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x59]
call fcn.14013867c
test ax, ax
jne 0x140133ec7
mov edi, 0x80004005
jmp 0x140134302
mov r14d, 1
mov byte [rbx + 0x190], r14b
xor ecx, ecx
call qword [sym.imp.IMM32.dll_ImmDisableIME]
test eax, eax
jne 0x140133ee7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, str.DiscardableCacheTimerInterval
call fcn.14008d270
mov dword [rbx + 0x2fc], eax
mov esi, 0x2710
cmp eax, esi
jae 0x140133f08
mov dword [rbx + 0x2fc], esi
lea rcx, str.DiscardableCacheDefaultTimeoutMilliseconds
call fcn.14008d270
mov dword [rbx + 0x2f8], eax
lea rcx, str.DiscardableCacheDisableCallbacks
call fcn.14008d270
mov dword [rbx + 0x300], eax
lea rcx, str.DiscardableCacheDontQueueCallbacks
call fcn.14008d270
mov dword [rbx + 0x304], eax
call fcn.14009d130
mov qword [rbx + 0xa8], rax
test rax, rax
je 0x140133ebd
lea rcx, str.AppUserIdleTimerInterval
call fcn.14008d270
mov eax, eax
mov qword [rbx + 0x1e8], rax
lea rcx, str.AppUserIdleResetInterval
call fcn.14008d270
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 0x140133ebd
mov rax, qword [rbx + 0x1e8]
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140134343
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.14010ed88
test rax, rax
jne 0x14013402e
mov rax, qword [str.x___]
mov edx, 0x3d4185
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.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 0x14013405e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140133ebd
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.14010ed88
test rax, rax
jne 0x1401340b3
mov rax, qword [str.x___]
mov edx, 0x3d4187
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.0]
mov rcx, rbx
call fcn.14013438c
nop
mov r8, rbx
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbp - 9]
call fcn.1401375f4
cmp qword [rbx + 0xb0], r15
je 0x1401340fe
cmp qword [rbx + 0xb8], r15
je 0x1401340fe
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.140135bec
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.1401376dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov rsi, rax
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x140134135
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 0x140134162
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 0x14013417a
test rsi, rsi
jne 0x140134199
mov rax, qword [str.x___]
mov edx, 0x3d4188
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.0]
mov rcx, qword [rbx + 0x1f0]
test rcx, rcx
je 0x14013429e
cmp qword [rbx + 0x1f8], r15
je 0x140134290
mov ecx, 0x28
call fcn.140261ad4
test rax, rax
je 0x1401341d5
mov r8, rbx
mov rdx, qword [rbx + 0xa0]
mov rcx, rax
call fcn.140132db0
mov rsi, rax
jmp 0x1401341d8
mov rsi, r15
test rsi, rsi
jne 0x140134243
mov rax, qword [str.x___]
mov edx, 0x3d4189
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.0]
nop
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [case.0x140118f85.0]
test eax, eax
jne 0x140134227
mov rax, qword [str.x___]
mov edx, 0x3d418a
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.0]
nop
test rsi, rsi
je 0x1401342b8
lea rcx, [rsi + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140118f85.0]
jmp 0x1401342b8
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.0x140118f85.0]
test eax, eax
js 0x1401341f6
mov rcx, qword [r14]
mov rax, qword [rcx]
mov r8d, 0xffffffff
mov rdx, qword [rbx + 0x1f0]
mov rax, qword [rax + 0xd8]
call qword [case.0x140118f85.0]
jmp 0x140134227
mov qword [rbx + 0x1f0], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x1f8]
test rcx, rcx
je 0x1401342b8
mov qword [rbx + 0x1f8], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r9d, dword [0x1403d6c18]
xor r8d, r8d
lea rdx, [0x140133bf0]
lea ecx, [r8 + 5]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 0x720], rax
test rax, rax
jne 0x140134302
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140134302
mov rax, qword [str.x___]
mov edx, 0x3d418b
mov rcx, r12
mov rax, qword [rax]
call qword [case.0x140118f85.0]
nop
cmp byte [rbx + 0x192], r15b
jne 0x140134314
mov rcx, rbx
call fcn.140133828
nop
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402361b0
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.14000f62c
nop
jmp 0x14013434b
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 0x140134383
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140118f85.0]
and qword [rbx + 0x218], 0
add rsp, 0x30
pop rbx
ret