Function at 0x405060
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x450dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40515c
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebp
jge 0x4050b9
cmp eax, 0x80010119
jne 0x405156
lea eax, [esp + 0x1c]
push eax
push 0x456590
push 1
push ebp
push 0x456660
mov dword [esp + 0x30], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jl 0x405156
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], ebp
call fcn.00403ef0
mov dword [esp + 0x50], ebp
mov eax, dword [eax]
cmp eax, ebp
je 0x4050f4
mov ecx, dword [eax]
jmp 0x4050f6
xor ecx, ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
lea esi, [esp + 0x18]
push esi
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x28]
mov esi, eax
mov dword [esp + 0x50], 0xffffffff
call fcn.00403f90
cmp esi, ebp
jl 0x40514a
mov eax, dword [esp + 0x18]
push ebp
push ebp
push 3
push 3
push ebp
push ebp
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebp
jge 0x405173
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push str.SELECT__FROM_Win32_PhysicalMemory
lea ebx, [esp + 0x30]
mov dword [esp + 0x24], ebp
call fcn.00403e60
mov esi, eax
push 0x45a168
lea ebx, [esp + 0x2c]
mov dword [esp + 0x54], 1
call fcn.00403e60
mov byte [esp + 0x50], 2
mov ecx, dword [esi]
cmp ecx, ebp
je 0x4051ac
mov ecx, dword [ecx]
jmp 0x4051ae
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebp
je 0x4051b8
mov edx, dword [eax]
jmp 0x4051ba
xor edx, edx
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
lea edi, [esp + 0x20]
push edi
push ebp
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea edi, [esp + 0x28]
mov esi, eax
call fcn.00403f90
lea edi, [esp + 0x2c]
mov dword [esp + 0x50], 0xffffffff
call fcn.00403f90
cmp esi, ebp
jl 0x40513e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x40515c
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x34]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], ebp
je 0x40515c
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
push ebp
push 0x45a16c
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov esi, dword [esp + 0x3c]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret