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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c0a3
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x464024]
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 0x40e961
mov edx, str.Failed_to_initialize_COM_library._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
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 0x40e9b8
mov edx, str.Failed_to_initialize_security._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
add esp, 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x43f4e8
push 1
push 0
push 0x43f4d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x40ea22
mov edx, str.Failed_to_create_IWbemLocator_object.
mov ecx, 0x469798
call fcn.00416b70
mov edx, str.Err_code__0x
mov ecx, eax
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
add esp, 4
push 0xc
mov dword [ebp - 0x14], 0
call fcn.0041b284
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40ea68
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 0x40ee7b
jmp 0x40ea6a
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40ee7b
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 0x40eaef
mov ecx, dword [esi]
test ecx, ecx
je 0x40eaca
push ecx
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40eae1
push eax
call fcn.0041ae9d
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0041b61a
mov eax, dword [ebp - 0x24]
add esp, 8
mov ecx, 0x469798
test eax, eax
jns 0x40eb4e
mov edx, str.Could_not_connect._Error_code__0x
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
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.00416b70
push eax
call fcn.00416e10
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 0x40ebc5
mov edx, str.Could_not_set_proxy_blanket._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40eb2e
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], 0x46a838
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.004020b0
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 0x40ed5f
mov edx, str.Could_not_execute_method._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
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 0x40eb37
push 0xc
call fcn.0041b284
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x40ed9e
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 0x40ee85
jmp 0x40eda0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40ee7b
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 0x40ee0e
mov eax, dword [esi]
test eax, eax
je 0x40edec
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40ee03
push eax
call fcn.0041ae9d
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0041b61a
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.004189f0
push 0x8007000e
call fcn.004189f0
int3