Function at 0x4c59e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeb8], ecx
mov dword [ebp - 0xea8], ebx
nop
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 ebx
mov word [ebp - 0x18], dx
call fcn.004e534f
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea ecx, [ebp - 0xea0]
push ecx
push 1
push edi
push str.SYSTEMCurrentControlSet_services_flpydiskEnum
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xea0], edi
call esi
push 0x1fe
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0xeb4]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0xea0]
lea eax, [ebp - 0xea4]
push eax
push edi
lea ecx, [ebp - 0x18]
push ecx
push edx
mov dword [ebp - 0xeb4], 0x200
mov dword [ebp - 0xea4], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xea0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0xea0], edi
lea edx, [eax + 2]
jmp 0x4c5ad0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c5ad0
sub eax, edx
sar eax, 1
je 0x4c5c71
push 0x27e
lea edx, [ebp - 0x49a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x49c], cx
call fcn.004e8ba0
push 3
lea eax, [ebp - 0x21c]
push 0x52620c
push eax
call fcn.004e6cdf
add esp, 0x18
test eax, eax
jne 0x4c5b28
lea ecx, [ebp - 0x214]
push ecx
push str.SYSTEMCurrentControlSetEnumIDE_s
jmp 0x4c5ba2
push 4
lea eax, [ebp - 0x21c]
push 0x54bb3c
push eax
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c5b50
lea ecx, [ebp - 0x214]
push ecx
push str.SYSTEMCurrentControlSetEnumFDC_s
jmp 0x4c5ba2
push 4
lea eax, [ebp - 0x21c]
push str.SCSI
push eax
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c5b78
lea ecx, [ebp - 0x212]
push ecx
push str.SYSTEMCurrentControlSetEnumSCSI_s
jmp 0x4c5ba2
push 7
lea eax, [ebp - 0x21c]
push str.USBSTOR
push eax
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c5c61
lea ecx, [ebp - 0x20c]
push ecx
push str.SYSTEMCurrentControlSetEnumUSBSTOR_s
lea edx, [ebp - 0x49c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xea0]
push eax
push 0x20019
push edi
lea ecx, [ebp - 0x49c]
push ecx
push reloc.WS2_32.dll_bind
call esi
push 0x1fe
lea eax, [ebp - 0x69a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x69c], dx
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0xeac]
push ecx
mov ecx, dword [ebp - 0xea0]
lea edx, [ebp - 0x69c]
push edx
lea eax, [ebp - 0xea4]
push eax
push edi
push str.FriendlyName
push ecx
mov dword [ebp - 0xeac], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c5c4e
mov esi, dword [ebp - 0xeb8]
mov ebx, dword [ebp - 0xeb0]
push 0xd1
lea edi, [ebp - 0x69c]
call fcn.004c2ef0
mov ebx, dword [ebp - 0xea8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 4
xor edi, edi
mov edx, dword [ebp - 0xea0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xea0], edi
inc ebx
mov dword [ebp - 0xea8], ebx
cmp ebx, 0x21
jl 0x4c5a10
mov dword [ebp - 0xea4], edi
mov edx, dword [ebp - 0xea4]
xor eax, eax
push 0xa
lea ecx, [ebp - 0x18]
push ecx
push edx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
call fcn.004e534f
add esp, 0xc
lea eax, [ebp - 0xea0]
push eax
push 1
push edi
push str.SYSTEMCurrentControlSet_services_sfloppyEnum
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xea0], edi
call esi
push 0x1fe
lea edx, [ebp - 0x21a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x21c], cx
call fcn.004e8ba0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0xeac]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0xea0]
lea edx, [ebp - 0xea8]
push edx
push edi
lea eax, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 0xeac], 0x200
mov dword [ebp - 0xea8], 1
call ebx
mov edx, dword [ebp - 0xea0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0xea0], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c5d32
sub eax, edx
sar eax, 1
je 0x4c5f5d
push 0x27e
lea ecx, [ebp - 0x49a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x49c], ax
call fcn.004e8ba0
push 3
lea edx, [ebp - 0x21c]
push 0x52620c
push edx
call fcn.004e6cdf
add esp, 0x18
test eax, eax
jne 0x4c5d8a
lea eax, [ebp - 0x214]
push eax
push str.SYSTEMCurrentControlSetEnumIDE_s
jmp 0x4c5e04
push 4
lea edx, [ebp - 0x21c]
push 0x54bb3c
push edx
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c5db2
lea eax, [ebp - 0x214]
push eax
push str.SYSTEMCurrentControlSetEnumFDC_s
jmp 0x4c5e04
push 4
lea edx, [ebp - 0x21c]
push str.SCSI
push edx
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c5dda
lea eax, [ebp - 0x212]
push eax
push str.SYSTEMCurrentControlSetEnumSCSI_s
jmp 0x4c5e04
push 7
lea edx, [ebp - 0x21c]
push str.USBSTOR
push edx
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4c5f47
lea eax, [ebp - 0x20c]
push eax
push str.SYSTEMCurrentControlSetEnumUSBSTOR_s
lea ecx, [ebp - 0x49c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0xea0]
push edx
push 0x20019
push edi
lea eax, [ebp - 0x49c]
push eax
push reloc.WS2_32.dll_bind
call esi
push 0x1fe
lea edx, [ebp - 0x69a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x69c], cx
call fcn.004e8ba0
add esp, 0xc
lea eax, [ebp - 0xeb4]
push eax
mov eax, dword [ebp - 0xea0]
lea ecx, [ebp - 0x69c]
push ecx
lea edx, [ebp - 0xea8]
push edx
push edi
push str.FriendlyName
push eax
mov dword [ebp - 0xeb4], 0x200
call ebx
test eax, eax
jne 0x4c5f34
push 0x7fe
lea edx, [ebp - 0xe9a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0xe9c], cx
call fcn.004e8ba0
lea eax, [ebp - 0x69c]
push eax
push 0xd1
lea ecx, [ebp - 0xe9c]
push str._03d_t_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xe9c]
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x4c5ed0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c5ed0
mov ebx, dword [ebp - 0xeb8]
mov ecx, dword [ebx]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
mov edx, dword [ebp - 0xeb0]
lea eax, [ebp - 0xe9c]
push eax
lea eax, [edx + ecx*2]
push eax
call fcn.004ebc70
lea eax, [ebp - 0xe9c]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c5f10
sub eax, edx
mov edx, dword [ebp - 0xeb0]
sar eax, 1
add dword [ebx], eax
mov eax, dword [ebx]
mov ecx, 1
mov word [edx + eax*2], cx
inc dword [ebx]
mov eax, dword [ebp - 0xea0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xea0], edi
mov eax, dword [ebp - 0xea4]
inc eax
mov dword [ebp - 0xea4], eax
cmp eax, 0x21
jl 0x4c5c77
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret