Function at 0x419c31
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
push ebx
push esi
push edi
push dword [0x436dbc]
mov ebx, eax
xor eax, eax
lea esi, [esp + 0x24]
mov byte [esp + 0x13], 0
call fcn.0043327f
test al, al
je 0x419c86
mov eax, dword [esp + 0x24]
push dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
call fcn.00419840
mov dword [esp + 0x18], eax
test eax, eax
jne 0x419c7d
and dword [esp + 0x10], eax
lea eax, [esp + 0x20]
call fcn.00433327
cmp dword [esp + 0x10], 0x130
jne 0x419d62
push dword [esp + 0x18]
call fcn.00415461
test al, al
je 0x419f4e
push 1
lea eax, [esp + 0x34]
push eax
push 0x32901130
call fcn.004191dd
lea eax, [esp + 0x30]
push eax
push 1
push 0x436d98
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x419cd5
call fcn.00430fcf
mov ebx, eax
jmp 0x419cd7
xor ebx, ebx
test ebx, ebx
je 0x419f4e
lea eax, [esp + 0x98]
push eax
call fcn.004222f1
test byte [esp + 0x98], 0x20
je 0x419cfd
or dword [0x436d60], 0x10
call fcn.00420ee3
test byte [0x436d60], 0x10
je 0x419d18
push closesocket
push 0x14
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 1
lea eax, [esp + 0x34]
push eax
push 0x1a43533f
call fcn.004191dd
lea eax, [esp + 0x30]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x419d4e
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call esi
push 1
call fcn.004198fd
push ebx
mov byte [esp + 0x13], 1
call esi
jmp 0x419f4e
cmp dword [esp + 0x10], 0xc
jne 0x419f4e
push 2
push 0x8889347b
call fcn.00419215
mov dword [esp + 0x1c], eax
test eax, eax
je 0x419f3d
push 1
lea eax, [esp + 0x34]
push eax
push 0x19367401
call fcn.004191dd
lea eax, [esp + 0x30]
push eax
call fcn.00430fec
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test al, al
je 0x419dcb
xor edi, edi
jmp 0x419dbf
cmp edi, 0x3c
jae 0x419ddb
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
push esi
call fcn.004325d1
test al, al
je 0x419dae
jmp 0x419ddb
cmp bl, 1
jne 0x419ddb
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x436d64]
push 0x16
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
cmp eax, 1
jne 0x419e01
test bl, bl
jne 0x419e01
call fcn.00415e33
mov byte [esp + 0xf], al
jmp 0x419f34
push esi
call fcn.004325d1
test al, al
jne 0x419e10
cmp bl, 1
jne 0x419e72
lea eax, [esp + 0x10]
push eax
push 0x78f16360
push 0x437118
call esi
cmp eax, 1
jne 0x419e6a
mov eax, dword [esp + 0x18]
push dword [eax]
mov edi, fcn.00415518
push dword [eax + 4]
call fcn.004348d9
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x13c]
mov esi, 0x436dc0
push eax
mov edx, esi
call fcn.00415518
push 0x8000
xor ebx, ebx
push ebx
push dword [esp + 0x18]
mov byte [esp + 0x1b], al
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x419e9e
test bl, bl
jne 0x419f34
mov eax, dword [esp + 0x18]
push dword [eax]
mov edi, fcn.0041513a
push dword [eax + 8]
call fcn.004348d9
mov esi, 0x436dc0
lea edx, [esp + 0x138]
mov ecx, esi
call fcn.0041513a
mov byte [esp + 0xf], al
xor ebx, ebx
cmp byte [esp + 0xf], 1
jne 0x419f34
lea eax, [esp + 0x20]
push eax
push ebx
push esi
push ebx
lea eax, [esp + 0x148]
push eax
call fcn.0042ee20
test eax, eax
setne byte [esp + 0xf]
cmp byte [esp + 0xf], 0
je 0x419f34
push 1
lea eax, [esp + 0x34]
push eax
push 0x1a43533f
call fcn.004191dd
lea eax, [esp + 0x30]
push eax
push ebx
push 1
push 0x436d98
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 0x419f0b
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x419f19
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 0x419f2b
push dword [esp + 0x10]
call esi
push dword [esp + 0x24]
call esi
push edi
call esi
push dword [esp + 0x1c]
call fcn.00430fbf
cmp byte [ebp + 8], 1
jne 0x419f4e
push dword [0x436dbc]
call fcn.0042efbe
push dword [esp + 0x18]
call fcn.0042c085
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4