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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d82b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x567e00]
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 ebx, dword [ebp + 8]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
lea eax, [ebp - 0x138]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4bff9e
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
jmp 0x4c026f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x13c], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
push 0
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4c0261
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x130]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c0219
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x12c], 4
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c0211
test byte [ebp - 0x140], 4
je 0x4c0211
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.ComponentId
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c0211
push 3
lea eax, [ebp - 0x110]
push 0x51e8d8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4c00da
push 3
lea eax, [ebp - 0x110]
push 0x51e8dc
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4c0211
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c0211
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x114], 0xf
call fcn.004c1870
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x144]
je 0x4c01b8
mov eax, dword [ebp - 0x128]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x124]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x114]
mov dword [esi + 0x14], eax
mov eax, 0xf
add esi, 0x18
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x148], esi
jmp 0x4c01d7
lea eax, [ebp - 0x128]
push eax
push esi
lea ecx, [ebp - 0x14c]
call fcn.0043cd20
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4c0211
mov ecx, dword [ebp - 0x128]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c0207
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c028d
push edx
push ecx
call fcn.004c6f6f
add esp, 8
push dword [ebp - 0x130]
call edi
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x12c]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
inc eax
push ecx
push eax
push dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4bffe4
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x144]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov eax, ebx
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.004c6f8b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3