Function at 0x407ce0
Capabilities:
Connect to wmi namespace via wbemlocator
Get system information on windows
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x85c
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x407e42
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]
test eax, eax
js 0x407e3c
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x14]
push eax
push 0x4162c8
push 1
push 0
push 0x4162a8
mov dword [esp + 0x28], 0
call esi
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esp + 0x3c], 9
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jne 0x407ddb
lea eax, [esp + 0x18]
push eax
push 0x4162d8
push 1
push 0
push 0x4162b8
call esi
test eax, eax
js 0x407e3c
push str.__ProviderArchitecture
call edi
mov esi, eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x18]
mov eax, 3
mov word [esp + 0x28], ax
lea eax, [esp + 0x28]
push eax
push 0
mov dword [esp + 0x38], 0x40
mov edx, dword [ecx]
push esi
push ecx
call dword [edx + 0x20]
mov esi, eax
lea eax, [esp + 0x28]
push eax
call ebx
test esi, esi
js 0x407e3c
push str.ROOTCIMV2
mov dword [esp + 0x14], 0
call edi
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x10]
push esi
push dword [esp + 0x1c]
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
js 0x407e32
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esp + 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x407e59
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.00407f82
mov esp, ebp
pop ebp
ret
push 0x41b0a8
call edi
push str.SELECT__FROM_Win32_ShadowCopy
mov esi, eax
call edi
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x1c]
push edi
push 0
push 0x30
push eax
mov dword [esp + 0x2c], 0
mov edx, dword [ecx]
push esi
push ecx
call dword [edx + 0x50]
test eax, eax
jns 0x407e9d
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
jmp 0x407f5c
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
test ecx, ecx
je 0x407f36
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
nop
mov eax, dword [ecx]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x24]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [esp + 0x24], 0
je 0x407f36
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x41b0f0
push eax
call dword [ecx + 0x10]
push dword [esp + 0x30]
lea eax, [esp + 0x64]
push str.Win32_ShadowCopy.ID_s
push eax
call esi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x6c]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0x40]
lea eax, [esp + 0x28]
push eax
call ebx
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x407ec0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x407f44
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x864]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407f82
mov esp, ebp
pop ebp
ret