Function at 0x1004fab0
Capabilities:
Hide graphical window
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013de88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1019bc84]
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 0x1004fbb9
call fcn.10062810
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
test eax, eax
je 0x1004fbb9
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.100346a0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.10030840
push 0
push 0x10159d5c
push 0x10159d68
push 4
push 0x10159d74
push dword [edi + 4]
call fcn.1005fde0
cmp eax, 6
jne 0x1004fbb9
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 0x1004fd0b
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 0x1004fd0b
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1004fd0b
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.1004e950
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004fbe4
call fcn.1004e950
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
mov ecx, edi
call fcn.1004f640
mov eax, dword [edi + 0x6c]
sub eax, 1
je 0x1004fc20
sub eax, 2
jne 0x1004fc54
cmp esi, 1
je 0x1004fc54
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 0x1004fc41
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.100346a0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.10030840
call fcn.10044a80
mov ecx, eax
call fcn.1003fc60
mov esi, dword [eax]
call fcn.10062810
xor ecx, ecx
test esi, esi
setne cl
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x38]
call fcn.10062810
push eax
mov ecx, dword [eax]
call dword [ecx + 0x94]
call fcn.10044a80
mov ecx, eax
call fcn.1003fca0
cmp dword [eax], 0
jne 0x1004fcd8
call fcn.10044a80
mov ecx, eax
call fcn.1003fe80
test eax, eax
jne 0x1004fcd8
call fcn.10062810
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
je 0x1004fcd8
lea ecx, [edi + 0x70]
call fcn.10055480
test eax, eax
jne 0x1004fd0b
push str.close_mainpage_2
call fcn.1004d170
add esp, 4
mov ecx, 0x101a10b8
call fcn.10016940
jmp 0x1004fd03
push str.close_mainpage_1
call fcn.1004d170
add esp, 4
mov ecx, 0x101a10b8
call fcn.10016940
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.1009de58
mov esp, ebp
pop ebp
ret 4