Function at 0x4a8910
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4a8918
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cf4
mov eax, dword [ebp - 8]
call fcn.00404cf4
mov edi, 0x4b63fc
xor eax, eax
push ebp
push 0x4a8e32
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4a895d
call fcn.004ad9e8
call fcn.004ad5d8
test al, al
jne 0x4a8974
call fcn.004ad594
test al, al
je 0x4a8980
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e7c8
lea eax, [ebp - 0x18]
call fcn.004a83ac
push 0x4b7ba0
mov eax, dword [0x4b7ba0]
call fcn.00404b04
mov ecx, eax
mov edx, 6
mov eax, dword [0x4b7ba0]
call fcn.00404d64
mov eax, dword [0x4b7ba0]
call fcn.00408e34
mov dword [0x4b7b78], eax
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e530
lea edx, [ebp - 0x20]
mov eax, dword [edi]
mov eax, dword [eax + 0x37c]
call fcn.0043ef88
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004088f8
push dword [ebp - 0x1c]
push 0x4a8e4c
lea edx, [ebp - 0x24]
mov eax, dword [0x4b7b78]
call fcn.00408cc8
push dword [ebp - 0x24]
push 0x4a8e4c
call fcn.0040a784
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x28]
mov eax, 0x4a8e58
call fcn.0040b3e8
push dword [ebp - 0x28]
push 0x4a8e4c
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00404bc4
push dword [ebp - 0x10]
push dword [0x4b7b8c]
push 0x4a8e4c
push dword [0x4b7b90]
push 0x4a8e4c
push 0x4a8e74
push 0x4a8e4c
push dword [ebp - 0x18]
push 0x4a8e4c
push dword [ebp - 4]
push 0x4a8e80
push dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edx, 0xc
call fcn.00404bc4
lea eax, [ebp - 0x2c]
call fcn.004acf48
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
call fcn.004086a8
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004788bc
push dword [0x4b7b88]
push 0x4a8e90
push dword [ebp - 0x14]
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404bc4
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e530
xor edx, edx
push ebp
push 0x4a8b05
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x413318]
call fcn.00418060
mov ebx, eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x474eec]
call fcn.004753d4
mov esi, eax
mov dword [esi + 0x9c], 0x2710
mov ecx, ebx
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004754fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a8b27
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e530
mov edx, dword [ebx + 4]
mov eax, 0x4a8eac
call fcn.00404e48
test eax, eax
jle 0x4a8b59
mov eax, esi
call fcn.00403a70
mov eax, ebx
call fcn.00403a70
xor ebx, ebx
jmp 0x4a8e02
jmp 0x4a8b69
mov eax, dword [0x4b7bf4]
mov dword [0x4b7bfc], eax
mov eax, dword [0x4b7bf8]
mov dword [0x4b7c00], eax
mov edx, dword [ebx + 4]
mov eax, 0x4a8ebc
call fcn.00404e48
test eax, eax
jle 0x4a8baf
mov eax, esi
call fcn.00403a70
mov eax, ebx
call fcn.00403a70
mov eax, 0x4a8ed0
call fcn.0042a21c
call fcn.004046d0
mov edx, dword [ebx + 4]
mov eax, 0x4a8ef0
call fcn.00404e48
test eax, eax
jle 0x4a8be9
mov eax, esi
call fcn.00403a70
mov eax, ebx
call fcn.00403a70
mov eax, 0x4a8f00
call fcn.0042a21c
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e7c8
call fcn.004ad624
mov edx, dword [ebx + 4]
mov eax, 0x4a8f1c
call fcn.00404e48
test eax, eax
jle 0x4a8c20
mov dl, 1
mov eax, 0x4a8f2c
call fcn.004ad484
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e7c8
call fcn.004ad624
mov edx, dword [ebx + 4]
mov eax, 0x4a8f48
call fcn.00404e48
test eax, eax
jle 0x4a8c97
mov eax, dword [edi]
mov eax, dword [eax + 0x380]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4a8c62
mov eax, esi
call fcn.00403a70
mov eax, ebx
call fcn.00403a70
mov eax, 0x4a8f5c
call fcn.0042a21c
call fcn.004046d0
mov eax, dword [edi]
mov eax, dword [eax + 0x384]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4a8c97
mov dl, 1
mov eax, 0x4a8f2c
call fcn.004ad484
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e7c8
mov eax, dword [edi]
mov eax, dword [eax + 0x38c]
xor edx, edx
call fcn.0043efb8
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebx + 4]
mov eax, 0x4a8e4c
call fcn.00404e48
mov ecx, eax
dec ecx
mov eax, dword [ebx + 4]
mov edx, 1
call fcn.00404d64
mov edx, dword [ebp - 0x30]
mov eax, dword [edi]
mov eax, dword [eax + 0x388]
call fcn.0043efb8
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebx + 4]
mov eax, 0x4a8f74
call fcn.00404e48
mov esi, eax
mov edx, dword [ebx + 4]
mov eax, 0x4a8e4c
call fcn.00404e48
sub esi, eax
dec esi
push esi
mov edx, dword [ebx + 4]
mov eax, 0x4a8e4c
call fcn.00404e48
mov edx, eax
inc edx
mov eax, dword [ebx + 4]
pop ecx
call fcn.00404d64
mov edx, dword [ebp - 0x34]
mov eax, dword [edi]
mov eax, dword [eax + 0x390]
call fcn.0043efb8
lea eax, [ebp - 0x38]
push eax
mov edx, dword [ebx + 4]
mov eax, 0x4a8f80
call fcn.00404e48
mov esi, eax
mov edx, dword [ebx + 4]
mov eax, 0x4a8f74
call fcn.00404e48
sub esi, eax
dec esi
push esi
mov edx, dword [ebx + 4]
mov eax, 0x4a8f74
call fcn.00404e48
mov edx, eax
inc edx
mov eax, dword [ebx + 4]
pop ecx
call fcn.00404d64
mov edx, dword [ebp - 0x38]
mov eax, dword [edi]
mov eax, dword [eax + 0x38c]
call fcn.0043efb8
push 0x4b7b98
mov edx, dword [ebx + 4]
mov eax, 0x4a8f8c
call fcn.00404e48
inc eax
push eax
mov eax, dword [ebx + 4]
call fcn.00404b04
mov ecx, eax
mov eax, dword [ebx + 4]
pop edx
call fcn.00404d64
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebx + 4]
mov eax, 0x4a8f8c
call fcn.00404e48
mov esi, eax
lea edx, [ebp - 0x40]
mov eax, dword [ebx + 4]
call fcn.004088f8
mov edx, dword [ebp - 0x40]
mov eax, 0x4a8f80
call fcn.00404e48
sub esi, eax
sub esi, 2
push esi
mov edx, dword [ebx + 4]
mov eax, 0x4a8f80
call fcn.00404e48
mov edx, eax
add edx, 2
mov eax, dword [ebx + 4]
pop ecx
call fcn.00404d64
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi]
mov eax, dword [eax + 0x3cc]
call fcn.0043efb8
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e530
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8e39
lea eax, [ebp - 0x40]
mov edx, 8
call fcn.00404868
lea eax, [ebp - 0x20]
call fcn.00404844
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404868
ret