Function at 0x52aa80
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x52aa89
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52ae6e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, 0x52ae88
call fcn.004043b4
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x52ae3c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4ec118]
call fcn.004ec600
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41ac70]
call fcn.004034b8
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41b000]
call fcn.00420548
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x41ac70]
call fcn.004034b8
mov dword [ebp - 0x20], eax
mov edx, 0x50
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.004eda88
lea eax, [ebp - 0xc]
mov edx, 0x52ae94
call fcn.004043b4
xor eax, eax
push ebp
push 0x52ad78
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov ecx, dword [0x534174]
mov ecx, dword [ecx]
lea eax, [ebp - 0x34]
mov edx, 0x52aec8
call fcn.00404638
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x18]
call fcn.004ee1f4
add eax, 0x24
mov edx, 0x52aed8
call fcn.00404370
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.004ec924
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
call fcn.004043b4
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.004f0b64
test al, al
jne 0x52abc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403d60
jmp 0x52ae43
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x28]
call fcn.00408c64
lea ecx, [ebp - 0x3c]
mov edx, 1
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x2c]
call fcn.00408c64
lea ecx, [ebp - 0x40]
mov edx, 2
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
call fcn.00408c64
mov eax, dword [ebp - 0x28]
mov edx, 0x52af04
call fcn.00404738
jne 0x52ac49
mov eax, dword [ebp - 0x2c]
mov edx, 0x52af14
call fcn.00404738
jne 0x52ac31
mov byte [ebx], 1
jmp 0x52ac34
mov byte [ebx], 0
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00409074
mov dword [esi], eax
mov byte [ebp - 5], 1
jmp 0x52ad6b
mov eax, dword [ebp - 0x28]
mov edx, 0x52af20
call fcn.00404738
jne 0x52ac84
mov eax, dword [ebp - 0x2c]
mov edx, 0x52af14
call fcn.00404738
jne 0x52ac6c
mov byte [ebx], 1
jmp 0x52ac6f
mov byte [ebx], 0
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00409074
mov dword [esi], eax
mov byte [ebp - 5], 1
jmp 0x52ad6b
mov eax, dword [ebp - 0x28]
mov edx, 0x52af30
call fcn.00404738
jne 0x52ace7
xor ecx, ecx
mov dl, 1
mov eax, dword [0x529560]
call fcn.0047aaa4
mov ebx, eax
mov ecx, dword [0x534174]
mov ecx, dword [ecx]
lea eax, [ebp - 0x44]
mov edx, 0x52af40
call fcn.00404638
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x2fc]
call fcn.00462338
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xec]
mov eax, dword [ebp - 4]
mov byte [eax + 0x3e0], 1
mov eax, dword [ebp - 4]
call fcn.0047ec54
jmp 0x52ad6b
xor ecx, ecx
mov dl, 1
mov eax, dword [0x529560]
call fcn.0047aaa4
mov ebx, eax
mov ecx, dword [0x534174]
mov ecx, dword [ecx]
lea eax, [ebp - 0x48]
mov edx, 0x52af40
call fcn.00404638
mov edx, dword [ebp - 0x48]
mov eax, dword [ebx + 0x2fc]
call fcn.00462338
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xec]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov edx, 0x52af54
call fcn.00404738
je 0x52ad4e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov edx, 0x52af64
call fcn.00404738
jne 0x52ad6b
mov eax, dword [ebp - 4]
mov byte [eax + 0x3e0], 1
mov eax, 0x52af74
call fcn.004f0ad4
push 0
push 0
call sub.user32.dll_ExitWindowsEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52ae06
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ae43
mov eax, dword [ebp - 0x10]
call fcn.004034e8
mov eax, dword [ebp - 0x14]
call fcn.004034e8
mov eax, dword [ebp - 0x20]
call fcn.004034e8
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x58]
mov eax, dword [ebp - 0x18]
call fcn.004034e8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ae75
lea eax, [ebp - 0x4c]
mov edx, 0xb
call fcn.00404340
lea eax, [ebp - 0x1c]
call fcn.0040431c
lea eax, [ebp - 0xc]
call fcn.0040431c
ret