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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
lea eax, [esp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push edi
push eax
push 0x4192d0
push 1
push 0
push 0x4192b0
call esi
test eax, eax
js 0x4068ae
push str.IsWow64Process
push str.kernel32.dll
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, eax
test ebx, ebx
je 0x4066ac
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4066ed
cmp dword [esp + 0x20], 0
je 0x4066ed
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 3
mov dword [esp + 0x30], 0x40
mov word [esp + 0x28], ax
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x18]
push edx
push 0
push str.__ProviderArchitecture
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
lea eax, [esp + 0x28]
push eax
call edi
lea eax, [esp + 0x24]
push eax
push 0x4192c0
push 0x4401
push 0
push 0x4192a0
call esi
test eax, eax
js 0x4068a4
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4068a4
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push str.ROOTcimv2
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x40689a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40689a
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x406890
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0
push 0x30
push str.select__from_Win32_ShadowCopy
mov dword [esp + 0x2c], 0
mov ecx, dword [eax]
push 0x41f294
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x406890
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x14], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x10], 0
je 0x406890
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x41f29c
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x406854
cmp word [esp + 0x28], 8
jne 0x406854
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x34]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x30]
mov esi, eax
push ecx
push str.Win32_ShadowCopy.ID_s
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x1a
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
test esi, esi
je 0x40684d
mov eax, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x40]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x28]
push eax
call edi
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [esp + 0x28]
push eax
call edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x14], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x10], 0
jne 0x4067c6
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret