Function at 0x405070
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 0x424250
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 0x4052a2
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x14]
push eax
push 0x4192f8
push 1
push 0
push 0x4193c8
call esi
test eax, eax
js 0x405268
lea eax, [ebp - 0xc]
push eax
push 0x419338
push 1
push 0
push 0x4193d8
call esi
test eax, eax
js 0x405268
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 0x405177
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 0x405268
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 0x405268
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 0x405268
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 0x405268
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x405275
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 0x405268
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 0x4242e0
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 0x4051f0
jmp 0x405275
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x405275
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x405282
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40528f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40529c
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