Function at 0x4d1970
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4d1978
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 0x4d2173
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x4e7c78], 1
mov byte [ebp - 9], 1
call fcn.004db0ac
test al, al
jne 0x4d19c6
call fcn.004db02c
test al, al
je 0x4d19d2
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046bf98
lea eax, [ebp - 0x2c]
call fcn.00404878
lea edx, [ebp - 0x30]
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046c4bc
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
call fcn.0046e49c
cmp dword [ebp - 0x28], 0
je 0x4d1a20
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x34]
mov eax, 6
call fcn.00409334
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, 0x4d218c
call fcn.00404c84
jne 0x4d1a4f
lea ecx, [ebp - 0x38]
mov edx, dword [0x4e7c80]
mov eax, 0x4d219c
call fcn.0046e1b8
mov edx, dword [ebp - 0x38]
mov eax, 0x4e7ca0
call fcn.004048cc
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046bd00
lea edx, [ebp - 0x40]
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x420]
call fcn.0044c35c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408e28
push dword [ebp - 0x3c]
push 0x4d21a8
lea ecx, [ebp - 0x44]
mov edx, dword [0x4e7c80]
mov eax, dword [0x4e7ca0]
call fcn.0046e3a0
push dword [ebp - 0x44]
push 0x4d21a8
call fcn.0040b288
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x48]
mov eax, 0x4d21b4
call fcn.0040bf04
push dword [ebp - 0x48]
push 0x4d21a8
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00404bf8
push dword [ebp - 0x14]
push dword [0x4e7c80]
push 0x4d21a8
push dword [0x4e7c84]
push 0x4d21a8
push 0x4d21d0
push 0x4d21a8
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
call fcn.004db15c
push dword [ebp - 0x4c]
call fcn.004db1f4
lea edx, [ebp - 0x50]
call fcn.004091f8
push dword [ebp - 0x50]
push 0x4d21a8
push dword [ebp - 4]
push 0x4d21dc
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 0xe
call fcn.00404bf8
lea eax, [ebp - 0x54]
call fcn.004da9c4
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x18]
call fcn.00408bd8
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0046e1b8
push dword [0x4e7c7c]
push 0x4d21e8
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404bf8
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046bd00
xor edx, edx
push ebp
push 0x4d1c33
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x418110]
call fcn.0041ceac
mov ebx, eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b4990]
call fcn.004b4e78
mov esi, eax
mov dword [esi + 0x9c], 0x1388
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004b4fa0
mov edx, dword [ebx + 4]
mov eax, 0x4d2204
call fcn.00404e7c
test eax, eax
jle 0x4d1c29
push 0x4d2224
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 4]
mov ecx, 0x186a0
mov edx, 0x4d2254
call fcn.004d0068
mov eax, ebx
call fcn.00403aa4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x418110]
call fcn.0041ceac
mov ebx, eax
push dword [ebp - 0x10]
push 0x4d2274
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
call fcn.004d0144
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.004b4fa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1c71
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 [0x4e482c]
mov eax, dword [eax]
call fcn.0046bd00
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, 0x4d2288
call fcn.00404e7c
test eax, eax
jle 0x4d1d1a
mov eax, 0x4d229c
call fcn.00409814
test al, al
jne 0x4d1d0e
xor eax, eax
push ebp
push 0x4d1d04
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417d80]
call fcn.00403a74
mov ebx, eax
mov edx, 0x4d229c
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 0x4d1d0e
xor eax, eax
mov dword [0x4e7c78], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d22cc
call fcn.00404e7c
test eax, eax
jle 0x4d1eac
mov eax, dword [0x4e7d08]
mov dword [0x4e7d10], eax
mov eax, dword [0x4e7d0c]
mov dword [0x4e7d14], 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 [0x4e64d0]
mov eax, dword [eax + 0x34c]
call fcn.0044c38c
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d22dc
call fcn.00404e7c
test eax, eax
jle 0x4d1d9c
mov eax, 0x4d22f4
call fcn.00430800
xor eax, eax
mov dword [0x4e7c78], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d2310
call fcn.00404e7c
test eax, eax
jle 0x4d1dc3
mov eax, dword [0x4e7cb4]
call fcn.004d0f7c
xor eax, eax
mov dword [0x4e7c78], eax
jmp 0x4d2114
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d2324
call fcn.00404e7c
test eax, eax
jle 0x4d1dfa
mov dl, 1
mov eax, 0x4d2334
call fcn.004daf4c
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046bf98
call fcn.004db104
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d2350
call fcn.00404e7c
test eax, eax
jle 0x4d1e26
mov eax, 0x4d236c
call fcn.00430800
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046bf98
call fcn.004db104
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d2388
call fcn.00404e7c
test eax, eax
jle 0x4d1e95
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x424]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d1e5d
mov eax, 0x4d239c
call fcn.00430800
call fcn.00404704
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x428]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d1e95
mov dl, 1
mov eax, 0x4d2334
call fcn.004daf4c
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046bf98
xor eax, eax
mov dword [0x4e7c64], eax
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e7c78], eax
jmp 0x4d2114
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d23b8
call fcn.00404e7c
test eax, eax
jle 0x4d210d
mov eax, dword [0x4e7d08]
mov dword [0x4e7d10], eax
mov eax, dword [0x4e7d0c]
mov dword [0x4e7d14], eax
mov al, byte [0x4d23c4]
push eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, 0x4d23b8
mov eax, dword [ebp - 0x1c]
call fcn.0040f24c
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.0046e3a0
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 0x4d23d0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004dae08
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jl 0x4d2041
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 [0x4e64d0]
mov eax, dword [eax + 0x42c]
call fcn.0044c38c
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 [0x4e64d0]
mov eax, dword [eax + 0x434]
call fcn.0044c38c
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 [0x4e64d0]
mov eax, dword [eax + 0x430]
call fcn.0044c38c
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 [0x4e64d0]
mov eax, dword [eax + 0x34c]
call fcn.0044c38c
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, 0x4e7c8c
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 0x4d2041
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, 0x4d23dc
call fcn.00404e7c
test eax, eax
jle 0x4d20f6
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x3b0]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x39c]
mov edx, 0x4d23f0
call fcn.0044c38c
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x3b4]
xor edx, edx
call fcn.0044c27c
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x39c]
xor edx, edx
call fcn.0044c27c
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x370]
xor edx, edx
call fcn.0044c27c
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x3a0]
xor edx, edx
call fcn.0044c27c
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x3a8]
xor edx, edx
call fcn.0044c27c
mov eax, dword [0x4e64d0]
mov eax, dword [eax + 0x3a8]
mov edx, 0x4d23fc
call fcn.0044c38c
mov eax, dword [0x4e482c]
mov eax, dword [eax]
call fcn.0046bd00
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e7c64], eax
xor eax, eax
mov dword [0x4e7c78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d217a
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