Function at 0x479b10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x501040]
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.0047d160
cmp eax, 3
je 0x479b4e
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
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 0x479be0
push edi
push str.SearchList
push dword [ebp - 0x10c]
call fcn.004799c0
lea eax, [ebp - 0x108]
push eax
push str.Domain
push dword [ebp - 0x10c]
call fcn.004799c0
add esp, 0x18
test eax, eax
je 0x479bd8
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479bb1
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479040
push esi
call dword [0x50114c]
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 0x479c5f
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x10c]
call fcn.004799c0
add esp, 0xc
test eax, eax
je 0x479c57
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 0x479c30
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479040
push esi
call dword [0x50114c]
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 0x479cdf
lea eax, [ebp - 0x108]
push eax
push str.PrimaryDNSSuffix
push dword [ebp - 0x10c]
call fcn.004799c0
add esp, 0xc
test eax, eax
je 0x479cd7
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 0x479cb0
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479040
push esi
call dword [0x50114c]
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 0x479e93
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 0x479e8b
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 0x479e56
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x110]
call fcn.004799c0
add esp, 0xc
test eax, eax
je 0x479dac
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479d87
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479040
push esi
call dword [0x50114c]
add esp, 0x10
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str.Domain
push dword [ebp - 0x110]
call fcn.004799c0
add esp, 0xc
test eax, eax
je 0x479dfa
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479dd5
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479040
push esi
call dword [0x50114c]
add esp, 0x10
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str.DhcpDomain
push dword [ebp - 0x110]
call fcn.004799c0
add esp, 0xc
test eax, eax
je 0x479e48
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479e23
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479040
push esi
call dword [0x50114c]
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 0x479d37
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.0047299a
mov esp, ebp
pop ebp
ret