Function at 0x416f3a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x36c
push ebx
push esi
push edi
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call fcn.004171c9
lea ecx, [esp + 0xc0]
call fcn.0043f6e2
lea ecx, [esp + 0xc0]
call fcn.0043f722
test eax, eax
je 0x416fb2
lea eax, [esp + 0xc0]
push eax
mov ecx, 0x498af0
call fcn.0043f8ad
test eax, eax
jne 0x416fa0
push str.wWinMain_63__:_g_CrashHandler.SetOptions____FALSE_n
call fcn.00416f04
pop ecx
lea eax, [esp + 0xc0]
push eax
mov ecx, 0x498be8
call fcn.00435380
lea esi, [esp + 0x20]
call fcn.00402184
xor ebx, ebx
push 1
mov dword [esp + 0x24], 0x47c0bc
mov dword [esp + 0x28], 0x47c0cc
mov byte [esp + 0xb8], bl
mov dword [esp + 0xbc], 0xc8
mov dword [esp + 0xc0], 0x493e0
call fcn.0042c549
pop ecx
push dword [esp + 0xbc]
test al, al
push dword [esp + 0xbc]
setne byte [esp + 0xbc]
movzx eax, byte [esp + 0xbc]
push eax
push str.BB::CProcessStartupPriorityMgr::CConfiguration::Initialize_1285__:_CConfiguration:_Enabled____i___Retry_frequency____lu__Retry_timeout____lu
call fcn.00416edc
add esp, 0x10
push 4
pop esi
lea edi, [esp + 0x20]
call fcn.00402344
test al, al
je 0x417094
push 5
pop esi
call fcn.00402344
test al, al
je 0x417094
xor esi, esi
inc esi
call fcn.00402344
test al, al
je 0x417094
cmp byte [esp + 0xb4], bl
jne 0x41705e
push str.BB::CProcessStartupPriorityMgr::Start_1161__:__m_cfg.GetEnabled__
call fcn.00416edc
pop ecx
jmp 0x417081
push dword [esp + 0xbc]
push dword [esp + 0xbc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00401ad9
test al, al
je 0x41708d
push str.Started_priority_manager_
call fcn.00416edc
jmp 0x41709e
push str.wWinMain_88__:_Unable_to_manage_process_startup_priority_levels.
jmp 0x417099
push str.wWinMain_93__:_Unable_to_populate_priority_setters.
call fcn.00416f04
pop ecx
lea ecx, [esp + 0x14]
call fcn.00440f3b
push 1
call fcn.00440f4f
mov esi, eax
cmp esi, ebx
pop ecx
jge 0x4170da
push esi
push str.wWinMain_102__:_failed_to_coinitialize__0x_08x_
call fcn.00416f04
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.00441123
lea ecx, [esp + 0x20]
call fcn.004023ae
jmp 0x4171b2
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x4170fc
push eax
push str.wWinMain_111__:_CoInitializeSecurity_____S_OK__0x_08X
call fcn.00416f04
pop ecx
pop ecx
lea edi, [esp + 0x1b0]
call fcn.0040d3b2
lea eax, [esp + 0xf]
push eax
mov ecx, edi
mov byte [esp + 0x13], bl
call fcn.0040d614
mov esi, eax
cmp byte [esp + 0xf], bl
jne 0x417130
cmp esi, 0x80070669
je 0x417130
cmp esi, 0x47c04
jne 0x41716a
lea ecx, [esp + 0x158]
call fcn.0043a2bc
push str.SeShutdownPrivilege
lea ecx, [esp + 0x15c]
call fcn.0043a705
test al, al
je 0x41715e
push 0x30002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 0x158]
call fcn.0043a474
lea ecx, [esp + 0x1b0]
call fcn.0040d52b
lea ecx, [esp + 0x14]
call fcn.00441123
lea ecx, [esp + 0x20]
call fcn.004023ae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esp + 0x10]
push ecx
push eax
push dword [esp + 0x18]
push str.Start:__lu__End:__lu__Total:__lu
call fcn.00416edc
push esi
push str.MiniStub:_Returned__0x_08x_
call fcn.00416edc
add esp, 0x18
lea ecx, [esp + 0xc0]
call fcn.0043f10a
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10