Function at 0x4c3660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec0
mov eax, dword [0x5322a8]
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.004e45ff
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.004e7d90
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 0x4c3750
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c3750
sub eax, edx
sar eax, 1
je 0x4c38f1
push 0x27e
lea edx, [ebp - 0x49a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x49c], cx
call fcn.004e7d90
push 3
lea eax, [ebp - 0x21c]
push 0x5268ac
push eax
call fcn.004e5e02
add esp, 0x18
test eax, eax
jne 0x4c37a8
lea ecx, [ebp - 0x214]
push ecx
push str.SYSTEMCurrentControlSetEnumIDE_s
jmp 0x4c3822
push 4
lea eax, [ebp - 0x21c]
push 0x528534
push eax
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c37d0
lea ecx, [ebp - 0x214]
push ecx
push str.SYSTEMCurrentControlSetEnumFDC_s
jmp 0x4c3822
push 4
lea eax, [ebp - 0x21c]
push str.SCSI
push eax
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c37f8
lea ecx, [ebp - 0x212]
push ecx
push str.SYSTEMCurrentControlSetEnumSCSI_s
jmp 0x4c3822
push 7
lea eax, [ebp - 0x21c]
push str.USBSTOR
push eax
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c38e1
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.004e7d90
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 0x4c38ce
mov esi, dword [ebp - 0xeb8]
mov ebx, dword [ebp - 0xeb0]
push 0xd1
lea edi, [ebp - 0x69c]
call fcn.004c0b90
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 0x4c3690
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.004e45ff
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.004e7d90
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 0x4c39b2
sub eax, edx
sar eax, 1
je 0x4c3bdd
push 0x27e
lea ecx, [ebp - 0x49a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x49c], ax
call fcn.004e7d90
push 3
lea edx, [ebp - 0x21c]
push 0x5268ac
push edx
call fcn.004e5e02
add esp, 0x18
test eax, eax
jne 0x4c3a0a
lea eax, [ebp - 0x214]
push eax
push str.SYSTEMCurrentControlSetEnumIDE_s
jmp 0x4c3a84
push 4
lea edx, [ebp - 0x21c]
push 0x528534
push edx
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c3a32
lea eax, [ebp - 0x214]
push eax
push str.SYSTEMCurrentControlSetEnumFDC_s
jmp 0x4c3a84
push 4
lea edx, [ebp - 0x21c]
push str.SCSI
push edx
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c3a5a
lea eax, [ebp - 0x212]
push eax
push str.SYSTEMCurrentControlSetEnumSCSI_s
jmp 0x4c3a84
push 7
lea edx, [ebp - 0x21c]
push str.USBSTOR
push edx
call fcn.004e5e02
add esp, 0xc
test eax, eax
jne 0x4c3bc7
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.004e7d90
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 0x4c3bb4
push 0x7fe
lea edx, [ebp - 0xe9a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0xe9c], cx
call fcn.004e7d90
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 0x4c3b50
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c3b50
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.004eaf30
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 0x4c3b90
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 0x4c38f7
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret