Function at 0x4c6180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x6a8], eax
mov dword [ebp - 0x6ac], ecx
mov dword [ebp - 0x6a4], ebx
mov ecx, dword [ebp - 0x6a4]
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
push 0xa
lea eax, [ebp - 0x18]
push eax
xor edx, edx
push ecx
mov word [ebp - 0x18], dx
call fcn.004e534f
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [ebp - 0x6a0]
push edx
push 1
push ebx
push str.SYSTEMCurrentControlSet_servicescdromEnum
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x6a0], ebx
call edi
push 0x1fe
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.004e8ba0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [ebp - 0x6b4]
push edx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x6a0]
lea ecx, [ebp - 0x6b0]
push ecx
push ebx
lea edx, [ebp - 0x18]
push edx
push eax
mov dword [ebp - 0x6b4], 0x200
mov dword [ebp - 0x6b0], 1
call esi
mov ecx, dword [ebp - 0x6a0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x6a0], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6270
sub eax, edx
sar eax, 1
je 0x4c6426
push 0x27e
lea eax, [ebp - 0x69a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x69c], dx
call fcn.004e8ba0
push 3
lea ecx, [ebp - 0x21c]
push 0x52620c
push ecx
call fcn.004e6cdf
add esp, 0x18
test eax, eax
jne 0x4c62c8
lea edx, [ebp - 0x214]
push edx
push str.SYSTEMCurrentControlSetEnumIDE_s
jmp 0x4c631a
push 4
lea ecx, [ebp - 0x21c]
push str.SCSI
push ecx
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c62f0
lea edx, [ebp - 0x212]
push edx
push str.SYSTEMCurrentControlSetEnumSCSI_s
jmp 0x4c631a
push 7
lea ecx, [ebp - 0x21c]
push str.USBSTOR
push ecx
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c6410
lea edx, [ebp - 0x20c]
push edx
push str.SYSTEMCurrentControlSetEnumUSBSTOR_s
lea eax, [ebp - 0x69c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x6a0]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x69c]
push edx
push reloc.WS2_32.dll_bind
call edi
push 0x1fe
lea ecx, [ebp - 0x41a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x41c], ax
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0x6b8]
push edx
mov edx, dword [ebp - 0x6a0]
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x6b0]
push ecx
push ebx
push str.FriendlyName
push edx
mov dword [ebp - 0x6b8], 0x200
call esi
test eax, eax
jne 0x4c63fd
lea eax, [ebp - 0x41c]
push 0x51ca08
push eax
call fcn.004e571a
add esp, 8
test eax, eax
je 0x4c63dc
lea ecx, [ebp - 0x41c]
push 0x51ca08
push ecx
call fcn.004e571a
mov esi, dword [ebp - 0x6ac]
mov ebx, dword [ebp - 0x6a8]
push 0xd3
lea edi, [eax + 2]
call fcn.004c2ef0
add esp, 0xc
jmp 0x4c63fb
mov esi, dword [ebp - 0x6ac]
mov ebx, dword [ebp - 0x6a8]
push 0xd3
lea edi, [ebp - 0x41c]
call fcn.004c2ef0
add esp, 4
xor ebx, ebx
mov edx, dword [ebp - 0x6a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x6a0], ebx
mov eax, dword [ebp - 0x6a4]
inc eax
mov dword [ebp - 0x6a4], eax
cmp eax, 0x21
jl 0x4c61ad
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret