Function at 0x485e90
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ebp, dword [esp + 0x20]
mov dword [ecx], 0
mov edi, dword [0x5052b4]
test edi, edi
je 0x485f18
cmp byte [edi], 0
je 0x485ebf
test ebp, ebp
jne 0x486099
jmp 0x4861c0
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x48606f
sub esp, 0x24
movaps xmm0, xmmword [0x4fcf30]
movups xmmword [esp + 0x10], xmm0
movaps xmm0, xmmword [0x4fcf40]
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x486080
push 0x4852f0
call fcn.00401320
add esp, 4
mov dword [0x5052b4], 0
mov edi, dword [esp + 0x24]
mov ebp, dword [edi*4 + 0x505cac]
test ebp, ebp
je 0x485f86
mov ebx, dword [sym.imp.OLEAUT32.dll_SysAllocString]
push 0x4fcf88
call ebx
mov edi, eax
push dword [esp + 0x1c]
call ebx
mov ebx, eax
mov eax, dword [ebp]
push esi
push 0
push 0x30
push ebx
push edi
push ebp
call dword [eax + 0x50]
mov esi, eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysFreeString]
push ebx
call ebp
push edi
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4861c0
test esi, esi
jns 0x4861c0
push esi
push dword [esp + 0x20]
push str.Query_for__ls_failed._Error_code__0x_lX
push eax
call fcn.00472860
add esp, 0x10
jmp 0x4861c0
mov dword [esp], 0
mov eax, esp
push eax
push 0x4f92b8
push 1
push 0
push 0x4f92a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x486076
test edi, edi
mov eax, str.ROOTCIMV2
mov ecx, str.ROOTWMI
cmove ecx, eax
mov dword [esp + 4], 0
mov ebx, dword [esp]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysAllocString]
mov edi, eax
mov eax, dword [ebx]
sub esp, 0x24
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ecx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [eax + 0xc]
mov ebx, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp], 0
test ebx, ebx
js 0x4860fa
mov eax, dword [esp + 4]
sub esp, 0x20
movaps xmm0, xmmword [0x4fcf50]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebp, dword [esp + 4]
test eax, eax
js 0x486101
mov eax, dword [esp + 0x24]
mov dword [eax*4 + 0x505cac], ebp
jmp 0x485f27
mov edi, str.CoInitializeEx___failed
jmp 0x48608b
mov edi, str.Failed_to_create_IWbemLocator_object
jmp 0x48610d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, str.CoInitializeSecurity___failed
mov dword [0x5052b4], edi
test ebp, ebp
je 0x4861c0
cmp dword [ebp], 0
je 0x4860a7
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4860af
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x4861c0
mov esi, eax
mov eax, dword [ebp]
mov ecx, eax
sub ecx, 1
jb 0x4860e1
cmp ecx, esi
jb 0x4860e1
mov eax, dword [ebp + 8]
xor ecx, ecx
jmp 0x4861a4
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov edx, esi
inc edx
nop
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x4860f0
jmp 0x486178
mov edi, str.Could_not_connect_WMI_server
jmp 0x48610d
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
mov edi, str.Could_not_set_proxy_blanket
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4861c0
cmp dword [ebp], 0
je 0x486127
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x48612f
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x4861c0
mov esi, eax
mov eax, dword [ebp]
mov ecx, eax
sub ecx, 1
jb 0x486153
cmp ecx, esi
jae 0x4860d7
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov edx, esi
inc edx
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x486170
test eax, eax
je 0x486190
push ebx
push dword [ebp + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
jmp 0x4861a1
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [ebp + 8], eax
xor ecx, ecx
mov dword [ebp], ebx
add ecx, eax
push esi
push edi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 4]
add eax, esi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc