Function at 0x4860c0
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 0x486148
cmp byte [edi], 0
je 0x4860ef
test ebp, ebp
jne 0x4862c9
jmp 0x4863f0
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x48629f
sub esp, 0x24
movaps xmm0, xmmword [0x4fd010]
movups xmmword [esp + 0x10], xmm0
movaps xmm0, xmmword [0x4fd020]
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x4862b0
push dbg.CoUninitializeWrap()
call dbg.atexit
add esp, 4
mov dword [0x5052b4], 0
mov edi, dword [esp + 0x24]
mov ebp, dword [edi*4 + 0x505cac]
test ebp, ebp
je 0x4861b6
mov ebx, dword [sym.imp.OLEAUT32.dll_SysAllocString]
push 0x4fd068
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 0x4863f0
test esi, esi
jns 0x4863f0
push esi
push dword [esp + 0x20]
push str.Query_for__ls_failed._Error_code__0x_lX
push eax
call dbg.ffStrbufAppendF
add esp, 0x10
jmp 0x4863f0
mov dword [esp], 0
mov eax, esp
push eax
push 0x4f93c8
push 1
push 0
push 0x4f93b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4862a6
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 0x48632a
mov eax, dword [esp + 4]
sub esp, 0x20
movaps xmm0, xmmword [0x4fd030]
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 0x486331
mov eax, dword [esp + 0x24]
mov dword [eax*4 + 0x505cac], ebp
jmp 0x486157
mov edi, str.CoInitializeEx___failed
jmp 0x4862bb
mov edi, str.Failed_to_create_IWbemLocator_object
jmp 0x48633d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, str.CoInitializeSecurity___failed
mov dword [0x5052b4], edi
test ebp, ebp
je 0x4863f0
cmp dword [ebp], 0
je 0x4862d7
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4862df
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
push edi
call sym._strlen
add esp, 4
test eax, eax
je 0x4863f0
mov esi, eax
mov eax, dword [ebp]
mov ecx, eax
sub ecx, 1
jb 0x486311
cmp ecx, esi
jb 0x486311
mov eax, dword [ebp + 8]
xor ecx, ecx
jmp 0x4863d4
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 0x486320
jmp 0x4863a8
mov edi, str.Could_not_connect_WMI_server
jmp 0x48633d
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 0x4863f0
cmp dword [ebp], 0
je 0x486357
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x48635f
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
push edi
call sym._strlen
add esp, 4
test eax, eax
je 0x4863f0
mov esi, eax
mov eax, dword [ebp]
mov ecx, eax
sub ecx, 1
jb 0x486383
cmp ecx, esi
jae 0x486307
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 0x4863a0
test eax, eax
je 0x4863c0
push ebx
push dword [ebp + 8]
call sym._realloc
add esp, 8
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
jmp 0x4863d1
push ebx
call sym._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 sym._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