Function at 0x49f7a0
Capabilities:
Delete directory
Get common file path
Get program files directory
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1638
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x1634], eax
push esi
push edi
mov esi, ecx
call fcn.0055fc29
cmp dword [esi + 0x110], 0
jne 0x49f7ee
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x49f7ee
push dword [0x6183ec]
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x800
lea eax, [esp + 0x63c]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [esp + 0xe48]
push 0
push eax
call fcn.00571c00
mov ecx, dword [esi + 0xd0]
add esp, 0x18
test ecx, ecx
je 0x49f88d
mov ecx, dword [ecx + 0x1c]
lea eax, [esp + 0xe38]
push eax
push str.SILENTREBOOT
call fcn.004f65f0
cmp dword [esi + 0xe0], 0
je 0x49f870
push 0x5c797c
lea eax, [esp + 0xe3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49f870
mov ecx, dword [esi + 0xd0]
push 0x5c7da0
push str.RebootYesNo
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov ecx, dword [esi + 0xd0]
lea eax, [esp + 0x638]
push eax
push str.RebootYesNo
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
jmp 0x49f8a0
push 0x5c7d38
lea eax, [esp + 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
mov ecx, esi
call fcn.004a0230
mov eax, dword [esi + 0xec]
test eax, eax
je 0x49f8c4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xec], 0
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x49f8e9
mov eax, dword [eax + 0x30]
test eax, eax
je 0x49f8e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xd8]
mov dword [eax + 0x30], 0
mov ecx, esi
call fcn.0049fdf0
movzx eax, word [0x6183ec]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp eax, 8
je 0x49f94d
cmp eax, 0x64
je 0x49f94d
push 0x208
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.00571c00
call fcn.0052ee40
add esp, 8
lea eax, [esp + 0x22c]
push eax
call fcn.0052ef30
test eax, eax
jne 0x49f94d
lea eax, [esp + 0x228]
push eax
call edi
lea eax, [esp + 0x228]
mov ecx, esi
push eax
call fcn.004a0850
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [esp + 0x440]
push 0
push eax
call fcn.00571c00
add esp, 0x18
call fcn.0052ee40
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x49f9cb
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x49f9cb
mov eax, dword [esp + 8]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [esp + 0x20]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x20]
push str.Canon_
push eax
call esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.PrnUninstall_
lea eax, [esp + 0x434]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0x430]
push eax
call esi
lea eax, [esp + 0x20]
push eax
call esi
push 0x5c7da0
lea eax, [esp + 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49faa8
mov dword [esp + 8], eax
xorps xmm0, xmm0
lea eax, [esp + 8]
movaps xmmword [esp + 0x10], xmm0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49faa8
lea eax, [esp + 0x14]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x49faa8
push 0
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49faa8
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x49faee
test esi, esi
je 0x49fae4
mov edi, dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
je 0x49fade
push ecx
push edx
call edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov esi, dword [esi]
test esi, esi
jne 0x49fac0
mov dword [0x608f30], 0x608f30
mov ecx, dword [esp + 0x163c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret