Function at 0x44fad0
Capabilities:
Hide graphical window
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53dfe8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x44fbd9
call fcn.00462840
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
test eax, eax
je 0x44fbd9
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x24], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.need_reboot
mov dword [ebp - 4], 0
call fcn.004346a0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00430840
push 0
push 0x559d4c
push 0x559d58
push 4
push 0x559d64
push dword [edi + 4]
call fcn.0045fe10
cmp eax, 6
jne 0x44fbd9
lea eax, [ebp - 0x28]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x44fd2b
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44fd2b
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x44fd2b
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0044e970
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44fc04
call fcn.0044e970
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
mov ecx, edi
call fcn.0044f660
mov eax, dword [edi + 0x6c]
sub eax, 1
je 0x44fc40
sub eax, 2
jne 0x44fc74
cmp esi, 1
je 0x44fc74
push eax
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x24], esp
mov dword [eax + 0x24], 0
push 1
push 0
mov dword [ebp - 4], 2
push str.finish_close
jmp 0x44fc61
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x24], esp
mov dword [eax + 0x24], 0
push 0
push 0
mov dword [ebp - 4], 1
push str.startpage_close
call fcn.004346a0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00430840
call fcn.00444a80
mov ecx, eax
call fcn.0043fc60
mov esi, dword [eax]
call fcn.00462840
xor ecx, ecx
test esi, esi
setne cl
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x38]
call fcn.00462840
push eax
mov ecx, dword [eax]
call dword [ecx + 0x94]
call fcn.00444a80
mov ecx, eax
call fcn.0043fca0
cmp dword [eax], 0
jne 0x44fcf8
call fcn.00444a80
mov ecx, eax
call fcn.0043fe80
test eax, eax
jne 0x44fcf8
call fcn.00462840
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
je 0x44fcf8
lea ecx, [edi + 0x70]
call fcn.004554b0
test eax, eax
jne 0x44fd2b
push str.close_mainpage_2
call fcn.0044d190
add esp, 4
mov ecx, 0x5a10b8
call fcn.00416940
jmp 0x44fd23
push str.close_mainpage_1
call fcn.0044d190
add esp, 4
mov ecx, 0x5a10b8
call fcn.00416940
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 4