Function at 0x51f410
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push edi
mov edi, dword [esp + 0x120]
xor ebp, ebp
mov dword [esp + 8], ebp
mov dword [edi], ebp
call fcn.0052a410
cmp eax, 3
je 0x51f458
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0046ec22
add esp, 0x114
ret
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x51f4d7
push edi
push str.SearchList
push dword [esp + 0x1c]
call fcn.0051f370
lea eax, [esp + 0x1c]
push eax
push str.Domain
push dword [esp + 0x28]
call fcn.0051f370
add esp, 0x18
test eax, eax
je 0x51f4d1
mov esi, dword [esp + 0x10]
push esi
call fcn.0051e660
push eax
push esi
push edi
call fcn.0051ed60
push esi
call dword [0x5a8f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
mov dword [esp + 0x10], ebp
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x51f539
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x1c]
call fcn.0051f370
add esp, 0xc
test eax, eax
je 0x51f533
mov esi, dword [esp + 0x10]
push esi
call fcn.0051e660
push eax
push esi
push edi
call fcn.0051ed60
push esi
call dword [0x5a8f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
mov dword [esp + 0x10], ebp
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x51f59b
lea eax, [esp + 0x10]
push eax
push str.PrimaryDNSSuffix
push dword [esp + 0x1c]
call fcn.0051f370
add esp, 0xc
test eax, eax
je 0x51f595
mov esi, dword [esp + 0x10]
push esi
call fcn.0051e660
push eax
push esi
push edi
call fcn.0051ed60
push esi
call dword [0x5a8f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
mov dword [esp + 0x10], ebp
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x51f6fb
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x51f6f5
lea eax, [esp + 0x18]
inc ebp
push eax
push 1
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call esi
test eax, eax
jne 0x51f6c8
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x20]
call fcn.0051f370
add esp, 0xc
test eax, eax
je 0x51f640
mov esi, dword [esp + 0x10]
push esi
call fcn.0051e660
push eax
push esi
push edi
call fcn.0051ed60
push esi
call dword [0x5a8f58]
add esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.Domain
push dword [esp + 0x20]
call fcn.0051f370
add esp, 0xc
test eax, eax
je 0x51f67e
mov esi, dword [esp + 0x10]
push esi
call fcn.0051e660
push eax
push esi
push edi
call fcn.0051ed60
push esi
call dword [0x5a8f58]
add esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.DhcpDomain
push dword [esp + 0x20]
call fcn.0051f370
add esp, 0xc
test eax, eax
je 0x51f6bc
mov esi, dword [esp + 0x10]
push esi
call fcn.0051e660
push eax
push esi
push edi
call fcn.0051ed60
push esi
call dword [0x5a8f58]
add esp, 0x14
mov dword [esp + 0x10], 0
push dword [esp + 0x18]
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x51f5e5
push dword [esp + 0x14]
call ebx
mov ecx, dword [esp + 0x120]
xor eax, eax
cmp dword [edi], eax
pop esi
pop ebx
pop edi
setne al
pop ebp
xor ecx, esp
call fcn.0046ec22
add esp, 0x114
ret