Function at 0x4d0e84
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4d0e8c
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 0x4d1699
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x4e6c78], 1
mov byte [ebp - 9], 1
call fcn.004d9f88
test al, al
jne 0x4d0eda
call fcn.004d9f08
test al, al
je 0x4d0ee6
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046b904
lea eax, [ebp - 0x2c]
call fcn.00404878
lea edx, [ebp - 0x30]
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046be28
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
call fcn.0046de08
cmp dword [ebp - 0x28], 0
je 0x4d0f34
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x34]
mov eax, 6
call fcn.004092bc
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, 0x4d16b4
call fcn.00404c84
jne 0x4d0f63
lea ecx, [ebp - 0x38]
mov edx, dword [0x4e6c80]
mov eax, 0x4d16c4
call fcn.0046db24
mov edx, dword [ebp - 0x38]
mov eax, 0x4e6ca0
call fcn.004048cc
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046b66c
lea edx, [ebp - 0x40]
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x300]
call fcn.0044bcc8
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408db0
push dword [ebp - 0x3c]
push 0x4d16d0
lea ecx, [ebp - 0x44]
mov edx, dword [0x4e6c80]
mov eax, dword [0x4e6ca0]
call fcn.0046dd0c
push dword [ebp - 0x44]
push 0x4d16d0
call fcn.0040b210
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x48]
mov eax, 0x4d16dc
call fcn.0040be8c
push dword [ebp - 0x48]
push 0x4d16d0
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00404bf8
push dword [ebp - 0x14]
push dword [0x4e6c80]
push 0x4d16d0
push dword [0x4e6c84]
push 0x4d16d0
push 0x4d16f8
push 0x4d16d0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
call fcn.004da038
push dword [ebp - 0x4c]
call fcn.004da0d0
lea edx, [ebp - 0x50]
call fcn.00409180
push dword [ebp - 0x50]
push 0x4d16d0
push dword [ebp - 4]
push 0x4d1704
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 0xe
call fcn.00404bf8
lea eax, [ebp - 0x54]
call fcn.004d9ae8
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x18]
call fcn.00408b60
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0046db24
push dword [0x4e6c7c]
push 0x4d1710
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404bf8
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046b66c
xor edx, edx
push ebp
push 0x4d1147
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41806c]
call fcn.0041cdb4
mov ebx, eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b42fc]
call fcn.004b47e4
mov esi, eax
mov dword [esi + 0x9c], 0x1388
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004b490c
mov edx, dword [ebx + 4]
mov eax, 0x4d172c
call fcn.00404e7c
test eax, eax
jle 0x4d113d
push 0x4d174c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 4]
mov ecx, 0x186a0
mov edx, 0x4d177c
call fcn.004cf9f4
mov eax, ebx
call fcn.00403aa4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41806c]
call fcn.0041cdb4
mov ebx, eax
push dword [ebp - 0x10]
push 0x4d179c
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
call fcn.004cff7c
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.004b490c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1185
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 [0x4e3824]
mov eax, dword [eax]
call fcn.0046b66c
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, 0x4d17b0
call fcn.00404e7c
test eax, eax
jle 0x4d122e
mov eax, 0x4d17c4
call fcn.0040979c
test al, al
jne 0x4d1222
xor eax, eax
push ebp
push 0x4d1218
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417cdc]
call fcn.00403a74
mov ebx, eax
mov edx, 0x4d17c4
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 0x4d1222
xor eax, eax
mov dword [0x4e6c78], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d17f4
call fcn.00404e7c
test eax, eax
jle 0x4d13d2
mov eax, dword [0x4e6d0c]
mov dword [0x4e6d14], eax
mov eax, dword [0x4e6d10]
mov dword [0x4e6d18], 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 [0x4e54d0]
mov eax, dword [eax + 0x338]
call fcn.0044bcf8
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1804
call fcn.00404e7c
test eax, eax
jle 0x4d12b0
mov eax, 0x4d181c
call fcn.00430534
xor eax, eax
mov dword [0x4e6c78], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1838
call fcn.00404e7c
test eax, eax
jle 0x4d12d7
mov eax, dword [0x4e6cb4]
call fcn.004d0640
xor eax, eax
mov dword [0x4e6c78], eax
jmp 0x4d163a
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d184c
call fcn.00404e7c
test eax, eax
jle 0x4d130e
mov dl, 1
mov eax, 0x4d185c
call fcn.004d9e28
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046b904
call fcn.004d9fe0
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1878
call fcn.00404e7c
test eax, eax
jle 0x4d133a
mov eax, 0x4d1894
call fcn.00430534
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046b904
call fcn.004d9fe0
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d18b0
call fcn.00404e7c
test eax, eax
jle 0x4d13bb
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x308]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d1383
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x448]
mov dl, 1
call fcn.0043153c
mov eax, 0x4d18c4
call fcn.00430534
call fcn.00404704
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d13bb
mov dl, 1
mov eax, 0x4d185c
call fcn.004d9e28
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046b904
xor eax, eax
mov dword [0x4e6c64], eax
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e6c78], eax
jmp 0x4d163a
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d18fc
call fcn.00404e7c
test eax, eax
jle 0x4d1633
mov eax, dword [0x4e6d0c]
mov dword [0x4e6d14], eax
mov eax, dword [0x4e6d10]
mov dword [0x4e6d18], eax
mov al, byte [0x4d1908]
push eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, 0x4d18fc
mov eax, dword [ebp - 0x1c]
call fcn.0040f1b0
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.0046dd0c
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
call fcn.00404910
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x1c]
call fcn.004066cc
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x1c]
call fcn.00404b00
push 0x4d1914
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004d9ce4
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jl 0x4d1567
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 [0x4e54d0]
mov eax, dword [eax + 0x31c]
call fcn.0044bcf8
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 [0x4e54d0]
mov eax, dword [eax + 0x324]
call fcn.0044bcf8
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 [0x4e54d0]
mov eax, dword [eax + 0x320]
call fcn.0044bcf8
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 [0x4e54d0]
mov eax, dword [eax + 0x338]
call fcn.0044bcf8
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, 0x4e6c8c
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 0x4d1567
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, 0x4d1920
call fcn.00404e7c
test eax, eax
jle 0x4d161c
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3f8]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3e4]
mov edx, 0x4d1934
call fcn.0044bcf8
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3fc]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3e4]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3cc]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3e8]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3f0]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e54d0]
mov eax, dword [eax + 0x3f0]
mov edx, 0x4d1940
call fcn.0044bcf8
mov eax, dword [0x4e3824]
mov eax, dword [eax]
call fcn.0046b66c
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e6c64], eax
xor eax, eax
mov dword [0x4e6c78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d16a0
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