Function at 0x416a4e
Capabilities:
Check mutex on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
push ebx
push esi
push edi
push dword [0x422dc4]
xor ebx, ebx
xor eax, eax
lea esi, [esp + 0x24]
mov byte [esp + 0x13], bl
call fcn.0041c11e
test al, al
je 0x416aa2
mov eax, dword [esp + 0x24]
push dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
call fcn.004166bd
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x416a99
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x20]
call fcn.0041c1c6
cmp dword [esp + 0x10], 0x1e6
jne 0x416b96
push dword [esp + 0x18]
call fcn.0040c1d9
test al, al
je 0x416d7f
push 1
lea eax, [esp + 0x34]
push eax
push 0x32901130
call fcn.00416214
lea eax, [esp + 0x30]
push eax
push 1
push 0x422da0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x416d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xb7
jne 0x416b0d
push dword [esp + 0x10]
call esi
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
je 0x416d7f
lea eax, [esp + 0x98]
push eax
call fcn.00410b49
test byte [esp + 0x98], 0x20
je 0x416b35
or dword [0x422d68], 0x10
call fcn.0041184d
test byte [0x422d68], 0x10
je 0x416b50
push accept
push 0x14
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 1
lea eax, [esp + 0x34]
push eax
push 0x1a43533f
call fcn.00416214
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
cmp edi, ebx
je 0x416b7f
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call esi
push 1
call fcn.0041677a
push dword [esp + 0x10]
mov byte [esp + 0x13], 1
call esi
jmp 0x416d7f
cmp dword [esp + 0x10], 0xc
jne 0x416d7f
push 2
push 0x8889347b
call fcn.0041624f
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x416d6e
push 1
lea eax, [esp + 0x34]
push eax
push 0x19367401
call fcn.00416214
lea eax, [esp + 0x30]
push eax
call fcn.0041a6e8
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test al, al
je 0x416c0d
push ebx
push 1
lea eax, [esp + 0x17]
push eax
push esi
push 0xffffffffffffffff
mov byte [esp + 0x23], bl
call edi
test eax, eax
je 0x416c00
cmp byte [esp + 0xf], 0xe9
je 0x416c0d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416be4
mov eax, dword [0x422d6c]
push 0x16
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
cmp eax, 1
jne 0x416c2f
call fcn.0040c5f0
mov byte [esp + 0xf], al
jmp 0x416d65
push ebx
push 1
lea eax, [esp + 0x17]
push eax
push esi
push 0xffffffffffffffff
mov byte [esp + 0x23], bl
call edi
test eax, eax
je 0x416ca5
cmp byte [esp + 0xf], 0xe9
jne 0x416ca5
lea eax, [esp + 0x10]
push eax
push 0x78f16360
push 0x4231d6
call esi
cmp eax, 1
jne 0x416ca5
mov eax, dword [esp + 0x18]
push dword [eax + 4]
mov edi, fcn.0040c290
push dword [eax]
call fcn.0041d31e
push dword [ebp + 8]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x114]
mov esi, 0x422dc8
push eax
mov edx, esi
call fcn.0040c290
push 0x8000
push ebx
push dword [esp + 0x18]
mov byte [esp + 0x1b], al
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x416cd0
mov eax, dword [esp + 0x18]
push dword [eax + 4]
mov edi, fcn.0040bf24
push dword [eax + 8]
call fcn.0041d31e
mov esi, 0x422dc8
lea edx, [esp + 0x110]
mov ecx, esi
call fcn.0040bf24
mov byte [esp + 0xf], al
cmp byte [esp + 0xf], 1
jne 0x416d65
lea eax, [esp + 0x20]
push eax
push ebx
push esi
push ebx
lea eax, [esp + 0x120]
push eax
call fcn.004187cc
test eax, eax
setne byte [esp + 0xf]
cmp byte [esp + 0xf], bl
je 0x416d65
push 1
lea eax, [esp + 0x34]
push eax
push 0x1a43533f
call fcn.00416214
lea eax, [esp + 0x30]
push eax
push ebx
push 1
push 0x422da0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
push 0xffffffffffffffff
cmp eax, ebx
jne 0x416d3c
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x416d4a
push ebx
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
je 0x416d5c
push dword [esp + 0x10]
call esi
push dword [esp + 0x24]
call esi
push edi
call esi
push dword [esp + 0x1c]
call fcn.0041a6d8
cmp byte [ebp + 0xc], 1
jne 0x416d7f
push dword [0x422dc4]
call fcn.0041896a
push dword [esp + 0x18]
call fcn.00416f05
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8