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

Disassembly:
push 0x258
mov eax, 0x41a4e9
call fcn.00409e37
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
push 0x41e540
push 1
xor esi, esi
push esi
push 0x41e610
mov dword [ebp - 0x224], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x406ace
push str.ROOTCIMV2
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x220], esi
call fcn.00404c0a
mov eax, dword [eax]
mov dword [ebp - 4], esi
cmp eax, esi
je 0x40673e
mov ecx, dword [eax]
jmp 0x406740
xor ecx, ecx
lea edi, [ebp - 0x220]
mov eax, dword [ebp - 0x224]
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 - 0x22c]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x40676f
call fcn.00404c57
cmp edi, esi
jge 0x40678e
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x406783
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
jmp 0x406ac4
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x406aae
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
push esi
lea eax, [ebp - 0x216]
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]
sub esp, 0xffffffe4
lea eax, [ebp - 0x218]
push eax
call edi
push str.SetTcpipNetbios
mov dword [ebp - 0x244], eax
call edi
push str.Win32_NetworkAdapterConfiguration
mov dword [ebp - 0x228], eax
call edi
push esi
lea edx, [ebp - 0x234]
push edx
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x220]
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x238], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
or eax, eax
jns 0x406898
mov eax, dword [ebp - 0x220]
cmp eax, esi
je 0x40685a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x40686a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x21c], esi
je 0x406880
push dword [ebp - 0x21c]
call edi
cmp dword [ebp - 0x228], esi
je 0x406890
push dword [ebp - 0x228]
call edi
or eax, 0xffffffff
jmp 0x406ad1
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x23c]
push edx
push esi
push dword [ebp - 0x228]
push eax
call dword [ecx + 0x4c]
or eax, eax
js 0x40684a
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x3c]
or eax, eax
js 0x40684a
push ebx
call edi
push 8
lea edx, [ebp - 0x254]
mov dword [ebp - 0x22c], eax
pop ecx
push 0x13
push edx
push esi
mov word [ebp - 0x254], cx
mov eax, dword [ebp - 0x230]
push str.TcpipNetbiosOptions
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
or eax, eax
mov eax, dword [ebp - 0x220]
jns 0x406968
cmp eax, esi
je 0x40691b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x40692b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x21c], esi
je 0x406941
push dword [ebp - 0x21c]
call edi
cmp dword [ebp - 0x228], esi
je 0x406951
push dword [ebp - 0x228]
call edi
cmp dword [ebp - 0x22c], esi
je 0x406890
push dword [ebp - 0x22c]
jmp 0x40688e
mov ecx, dword [eax]
lea edx, [ebp - 0x238]
mov ebx, dword [ebp - 0x228]
push esi
push edx
push dword [ebp - 0x230]
push esi
push esi
push ebx
push dword [ebp - 0x244]
push eax
call dword [ecx + 0x60]
cmp eax, esi
jge 0x4069cc
mov eax, dword [ebp - 0x220]
cmp eax, esi
je 0x40699f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x4069af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x21c], esi
je 0x4069c5
push dword [ebp - 0x21c]
call edi
cmp ebx, esi
je 0x406951
push ebx
jmp 0x40694f
push str.ReturnValue
lea ecx, [ebp - 0x240]
call fcn.00404c0a
mov eax, dword [eax]
mov dword [ebp - 4], 1
cmp eax, esi
je 0x4069ed
mov ecx, dword [eax]
jmp 0x4069ef
xor ecx, ecx
lea edi, [ebp - 0x264]
mov eax, dword [ebp - 0x238]
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 - 0x240]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x406a21
call fcn.00404c57
mov dword [ebp - 0x240], esi
cmp edi, esi
jl 0x40698f
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x21c], esi
je 0x406a3f
push dword [ebp - 0x21c]
call edi
cmp ebx, esi
je 0x406a46
push ebx
call edi
cmp dword [ebp - 0x22c], esi
je 0x406a56
push dword [ebp - 0x22c]
call edi
mov eax, dword [ebp - 0x234]
cmp eax, esi
je 0x406a66
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x23c]
cmp eax, esi
je 0x406a76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238]
cmp eax, esi
je 0x406a86
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x406a96
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x254]
push eax
call edi
lea eax, [ebp - 0x264]
push eax
call edi
mov eax, dword [ebp - 0x220]
cmp eax, esi
je 0x406abe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x406ace
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.00409e81
ret