Function at 0x40e960
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bee3
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x463024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x40e9d1
mov edx, str.Failed_to_initialize_COM_library._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test esi, esi
jns 0x40ea28
mov edx, str.Failed_to_initialize_security._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x43e4d8
push 1
push 0
push 0x43e4c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x40ea92
mov edx, str.Failed_to_create_IWbemLocator_object.
mov ecx, 0x468798
call fcn.00416740
mov edx, str.Err_code__0x
mov ecx, eax
call fcn.00416740
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
push 0xc
mov dword [ebp - 0x14], 0
call fcn.0041b024
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40ead8
push str.ROOTDefault
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x40eeeb
jmp 0x40eada
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40eeeb
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push dword [esi]
push eax
call dword [ecx + 0xc]
or ebx, 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
lock xadd dword [esi + 8], ecx
dec ecx
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x40eb5f
mov ecx, dword [esi]
test ecx, ecx
je 0x40eb3a
push ecx
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40eb51
push eax
call fcn.0041ac3d
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0041b3ba
mov eax, dword [ebp - 0x24]
add esp, 8
mov ecx, 0x468798
test eax, eax
jns 0x40ebbe
mov edx, str.Could_not_connect._Error_code__0x
call fcn.00416740
push dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.Connected_to_ROOTCIMV2_WMI_namespace
call fcn.00416740
push eax
call fcn.004169e0
add esp, 4
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
test esi, esi
jns 0x40ec35
mov edx, str.Could_not_set_proxy_blanket._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40eb9e
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.CreateRestorePoint
call esi
push str.SystemRestore
mov dword [ebp - 0x2c], eax
call esi
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x1c]
push 0
push esi
push 0
push 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ecx]
push eax
push ecx
mov dword [ebp - 0x24], eax
call dword [edx + 0x18]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
push 0
push edx
push 0
mov dword [ebp - 0x20], 0
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, 8
mov dword [ebp - 0x38], 0x469810
push 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
push edx
push 0
push str.Description
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push dword [ebp - 0x38]
push str.The_command_is:__s_n
call fcn.004020f0
add esp, 8
mov dword [ebp - 0x38], 0x10
mov eax, 3
lea edx, [ebp - 0x40]
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x10]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.RestorePointType
push eax
call dword [ecx + 0x14]
mov eax, 3
mov dword [ebp - 0x38], 0x64
push 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
push edx
push 0
push str.EventType
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], 0
push 0
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push dword [ebp - 0x10]
push 0
push 0
push esi
push dword [ebp - 0x24]
push eax
call dword [ecx + 0x60]
mov dword [ebp - 0x30], eax
test eax, eax
jns 0x40edcf
mov edx, str.Could_not_execute_method._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x24]
call edi
push esi
call edi
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40eba7
push 0xc
call fcn.0041b024
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x40ee0e
push str.ReturnValue
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x40eef5
jmp 0x40ee10
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40eeeb
push 0
push 0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x28]
push edx
push 0
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40ee7e
mov eax, dword [esi]
test eax, eax
je 0x40ee5c
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40ee73
push eax
call fcn.0041ac3d
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0041b3ba
add esp, 8
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call esi
push dword [ebp - 0x24]
call edi
mov eax, dword [ebp - 0x2c]
push eax
call edi
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00418790
push 0x8007000e
call fcn.00418790
int3