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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x4f7fc4
xor eax, eax
jmp 0x4f82d3
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x110]
push ecx
push 0x20019
push 0
push str.Config_ManagerEnum
push reloc.OLEAUT32.dll_SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4f7ff3
xor eax, eax
jmp 0x4f82d3
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4f8033
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4f82d3
mov dword [ebp - 4], 0
jmp 0x4f8045
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x11c]
jae 0x4f82b3
mov dword [ebp - 0x430], 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4f80a2
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4f82d3
push str.Config_ManagerEnum_
lea ecx, [ebp - 0x324]
push ecx
call fcn.0054be90
add esp, 8
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x324]
push eax
call fcn.0054bea0
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x324]
push edx
push reloc.OLEAUT32.dll_SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4f8101
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4f82d3
mov dword [ebp - 0x42c], 0x104
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push 0
push str.HardWareKey
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f814e
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4f82d3
mov ecx, 7
mov esi, str.SCSI________USB_MEMORY_BAR
lea edi, [ebp - 0x428]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
xor eax, eax
lea edi, [ebp - 0x40c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x534]
push ecx
call fcn.0054be90
add esp, 8
mov byte [ebp - 0x519], 0
lea edx, [ebp - 0x428]
push edx
call fcn.0054ce70
add esp, 4
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x534]
push ecx
call fcn.004f7f69
add esp, 0xc
test eax, eax
jne 0x4f82a4
push str.Enum_
lea edx, [ebp - 0x640]
push edx
call fcn.0054be90
add esp, 8
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x640]
push ecx
call fcn.0054bea0
add esp, 8
lea edx, [ebp - 0x538]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x640]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4f8226
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4f82d3
mov dword [ebp - 0x53c], 0x104
lea eax, [ebp - 0x53c]
push eax
lea ecx, [ebp - 0x744]
push ecx
push 0
push 0
push str.CurrentDriveLetterAssignment
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f8280
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4f82d3
mov eax, dword [ebp - 0x538]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x744]
mov byte [edx], al
jmp 0x4f82b3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f803c
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4f82ce
xor eax, eax
jmp 0x4f82d3
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret