Function at 0x41d348
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 [0x42acd4]
xor eax, eax
lea esi, [esp + 0x20]
mov byte [esp + 0x13], 0
call fcn.00423ea2
test al, al
je 0x41d39b
mov eax, dword [esp + 0x20]
push dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
call fcn.0041cfa2
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41d392
and dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
call fcn.00423f4a
cmp dword [esp + 0x10], 0x1e6
jne 0x41d4cd
push 0x408ce4
push 0
push 0x4fa
mov ebx, 0x408630
push ebx
mov esi, 0x408d00
push esi
call fcn.00420542
add esp, 0x14
push dword [esp + 0x18]
call fcn.0040ea5f
test al, al
je 0x41d788
push 1
lea eax, [esp + 0x34]
push eax
push 0x32901130
call fcn.0041ca6e
lea eax, [esp + 0x30]
push eax
push 1
push 0x42acb0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41d4b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xb7
jne 0x41d427
push dword [esp + 0x10]
call edi
and dword [esp + 0x10], 0
cmp dword [esp + 0x10], 0
je 0x41d4b2
lea eax, [esp + 0x98]
push eax
call fcn.00425538
test byte [esp + 0x98], 0x20
je 0x41d450
or dword [0x42ac78], 0x10
call fcn.00417bd5
test byte [0x42ac78], 0x10
je 0x41d46b
push accept
push 0x14
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 1
lea eax, [esp + 0x34]
push eax
push 0x1a43533f
call fcn.0041ca6e
lea eax, [esp + 0x30]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x41d49b
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call edi
push 1
call fcn.0041d05f
push dword [esp + 0x10]
mov byte [esp + 0x13], 1
call edi
jmp 0x41d788
push 0x408d0c
push 2
push 0x525
push ebx
push esi
call fcn.00420542
add esp, 0x14
jmp 0x41d788
cmp dword [esp + 0x10], 0xc
jne 0x41d788
push 0x408d30
push 0
push 0x52c
mov ebx, 0x408630
push ebx
mov esi, 0x408d00
push esi
call fcn.00420542
add esp, 0x14
push 2
push 0x8889347b
call fcn.0041caa9
mov dword [esp + 0x2c], eax
test eax, eax
je 0x41d761
push 1
lea eax, [esp + 0x34]
push eax
push 0x19367401
call fcn.0041ca6e
lea eax, [esp + 0x30]
push eax
call fcn.0042241e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test al, al
je 0x41d590
push 0x408d54
push 0
push 0x535
push ebx
push esi
call fcn.00420542
add esp, 0x14
push 0
push 1
lea eax, [esp + 0x17]
push eax
push edi
push 0xffffffffffffffff
mov byte [esp + 0x23], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41d56d
cmp byte [esp + 0xf], 0xe9
je 0x41d57a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d54b
push 0x408d8c
push 0
push 0x537
push ebx
push esi
call fcn.00420542
add esp, 0x14
mov eax, dword [0x42ac7c]
push 0x16
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
cmp eax, 1
jne 0x41d5de
push 0x408dc0
push 0
push 0x53d
push ebx
push esi
call fcn.00420542
add esp, 0x14
call fcn.0040f042
push 0x408e4c
push 0
push 0x53f
push ebx
push esi
mov byte [esp + 0x23], al
call fcn.00420542
add esp, 0x14
jmp 0x41d756
push 0
push 1
lea eax, [esp + 0x17]
push eax
push edi
push 0xffffffffffffffff
mov byte [esp + 0x23], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41d65b
cmp byte [esp + 0xf], 0xe9
jne 0x41d65b
lea eax, [esp + 0x10]
push eax
push 0x78f16360
push 0x42b0e6
call edi
cmp eax, 1
jne 0x41d65b
mov eax, dword [esp + 0x18]
push dword [eax + 4]
mov edi, int.0040eb99
push dword [eax]
call fcn.00425236
push dword [ebp + 8]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x114]
mov edi, 0x42acd8
push eax
mov edx, edi
call int.0040eb99
push 0x8000
push 0
push dword [esp + 0x18]
mov byte [esp + 0x1b], al
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41d686
mov eax, dword [esp + 0x18]
push dword [eax + 4]
mov edi, fcn.0040e6f3
push dword [eax + 8]
call fcn.00425236
mov edi, 0x42acd8
lea edx, [esp + 0x110]
mov ecx, edi
call fcn.0040e6f3
mov byte [esp + 0xf], al
cmp byte [esp + 0xf], 1
jne 0x41d756
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push 0
lea eax, [esp + 0x120]
push eax
call fcn.004200d6
test eax, eax
setne byte [esp + 0xf]
cmp byte [esp + 0xf], 0
je 0x41d756
push 1
lea eax, [esp + 0x34]
push eax
push 0x1a43533f
call fcn.0041ca6e
lea eax, [esp + 0x30]
push eax
xor edi, edi
push edi
push 1
push 0x42acb0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x408e74
push edi
push 0x566
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
push esi
mov dword [esp + 0x28], eax
call fcn.00420542
add esp, 0x14
push 0xffffffffffffffff
cmp dword [esp + 0x14], edi
jne 0x41d715
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x41d723
push edi
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0x408eb8
push edi
push 0x569
push ebx
push esi
call fcn.00420542
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
cmp dword [esp + 0x10], edi
je 0x41d74a
push dword [esp + 0x10]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x1c]
call esi
push dword [esp + 0x2c]
call fcn.0042240e
jmp 0x41d777
push 0x408ef8
push 2
push 0x577
push ebx
push esi
call fcn.00420542
add esp, 0x14
cmp byte [ebp + 0xc], 1
jne 0x41d788
push dword [0x42acd4]
call fcn.00420274
push dword [esp + 0x18]
call fcn.0041e801
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8