Function at 0x100c6457
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10166986
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [0x10219a01], 2
je 0x100c649d
push esi
mov edx, 0x101b3f98
mov ecx, 0x1020f970
call fcn.1005122c
xor ebx, ebx
mov edi, 0x10210270
cmp dword [esi + 0x5c], ebx
je 0x100c64b8
mov eax, dword [0x10210270]
mov ecx, edi
push 0x3d415f
call dword [eax + 4]
cmp byte [esi + 0x15b], bl
je 0x100c64cf
mov eax, dword [0x10210270]
mov ecx, edi
push 0x3d4160
call dword [eax + 4]
mov byte [esi + 0x15b], bl
cmp dword [esi + 0x38], ebx
je 0x100c64e9
mov eax, dword [0x10210270]
mov ecx, edi
push 0x3d4161
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x30
pop edi
push edi
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x64], 0x100c7cc2
mov dword [ebp - 0x44], str.OfficePowerManagerWindow
push eax
call fcn.100ca21c
test ax, ax
jne 0x100c652c
mov ebx, 0x80004005
jmp 0x100c68e5
xor eax, eax
inc eax
push ebx
mov byte [esi + 0x158], al
call dword [sym.imp.IMM32.dll_ImmDisableIME]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c6548
call edi
mov ecx, 0x101b0e70
call fcn.1000503d
mov ecx, 0x2710
mov dword [esi + 0x274], eax
cmp eax, ecx
jae 0x100c6567
mov dword [esi + 0x274], ecx
mov ecx, 0x101b06c0
call fcn.1000503d
mov ecx, 0x101b0640
mov dword [esi + 0x270], eax
call fcn.1000503d
mov ecx, 0x101b0e30
mov dword [esi + 0x278], eax
call fcn.1000503d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x8000000
mov dword [esi + 0x27c], eax
mov eax, str.OfficePowerManagerWindow
push eax
push eax
push ebx
call fcn.100ca15e
mov dword [esi + 0x5c], eax
test eax, eax
je 0x100c6522
mov ecx, 0x101b0df0
call fcn.1000503d
mov ecx, 0x101af0f0
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x1b4], ebx
call fcn.1000503d
push 2
pop ecx
push 6
mov word [ebp - 0x32], cx
xor edx, edx
pop ecx
push 0xd
mov word [ebp - 0x26], cx
inc edx
pop ecx
mov dword [esi + 0x1a8], eax
mov eax, dword [esi + 0x5c]
push 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
mov word [ebp - 0x1c], cx
xor ecx, ecx
push 3
push eax
mov dword [esi + 0x1ac], ebx
mov word [ebp - 0x34], dx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x28], dx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x1a], cx
mov dword [ebp - 0x18], 0x20
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
je 0x100c6522
mov ecx, dword [esi + 0x1b4]
mov eax, dword [esi + 0x1b0]
cmp ecx, ebx
jg 0x100c6913
jl 0x100c6913
cmp eax, 0xffffffff
ja 0x100c6913
cmp ecx, ebx
jl 0x100c6913
jg 0x100c6672
cmp eax, ebx
jb 0x100c6913
cmp byte [esi + 0x15c], bl
mov edx, 0x105
push ecx
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 5
pop eax
cmove edx, eax
mov dword [ebp - 0x38], 0xfff
call fcn.100dfe53
pop ecx
pop ecx
test eax, eax
jne 0x100c66b2
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x3d4185
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0xffffffffffffffeb
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
jne 0x100c66d3
call edi
test eax, eax
jne 0x100c6522
cmp byte [esi + 0x15c], bl
lea eax, [ebp - 0x3c]
push ecx
mov ecx, dword [esi + 0x5c]
mov edx, 0x107
push eax
push 7
pop eax
cmove edx, eax
mov dword [ebp - 0x3c], 0x1388
mov dword [ebp - 0x38], 0x2710
call fcn.100dfe53
pop ecx
pop ecx
test eax, eax
jne 0x100c671e
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x3d4187
call dword [eax + 4]
mov ecx, esi
call fcn.100c6968
push esi
push dword [esi + 0x58]
lea ecx, [ebp - 0x24]
call fcn.100c9770
cmp dword [esi + 0x60], ebx
je 0x100c6754
cmp dword [esi + 0x64], ebx
je 0x100c6754
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.100c80a3
mov eax, dword [ebp - 0x24]
shr eax, 0xb
not al
and eax, 1
push dword [esi + eax*4 + 0x60]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
mov byte [esi + 0x159], al
mov byte [esi + 0x15a], al
call fcn.100c9891
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov ecx, dword [esi + 0x1b8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x100c6791
push ecx
mov dword [esi + 0x1b8], ebx
call edi
mov eax, dword [ebp - 0x38]
push 1
mov dword [esi + 0x1b8], eax
call dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov ecx, eax
mov eax, dword [esi + 0x1bc]
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x100c67ba
push eax
mov dword [esi + 0x1bc], ebx
call edi
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x1bc], ecx
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x100c67ce
test ecx, ecx
jne 0x100c67e6
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x3d4188
call dword [eax + 4]
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x100c6898
cmp dword [esi + 0x1bc], ebx
je 0x100c688f
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
test eax, eax
je 0x100c6816
push esi
push dword [esi + 0x58]
mov ecx, eax
call fcn.100c5676
mov edi, eax
jmp 0x100c6818
mov edi, ebx
test edi, edi
jne 0x100c685c
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x3d4189
call dword [eax + 4]
mov eax, dword [esi + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jne 0x100c684d
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x3d418a
call dword [eax + 4]
test edi, edi
je 0x100c68ab
lea eax, [edi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100c68ab
mov edx, dword [esi + 0x58]
lea eax, [esi + 0x1c0]
push eax
lea eax, [edi + 8]
push eax
mov ecx, dword [edx]
push 0x2101
push edx
call dword [ecx + 0x14]
test eax, eax
js 0x100c682e
mov ecx, dword [esi + 0x1c0]
push 0xffffffffffffffff
push dword [esi + 0x1b8]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x6c]
jmp 0x100c684d
push eax
mov dword [esi + 0x1b8], ebx
call edi
mov eax, dword [esi + 0x1bc]
test eax, eax
je 0x100c68ab
push eax
mov dword [esi + 0x1bc], ebx
call edi
push dword [0x1021a310]
push ebx
push 0x100c632d
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x694], eax
test eax, eax
jne 0x100c68e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c68e5
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x3d418b
call dword [eax + 4]
cmp byte [esi + 0x15a], 0
jne 0x100c68f5
mov ecx, esi
call fcn.100c6037
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100042bb
mov esp, ebp
pop ebp
ret
call fcn.1001288b
int3