Function at 0x516350
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x5df040]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esi], eax
call fcn.00521030
cmp eax, 3
je 0x51639a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00423495
add esp, 0x118
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push ebp
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x516493
push esi
push str.SearchList
push dword [esp + 0x1c]
call fcn.005162b0
lea eax, [esp + 0x1c]
push eax
push str.Domain
push dword [esp + 0x28]
call fcn.005162b0
add esp, 0x18
test eax, eax
je 0x51648d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.005156c0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x516419
push ecx
call fcn.005156c0
add esp, 4
add eax, 2
jmp 0x51641e
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5df5ec]
add esp, 8
test eax, eax
je 0x516475
cmp dword [esi], 0
jne 0x516438
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.005156c0
add esp, 4
test eax, eax
je 0x516469
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x516450
mov ax, word [0x58ceb0]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call fcn.00564380
add esp, 0xc
push ebx
call dword [0x5df5f0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x516568
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x1c]
call fcn.005162b0
add esp, 0xc
test eax, eax
je 0x516562
mov ebx, dword [esp + 0x10]
push ebx
call fcn.005156c0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x5164f4
push ecx
call fcn.005156c0
add esp, 4
add eax, 2
jmp 0x5164f9
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5df5ec]
add esp, 8
test eax, eax
je 0x51654a
cmp dword [esi], 0
jne 0x516513
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.005156c0
add esp, 4
test eax, eax
je 0x51653e
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x516525
mov ax, word [0x58ceb0]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call fcn.00564380
add esp, 0xc
push ebx
call dword [0x5df5f0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x516643
lea eax, [esp + 0x10]
push eax
push str.PrimaryDNSSuffix
push dword [esp + 0x1c]
call fcn.005162b0
add esp, 0xc
test eax, eax
je 0x51663d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.005156c0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x5165c9
push ecx
call fcn.005156c0
add esp, 4
add eax, 2
jmp 0x5165ce
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5df5ec]
add esp, 8
test eax, eax
je 0x516625
cmp dword [esi], 0
jne 0x5165e8
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.005156c0
add esp, 4
test eax, eax
je 0x516619
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x516600
mov ax, word [0x58ceb0]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call fcn.00564380
add esp, 0xc
push ebx
call dword [0x5df5f0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x5168e2
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5168dc
nop dword [eax]
inc dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 1
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x5168ab
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x20]
call fcn.005162b0
add esp, 0xc
test eax, eax
je 0x516753
mov ebx, dword [esp + 0x10]
push ebx
call fcn.005156c0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x5166f1
push ecx
call fcn.005156c0
add esp, 4
add eax, 2
jmp 0x5166f6
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5df5ec]
add esp, 8
test eax, eax
je 0x516741
cmp dword [esi], 0
jne 0x516710
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.005156c0
add esp, 4
test eax, eax
je 0x516735
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x516722
mov ax, word [0x58ceb0]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call fcn.00564380
add esp, 0xc
push ebx
call dword [0x5df5f0]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.Domain
push dword [esp + 0x20]
call fcn.005162b0
add esp, 0xc
test eax, eax
je 0x5167f6
mov ebx, dword [esp + 0x10]
push ebx
call fcn.005156c0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x516794
push ecx
call fcn.005156c0
add esp, 4
add eax, 2
jmp 0x516799
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5df5ec]
add esp, 8
test eax, eax
je 0x5167e4
cmp dword [esi], 0
jne 0x5167b3
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.005156c0
add esp, 4
test eax, eax
je 0x5167d8
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x5167c5
mov ax, word [0x58ceb0]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call fcn.00564380
add esp, 0xc
push ebx
call dword [0x5df5f0]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.DhcpDomain
push dword [esp + 0x20]
call fcn.005162b0
add esp, 0xc
test eax, eax
je 0x516899
mov ebx, dword [esp + 0x10]
push ebx
call fcn.005156c0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x516837
push ecx
call fcn.005156c0
add esp, 4
add eax, 2
jmp 0x51683c
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5df5ec]
add esp, 8
test eax, eax
je 0x516887
cmp dword [esi], 0
jne 0x516856
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.005156c0
add esp, 4
test eax, eax
je 0x51687b
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x516868
mov ax, word [0x58ceb0]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call fcn.00564380
add esp, 0xc
push ebx
call dword [0x5df5f0]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov ebx, 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 + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x516690
push dword [esp + 0x14]
call edi
mov ecx, dword [esp + 0x124]
xor eax, eax
cmp dword [esi], eax
pop edi
pop ebp
pop ebx
setne al
pop esi
xor ecx, esp
call fcn.00423495
add esp, 0x118
ret