Function at 0x412606
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.0042aeb8
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.0043b18c
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
mov byte [ebp - 0xc], 0
je 0x4126dd
mov esi, 0x49062c
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.004260ef
cmp byte [ebp - 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x41268c
push esi
mov dword [ebp - 8], edi
call ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
jne 0x412804
add dword [ebp + 8], 2
lea ecx, [ebp + 8]
call fcn.00409aad
mov ecx, dword [ebp + 8]
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.0042aa31
add esp, 4
test al, al
jne 0x4127d5
lea ecx, [ebp - 0xc]
call fcn.0040f57d
cmp dword [ebp - 8], edi
je 0x4126d0
push dword [ebp - 8]
call ebx
mov esi, 0x80070057
jmp 0x4128b1
xor ebx, ebx
inc ebx
push 6
lea eax, [ebp + 8]
push eax
push str.force
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x4126fa
or byte [ebp - 0xc], 1
jmp 0x412773
push 5
push dword [ebp + 8]
push 0x47d200
call fcn.00426f79
add esp, 0xc
test al, al
jne 0x412785
push 0xa
push dword [ebp + 8]
push str.exitcode
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x412755
add dword [ebp + 8], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
movzx eax, word [eax]
push eax
call fcn.0042aa31
mov bl, al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042dab0
add esp, 0xc
test bl, bl
je 0x412773
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x412773
push 9
lea eax, [ebp + 8]
push eax
push str.explorer
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x412659
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
je 0x4126da
jmp 0x412659
mov esi, 0x49062c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4901c4], 8
jne 0x4127af
or byte [0x4901c4], 8
push 2
push str.SeShutdownPrivilege
call fcn.0040cf93
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.004260ef
push edi
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
lea ecx, [ebp - 0x24]
call fcn.0040f57d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
jmp 0x4128b1
mov ax, word [ecx]
cmp ax, di
je 0x4127f0
cmp ax, 0x30
jb 0x4127e9
cmp ax, 0x39
jbe 0x4127f0
inc ecx
inc ecx
mov dword [ebp + 8], ecx
jmp 0x4127d5
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042dab0
pop ecx
pop ecx
mov dword [ebp + 8], edi
jmp 0x412840
push dword [ebp + 8]
call fcn.0040aea9
push eax
call fcn.0040ca55
pop ecx
mov dword [ebp + 8], eax
cmp word [eax], di
pop ecx
je 0x4126be
cmp dword [ebp + 8], edi
je 0x412838
push edi
push edi
push edi
push 0x10
push dword [ebp + 8]
call fcn.00412089
add esp, 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x28], eax
je 0x41286f
cmp dword [ebp - 4], edi
je 0x41286f
push dword [ebp - 4]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x41286f
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x412868
mov dword [ebp - 0x24], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], edi
je 0x41289c
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x41289c
cmp dword [ebp - 0x20], eax
jne 0x41288a
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0040b352
mov eax, dword [ebp - 4]
cmp eax, edi
mov dword [ebp - 0x20], eax
jle 0x41289c
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jg 0x412820
lea ecx, [ebp - 0xc]
call fcn.0040f57d
cmp dword [ebp - 8], edi
je 0x4128ae
push dword [ebp - 8]
call ebx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.0042602e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4