Function at 0x405750
Capabilities:
Schedule task via itaskservice
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x43a382
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x44e848]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e848]
xor eax, esp
push eax
lea eax, [esp + 0x2b4]
mov dword fs:[0], eax
xor edi, edi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
push edi
push edi
push 3
push 6
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x4057b1
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x104
lea eax, [esp + 0xac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
push ecx
push 0x444f94
push 1
push edi
push 0x445184
mov dword [esp + 0x28], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x4057eb
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x58]
push edx
call esi
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
lea ecx, [esp + 0x48]
mov dword [esp + 0x2bc], edi
mov edi, dword [esp + 0x58]
push ecx
mov dword [esp + 0xa8], eax
call esi
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call esi
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
call esi
mov esi, dword [esp + 0xa4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x58]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x5c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x58]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x5c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x98]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0xac]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xb0]
mov dword [eax + 8], esi
mov esi, dword [esp + 0xb4]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x28]
mov byte [esp + 0x2fc], 3
push ecx
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x68]
push ecx
mov edi, eax
call esi
lea edx, [esp + 0x78]
push edx
call esi
lea eax, [esp + 0x48]
push eax
call esi
lea ecx, [esp + 0x58]
or ebx, 0xffffffff
push ecx
mov dword [esp + 0x2c0], ebx
call esi
xor ebp, ebp
cmp edi, ebp
jge 0x40594e
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x43ec4c
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], ebp
call fcn.00403fb0
mov eax, dword [eax]
mov dword [esp + 0x2bc], 4
cmp eax, ebp
je 0x405975
mov ecx, dword [eax]
jmp 0x405977
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea esi, [esp + 0x1c]
push esi
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov edi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2bc], ebx
cmp eax, ebp
je 0x4059d4
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4059d4
cmp esi, ebp
je 0x4059d4
mov eax, dword [esi]
cmp eax, ebp
je 0x4059bb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4059cb
push eax
call fcn.0040a940
add esp, 4
push esi
call fcn.0040a940
add esp, 4
cmp edi, ebp
jge 0x4059ea
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x43e660
lea ecx, [esp + 0x24]
call fcn.00403fb0
mov eax, dword [eax]
mov dword [esp + 0x2bc], 5
cmp eax, ebp
je 0x405a0d
mov ecx, dword [eax]
jmp 0x405a0f
xor ecx, ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push ebp
push ecx
push eax
mov eax, dword [edx + 0x3c]
call eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2bc], ebx
cmp eax, ebp
je 0x405a6a
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x405a66
cmp esi, ebp
je 0x405a66
mov eax, dword [esi]
cmp eax, ebp
je 0x405a4d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x405a5d
push eax
call fcn.0040a940
add esp, 4
push esi
call fcn.0040a940
add esp, 4
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x18]
push eax
push 0x28
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [esp + 0x18], ebp
je 0x405af2
lea ecx, [esp + 0x8c]
push ecx
push str.SeShutdownPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x94]
push edx
push ebp
push eax
mov dword [esp + 0xa0], 1
mov dword [esp + 0xac], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.00427533
add esp, 0x2ac
ret