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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push 0x424ac0
call esi
push str.SELECT__FROM_Win32_ShadowCopy
mov dword [ebp - 0x38], eax
call esi
push str.__ProviderArchitecture
mov dword [ebp - 0x34], eax
call esi
push str.ROOTCIMV2
mov dword [ebp - 0x2c], eax
call esi
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4051e2
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x14]
push eax
push 0x41d2e8
push 1
push 0
push 0x41d308
call esi
test eax, eax
js 0x4051a8
lea eax, [ebp - 0xc]
push eax
push 0x41d2f8
push 1
push 0
push 0x41d318
call esi
test eax, eax
js 0x4051a8
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x5c], 9
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jne 0x4050b7
lea eax, [ebp - 0x28]
push eax
call edi
mov eax, 3
mov dword [ebp - 0x20], 0x40
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
push edx
push 0
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
call ebx
test esi, esi
js 0x4051a8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
push edx
push dword [ebp - 0xc]
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x30]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4051a8
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4051a8
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0
push 0x30
push dword [ebp - 0x34]
mov ecx, dword [eax]
push dword [ebp - 0x38]
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x4051a8
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4051b5
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
nop dword [eax + eax]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x18], 0
je 0x4051a8
lea eax, [ebp - 0x28]
push eax
call edi
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x424b50
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x20]
lea eax, [ebp - 0x460]
push str.Win32_ShadowCopy.ID_s
push eax
call esi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x460]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0x40]
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x405130
jmp 0x4051b5
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4051b5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4051c2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4051cf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4051dc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret