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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95c
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov ebx, edx
lea edx, [ebp - 0x934]
push edx
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControlClass
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x954], eax
mov dword [ebp - 0x940], ecx
mov dword [ebp - 0x934], edi
call esi
push 0x206
lea ecx, [ebp - 0x71e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x930], edi
mov word [ebp - 0x720], ax
call fcn.004e8ba0
push 0x206
lea eax, [ebp - 0x926]
xor edx, edx
push edi
push eax
mov word [ebp - 0x928], dx
call fcn.004e8ba0
add esp, 0x18
lea ecx, [ecx]
mov eax, 0x104
lea ecx, [ebp - 0x95c]
push ecx
mov dword [ebp - 0x94c], eax
mov dword [ebp - 0x948], eax
lea edx, [ebp - 0x948]
push edx
lea eax, [ebp - 0x928]
push eax
mov eax, dword [ebp - 0x930]
push edi
lea ecx, [ebp - 0x94c]
push ecx
mov ecx, dword [ebp - 0x934]
lea edx, [ebp - 0x720]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x4c836a
push 0x206
lea eax, [ebp - 0x30e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x310], dx
call fcn.004e8ba0
lea ecx, [ebp - 0x720]
push ecx
lea edx, [ebp - 0x310]
push str.SYSTEMCurrentControlSetControlClass_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x92c]
push eax
push 1
push edi
lea ecx, [ebp - 0x310]
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x92c], edi
call esi
test eax, eax
jne 0x4c835f
push 0xfe
lea eax, [ebp - 0x106]
xor edx, edx
push edi
push eax
mov word [ebp - 0x108], dx
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0x944]
push ecx
mov ecx, dword [ebp - 0x92c]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x93c]
push eax
push edi
push str.Class
push ecx
mov dword [ebp - 0x944], 0x100
mov dword [ebp - 0x93c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c8352
mov edx, dword [ebp - 0x940]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x4c8352
push 0x206
lea edx, [ebp - 0x516]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x518], cx
call fcn.004e8ba0
add esp, 0xc
mov dword [ebp - 0x938], edi
push edi
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x518]
push str._s_04d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x92c]
push edx
push 1
push 0
lea eax, [ebp - 0x518]
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4c8350
push 0x80
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0x950]
push edx
mov edx, dword [ebp - 0x92c]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x93c]
push ecx
push 0
push str.DriverDesc
push edx
mov dword [ebp - 0x950], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c8340
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x954]
push eax
lea edi, [ebp - 0x108]
call fcn.004c2ef0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x938]
add esp, 4
inc edi
mov dword [ebp - 0x938], edi
cmp edi, 0x41
jl 0x4c8292
xor edi, edi
mov ecx, dword [ebp - 0x92c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x930]
jmp 0x4c8140
mov eax, dword [ebp - 0x934]
cmp eax, edi
je 0x4c837b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret