Function at 0x4d4ae0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4d4ae8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d28
mov eax, dword [ebp - 8]
call fcn.00404d28
xor eax, eax
push ebp
push 0x4d52e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x4eac78], 1
mov byte [ebp - 9], 1
call fcn.004d0be4
test al, al
jne 0x4d4b36
call fcn.004d0b64
test al, al
je 0x4d4b42
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ccac
lea eax, [ebp - 0x2c]
call fcn.00404878
lea edx, [ebp - 0x30]
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046d1d0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
call fcn.0046f1b0
cmp dword [ebp - 0x28], 0
je 0x4d4b90
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x34]
mov eax, 6
call fcn.00409324
mov eax, dword [ebp - 0x34]
call fcn.00404d38
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404a70
mov eax, dword [ebp - 4]
mov edx, 0x4d52fc
call fcn.00404c84
jne 0x4d4bbf
lea ecx, [ebp - 0x38]
mov edx, dword [0x4eac80]
mov eax, 0x4d530c
call fcn.0046eecc
mov edx, dword [ebp - 0x38]
mov eax, 0x4eaca0
call fcn.004048cc
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ca14
lea edx, [ebp - 0x40]
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x43c]
call fcn.0044d070
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408e18
push dword [ebp - 0x3c]
push 0x4d5318
lea ecx, [ebp - 0x44]
mov edx, dword [0x4eac80]
mov eax, dword [0x4eaca0]
call fcn.0046f0b4
push dword [ebp - 0x44]
push 0x4d5318
call fcn.0040b278
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x48]
mov eax, 0x4d5324
call fcn.0040bef4
push dword [ebp - 0x48]
push 0x4d5318
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00404bf8
push dword [ebp - 0x14]
push dword [0x4eac80]
push 0x4d5318
push dword [0x4eac84]
push 0x4d5318
push 0x4d5340
push 0x4d5318
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
call fcn.004d0c94
push dword [ebp - 0x4c]
call fcn.004d0d2c
lea edx, [ebp - 0x50]
call fcn.004091e8
push dword [ebp - 0x50]
push 0x4d5318
push dword [ebp - 4]
push 0x4d534c
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 0xe
call fcn.00404bf8
lea eax, [ebp - 0x54]
call fcn.004d0744
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x18]
call fcn.00408bc8
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0046eecc
push dword [0x4eac7c]
push 0x4d5358
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404bf8
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ca14
xor edx, edx
push ebp
push 0x4d4da3
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4180f8]
call fcn.0041ce94
mov ebx, eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b56cc]
call fcn.004b5bb4
mov esi, eax
mov dword [esi + 0x9c], 0x1388
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004b5cdc
mov edx, dword [ebx + 4]
mov eax, 0x4d5374
call fcn.00404e7c
test eax, eax
jle 0x4d4d99
push 0x4d5394
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 4]
mov ecx, 0x186a0
mov edx, 0x4d53c4
call fcn.004d3308
mov eax, ebx
call fcn.00403aa4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4180f8]
call fcn.0041ce94
mov ebx, eax
push dword [ebp - 0x10]
push 0x4d53e4
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
call fcn.004d3464
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404bf8
mov edx, dword [ebp - 0x58]
mov ecx, ebx
mov eax, esi
call fcn.004b5cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4de1
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x58]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x5c]
mov eax, esi
call fcn.00403aa4
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ca14
lea eax, [ebp - 0x1c]
call fcn.00404878
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 4]
call fcn.00404910
mov eax, ebx
call fcn.00403aa4
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d53f8
call fcn.00404e7c
test eax, eax
jle 0x4d4e8a
mov eax, 0x4d540c
call fcn.00409804
test al, al
jne 0x4d4e7e
xor eax, eax
push ebp
push 0x4d4e74
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417d68]
call fcn.00403a74
mov ebx, eax
mov edx, 0x4d540c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403aa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4e7e
xor eax, eax
mov dword [0x4eac78], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d543c
call fcn.00404e7c
test eax, eax
jle 0x4d501c
mov eax, dword [0x4ead04]
mov dword [0x4ead0c], eax
mov eax, dword [0x4ead08]
mov dword [0x4ead10], eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404b38
mov ecx, eax
mov edx, 9
mov eax, dword [ebp - 0x1c]
call fcn.00404d98
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x39c]
call fcn.0044d0a0
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d544c
call fcn.00404e7c
test eax, eax
jle 0x4d4f0c
mov eax, 0x4d5464
call fcn.0043064c
xor eax, eax
mov dword [0x4eac78], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d5480
call fcn.00404e7c
test eax, eax
jle 0x4d4f33
mov eax, dword [0x4eacb0]
call fcn.004d3fd4
xor eax, eax
mov dword [0x4eac78], eax
jmp 0x4d5284
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d5494
call fcn.00404e7c
test eax, eax
jle 0x4d4f6a
mov dl, 1
mov eax, 0x4d54a4
call fcn.004d0a84
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ccac
call fcn.004d0c3c
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d54c0
call fcn.00404e7c
test eax, eax
jle 0x4d4f96
mov eax, 0x4d54dc
call fcn.0043064c
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ccac
call fcn.004d0c3c
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d54f8
call fcn.00404e7c
test eax, eax
jle 0x4d5005
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x440]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d4fcd
mov eax, 0x4d550c
call fcn.0043064c
call fcn.00404704
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x444]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d5005
mov dl, 1
mov eax, 0x4d54a4
call fcn.004d0a84
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ccac
xor eax, eax
mov dword [0x4eac64], eax
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4eac78], eax
jmp 0x4d5284
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d5528
call fcn.00404e7c
test eax, eax
jle 0x4d527d
mov eax, dword [0x4ead04]
mov dword [0x4ead0c], eax
mov eax, dword [0x4ead08]
mov dword [0x4ead10], eax
mov al, byte [0x4d5534]
push eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, 0x4d5528
mov eax, dword [ebp - 0x1c]
call fcn.0040f23c
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x1c]
call fcn.00404910
lea eax, [ebp - 0x18]
push eax
mov ecx, 0xa
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404d98
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404b38
mov ecx, eax
mov edx, 0xb
mov eax, dword [ebp - 0x1c]
call fcn.00404d98
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0046f0b4
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
call fcn.00404910
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x1c]
call fcn.0040671c
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x1c]
call fcn.00404b00
push 0x4d5540
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004d0940
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jl 0x4d51b1
lea ecx, [ebp - 0x70]
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x70]
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x448]
call fcn.0044d0a0
lea ecx, [ebp - 0x74]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x74]
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x450]
call fcn.0044d0a0
lea ecx, [ebp - 0x78]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x78]
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x44c]
call fcn.0044d0a0
lea ecx, [ebp - 0x7c]
mov edx, 3
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x7c]
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x39c]
call fcn.0044d0a0
lea ecx, [ebp - 0x80]
mov edx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x80]
mov eax, 0x4eac8c
call fcn.004048cc
lea eax, [ebp - 0x20]
call fcn.00404878
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 6
jl 0x4d51b1
lea ecx, [ebp - 0x20]
mov edx, 5
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, ebx
call fcn.00403aa4
mov edx, dword [ebp - 0x20]
mov eax, 0x4d554c
call fcn.00404e7c
test eax, eax
jle 0x4d5266
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x400]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x3ec]
mov edx, 0x4d5560
call fcn.0044d0a0
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x404]
xor edx, edx
call fcn.0044cf90
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x3ec]
xor edx, edx
call fcn.0044cf90
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x3c0]
xor edx, edx
call fcn.0044cf90
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x3f0]
xor edx, edx
call fcn.0044cf90
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x3f8]
xor edx, edx
call fcn.0044cf90
mov eax, dword [0x4e94d0]
mov eax, dword [eax + 0x3f8]
mov edx, 0x4d556c
call fcn.0044d0a0
mov eax, dword [0x4e77ec]
mov eax, dword [eax]
call fcn.0046ca14
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4eac64], eax
xor eax, eax
mov dword [0x4eac78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d52ea
lea eax, [ebp - 0x80]
mov edx, 5
call fcn.0040489c
lea eax, [ebp - 0x6c]
call fcn.00404f84
lea eax, [ebp - 0x68]
mov edx, 0xa
call fcn.0040489c
lea eax, [ebp - 0x40]
call fcn.00404878
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.0040489c
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.0040489c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040489c
ret