Function at 0x4058c5
Capabilities:
Connect to wmi namespace via wbemlocator
Reference absolute stream path on windows

Disassembly:
push 0x674
mov eax, 0x41a3c1
call fcn.00409e37
mov edi, 0x206
xor eax, eax
xor esi, esi
push edi
mov word [ebp - 0x628], ax
push esi
lea eax, [ebp - 0x626]
push eax
call fcn.004087d0
push edi
xor eax, eax
mov word [ebp - 0x420], ax
push esi
lea eax, [ebp - 0x41e]
push eax
call fcn.004087d0
lea eax, [ebp - 0x638]
sub esp, 0xffffffe8
push eax
push 0x41e540
push 1
push esi
push 0x41e610
mov dword [ebp - 0x638], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x405d28
push str.ROOTCIMV2
lea ecx, [ebp - 0x63c]
mov dword [ebp - 0x634], esi
call fcn.00404c0a
mov eax, dword [eax]
mov dword [ebp - 4], esi
cmp eax, esi
je 0x405957
mov ecx, dword [eax]
jmp 0x405959
xor ecx, ecx
mov eax, dword [ebp - 0x638]
lea ebx, [ebp - 0x634]
mov edx, dword [eax]
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x63c]
or dword [ebp - 4], 0xffffffff
mov ebx, eax
cmp ecx, esi
je 0x405988
call fcn.00404c57
cmp ebx, esi
jge 0x4059a7
mov eax, dword [ebp - 0x638]
cmp eax, esi
je 0x40599c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x634]
jmp 0x405d1e
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x634]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
or eax, eax
js 0x405d08
xor ebx, ebx
push edi
mov word [ebp - 0x218], bx
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004087d0
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push str.._rootCIMV2:Win32_NetworkAdapterConfiguration.Index
push str._s_d
push eax
call fcn.00404804
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
call edi
push str.SetDNSServerSearchOrder
mov ebx, eax
call edi
push str.Win32_NetworkAdapterConfiguration
mov dword [ebp - 0x62c], eax
call edi
push esi
lea edx, [ebp - 0x648]
push edx
push esi
mov dword [ebp - 0x630], eax
mov eax, dword [ebp - 0x634]
push esi
push dword [ebp - 0x630]
mov dword [ebp - 0x648], esi
mov dword [ebp - 0x650], esi
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x64c], esi
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x654], esi
mov dword [ebp - 0x63c], esi
call dword [ecx + 0x18]
or eax, eax
jns 0x405ab5
mov eax, dword [ebp - 0x634]
cmp eax, esi
je 0x405a77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x638]
cmp eax, esi
je 0x405a87
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x630], esi
je 0x405a9d
push dword [ebp - 0x630]
call edi
cmp dword [ebp - 0x62c], esi
je 0x405aad
push dword [ebp - 0x62c]
call edi
or eax, 0xffffffff
jmp 0x405d2b
mov eax, dword [ebp - 0x648]
lea edx, [ebp - 0x650]
mov ecx, dword [eax]
push esi
push edx
push esi
push dword [ebp - 0x62c]
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x405a67
lea edx, [ebp - 0x644]
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x405a67
cmp dword [ebp + 0xc], esi
je 0x405b06
lea eax, [ebp - 0x628]
push eax
push dword [ebp + 0xc]
call fcn.00402851
pop eax
pop ecx
cmp dword [ebp + 0x10], esi
je 0x405b1c
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 0x10]
call fcn.00402851
pop eax
pop ecx
cmp dword [ebp + 0xc], esi
je 0x405b30
lea eax, [ebp - 0x628]
push eax
call edi
mov dword [ebp - 0x654], eax
cmp dword [ebp + 0x10], esi
je 0x405b44
lea eax, [ebp - 0x420]
push eax
call edi
mov dword [ebp - 0x63c], eax
cmp dword [ebp + 0xc], esi
je 0x405b53
cmp dword [ebp + 0x10], esi
je 0x405b53
push 2
pop edi
jmp 0x405b56
xor edi, edi
inc edi
mov eax, 0x2008
mov dword [ebp - 0x660], edi
mov word [ebp - 0x670], ax
lea eax, [ebp - 0x660]
push eax
push 1
push 8
mov dword [ebp - 0x65c], esi
mov dword [ebp - 0x640], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov dword [ebp - 0x668], eax
cmp dword [ebp + 0xc], esi
je 0x405bac
lea ecx, [ebp - 0x640]
push dword [ebp - 0x654]
push ecx
push eax
call edi
inc dword [ebp - 0x640]
cmp dword [ebp + 0x10], esi
je 0x405bc6
push dword [ebp - 0x63c]
lea eax, [ebp - 0x640]
push eax
push dword [ebp - 0x668]
call edi
mov eax, dword [ebp - 0x644]
mov ecx, dword [eax]
lea edx, [ebp - 0x670]
push esi
push edx
push esi
push str.DNSServerSearchOrder
push eax
call dword [ecx + 0x14]
test eax, eax
mov eax, dword [ebp - 0x634]
js 0x405a6d
mov ecx, dword [eax]
lea edx, [ebp - 0x64c]
push esi
push edx
push dword [ebp - 0x644]
push esi
push esi
push dword [ebp - 0x62c]
push ebx
push eax
call dword [ecx + 0x60]
cmp eax, esi
jl 0x405a67
push str.ReturnValue
lea ecx, [ebp - 0x658]
call fcn.00404c0a
mov eax, dword [eax]
mov dword [ebp - 4], 1
cmp eax, esi
je 0x405c34
mov ecx, dword [eax]
jmp 0x405c36
xor ecx, ecx
lea edi, [ebp - 0x680]
mov eax, dword [ebp - 0x64c]
mov edx, dword [eax]
push esi
push esi
push edi
push esi
push ecx
push eax
call dword [edx + 0x10]
mov edi, eax
mov ecx, dword [ebp - 0x658]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x405c68
call fcn.00404c57
mov dword [ebp - 0x658], esi
cmp edi, esi
jl 0x405a67
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp + 0xc], esi
je 0x405c83
push dword [ebp - 0x654]
call edi
cmp dword [ebp + 0x10], esi
je 0x405c90
push dword [ebp - 0x63c]
call edi
cmp dword [ebp - 0x630], esi
je 0x405ca0
push dword [ebp - 0x630]
call edi
cmp dword [ebp - 0x62c], esi
je 0x405cb0
push dword [ebp - 0x62c]
call edi
mov eax, dword [ebp - 0x648]
cmp eax, esi
je 0x405cc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x650]
cmp eax, esi
je 0x405cd0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x64c]
cmp eax, esi
je 0x405ce0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x644]
cmp eax, esi
je 0x405cf0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x670]
push eax
call edi
lea eax, [ebp - 0x680]
push eax
call edi
mov eax, dword [ebp - 0x634]
cmp eax, esi
je 0x405d18
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x638]
cmp eax, esi
je 0x405d28
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.00409e81
ret