Function at 0x4c5e70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x108], ebx
mov dword [edi], ebx
call fcn.004ca620
cmp eax, 3
je 0x4c5eb4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5f3c
push edi
push str.SearchList
push dword [ebp - 0x10c]
call fcn.004c5db0
lea eax, [ebp - 0x108]
push eax
push str.Domain
push dword [ebp - 0x10c]
call fcn.004c5db0
add esp, 0x18
test eax, eax
je 0x4c5f30
mov esi, dword [ebp - 0x108]
push esi
push edi
call fcn.004c5200
add esp, 8
push esi
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x108], ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5fb2
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x10c]
call fcn.004c5db0
add esp, 0xc
test eax, eax
je 0x4c5fa6
mov esi, dword [ebp - 0x108]
push esi
push edi
call fcn.004c5200
add esp, 8
push esi
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x108], ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c6028
lea eax, [ebp - 0x108]
push eax
push str.PrimaryDNSSuffix
push dword [ebp - 0x10c]
call fcn.004c5db0
add esp, 0xc
test eax, eax
je 0x4c601c
mov esi, dword [ebp - 0x108]
push esi
push edi
call fcn.004c5200
add esp, 8
push esi
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x108], ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c63b8
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 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 0x4c63ac
lea eax, [ebp - 0x114]
inc ebx
push eax
push 1
push 0
lea eax, [ebp - 0x104]
mov dword [ebp - 0x120], ebx
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c6377
lea eax, [ebp - 0x108]
push eax
push str.SearchList
push dword [ebp - 0x114]
call fcn.004c5db0
add esp, 0xc
test eax, eax
je 0x4c6194
mov ebx, dword [ebp - 0x108]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4c60d8
mov edx, dword [edi]
sub ebx, ecx
test edx, edx
je 0x4c60fe
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c60f0
sub ecx, esi
add ecx, 2
jmp 0x4c6103
mov ecx, 1
mov esi, dword [0x55f1ac]
lea eax, [ecx + ebx]
push eax
push edx
mov ecx, esi
call dword [0x51a4a0]
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x4c616a
mov edx, dword [ebp - 0x110]
cmp dword [edx], 0
jne 0x4c612f
mov byte [edi], 0
mov ecx, edi
mov dword [edx], edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6136
sub ecx, esi
je 0x4c6157
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4c6142
mov ax, word [0x53fc9c]
mov word [edi], ax
mov edi, dword [edx]
mov esi, dword [ebp - 0x108]
push ebx
push esi
push edi
call fcn.004fbc60
add esp, 0xc
jmp 0x4c6170
mov esi, dword [ebp - 0x108]
push esi
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
mov edi, dword [ebp - 0x110]
add esp, 4
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str.Domain
push dword [ebp - 0x114]
call fcn.004c5db0
add esp, 0xc
test eax, eax
je 0x4c627c
mov ebx, dword [ebp - 0x108]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4c61c0
mov edx, dword [edi]
sub ebx, ecx
test edx, edx
je 0x4c61e2
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c61d4
sub ecx, esi
add ecx, 2
jmp 0x4c61e7
mov ecx, 1
mov esi, dword [0x55f1ac]
lea eax, [ecx + ebx]
push eax
push edx
mov ecx, esi
call dword [0x51a4a0]
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x4c6258
mov edx, dword [ebp - 0x110]
cmp dword [edx], 0
jne 0x4c6213
mov byte [edi], 0
mov ecx, edi
mov dword [edx], edi
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6220
sub ecx, esi
je 0x4c6245
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4c6230
mov ax, word [0x53fc9c]
mov word [edi], ax
mov edi, dword [edx]
mov esi, dword [ebp - 0x108]
push ebx
push esi
push edi
call fcn.004fbc60
add esp, 0xc
jmp 0x4c625e
mov esi, dword [ebp - 0x108]
push esi
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str.DhcpDomain
push dword [ebp - 0x114]
call fcn.004c5db0
add esp, 0xc
test eax, eax
je 0x4c635f
mov ebx, dword [ebp - 0x108]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4c62a7
mov edx, dword [ebp - 0x110]
sub ebx, ecx
mov edx, dword [edx]
test edx, edx
je 0x4c62cf
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c62c1
sub ecx, esi
add ecx, 2
jmp 0x4c62d4
mov ecx, 1
mov esi, dword [0x55f1ac]
lea eax, [ecx + ebx]
push eax
push edx
mov ecx, esi
call dword [0x51a4a0]
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x4c633b
mov edx, dword [ebp - 0x110]
cmp dword [edx], 0
jne 0x4c6300
mov byte [edi], 0
mov ecx, edi
mov dword [edx], edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6307
sub ecx, esi
je 0x4c6328
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4c6313
mov ax, word [0x53fc9c]
mov word [edi], ax
mov edi, dword [edx]
mov esi, dword [ebp - 0x108]
push ebx
push esi
push edi
call fcn.004fbc60
add esp, 0xc
jmp 0x4c6341
mov esi, dword [ebp - 0x108]
push esi
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x108], 0
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x120]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 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 0x4c6080
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004d0675
mov esp, ebp
pop ebp
ret