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

Disassembly:
push 0xffffffffffffffff
push 0x608178
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x64]
xor ebx, ebx
cmp eax, ebx
je 0x4c5acf
mov edi, dword [esp + 0x68]
cmp edi, ebx
je 0x4c5acf
push ebx
mov byte [eax], bl
push ebx
mov byte [edi], bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x4c5a9a
cmp eax, 0x8007000e
je 0x4c5a9a
cmp eax, 0x8000ffff
je 0x4c5a9a
cmp eax, 0x80010106
je 0x4c5a9a
cmp eax, ebx
jge 0x4c5a9a
push eax
mov eax, dword [esp + 0x70]
push str._PCI__Failed_to_initialize_COM_library._Error_code__0x_x
push eax
call fcn.005dfb23
add esp, 0xc
jmp 0x4c5acf
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x4c5ae5
cmp eax, 0x80010119
je 0x4c5ae5
mov ecx, dword [esp + 0x6c]
push eax
push str._PCI__Failed_to_initialize_security._Error_code__0x_x
push ecx
call fcn.005dfb23
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea edx, [esp + 0x20]
push edx
push 0x66cf30
push 1
push ebx
push 0x66d000
mov dword [esp + 0x34], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x4c5b12
push eax
mov eax, dword [esp + 0x70]
push str._PCI__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
push eax
jmp 0x4c5ac1
push str.ROOTCIMV2
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
call fcn.004031a0
mov eax, dword [eax]
mov dword [esp + 0x5c], ebx
cmp eax, ebx
je 0x4c5b32
mov ecx, dword [eax]
jmp 0x4c5b34
xor ecx, ecx
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea esi, [esp + 0x1c]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c5b8f
mov ecx, dword [esp + 0x6c]
push esi
push str._PCI__Could_not_ConnectServer._Error_code__0x_x
push ecx
call fcn.005dfb23
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x4c5ac9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c5ac9
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x4c5be4
mov edx, dword [esp + 0x6c]
push eax
push str._PCI__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edx
call fcn.005dfb23
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x4c5bcb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4c5ac9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c5ac9
push str.SELECT__FROM_Win32_ComputerSystem
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ebx
call fcn.004c51c0
mov esi, eax
push 0x64298c
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], 1
call fcn.004c51c0
mov ecx, dword [esi]
mov byte [esp + 0x5c], 2
cmp ecx, ebx
je 0x4c5c1d
mov ecx, dword [ecx]
jmp 0x4c5c1f
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4c5c29
mov edx, dword [eax]
jmp 0x4c5c2b
xor edx, edx
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
lea ebp, [esp + 0x18]
push ebp
push ebx
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00403250
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c5c8d
mov ecx, dword [esp + 0x6c]
push esi
push str._PCI__Query_for_Win32_ComputerSystem_failed._Error_code__0x_x
push ecx
call fcn.005dfb23
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x4c5bcb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c5bcb
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x4c5dca
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebp, dword [esp + 0x64]
lea esp, [esp]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
push edx
push 1
mov dword [esp + 0x34], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xffffffffffffffff
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
je 0x4c5dc6
cmp eax, ebx
je 0x4c5dc6
cmp byte [ebp], bl
jne 0x4c5d48
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
push ebx
push 0x642a98
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4c5d3d
lea ecx, [esp + 0x64]
push ecx
push eax
mov dword [esp + 0x6c], ebx
call fcn.004da960
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, ebx
je 0x4c5d3d
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c5d20
push ebp
call fcn.004c3d80
mov edx, dword [esp + 0x68]
push edx
call fcn.005e0865
add esp, 8
lea eax, [esp + 0x34]
push eax
call esi
mov eax, dword [esp + 0x14]
cmp byte [edi], bl
jne 0x4c5db3
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push ebx
push 0x642c9c
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4c5da4
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], ebx
call fcn.004da960
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
je 0x4c5da4
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c5d87
push edi
call fcn.004c3d80
mov edx, dword [esp + 0x28]
push edx
call fcn.005e0865
add esp, 8
lea eax, [esp + 0x44]
push eax
call esi
mov eax, dword [esp + 0x14]
cmp byte [edi], bl
je 0x4c5db8
cmp byte [ebp], bl
jne 0x4c5dc6
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x4c5cb0
jmp 0x4c5dca
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x4c5de2
mov ecx, dword [edx]
push edx
mov edx, dword [ecx + 8]
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
cmp edx, ebx
je 0x4c5dfa
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push edx
call ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, ebx
je 0x4c5e0a
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4c5e16
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret