Function at 0x479cf0
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.0047d330
cmp eax, 3
je 0x479d2e
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
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 0x479dc0
push edi
push str.SearchList
push dword [ebp - 0x10c]
call fcn.00479ba0
lea eax, [ebp - 0x108]
push eax
push str.Domain
push dword [ebp - 0x10c]
call fcn.00479ba0
add esp, 0x18
test eax, eax
je 0x479db8
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479d91
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479220
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 0x479e3f
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x10c]
call fcn.00479ba0
add esp, 0xc
test eax, eax
je 0x479e37
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 0x479e10
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479220
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 0x479ebf
lea eax, [ebp - 0x108]
push eax
push str.PrimaryDNSSuffix
push dword [ebp - 0x10c]
call fcn.00479ba0
add esp, 0xc
test eax, eax
je 0x479eb7
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 0x479e90
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479220
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 0x47a073
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 0x47a06b
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 0x47a036
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x110]
call fcn.00479ba0
add esp, 0xc
test eax, eax
je 0x479f8c
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479f67
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479220
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.00479ba0
add esp, 0xc
test eax, eax
je 0x479fda
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479fb5
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479220
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.00479ba0
add esp, 0xc
test eax, eax
je 0x47a028
mov esi, dword [ebp - 0x108]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a003
sub ecx, edx
push ecx
push esi
push edi
call fcn.00479220
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 0x479f17
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.00472b2a
mov esp, ebp
pop ebp
ret