Function at 0x5153a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x5e1040]
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.00520080
cmp eax, 3
je 0x5153ea
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004224b5
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 0x5154e3
push esi
push str.SearchList
push dword [esp + 0x1c]
call fcn.00515300
lea eax, [esp + 0x1c]
push eax
push str.Domain
push dword [esp + 0x28]
call fcn.00515300
add esp, 0x18
test eax, eax
je 0x5154dd
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00514710
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x515469
push ecx
call fcn.00514710
add esp, 4
add eax, 2
jmp 0x51546e
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5e15ec]
add esp, 8
test eax, eax
je 0x5154c5
cmp dword [esi], 0
jne 0x515488
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.00514710
add esp, 4
test eax, eax
je 0x5154b9
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x5154a0
mov ax, word [0x58bed4]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call fcn.005633d0
add esp, 0xc
push ebx
call dword [0x5e15f0]
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 0x5155b8
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x1c]
call fcn.00515300
add esp, 0xc
test eax, eax
je 0x5155b2
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00514710
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x515544
push ecx
call fcn.00514710
add esp, 4
add eax, 2
jmp 0x515549
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5e15ec]
add esp, 8
test eax, eax
je 0x51559a
cmp dword [esi], 0
jne 0x515563
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.00514710
add esp, 4
test eax, eax
je 0x51558e
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x515575
mov ax, word [0x58bed4]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call fcn.005633d0
add esp, 0xc
push ebx
call dword [0x5e15f0]
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 0x515693
lea eax, [esp + 0x10]
push eax
push str.PrimaryDNSSuffix
push dword [esp + 0x1c]
call fcn.00515300
add esp, 0xc
test eax, eax
je 0x51568d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00514710
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x515619
push ecx
call fcn.00514710
add esp, 4
add eax, 2
jmp 0x51561e
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5e15ec]
add esp, 8
test eax, eax
je 0x515675
cmp dword [esi], 0
jne 0x515638
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.00514710
add esp, 4
test eax, eax
je 0x515669
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x515650
mov ax, word [0x58bed4]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call fcn.005633d0
add esp, 0xc
push ebx
call dword [0x5e15f0]
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 0x515932
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 0x51592c
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 0x5158fb
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x20]
call fcn.00515300
add esp, 0xc
test eax, eax
je 0x5157a3
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00514710
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x515741
push ecx
call fcn.00514710
add esp, 4
add eax, 2
jmp 0x515746
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5e15ec]
add esp, 8
test eax, eax
je 0x515791
cmp dword [esi], 0
jne 0x515760
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.00514710
add esp, 4
test eax, eax
je 0x515785
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x515772
mov ax, word [0x58bed4]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call fcn.005633d0
add esp, 0xc
push ebx
call dword [0x5e15f0]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.Domain
push dword [esp + 0x20]
call fcn.00515300
add esp, 0xc
test eax, eax
je 0x515846
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00514710
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x5157e4
push ecx
call fcn.00514710
add esp, 4
add eax, 2
jmp 0x5157e9
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5e15ec]
add esp, 8
test eax, eax
je 0x515834
cmp dword [esi], 0
jne 0x515803
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.00514710
add esp, 4
test eax, eax
je 0x515828
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x515815
mov ax, word [0x58bed4]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call fcn.005633d0
add esp, 0xc
push ebx
call dword [0x5e15f0]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.DhcpDomain
push dword [esp + 0x20]
call fcn.00515300
add esp, 0xc
test eax, eax
je 0x5158e9
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00514710
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x515887
push ecx
call fcn.00514710
add esp, 4
add eax, 2
jmp 0x51588c
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x5e15ec]
add esp, 8
test eax, eax
je 0x5158d7
cmp dword [esi], 0
jne 0x5158a6
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.00514710
add esp, 4
test eax, eax
je 0x5158cb
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x5158b8
mov ax, word [0x58bed4]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call fcn.005633d0
add esp, 0xc
push ebx
call dword [0x5e15f0]
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 0x5156e0
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.004224b5
add esp, 0x118
ret