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

Disassembly:
push 0x264
mov eax, 0x41a527
call fcn.00409e37
lea eax, [ebp - 0x220]
push eax
push 0x41e540
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push esi
push 0x41e610
mov dword [ebp - 0x220], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x406b15
mov eax, ebx
jmp 0x406e3e
push str.ROOTCIMV2
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x228]
call fcn.00404c0a
mov eax, dword [eax]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x406b38
mov ecx, dword [eax]
jmp 0x406b3a
xor ecx, ecx
lea edi, [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
call dword [edx + 0xc]
mov edi, eax
mov ecx, dword [ebp - 0x228]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x406b69
call fcn.00404c57
cmp edi, esi
jge 0x406b87
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406b0e
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x406bc1
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x406bb1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
cmp eax, esi
je 0x406b0e
jmp 0x406b7f
xor ebx, ebx
lea eax, [ebp - 0x216]
push 0x206
mov word [ebp - 0x218], bx
push esi
push eax
call fcn.004087d0
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push str.._rootCIMV2:Win32_NetworkAdapterConfiguration.Index
push str._s_d
push eax
call fcn.00404804
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea eax, [ebp - 0x218]
sub esp, 0xffffffe4
push eax
call edi
push str.SetWINSServer
mov dword [ebp - 0x23c], eax
call edi
push str.Win32_NetworkAdapterConfiguration
mov dword [ebp - 0x228], eax
call edi
mov ecx, dword [ebp - 0x21c]
push esi
lea ebx, [ebp - 0x22c]
push ebx
push esi
push esi
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x230], esi
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
test eax, eax
jns 0x406c7c
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x406c64
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
cmp eax, esi
je 0x406c74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
jmp 0x406e3e
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x234]
push edx
push esi
push dword [ebp - 0x228]
push eax
call dword [ecx + 0x4c]
or eax, eax
js 0x406c54
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x406c54
mov ebx, 0x41b390
push ebx
call edi
push ebx
mov dword [ebp - 0x240], eax
call edi
lea edx, [ebp - 0x250]
mov ebx, dword [ebp - 0x240]
push 8
pop ecx
push esi
push edx
push esi
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x224]
push str.WINSPrimaryServer
mov word [ebp - 0x250], cx
mov dword [ebp - 0x248], ebx
mov word [ebp - 0x260], cx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
or eax, eax
js 0x406c54
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push esi
push edx
push esi
push str.WINSSecondaryServer
push eax
call dword [ecx + 0x14]
or eax, eax
mov eax, dword [ebp - 0x21c]
js 0x406c5a
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x230]
push edx
push dword [ebp - 0x224]
push esi
push esi
push dword [ebp - 0x228]
push dword [ebp - 0x23c]
push eax
call dword [ecx + 0x60]
cmp eax, esi
jl 0x406c54
push str.ReturnValue
lea ecx, [ebp - 0x238]
call fcn.00404c0a
mov eax, dword [eax]
mov dword [ebp - 4], 1
cmp eax, esi
je 0x406d7c
mov ecx, dword [eax]
jmp 0x406d7e
xor ecx, ecx
mov eax, dword [ebp - 0x230]
lea edi, [ebp - 0x270]
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 - 0x238]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x406db0
call fcn.00404c57
mov dword [ebp - 0x238], esi
cmp edi, esi
jl 0x406c54
cmp ebx, esi
je 0x406dc3
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x22c]
cmp eax, esi
je 0x406dd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x234]
cmp eax, esi
je 0x406de3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x406df3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x406e03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x250]
push eax
call edi
lea eax, [ebp - 0x270]
push eax
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x406e2b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
cmp eax, esi
je 0x406e3b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.00409e81
ret