Function at 0x411ef4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], ecx
inc ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
call fcn.0042c809
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0043d8d6
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
mov byte [ebp - 0xc], 0
je 0x411fcb
mov esi, 0x4975e4
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], 0x8000
call fcn.00427378
cmp byte [ebp - 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x411f7a
push esi
mov dword [ebp - 8], edi
call ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
jne 0x4120f2
add dword [ebp + 8], 2
lea ecx, [ebp + 8]
call fcn.00409fda
mov ecx, dword [ebp + 8]
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0040efef
add esp, 4
test al, al
jne 0x4120c3
lea ecx, [ebp - 0xc]
call fcn.0040f01d
cmp dword [ebp - 8], edi
je 0x411fbe
push dword [ebp - 8]
call ebx
mov esi, 0x80070057
jmp 0x41219f
xor ebx, ebx
inc ebx
push 6
lea eax, [ebp + 8]
push eax
push 0x4831d0
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x411fe8
or byte [ebp - 0xc], 1
jmp 0x412061
push 5
push dword [ebp + 8]
push 0x4831c8
call fcn.00428263
add esp, 0xc
test al, al
jne 0x412073
push 0xa
push dword [ebp + 8]
push str.exitcode
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x412043
add dword [ebp + 8], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
movzx eax, word [eax]
push eax
call fcn.0040efef
mov bl, al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042f0d0
add esp, 0xc
test bl, bl
je 0x412061
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x412061
push 9
lea eax, [ebp + 8]
push eax
push str.explorer
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x411f47
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
je 0x411fc8
jmp 0x411f47
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4971a8], 8
jne 0x41209d
or byte [0x4971a8], 8
push 2
push str.SeShutdownPrivilege
call fcn.0040d55a
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.00427378
push edi
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
lea ecx, [ebp - 0x24]
call fcn.0040f01d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
jmp 0x41219f
mov ax, word [ecx]
cmp ax, di
je 0x4120de
cmp ax, 0x30
jb 0x4120d7
cmp ax, 0x39
jbe 0x4120de
inc ecx
inc ecx
mov dword [ebp + 8], ecx
jmp 0x4120c3
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042f0d0
pop ecx
pop ecx
mov dword [ebp + 8], edi
jmp 0x41212e
push dword [ebp + 8]
call fcn.0040b35a
push eax
call fcn.0040d003
pop ecx
mov dword [ebp + 8], eax
cmp word [eax], di
pop ecx
je 0x411fac
cmp dword [ebp + 8], edi
je 0x412126
push edi
push edi
push edi
push 0x10
push dword [ebp + 8]
call fcn.00411989
add esp, 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x28], eax
je 0x41215d
cmp dword [ebp - 4], edi
je 0x41215d
push dword [ebp - 4]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x41215d
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x412156
mov dword [ebp - 0x24], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], edi
je 0x41218a
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x41218a
cmp dword [ebp - 0x20], eax
jne 0x412178
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0040b816
mov eax, dword [ebp - 4]
cmp eax, edi
mov dword [ebp - 0x20], eax
jle 0x41218a
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jg 0x41210e
lea ecx, [ebp - 0xc]
call fcn.0040f01d
cmp dword [ebp - 8], edi
je 0x41219c
push dword [ebp - 8]
call ebx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.00427365
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4