Function at 0x4114e0
Capabilities:
Connect to wmi namespace via wbemlocator
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x5e6044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x84]
mov edi, ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00411350
mov ebx, eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x28c], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411516
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jg 0x411565
lea eax, [esi + esi]
call fcn.0054d100
mov ebx, esp
test ebx, ebx
je 0x41155f
push esi
push ebx
xor eax, eax
push 0xffffffffffffffff
mov word [ebx], ax
lea eax, [ebp - 0x44]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
mov ebx, dword [ebp - 0x28c]
jmp 0x411567
mov ebx, dword [ebp - 0x28c]
xor esi, esi
test ebx, ebx
je 0x411a76
push str.._rootcimv2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov dword [ebp - 0x28c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 2
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push edi
push 0x5bffcc
push 1
push 0
push 0x5c009c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4115d7
mov ecx, dword [edi]
lea eax, [edi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push dword [ebp - 0x28c]
push ecx
call dword [edx + 0xc]
push dword [ebp - 0x28c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, edi
lea eax, [edi + 0xc]
push eax
push esi
push dword [edi + 8]
push dword [edi + 4]
call fcn.004113e0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x2ec]
push eax
mov dword [ebp - 0x288], 0
call esi
mov eax, dword [edi + 4]
lea edx, [ebp - 0x288]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push dword [edi + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x288]
lea edx, [ebp - 0x2ec]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.DHCPEnabled
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x411662
mov dword [edi + 0x40], 0
jmp 0x411673
movzx eax, byte [ebp - 0x2e4]
mov dword [edi + 0x40], 1
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2ac]
push eax
call esi
mov eax, dword [edi + 4]
lea edx, [ebp - 0x288]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push dword [edi + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x288]
lea edx, [ebp - 0x2ac]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.DNSServerSearchOrder
push eax
call dword [ecx + 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
test eax, eax
js 0x411754
cmp word [ebp - 0x2ac], 1
je 0x411754
lea eax, [ebp - 0x290]
push eax
push 1
push dword [ebp - 0x2a4]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [ebp - 0x298]
push eax
push 1
push dword [ebp - 0x2a4]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2a4]
call esi
mov eax, dword [ebp - 0x290]
mov dword [edi + 0x44], 1
mov dword [edi + 0x48], 0
cmp dword [ebp - 0x298], eax
jle 0x411762
inc eax
mov dword [ebp - 0x294], eax
lea eax, [edi + 0x20]
push eax
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x2a4]
call esi
mov dword [edi + 0x48], 1
jmp 0x411762
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x288]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push dword [edi + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x288]
lea edx, [ebp - 0x2bc]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.DefaultIPGateway
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x41182a
mov dword [edi + 0x3c], 0
mov dword [edi + 0x18], 0
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x288]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push dword [edi + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x288]
lea edx, [ebp - 0x2cc]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.IPSubnet
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x411868
mov dword [edi + 0x38], 0
mov dword [edi + 0x14], 0
jmp 0x411897
cmp word [ebp - 0x2bc], 1
je 0x4117be
lea eax, [ebp - 0x290]
push eax
push 1
push dword [ebp - 0x2b4]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2b4]
call esi
mov dword [edi + 0x3c], 1
jmp 0x4117c5
lea eax, [ebp - 0x290]
push eax
push 1
push dword [ebp - 0x2c4]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2c4]
call esi
mov dword [edi + 0x38], 1
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x288]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push dword [edi + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x288]
lea edx, [ebp - 0x2dc]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.IPAddress
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x4118fc
mov dword [edi + 0x34], 0
mov dword [edi + 0x10], 0
jmp 0x41192b
lea eax, [ebp - 0x290]
push eax
push 1
push dword [ebp - 0x2d4]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2d4]
call esi
mov dword [edi + 0x34], 1
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2fc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x288]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push dword [edi + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x288]
lea edx, [ebp - 0x2fc]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.SettingID
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x411987
xor ebx, ebx
jmp 0x411a5d
push 0x100
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
mov dword [ebp - 0x28c], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x2f4]
push esi
call sub.OLEAUT32.dll_VarBstrCmp
lea eax, [ebp - 0x294]
push eax
push 0x20019
push 0
push dword [ebp - 0x28c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411a3e
push 0x200
push eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x29c], 0x100
push eax
call fcn.0054f5e0
add esp, 0xc
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x284]
push eax
push 0
push 0
push str.NameServer
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411a31
cmp word [ebp - 0x284], ax
je 0x411a31
mov dword [edi + 0x28], eax
jmp 0x411a40
xor eax, eax
cmp dword [edi + 0x24], eax
setne al
mov dword [edi + 0x28], eax
jmp 0x411a40
xor ebx, ebx
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x28c]
call esi
lea eax, [ebp - 0x2fc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x288]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
lea esp, [ebp - 0x308]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054d0e6
mov esp, ebp
pop ebp
ret