Function at 0x4d10f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4d10f8
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 0x4d18f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x4e8c70], 1
mov byte [ebp - 9], 1
call fcn.004dbc1c
test al, al
jne 0x4d1146
call fcn.004dbb9c
test al, al
je 0x4d1152
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bdc4
lea eax, [ebp - 0x2c]
call fcn.00404878
lea edx, [ebp - 0x30]
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046c2e8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
call fcn.0046e2c8
cmp dword [ebp - 0x28], 0
je 0x4d11a0
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, 0x4d190c
call fcn.00404c84
jne 0x4d11cf
lea ecx, [ebp - 0x38]
mov edx, dword [0x4e8c78]
mov eax, 0x4d191c
call fcn.0046dfe4
mov edx, dword [ebp - 0x38]
mov eax, 0x4e8c94
call fcn.004048cc
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bb2c
lea edx, [ebp - 0x40]
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x424]
call fcn.0044c188
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408e28
push dword [ebp - 0x3c]
push 0x4d1928
lea ecx, [ebp - 0x44]
mov edx, dword [0x4e8c78]
mov eax, dword [0x4e8c94]
call fcn.0046e1cc
push dword [ebp - 0x44]
push 0x4d1928
call fcn.0040b288
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x48]
mov eax, 0x4d1934
call fcn.0040bf04
push dword [ebp - 0x48]
push 0x4d1928
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00404bf8
push dword [ebp - 0x14]
push dword [0x4e8c78]
push 0x4d1928
push dword [0x4e8c7c]
push 0x4d1928
push 0x4d1950
push 0x4d1928
push dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
call fcn.004dbccc
push dword [ebp - 0x4c]
call fcn.004dbd64
lea edx, [ebp - 0x50]
call fcn.004091f8
push dword [ebp - 0x50]
push 0x4d1928
push dword [ebp - 4]
push 0x4d195c
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 0xe
call fcn.00404bf8
lea eax, [ebp - 0x54]
call fcn.004db3d8
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.0046dfe4
push dword [0x4e8c74]
push 0x4d1968
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404bf8
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bb2c
xor edx, edx
push ebp
push 0x4d13b3
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 [0x4b47e4]
call fcn.004b4ccc
mov esi, eax
mov dword [esi + 0x9c], 0x1388
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004b4df4
mov edx, dword [ebx + 4]
mov eax, 0x4d1984
call fcn.00404e7c
test eax, eax
jle 0x4d13a9
push 0x4d19a4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 4]
mov ecx, 0x186a0
mov edx, 0x4d19d4
call fcn.004cf008
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 0x4d19f4
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
call fcn.004cfb8c
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.004b4df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d13f1
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 [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bb2c
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, 0x4d1a08
call fcn.00404e7c
test eax, eax
jle 0x4d149a
mov eax, 0x4d1a1c
call fcn.00409814
test al, al
jne 0x4d148e
xor eax, eax
push ebp
push 0x4d1484
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417d80]
call fcn.00403a74
mov ebx, eax
mov edx, 0x4d1a1c
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 0x4d148e
xor eax, eax
mov dword [0x4e8c70], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1a4c
call fcn.00404e7c
test eax, eax
jle 0x4d162c
mov eax, dword [0x4e8cf8]
mov dword [0x4e8d00], eax
mov eax, dword [0x4e8cfc]
mov dword [0x4e8d04], 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 [0x4e74c8]
mov eax, dword [eax + 0x384]
call fcn.0044c1b8
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1a5c
call fcn.00404e7c
test eax, eax
jle 0x4d151c
mov eax, 0x4d1a74
call fcn.0043062c
xor eax, eax
mov dword [0x4e8c70], eax
call fcn.00404704
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1a90
call fcn.00404e7c
test eax, eax
jle 0x4d1543
mov eax, dword [0x4e8ca4]
call fcn.004d06fc
xor eax, eax
mov dword [0x4e8c70], eax
jmp 0x4d1894
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1aa4
call fcn.00404e7c
test eax, eax
jle 0x4d157a
mov dl, 1
mov eax, 0x4d1ab4
call fcn.004dbabc
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bdc4
call fcn.004dbc74
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1ad0
call fcn.00404e7c
test eax, eax
jle 0x4d15a6
mov eax, 0x4d1aec
call fcn.0043062c
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bdc4
call fcn.004dbc74
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1b08
call fcn.00404e7c
test eax, eax
jle 0x4d1615
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x428]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d15dd
mov eax, 0x4d1b1c
call fcn.0043062c
call fcn.00404704
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x42c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4d1615
mov dl, 1
mov eax, 0x4d1ab4
call fcn.004dbabc
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bdc4
xor eax, eax
mov dword [0x4e8c5c], eax
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e8c70], eax
jmp 0x4d1894
mov edx, dword [ebp - 0x1c]
mov eax, 0x4d1b38
call fcn.00404e7c
test eax, eax
jle 0x4d188d
mov eax, dword [0x4e8cf8]
mov dword [0x4e8d00], eax
mov eax, dword [0x4e8cfc]
mov dword [0x4e8d04], eax
mov al, byte [0x4d1b44]
push eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, 0x4d1b38
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.0046e1cc
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 0x4d1b50
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004db978
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jl 0x4d17c1
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 [0x4e74c8]
mov eax, dword [eax + 0x430]
call fcn.0044c1b8
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 [0x4e74c8]
mov eax, dword [eax + 0x438]
call fcn.0044c1b8
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 [0x4e74c8]
mov eax, dword [eax + 0x434]
call fcn.0044c1b8
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 [0x4e74c8]
mov eax, dword [eax + 0x384]
call fcn.0044c1b8
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, 0x4e8c84
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 0x4d17c1
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, 0x4d1b5c
call fcn.00404e7c
test eax, eax
jle 0x4d1876
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3e8]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3d4]
mov edx, 0x4d1b70
call fcn.0044c1b8
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3ec]
xor edx, edx
call fcn.0044c0a8
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3d4]
xor edx, edx
call fcn.0044c0a8
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3a8]
xor edx, edx
call fcn.0044c0a8
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3d8]
xor edx, edx
call fcn.0044c0a8
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3e0]
xor edx, edx
call fcn.0044c0a8
mov eax, dword [0x4e74c8]
mov eax, dword [eax + 0x3e0]
mov edx, 0x4d1b7c
call fcn.0044c1b8
mov eax, dword [0x4e57dc]
mov eax, dword [eax]
call fcn.0046bb2c
mov byte [ebp - 9], 1
xor eax, eax
mov dword [0x4e8c5c], eax
xor eax, eax
mov dword [0x4e8c70], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d18fa
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