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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030c
call fcn.004e8aa0
push esi
push edi
mov eax, dword [0x565dbc]
mov dword [ebp - 0x1030c], eax
mov cl, byte [0x565dc0]
mov byte [ebp - 0x10308], cl
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0x10307]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_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 - 0x2bc]
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 - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bbd7e
mov dword [ebp - 0x214], 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bbdcc
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x2ac], 0
jmp 0x4bbde7
mov eax, dword [ebp - 0x2ac]
add eax, 1
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x214], 0
jne 0x4bbfc0
mov ecx, dword [ebp - 0x2ac]
cmp ecx, dword [ebp - 0x2b4]
jae 0x4bbfc0
mov dword [ebp - 0x220], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bbe5f
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bc3d1
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_HUB_
lea edx, [ebp - 0x1020c]
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 - 0x2a0]
push ecx
lea edx, [ebp - 0x1020c]
push edx
call fcn.004e86b0
add esp, 8
push 0x565e1c
lea eax, [ebp - 0x1020c]
push eax
call fcn.004e86b0
add esp, 8
lea ecx, [ebp - 0x2a4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x1020c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bbef4
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bc3d1
mov dword [ebp - 0x2a8], 0xff
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x565e30
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bbf52
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bc3d1
mov edi, 0x565e40
mov eax, dword [ebp - 0x218]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x1010c]
mov edx, ecx
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 - 0x104]
push ecx
mov edx, dword [ebp - 0x218]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x1010c]
push eax
call fcn.004e86b0
add esp, 8
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x4bbdd8
cmp dword [ebp - 0x214], 0
jne 0x4bbfe3
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_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 - 0x2bc]
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 - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bc044
mov dword [ebp - 0x214], 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bc092
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x2ac], 0
jmp 0x4bc0ad
mov eax, dword [ebp - 0x2ac]
add eax, 1
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x214], 0
jne 0x4bc286
mov ecx, dword [ebp - 0x2ac]
cmp ecx, dword [ebp - 0x2b4]
jae 0x4bc286
mov dword [ebp - 0x220], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bc125
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bc3d1
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_HUB20_
lea edx, [ebp - 0x1020c]
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 - 0x2a0]
push ecx
lea edx, [ebp - 0x1020c]
push edx
call fcn.004e86b0
add esp, 8
push str.Device_Parameters
lea eax, [ebp - 0x1020c]
push eax
call fcn.004e86b0
add esp, 8
lea ecx, [ebp - 0x2a4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x1020c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bc1ba
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bc3d1
mov dword [ebp - 0x2a8], 0xff
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x565ebc
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bc218
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bc3d1
mov edi, 0x565ecc
mov eax, dword [ebp - 0x218]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x1010c]
mov edx, ecx
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 - 0x104]
push ecx
mov edx, dword [ebp - 0x218]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x1010c]
push eax
call fcn.004e86b0
add esp, 8
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x4bc09e
cmp dword [ebp - 0x214], 0
jne 0x4bc2a9
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2ac], 0
jmp 0x4bc2c4
mov ecx, dword [ebp - 0x2ac]
add ecx, 1
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2ac]
cmp edx, dword [ebp - 0x218]
jae 0x4bc3cb
push 0
push 0
push 3
push 0x674638
push 2
push 0x40000000
mov eax, dword [ebp - 0x2ac]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x1010c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x4bc313
jmp 0x4bc2b5
mov edx, dword [ebp - 0x2ac]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x1010c]
mov edi, eax
mov edx, 0x674428
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 - 0x2b0]
push ecx
push 0x4c
lea edx, [ebp - 0x308]
push edx
push 0x4c
lea eax, [ebp - 0x308]
push eax
push 0x220408
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4bc38a
xor eax, eax
jmp 0x4bc3d1
push 0
mov dl, byte [ebp - 0x302]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.004bb3c2
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 0x4bc3c6
mov eax, dword [ebp - 0x110]
jmp 0x4bc3d1
jmp 0x4bc2b5
mov eax, dword [ebp - 0x110]
pop edi
pop esi
mov esp, ebp
pop ebp
ret