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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10308
call fcn.004b9690
push esi
push edi
mov eax, dword [0x538494]
mov dword [ebp - 0x10308], eax
mov cl, byte [0x538498]
mov byte [ebp - 0x10304], cl
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0x10303]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x214], 0
mov edi, str.EnumUSBROOT_HUB
lea edx, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2b8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x210]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a8091
xor eax, eax
jmp 0x4a8687
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b0]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a80dc
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov dword [ebp - 0x2a8], 0
jmp 0x4a80f7
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x4a82af
mov dword [ebp - 0x21c], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x29c]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a8162
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov edi, str.EnumUSBROOT_HUB_
lea edx, [ebp - 0x10208]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x29c]
push ecx
lea edx, [ebp - 0x10208]
push edx
call fcn.004b92a0
add esp, 8
lea eax, [ebp - 0x2a0]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10208]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a81e3
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov dword [ebp - 0x2a4], 0xff
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x5384c4
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a8241
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov edi, 0x5384d4
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
push eax
call fcn.004b92a0
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x4a80e8
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.EnumUSBROOT_HUB20
lea edx, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2b8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x210]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a8327
xor eax, eax
jmp 0x4a8687
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b0]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a8372
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov dword [ebp - 0x2a8], 0
jmp 0x4a838d
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x4a8545
mov dword [ebp - 0x21c], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x29c]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a83f8
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov edi, str.EnumUSBROOT_HUB20_
lea edx, [ebp - 0x10208]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x29c]
push ecx
lea edx, [ebp - 0x10208]
push edx
call fcn.004b92a0
add esp, 8
lea eax, [ebp - 0x2a0]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10208]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a8479
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov dword [ebp - 0x2a4], 0xff
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push str.SymbolicName
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a84d7
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a8687
mov edi, 0x538518
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
push eax
call fcn.004b92a0
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x4a837e
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a8], 0
jmp 0x4a857a
mov ecx, dword [ebp - 0x2a8]
add ecx, 1
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
cmp edx, dword [ebp - 0x214]
jae 0x4a8681
push 0
push 0
push 3
push 0x53e060
push 2
push 0x40000000
mov eax, dword [ebp - 0x2a8]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x10108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x4a85c9
jmp 0x4a856b
mov edx, dword [ebp - 0x2a8]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edi, eax
mov edx, 0x53de50
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x2ac]
push ecx
push 0x4c
lea edx, [ebp - 0x304]
push edx
push 0x4c
lea eax, [ebp - 0x304]
push eax
push 0x220408
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4a8640
xor eax, eax
jmp 0x4a8687
push 0
mov dl, byte [ebp - 0x2fe]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.004a6fd2
add esp, 0xc
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x110], 0
je 0x4a867c
mov eax, dword [ebp - 0x110]
jmp 0x4a8687
jmp 0x4a856b
mov eax, dword [ebp - 0x110]
pop edi
pop esi
mov esp, ebp
pop ebp
ret