Function at 0x4c3e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x5322a8]
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.004e45ff
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.004e7d90
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 0x4c3ef0
sub eax, edx
sar eax, 1
je 0x4c40a6
push 0x27e
lea eax, [ebp - 0x69a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x69c], dx
call fcn.004e7d90
push 3
lea ecx, [ebp - 0x21c]
push 0x5268ac
push ecx
call fcn.004e5e02
add esp, 0x18
test eax, eax
jne 0x4c3f48
lea edx, [ebp - 0x214]
push edx
push str.SYSTEMCurrentControlSetEnumIDE_s
jmp 0x4c3f9a
push 4
lea ecx, [ebp - 0x21c]
push str.SCSI
push ecx
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c3f70
lea edx, [ebp - 0x212]
push edx
push str.SYSTEMCurrentControlSetEnumSCSI_s
jmp 0x4c3f9a
push 7
lea ecx, [ebp - 0x21c]
push str.USBSTOR
push ecx
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c4090
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.004e7d90
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 0x4c407d
lea eax, [ebp - 0x41c]
push 0x51d580
push eax
call fcn.004e49bf
add esp, 8
test eax, eax
je 0x4c405c
lea ecx, [ebp - 0x41c]
push 0x51d580
push ecx
call fcn.004e49bf
mov esi, dword [ebp - 0x6ac]
mov ebx, dword [ebp - 0x6a8]
push 0xd3
lea edi, [eax + 2]
call fcn.004c0b90
add esp, 0xc
jmp 0x4c407b
mov esi, dword [ebp - 0x6ac]
mov ebx, dword [ebp - 0x6a8]
push 0xd3
lea edi, [ebp - 0x41c]
call fcn.004c0b90
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 0x4c3e2d
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret