Function at 0x100bb220
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x108], ebx
mov dword [edi], ebx
call fcn.100be920
cmp eax, 3
je 0x100bb25e
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100bb2f0
push edi
push str.SearchList
push dword [ebp - 0x10c]
call fcn.100bb0d0
lea eax, [ebp - 0x108]
push eax
push str.Domain
push dword [ebp - 0x10c]
call fcn.100bb0d0
add esp, 0x18
test eax, eax
je 0x100bb2e8
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bb2c1
sub ecx, edx
push ecx
push esi
push edi
call fcn.100ba740
push esi
call dword [0x10163188]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
mov dword [ebp - 0x108], ebx
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bb36f
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x10c]
call fcn.100bb0d0
add esp, 0xc
test eax, eax
je 0x100bb367
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bb340
sub ecx, edx
push ecx
push esi
push edi
call fcn.100ba740
push esi
call dword [0x10163188]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
mov dword [ebp - 0x108], ebx
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bb3ef
lea eax, [ebp - 0x108]
push eax
push str.PrimaryDNSSuffix
push dword [ebp - 0x10c]
call fcn.100bb0d0
add esp, 0xc
test eax, eax
je 0x100bb3e7
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bb3c0
sub ecx, edx
push ecx
push esi
push edi
call fcn.100ba740
push esi
call dword [0x10163188]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
mov dword [ebp - 0x108], ebx
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bb5a3
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100bb59b
lea eax, [ebp - 0x110]
inc ebx
push eax
push 1
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bb566
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x110]
call fcn.100bb0d0
add esp, 0xc
test eax, eax
je 0x100bb4bc
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bb497
sub ecx, edx
push ecx
push esi
push edi
call fcn.100ba740
push esi
call dword [0x10163188]
add esp, 0x10
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str.Domain
push dword [ebp - 0x110]
call fcn.100bb0d0
add esp, 0xc
test eax, eax
je 0x100bb50a
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bb4e5
sub ecx, edx
push ecx
push esi
push edi
call fcn.100ba740
push esi
call dword [0x10163188]
add esp, 0x10
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str.DhcpDomain
push dword [ebp - 0x110]
call fcn.100bb0d0
add esp, 0xc
test eax, eax
je 0x100bb558
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bb533
sub ecx, edx
push ecx
push esi
push edi
call fcn.100ba740
push esi
call dword [0x10163188]
add esp, 0x10
mov dword [ebp - 0x108], 0
push dword [ebp - 0x110]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100bb447
push dword [ebp - 0x10c]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop esi
setne al
xor ecx, ebp
pop edi
pop ebx
call fcn.100b8868
mov esp, ebp
pop ebp
ret