Function at 0x10004f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e6e6
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jae 0x10004f65
lea eax, [ebp + 8]
lea ecx, [ebp - 0x130]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea esi, [ebx + 0xf]
test eax, eax
jne 0x10005101
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x134]
push ecx
push ebx
push str.NameServer
push edx
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x138], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005101
lea eax, [ebp - 0x110]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004ff0
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call fcn.10001ef0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x38], edi
jae 0x1000501b
lea ecx, [ebp + 0x24]
mov eax, dword [ebp - 0x12c]
cmp dword [ebp - 0x118], edi
jae 0x1000502f
lea eax, [ebp - 0x12c]
push ecx
push eax
call fcn.1000b100
add esp, 8
test eax, eax
jne 0x100050ea
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x13c], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0x24]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.10001c30
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push ebx
lea eax, [ebp + 8]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.10001c30
mov byte [ebp - 4], 2
call fcn.10004e00
add esp, 0x38
cmp dword [ebp - 0x118], edi
jb 0x100050a6
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.100093a2
add esp, 4
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
cmp dword [ebp + 0x1c], edi
jb 0x100050c9
mov edx, dword [ebp + 8]
push edx
call fcn.100093a2
add esp, 4
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x100050e3
mov eax, dword [ebp + 0x24]
push eax
call fcn.100093a2
add esp, 4
mov eax, 1
jmp 0x1000513b
cmp dword [ebp - 0x118], edi
jb 0x10005101
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.100093a2
add esp, 4
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], edi
jb 0x1000511f
mov eax, dword [ebp + 8]
push eax
call fcn.100093a2
add esp, 4
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x10005139
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.100093a2
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret