Function at 0x488600
Capabilities:
Shutdown system

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ba513
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x14]
push ebx
sub esp, 0xbc
push edi
push eax
push 0x28
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48893f
lea eax, [ebp - 0x80]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 1
push eax
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x78], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48893f
mov eax, dword [ebx + 8]
push 0x80020003
or eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x488902
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
test eax, eax
jns 0x4886c8
fadd qword [0x5f4758]
mov eax, dword [str.error]
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x38], eax
movzx eax, byte [0x5e7ec4]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 5
mov byte [ebp - 0x34], al
mov byte [ebp - 0x33], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc8]
call fcn.00447260
fld qword [ebp - 0x20]
mov dword [ebp - 0xb0], 0
fstp qword [ebp - 0x98]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x88]
push eax
push ecx
lea ecx, [ebp - 0x74]
call fcn.004456c0
push 0x20
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0044a110
mov ecx, dword [str.Restarting_windows_]
mov edx, eax
mov dword [ebp - 0x58], 0x15
mov dword [ebp - 0x54], 0x1f
mov dword [ebp - 0x68], edx
mov dword [edx], ecx
mov ecx, dword [0x5ebe04]
mov dword [edx + 4], ecx
mov ecx, dword [0x5ebe08]
mov dword [edx + 8], ecx
mov eax, dword [0x5ebe0c]
mov dword [edx + 0xc], eax
mov eax, dword [0x5ebe10]
mov dword [edx + 0x10], eax
movzx eax, byte [0x5ebe14]
mov byte [edx + 0x14], al
mov byte [edx + 0x15], 0
push 0x20
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0044a110
mov ecx, dword [str.restarting_windows]
mov edx, eax
mov dword [ebp - 0x40], 0x12
mov dword [ebp - 0x3c], 0x1f
mov dword [ebp - 0x50], edx
mov dword [edx], ecx
mov ecx, dword [0x5ebdf0]
mov dword [edx + 4], ecx
mov ecx, dword [0x5ebdf4]
mov dword [edx + 8], ecx
mov eax, dword [0x5ebdf8]
mov dword [edx + 0xc], eax
mov ax, word [0x5ebdfc]
mov word [edx + 0x10], ax
mov byte [edx + 0x12], 0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 4
push eax
push 0x38
push str.TranslateData.cpp
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x50]
mov ecx, 2
call fcn.004d4b60
mov byte [ebp - 4], 3
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x488865
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48885b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488953
push ecx
push edx
call fcn.00583877
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x48889d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x488893
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488953
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.00449240
push fcn.00438e00
push 1
push 0x40
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0
push eax
call fcn.00583d37
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x48893f
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4888e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488953
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
cmp dword [ebx + 8], 0
mov byte [edi + 0xc], 0
je 0x48893f
push 0x6d21f0
mov dword [ebp - 0x1c], 0x6d21f0
call fcn.00571f54
add esp, 4
test eax, eax
jne 0x488958
push 0x73
mov dword [ebp - 4], 5
call fcn.00453170
push 0x6d21f0
call fcn.00571f79
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00591c98
push eax
call fcn.00570e47
int3