Function at 0x411d2a
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.0042c3f7
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.0043d4de
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
mov byte [ebp - 0xc], 0
je 0x411e01
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.0040eea4
cmp byte [ebp - 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x411db0
push esi
mov dword [ebp - 8], edi
call ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
jne 0x411f28
add dword [ebp + 8], 2
lea ecx, [ebp + 8]
call fcn.00409e64
mov ecx, dword [ebp + 8]
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0040ee76
add esp, 4
test al, al
jne 0x411ef9
lea ecx, [ebp - 0xc]
call fcn.0040eed8
cmp dword [ebp - 8], edi
je 0x411df4
push dword [ebp - 8]
call ebx
mov esi, 0x80070057
jmp 0x411fd5
xor ebx, ebx
inc ebx
push 6
lea eax, [ebp + 8]
push eax
push str.force
call fcn.0042df66
add esp, 0xc
test al, al
je 0x411e1e
or byte [ebp - 0xc], 1
jmp 0x411e97
push 5
push dword [ebp + 8]
push 0x4831c0
call fcn.00427f14
add esp, 0xc
test al, al
jne 0x411ea9
push 0xa
push dword [ebp + 8]
push str.exitcode
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x411e79
add dword [ebp + 8], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
movzx eax, word [eax]
push eax
call fcn.0040ee76
mov bl, al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042ed5c
add esp, 0xc
test bl, bl
je 0x411e97
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x411e97
push 9
lea eax, [ebp + 8]
push eax
push str.explorer
call fcn.0042df66
add esp, 0xc
test al, al
je 0x411d7d
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
je 0x411dfe
jmp 0x411d7d
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4971a8], 8
jne 0x411ed3
or byte [0x4971a8], 8
push 2
push str.SeShutdownPrivilege
call fcn.0040d3a0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040eea4
push edi
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
lea ecx, [ebp - 0x24]
call fcn.0040eed8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
jmp 0x411fd5
mov ax, word [ecx]
cmp ax, di
je 0x411f14
cmp ax, 0x30
jb 0x411f0d
cmp ax, 0x39
jbe 0x411f14
inc ecx
inc ecx
mov dword [ebp + 8], ecx
jmp 0x411ef9
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042ed5c
pop ecx
pop ecx
mov dword [ebp + 8], edi
jmp 0x411f64
push dword [ebp + 8]
call fcn.0040b1aa
push eax
call fcn.0040ce49
pop ecx
mov dword [ebp + 8], eax
cmp word [eax], di
pop ecx
je 0x411de2
cmp dword [ebp + 8], edi
je 0x411f5c
push edi
push edi
push edi
push 0x10
push dword [ebp + 8]
call fcn.004117bf
add esp, 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x28], eax
je 0x411f93
cmp dword [ebp - 4], edi
je 0x411f93
push dword [ebp - 4]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x411f93
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x411f8c
mov dword [ebp - 0x24], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], edi
je 0x411fc0
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x411fc0
cmp dword [ebp - 0x20], eax
jne 0x411fae
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0040b65c
mov eax, dword [ebp - 4]
cmp eax, edi
mov dword [ebp - 0x20], eax
jle 0x411fc0
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jg 0x411f44
lea ecx, [ebp - 0xc]
call fcn.0040eed8
cmp dword [ebp - 8], edi
je 0x411fd2
push dword [ebp - 8]
call ebx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4