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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15a0
call fcn.004f23a0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x3c
xor ebx, ebx
lea edx, [ebp - 0x1548]
push ebx
push edx
mov dword [ebp - 0x1564], eax
mov dword [ebp - 0x1568], ecx
call fcn.004e8ba0
add esp, 0xc
push 0x54b838
push str.Kernel32.dll
mov dword [ebp - 0x154c], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4c52a4
lea ecx, [ebp - 0x154c]
push ecx
call eax
push 0x1fe
lea eax, [ebp - 0x30a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x30c], dx
call fcn.004e8ba0
mov ecx, dword [ebp - 0x153c]
mov edx, dword [ebp - 0x1538]
mov eax, dword [ebp - 0x1544]
add ecx, 0xfffff
adc edx, ebx
shrd ecx, edx, 0x14
push ecx
mov ecx, dword [ebp - 0x1540]
shr edx, 0x14
add eax, 0xfffff
adc ecx, ebx
shrd eax, ecx, 0x14
push eax
lea edx, [ebp - 0x30c]
push str.___ld_MB_Available:__t_ld_MB
push edx
shr ecx, 0x14
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x1568]
mov ebx, dword [ebp - 0x1564]
push 0xcf
lea edi, [ebp - 0x30c]
call fcn.004c2ef0
add esp, 0x20
xor ebx, ebx
push 0x54b838
push str.Kernel32.dll
mov dword [ebp - 0x154c], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4c535b
lea ecx, [ebp - 0x154c]
push ecx
call eax
push 0x1fe
lea eax, [ebp - 0x30a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x30c], dx
call fcn.004e8ba0
mov ecx, dword [ebp - 0x151c]
mov edx, dword [ebp - 0x1518]
mov eax, dword [ebp - 0x1524]
add ecx, 0xfffff
adc edx, ebx
shrd ecx, edx, 0x14
push ecx
mov ecx, dword [ebp - 0x1520]
shr edx, 0x14
add eax, 0xfffff
adc ecx, ebx
shrd eax, ecx, 0x14
push eax
lea edx, [ebp - 0x30c]
push str._ld_MB_Available:__t_ld_MB
push edx
shr ecx, 0x14
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x1568]
mov ebx, dword [ebp - 0x1564]
push 0xd0
lea edi, [ebp - 0x30c]
call fcn.004c2ef0
add esp, 0x20
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], bl
je 0x4c5974
lea eax, [ebp - 0x1550]
push eax
push 0x5020f8
mov edi, 1
push edi
push ebx
push 0x5021c8
mov dword [ebp - 0x1550], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c596e
mov eax, dword [ebp - 0x1550]
lea edx, [ebp - 0x1558]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x1558], ebx
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4c5960
mov eax, dword [ebp - 0x1558]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x1558]
js 0x4c5958
lea edx, [ebp - 0x1554]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_PhysicalMemory
mov dword [ebp - 0x1554], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c5952
push 0x3fe
lea ecx, [ebp - 0x50a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x156c], ebx
mov dword [ebp - 0x1560], ebx
mov word [ebp - 0x50c], ax
call fcn.004e8ba0
push 0x7e
lea eax, [ebp - 0x10a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x10c], dx
call fcn.004e8ba0
push 0x7fe
lea edx, [ebp - 0xd0a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0xd0c], cx
call fcn.004e8ba0
mov eax, dword [ebp - 0x1554]
add esp, 0x24
cmp eax, ebx
je 0x4c58b6
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4c5490
mov ecx, dword [eax]
lea edx, [ebp - 0x156c]
push edx
lea edx, [ebp - 0x155c]
push edx
push edi
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x156c], ebx
je 0x4c58b0
mov eax, dword [ebp - 0x155c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x157c]
push edx
push ebx
push str.MemoryType
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x157c], di
je 0x4c57ab
movsx eax, word [ebp - 0x1574]
add dword [ebp - 0x1560], edi
cmp eax, 0x15
ja case.default.0x4c54f5
jmp dword [eax*4 + 0x4c5988]
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.Unknown]
add eax, 2
cmp cx, bx
jne 0x4c5500
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5520
movzx ecx, word [eax + str.Other]
add eax, 2
cmp cx, bx
jne 0x4c5520
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5540
movzx ecx, word [eax + str.DRAM]
add eax, 2
cmp cx, bx
jne 0x4c5540
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5560
movzx ecx, word [eax + str.Synchronous_DRAM]
add eax, 2
cmp cx, bx
jne 0x4c5560
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5580
movzx ecx, word [eax + str.Cache_DRAM]
add eax, 2
cmp cx, bx
jne 0x4c5580
jmp 0x4c57a2
xor eax, eax
jmp 0x4c55a0
movzx ecx, word [eax + 0x54b978]
add eax, 2
cmp cx, bx
jne 0x4c55a0
jmp 0x4c57a2
xor eax, eax
jmp 0x4c55c0
movzx ecx, word [eax + str.EDRAM]
add eax, 2
cmp cx, bx
jne 0x4c55c0
jmp 0x4c57a2
xor eax, eax
jmp 0x4c55e0
movzx ecx, word [eax + str.VRAM]
add eax, 2
cmp cx, bx
jne 0x4c55e0
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5600
movzx ecx, word [eax + str.SRAM]
add eax, 2
cmp cx, bx
jne 0x4c5600
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5620
movzx ecx, word [eax + 0x54b9a4]
add eax, 2
cmp cx, bx
jne 0x4c5620
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5640
movzx ecx, word [eax + 0x54b9ac]
add eax, 2
cmp cx, bx
jne 0x4c5640
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5660
movzx ecx, word [eax + str.Flash]
add eax, 2
cmp cx, bx
jne 0x4c5660
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5680
movzx ecx, word [eax + str.EEPROM]
add eax, 2
cmp cx, bx
jne 0x4c5680
jmp 0x4c57a2
xor eax, eax
jmp 0x4c56a0
movzx ecx, word [eax + str.FEPROM]
add eax, 2
cmp cx, bx
jne 0x4c56a0
jmp 0x4c57a2
xor eax, eax
jmp 0x4c56c0
movzx ecx, word [eax + str.EPROM]
add eax, 2
cmp cx, bx
jne 0x4c56c0
jmp 0x4c57a2
xor eax, eax
jmp 0x4c56e0
movzx ecx, word [eax + str.CDRAM]
add eax, 2
cmp cx, bx
jne 0x4c56e0
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5700
movzx ecx, word [eax + str.3DRAM]
add eax, 2
cmp cx, bx
jne 0x4c5700
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5720
movzx ecx, word [eax + str.SDRAM]
add eax, 2
cmp cx, bx
jne 0x4c5720
jmp 0x4c57a2
xor eax, eax
movzx ecx, word [eax + str.SGRAM]
add eax, 2
cmp cx, bx
jne 0x4c5733
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5750
movzx ecx, word [eax + str.RDRAM]
add eax, 2
cmp cx, bx
jne 0x4c5750
jmp 0x4c57a2
xor eax, eax
movzx ecx, word [eax + 0x54ba28]
add eax, 2
cmp cx, bx
jne 0x4c5763
jmp 0x4c57a2
xor eax, eax
jmp 0x4c5780
movzx ecx, word [eax + str.DDR_2]
add eax, 2
cmp cx, bx
jne 0x4c5780
jmp 0x4c57a2
xor eax, eax
movzx ecx, word [eax + str.Unknown]
add eax, 2
cmp cx, bx
jne 0x4c5793
lea ecx, [ebp - 0x157c]
push ecx
call esi
mov eax, dword [ebp - 0x155c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [ebp - 0x158c]
push ecx
push ebx
push str.DeviceLocator
push eax
call edx
cmp word [ebp - 0x158c], di
je 0x4c57ef
mov eax, dword [ebp - 0x1584]
lea edx, [ebp - 0x10c]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4c57e0
lea eax, [ebp - 0x158c]
push eax
call esi
mov eax, dword [ebp - 0x155c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x159c]
push edx
push ebx
push str.Capacity
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x159c], di
je 0x4c5897
mov ecx, dword [ebp - 0x1594]
push ecx
call fcn.004e5185
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x50c]
push str._s:_uM__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x50c]
add esp, 0x18
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c5857
lea edi, [ebp - 0xd0c]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4c5870
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, 1
lea ecx, [ebp - 0x159c]
push ecx
call esi
mov eax, dword [ebp - 0x1554]
cmp eax, ebx
jne 0x4c5490
jmp 0x4c58b6
mov eax, dword [ebp - 0x1554]
mov ecx, dword [ebp - 0x155c]
cmp ecx, ebx
je 0x4c58ce
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x1554]
cmp dword [ebp - 0x1560], ebx
jle 0x4c594a
lea ecx, [ebp - 0xd0c]
push 0x2c
push ecx
call fcn.004e56ec
xor edx, edx
push 0x7fe
mov word [eax - 2], dx
lea ecx, [ebp - 0x150a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x150c], ax
call fcn.004e8ba0
mov eax, dword [ebp - 0x1560]
lea edx, [ebp - 0xd0c]
push edx
push eax
lea ecx, [ebp - 0x150c]
push str._u__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x1568]
mov ebx, dword [ebp - 0x1564]
push 0xf6
lea edi, [ebp - 0x150c]
call fcn.004c2ef0
mov eax, dword [ebp - 0x1554]
add esp, 0x28
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x1558]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1550]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret