Function at 0x47bd5d
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x60], eax
test dword [0x6e4d80], 0x200
push ebx
push esi
push edi
mov edi, ecx
je 0x47bd9a
push dword [0x6e4d6c]
mov edx, edi
mov ecx, 0x638340
push dword [0x6e4d68]
call fcn.00466396
xor ebx, ebx
mov esi, 0x6c8680
cmp dword [edi + 0x5c], ebx
je 0x47bdb5
mov eax, dword [0x6c8680]
mov ecx, esi
push 0x3d415f
call dword [eax + 4]
cmp byte [edi + 0x13b], bl
je 0x47bdcc
mov eax, dword [0x6c8680]
mov ecx, esi
push 0x3d4160
call dword [eax + 4]
mov byte [edi + 0x13b], bl
cmp dword [edi + 0x38], ebx
je 0x47bde6
mov eax, dword [0x6c8680]
mov ecx, esi
push 0x3d4161
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x30
pop esi
push esi
mov dword [edi + 0x38], eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00576720
add esp, 0xc
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0x47d2f8
mov dword [esp + 0x40], str.OfficePowerManagerWindow
call fcn.0047f33d
test ax, ax
jne 0x47be2d
mov ebx, 0x80004005
jmp 0x47c1bf
xor eax, eax
inc eax
push ebx
mov byte [edi + 0x138], al
call dword [sym.imp.IMM32.dll_ImmDisableIME]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47be49
call esi
mov ecx, 0x614110
call fcn.0040ff3e
mov ecx, 0x2710
cmp eax, ecx
cmovb eax, ecx
mov ecx, 0x613590
mov dword [edi + 0x254], eax
call fcn.0040ff3e
mov ecx, 0x613470
mov dword [edi + 0x250], eax
call fcn.0040ff3e
mov ecx, 0x614070
mov dword [edi + 0x258], eax
call fcn.0040ff3e
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x8000000
mov edx, str.OfficePowerManagerWindow
mov dword [edi + 0x25c], eax
push edx
xor ecx, ecx
call fcn.0046bfc2
mov dword [edi + 0x5c], eax
test eax, eax
je 0x47be23
mov ecx, 0x614000
call fcn.0040ff3e
lea ecx, [edi + 0x190]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov ecx, 0x614280
call fcn.0040ff3e
push 2
pop ecx
push 6
mov word [esp + 0x4e], cx
xor edx, edx
pop ecx
push 0xd
mov word [esp + 0x5a], cx
inc edx
pop ecx
mov dword [edi + 0x188], eax
mov eax, dword [edi + 0x5c]
push 0xc
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x4c]
mov word [esp + 0x64], cx
xor ecx, ecx
push 3
push eax
mov dword [edi + 0x18c], ebx
mov word [esp + 0x54], dx
mov dword [esp + 0x58], ebx
mov word [esp + 0x60], dx
mov dword [esp + 0x64], ebx
mov word [esp + 0x6e], cx
mov dword [esp + 0x70], 0x20
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
je 0x47be23
lea eax, [edi + 0x190]
push eax
lea ecx, [esp + 0x14]
call fcn.0047efd0
cmp byte [edi + 0x13c], bl
push 5
pop edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, 0x105
cmovne edx, eax
mov dword [esp + 0x14], 0xfff
push ecx
mov ecx, dword [edi + 0x5c]
lea eax, [esp + 0x14]
push eax
call fcn.0048ba6f
pop ecx
pop ecx
test eax, eax
jne 0x47bf9a
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3d4185
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0xffffffffffffffeb
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
jne 0x47bfbb
call esi
test eax, eax
jne 0x47be23
cmp byte [edi + 0x13c], bl
mov eax, 0x107
push 7
pop edx
cmovne edx, eax
mov dword [esp + 0x10], 0x1388
push ecx
mov ecx, dword [edi + 0x5c]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x2710
call fcn.0048ba6f
pop ecx
pop ecx
test eax, eax
jne 0x47c009
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3d4187
call dword [eax + 4]
mov ecx, edi
call fcn.0047c206
push edi
push dword [edi + 0x58]
lea ecx, [esp + 0x50]
call fcn.0047e9bf
cmp dword [edi + 0x60], ebx
je 0x47c045
lea esi, [edi + 0x64]
cmp dword [esi], ebx
je 0x47c045
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.0047d6a5
mov eax, dword [esp + 0x48]
shr eax, 0xb
test al, 1
lea eax, [edi + 0x60]
cmovne esi, eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
lea ecx, [esp + 0x48]
inc eax
mov byte [edi + 0x139], al
mov byte [edi + 0x13a], al
call fcn.0047ea4c
mov esi, dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
push ebx
call esi
push eax
lea ecx, [edi + 0x198]
call fcn.0040e869
xor edx, edx
inc edx
push edx
call esi
push eax
lea ecx, [edi + 0x19c]
call fcn.0040e869
lea esi, [edi + 0x198]
cmp dword [esi], ebx
je 0x47c098
lea eax, [edi + 0x19c]
cmp dword [eax], ebx
jne 0x47c0b0
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3d4188
call dword [eax + 4]
lea eax, [edi + 0x19c]
cmp dword [esi], ebx
je 0x47c161
cmp dword [eax], ebx
je 0x47c161
push 0x6cd6fe
push 0x14
call fcn.0056ef5f
pop ecx
pop ecx
test eax, eax
je 0x47c0e1
push edi
push dword [edi + 0x58]
mov ecx, eax
call fcn.0047b20d
mov esi, eax
jmp 0x47c0e3
mov esi, ebx
test esi, esi
jne 0x47c127
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3d4189
call dword [eax + 4]
mov eax, dword [edi + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jne 0x47c118
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3d418a
call dword [eax + 4]
test esi, esi
je 0x47c185
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x47c185
mov edx, dword [edi + 0x58]
lea eax, [edi + 0x1a0]
mov dword [esp + 0x10], eax
lea ecx, [esi + 8]
push dword [esp + 0x10]
mov eax, dword [edx]
push ecx
push 0x2101
push edx
call dword [eax + 0x14]
test eax, eax
js 0x47c0f9
mov eax, dword [edi + 0x1a0]
push 0xffffffffffffffff
push dword [edi + 0x198]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
jmp 0x47c118
mov eax, dword [esi]
test eax, eax
je 0x47c170
push eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x19c]
mov ecx, dword [eax]
test ecx, ecx
je 0x47c185
push ecx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x6e5348]
push ebx
push 0x47bc65
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [edi + 0x674], eax
test eax, eax
jne 0x47c1bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47c1bf
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3d418b
call dword [eax + 4]
cmp byte [edi + 0x13a], 0
jne 0x47c1cf
mov ecx, edi
call fcn.0047b99d
mov ecx, dword [esp + 0x6c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret