Function at 0x4a7e90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582f67
mov eax, dword fs:[0]
push eax
mov eax, 0x204c
call fcn.0051ab40
mov eax, dword [0x5f0524]
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 - 0x2050], 0
mov dword [ebp - 0x204c], 0
mov dword [ebp - 0x2048], 0
push 0x2001f
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2050]
mov dword [ebp - 4], 0
call fcn.004a9bb0
mov ebx, dword [ebp - 0x2050]
test eax, eax
jne 0x4a824b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
lea eax, [ebp - 0x2058]
mov dword [ebp - 0x2024], esi
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2018], 0x1000
push eax
lea eax, [ebp - 0x2014]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4a824b
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x2020]
call fcn.00437a90
mov dword [ebp - 0x2038], 0
mov dword [ebp - 0x2034], 0
mov dword [ebp - 0x2030], 0
push 0x5cefe8
lea eax, [ebp - 0x2020]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x203c]
push eax
call fcn.0049c500
add esp, 0xc
lea ecx, [ebp - 0x2038]
push 0x20019
push dword [eax]
push ebx
call fcn.004a9bb0
mov edx, dword [ebp - 0x203c]
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7fd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
mov ebx, dword [ebp - 0x2038]
je 0x4a81fe
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x201c], 0x2000
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2018], 0
push eax
lea eax, [ebp - 0x2040]
push eax
push 0
push str.PnpInstanceID
push ebx
call edi
test eax, eax
jne 0x4a81fe
mov eax, dword [ebp - 0x2040]
cmp eax, 1
je 0x4a8034
cmp eax, 2
jne 0x4a81fe
mov ecx, dword [ebp - 0x201c]
test ecx, ecx
je 0x4a805b
test cl, 1
jne 0x4a81fe
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x2016], 0
je 0x4a8064
jmp 0x4a81fe
xor eax, eax
mov word [ebp - 0x2014], ax
shr ecx, 1
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2018], ecx
lea ecx, [ebp - 0x202c]
push eax
call fcn.00437a90
lea eax, [ebp - 0x201c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x201c], 0x2000
push eax
lea eax, [ebp - 0x2044]
mov dword [ebp - 0x2018], 0
push eax
push 0
push str.Name
push ebx
call edi
test eax, eax
jne 0x4a81dc
mov eax, dword [ebp - 0x2044]
cmp eax, 1
je 0x4a80d1
cmp eax, 2
jne 0x4a81dc
mov ecx, dword [ebp - 0x201c]
test ecx, ecx
je 0x4a80f8
test cl, 1
jne 0x4a81dc
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x2016], 0
je 0x4a8101
jmp 0x4a81dc
xor eax, eax
mov word [ebp - 0x2014], ax
shr ecx, 1
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2018], ecx
lea ecx, [ebp - 0x2028]
push eax
call fcn.00437a90
mov byte [ebp - 4], 4
call fcn.004a9a30
mov esi, eax
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
push edi
cmp dword [eax + 0x20], 0
jbe 0x4a814e
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a815b
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3c]
call eax
mov esi, eax
mov edx, dword [esi]
mov ecx, esi
push dword [ebp - 0x202c]
call dword [edx + 0x50]
mov edx, dword [esi]
mov ecx, esi
push dword [ebp - 0x2028]
call dword [edx + 0x3c]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x2020]
call dword [eax + 0x44]
mov ecx, dword [0x616758]
cmp ecx, dword [0x61675c]
jne 0x4a81a0
mov ecx, 0x616738
call fcn.0042d690
mov ecx, dword [0x616758]
mov eax, dword [0x616754]
mov dword [eax + ecx*4], esi
or eax, 0xffffffff
inc dword [0x616758]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2028]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a81d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x2024]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x202c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a81fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4a8213
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2038], 0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x2020]
mov dword [ebp - 0x2034], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a823f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x2050]
inc esi
jmp 0x4a7f17
call fcn.004a82b0
xor edi, edi
cmp dword [0x616758], edi
jbe 0x4a827f
nop word [eax + eax]
mov eax, dword [0x616754]
mov esi, dword [eax + edi*4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
inc edi
cmp edi, dword [0x616758]
jb 0x4a8260
test ebx, ebx
je 0x4a828a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0051a19b
mov esp, ebp
pop ebp
ret