Function at 0x49b5f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x612790]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
mov ebp, dword [esp + 0x120]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [ebp], eax
call fcn.0049f7d0
cmp eax, 3
je 0x49b63b
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00498b38
add esp, 0x118
ret
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x49b745
push ebp
push str.SearchList
push dword [esp + 0x1c]
call fcn.0049b550
lea eax, [esp + 0x1c]
push eax
push str.Domain
push dword [esp + 0x28]
call fcn.0049b550
add esp, 0x18
test eax, eax
je 0x49b73f
mov ebx, dword [esp + 0x10]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x49b6a0
mov edx, dword [ebp]
sub esi, ecx
test edx, edx
je 0x49b6c3
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b6b5
sub ecx, edi
add ecx, 2
jmp 0x49b6c8
mov ecx, 1
lea eax, [ecx + esi]
push eax
push edx
call dword [0x6127b8]
mov edi, eax
add esp, 8
test edi, edi
je 0x49b721
cmp dword [ebp], 0
jne 0x49b6e5
mov byte [edi], 0
mov ecx, edi
mov dword [ebp], edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b6f0
sub ecx, edx
je 0x49b716
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x49b700
mov ax, word [0x4b235c]
mov word [edi], ax
mov edi, dword [ebp]
push esi
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x6127bc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x49b835
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x1c]
call fcn.0049b550
add esp, 0xc
test eax, eax
je 0x49b82f
mov ebx, dword [esp + 0x10]
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x49b790
mov edx, dword [ebp]
sub esi, ecx
test edx, edx
je 0x49b7b3
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b7a5
sub ecx, edi
add ecx, 2
jmp 0x49b7b8
mov ecx, 1
lea eax, [ecx + esi]
push eax
push edx
call dword [0x6127b8]
mov edi, eax
add esp, 8
test edi, edi
je 0x49b811
cmp dword [ebp], 0
jne 0x49b7d5
mov byte [edi], 0
mov ecx, edi
mov dword [ebp], edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b7e0
sub ecx, edx
je 0x49b806
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x49b7f0
mov ax, word [0x4b235c]
mov word [edi], ax
mov edi, dword [ebp]
push esi
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x6127bc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x49b925
lea eax, [esp + 0x10]
push eax
push str.PrimaryDNSSuffix
push dword [esp + 0x1c]
call fcn.0049b550
add esp, 0xc
test eax, eax
je 0x49b91f
mov ebx, dword [esp + 0x10]
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x49b880
mov edx, dword [ebp]
sub esi, ecx
test edx, edx
je 0x49b8a3
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b895
sub ecx, edi
add ecx, 2
jmp 0x49b8a8
mov ecx, 1
lea eax, [ecx + esi]
push eax
push edx
call dword [0x6127b8]
mov edi, eax
add esp, 8
test edi, edi
je 0x49b901
cmp dword [ebp], 0
jne 0x49b8c5
mov byte [edi], 0
mov ecx, edi
mov dword [ebp], edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b8d0
sub ecx, edx
je 0x49b8f6
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x49b8e0
mov ax, word [0x4b235c]
mov word [edi], ax
mov edi, dword [ebp]
push esi
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x6127bc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x49bc0c
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 0x49bc06
nop
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 esi
test eax, eax
jne 0x49bbd5
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x20]
call fcn.0049b550
add esp, 0xc
test eax, eax
je 0x49ba47
mov ebx, dword [esp + 0x10]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x49b9b7
mov edx, dword [ebp]
sub esi, ecx
test edx, edx
je 0x49b9de
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b9d0
sub ecx, edi
add ecx, 2
jmp 0x49b9e3
mov ecx, 1
lea eax, [ecx + esi]
push eax
push edx
call dword [0x6127b8]
mov edi, eax
add esp, 8
test edi, edi
je 0x49ba35
cmp dword [ebp], 0
jne 0x49ba00
mov byte [edi], 0
mov ecx, edi
mov dword [ebp], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ba08
sub ecx, edx
je 0x49ba2a
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x49ba14
mov ax, word [0x4b235c]
mov word [edi], ax
mov edi, dword [ebp]
push esi
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x6127bc]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.Domain
push dword [esp + 0x20]
call fcn.0049b550
add esp, 0xc
test eax, eax
je 0x49bb03
mov ebx, dword [esp + 0x10]
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x49ba70
mov edx, dword [ebp]
sub esi, ecx
test edx, edx
je 0x49ba93
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ba85
sub ecx, edi
add ecx, 2
jmp 0x49ba98
mov ecx, 1
lea eax, [ecx + esi]
push eax
push edx
call dword [0x6127b8]
mov edi, eax
add esp, 8
test edi, edi
je 0x49baf1
cmp dword [ebp], 0
jne 0x49bab5
mov byte [edi], 0
mov ecx, edi
mov dword [ebp], edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49bac0
sub ecx, edx
je 0x49bae6
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x49bad0
mov ax, word [0x4b235c]
mov word [edi], ax
mov edi, dword [ebp]
push esi
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x6127bc]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.DhcpDomain
push dword [esp + 0x20]
call fcn.0049b550
add esp, 0xc
test eax, eax
je 0x49bbc3
mov ebx, dword [esp + 0x10]
mov esi, ebx
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x49bb30
mov edx, dword [ebp]
sub esi, ecx
test edx, edx
je 0x49bb53
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49bb45
sub ecx, edi
add ecx, 2
jmp 0x49bb58
mov ecx, 1
lea eax, [ecx + esi]
push eax
push edx
call dword [0x6127b8]
mov edi, eax
add esp, 8
test edi, edi
je 0x49bbb1
cmp dword [ebp], 0
jne 0x49bb75
mov byte [edi], 0
mov ecx, edi
mov dword [ebp], edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49bb80
sub ecx, edx
je 0x49bba6
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x49bb90
mov ax, word [0x4b235c]
mov word [edi], ax
mov edi, dword [ebp]
push esi
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x6127bc]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 + 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 0x49b970
push dword [esp + 0x14]
call ebx
mov ecx, dword [esp + 0x124]
xor eax, eax
cmp dword [ebp], eax
pop edi
pop esi
pop ebx
setne al
pop ebp
xor ecx, esp
call fcn.00498b38
add esp, 0x118
ret