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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x414024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40118f
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 0x401189
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x138]
push eax
push 0x40d224
push 1
push 0
push 0x40d204
mov dword [ebp - 0x138], 0
call esi
lea eax, [ebp - 0x130]
mov dword [ebp - 0x13c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x130], 9
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jne 0x40111a
lea eax, [ebp - 0x13c]
push eax
push 0x40d234
push 1
push 0
push 0x40d214
call esi
test eax, eax
js 0x401189
push str.__ProviderArchitecture
call edi
mov esi, eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [ebp - 0x13c]
mov eax, 3
mov word [ebp - 0x158], ax
lea eax, [ebp - 0x158]
push eax
push 0
mov dword [ebp - 0x150], 0x40
mov ecx, dword [edx]
push esi
push edx
call dword [ecx + 0x20]
mov esi, eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x401189
push str.ROOTCIMV2
mov dword [ebp - 0x134], 0
call edi
mov edx, dword [ebp - 0x138]
lea esi, [ebp - 0x134]
push esi
push dword [ebp - 0x13c]
mov ecx, dword [edx]
push 0
push 0
push 0
push 0
push 0
push eax
push edx
call dword [ecx + 0xc]
test eax, eax
js 0x40117d
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x134]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4011a2
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
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 [ebp - 4]
xor ecx, ebp
call fcn.00401ea5
mov esp, ebp
pop ebp
ret
push 0x411d08
call edi
push str.SELECT__FROM_Win32_ShadowCopy
mov esi, eax
call edi
mov edx, dword [ebp - 0x134]
lea ebx, [ebp - 0x140]
push ebx
push 0
push 0x30
push eax
mov dword [ebp - 0x140], 0
mov ecx, dword [edx]
push esi
push edx
call dword [ecx + 0x50]
test eax, eax
jns 0x4011f0
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
jmp 0x4012fc
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x10c], 0
test ecx, ecx
je 0x4012ce
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [eax + eax]
mov eax, dword [ecx]
lea edx, [ebp - 0x10c]
push edx
lea edx, [ebp - 0x144]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x10c], 0
je 0x4012ce
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x158]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x411d50
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x150]
lea eax, [ebp - 0x108]
push str.Win32_ShadowCopy.ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4012a7
mov ecx, dword [ebp - 0x134]
push 0
push dword [ebp - 0x13c]
mov edx, dword [ecx]
push 0
push esi
push ecx
call dword [edx + 0x40]
push esi
call ebx
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x140]
test ecx, ecx
jne 0x401220
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x4012de
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ea5
mov esp, ebp
pop ebp
ret