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

Disassembly:
push 0x238
mov eax, 0x41a5e1
call fcn.00409e37
lea eax, [ebp - 0x224]
push eax
push 0x41e540
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push esi
push 0x41e610
mov dword [ebp - 0x224], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x407b24
mov eax, ebx
jmp 0x407d87
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 0x407b47
mov ecx, dword [eax]
jmp 0x407b49
xor ecx, ecx
lea edi, [ebp - 0x21c]
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 ecx, dword [ebp - 0x228]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
mov edi, eax
je 0x407b78
call fcn.00404c57
cmp edi, esi
jge 0x407ba1
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x407b8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x407b1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x407b1d
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 0x407bd3
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x407bcb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
jmp 0x407b92
xor ebx, ebx
push 0x206
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.EnableDHCP
mov ebx, eax
call edi
push str.Win32_NetworkAdapterConfiguration
mov dword [ebp - 0x220], eax
call edi
push esi
lea edx, [ebp - 0x234]
push edx
push esi
mov edi, eax
mov eax, dword [ebp - 0x21c]
push esi
push edi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x22c], esi
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x228], edi
call dword [ecx + 0x18]
test eax, eax
mov eax, dword [ebp - 0x21c]
jns 0x407ca8
cmp eax, esi
je 0x407c6e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x407c7e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, esi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x407c90
push dword [ebp - 0x228]
call edi
cmp dword [ebp - 0x220], esi
je 0x407ca0
push dword [ebp - 0x220]
call edi
or eax, 0xffffffff
jmp 0x407d87
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push esi
push edx
push esi
push esi
push esi
push dword [ebp - 0x220]
push ebx
push eax
call dword [ecx + 0x60]
cmp eax, esi
jge 0x407ccc
mov eax, dword [ebp - 0x21c]
jmp 0x407c64
push str.ReturnValue
lea ecx, [ebp - 0x230]
call fcn.00404c0a
mov eax, dword [eax]
mov dword [ebp - 4], 1
cmp eax, esi
je 0x407ced
mov ecx, dword [eax]
jmp 0x407cef
xor ecx, ecx
lea ebx, [ebp - 0x244]
mov eax, dword [ebp - 0x22c]
mov edx, dword [eax]
push esi
push esi
push ebx
push esi
push ecx
push eax
call dword [edx + 0x10]
mov ebx, eax
mov ecx, dword [ebp - 0x230]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x407d21
call fcn.00404c57
mov dword [ebp - 0x230], esi
cmp ebx, esi
jl 0x407cc4
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, esi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x407d74
push dword [ebp - 0x228]
call edi
cmp dword [ebp - 0x220], esi
je 0x407d84
push dword [ebp - 0x220]
call edi
xor eax, eax
inc eax
call fcn.00409e81
ret