Function at 0x4d0324
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4d032c
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 0x4d0b27
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x4e5c74], 1
mov byte [ebp - 9], 1
call fcn.004d8734
test al, al
jne 0x4d037a
call fcn.004d86b4
test al, al
je 0x4d0386
mov eax, dword [0x4e27d4]
mov eax, dword [eax]
call fcn.0046b904
lea eax, [ebp - 0x2c]
call fcn.00404878
lea edx, [ebp - 0x30]
mov eax, dword [0x4e27d4]
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 0x4d03d4
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, 0x4d0b40
call fcn.00404c84
jne 0x4d0403
lea ecx, [ebp - 0x38]
mov edx, dword [0x4e5c7c]
mov eax, 0x4d0b50
call fcn.0046db24
mov edx, dword [ebp - 0x38]
mov eax, 0x4e5c9c
call fcn.004048cc
mov eax, dword [0x4e27d4]
mov eax, dword [eax]
call fcn.0046b66c
lea edx, [ebp - 0x40]
mov eax, dword [0x4e44cc]
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 0x4d0b5c
lea ecx, [ebp - 0x44]
mov edx, dword [0x4e5c7c]
mov eax, dword [0x4e5c9c]
call fcn.0046dd0c
push dword [ebp - 0x44]
push 0x4d0b5c
call fcn.0040b210
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x48]
mov eax, 0x4d0b68
call fcn.0040be8c
push dword [ebp - 0x48]
push 0x4d0b5c
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00404bf8
push dword [ebp - 0x14]
push dword [0x4e5c7c]
push 0x4d0b5c
push dword [0x4e5c80]
push 0x4d0b5c
push 0x4d0b84
push 0x4d0b5c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
call fcn.004d87e4
push dword [ebp - 0x4c]
call fcn.004d887c
lea edx, [ebp - 0x50]
call fcn.00409180
push dword [ebp - 0x50]
push 0x4d0b5c
push dword [ebp - 4]
push 0x4d0b90
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 0xe
call fcn.00404bf8
lea eax, [ebp - 0x54]
call fcn.004d8198
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 [0x4e5c78]
push 0x4d0b9c
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404bf8
mov eax, dword [0x4e27d4]
mov eax, dword [eax]
call fcn.0046b66c
xor edx, edx
push ebp
push 0x4d05e7
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, 0x4d0bb8
call fcn.00404e7c
test eax, eax
jle 0x4d05dd
push 0x4d0bd8
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 4]
mov ecx, 0x186a0
mov edx, 0x4d0c08
call fcn.004cee94
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 0x4d0c28
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
call fcn.004cf41c
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 0x4d0625
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 [0x4e27d4]
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, 0x4d0c3c
call fcn.00404e7c
test eax, eax
jle 0x4d06ce
mov eax, 0x4d0c50
call fcn.0040979c
test al, al
jne 0x4d06c2
xor eax, eax
push ebp
push 0x4d06b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417cdc]
call fcn.00403a74
mov ebx, eax
mov edx, 0x4d0c50
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 0x4d06c2
xor eax, eax
mov dword [0x4e5c74], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d0c80
call fcn.00404e7c
test eax, eax
jle 0x4d0860
mov eax, dword [0x4e5d04]
mov dword [0x4e5d0c], eax
mov eax, dword [0x4e5d08]
mov dword [0x4e5d10], 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 [0x4e44cc]
mov eax, dword [eax + 0x338]
call fcn.0044bcf8
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d0c90
call fcn.00404e7c
test eax, eax
jle 0x4d0750
mov eax, 0x4d0ca8
call fcn.00430534
xor eax, eax
mov dword [0x4e5c74], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d0cc4
call fcn.00404e7c
test eax, eax
jle 0x4d0777
mov eax, dword [0x4e5cb0]
call fcn.004cfae0
xor eax, eax
mov dword [0x4e5c74], eax
jmp 0x4d0ac8
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d0cd8
call fcn.00404e7c
test eax, eax
jle 0x4d07ae
mov dl, 1
mov eax, 0x4d0ce8
call fcn.004d85d4
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e27d4]
mov eax, dword [eax]
call fcn.0046b904
call fcn.004d878c
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d0d04
call fcn.00404e7c
test eax, eax
jle 0x4d07da
mov eax, 0x4d0d20
call fcn.00430534
mov eax, dword [0x4e27d4]
mov eax, dword [eax]
call fcn.0046b904
call fcn.004d878c
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d0d3c
call fcn.00404e7c
test eax, eax
jle 0x4d0849
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x308]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d0811
mov eax, 0x4d0d50
call fcn.00430534
call fcn.00404704
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d0849
mov dl, 1
mov eax, 0x4d0ce8
call fcn.004d85d4
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e27d4]
mov eax, dword [eax]
call fcn.0046b904
xor eax, eax
mov dword [0x4e5c60], eax
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e5c74], eax
jmp 0x4d0ac8
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d0d6c
call fcn.00404e7c
test eax, eax
jle 0x4d0ac1
mov eax, dword [0x4e5d04]
mov dword [0x4e5d0c], eax
mov eax, dword [0x4e5d08]
mov dword [0x4e5d10], eax
mov al, byte [0x4d0d78]
push eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, 0x4d0d6c
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 0x4d0d84
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004d8490
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jl 0x4d09f5
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 [0x4e44cc]
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 [0x4e44cc]
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 [0x4e44cc]
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 [0x4e44cc]
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, 0x4e5c88
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 0x4d09f5
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, 0x4d0d90
call fcn.00404e7c
test eax, eax
jle 0x4d0aaa
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3f8]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3e4]
mov edx, 0x4d0da4
call fcn.0044bcf8
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3fc]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3e4]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3cc]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3e8]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3f0]
xor edx, edx
call fcn.0044bbe8
mov eax, dword [0x4e44cc]
mov eax, dword [eax + 0x3f0]
mov edx, 0x4d0db0
call fcn.0044bcf8
mov eax, dword [0x4e27d4]
mov eax, dword [eax]
call fcn.0046b66c
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e5c60], eax
xor eax, eax
mov dword [0x4e5c74], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0b2e
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