Function at 0x4b82c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d5106
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
mov edi, str.SubVendorIDs
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [esp + 0xc8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and ecx, 3
lea edx, [esp + 0x34]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push 0
push 0
push edx
push ebp
call ebx
test eax, eax
jne 0x4b83f2
mov eax, dword [esp + 0x10]
push eax
call fcn.004bf598
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x34]
push ecx
push esi
push 0
push 0
push edx
push ebp
mov dword [esp + 0x34], esi
call ebx
test eax, eax
je 0x4b8372
push esi
call fcn.004be17b
add esp, 4
xor eax, eax
jmp 0x4b8669
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00406ad6
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc0], 0
shr eax, 1
je 0x4b83d3
mov ecx, dword [esp + 0x18]
mov ebp, eax
lea edi, [ecx + 0x20]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x20]
xor edx, edx
push ecx
mov dx, word [esi]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], edx
call fcn.0042c590
add esi, 2
dec ebp
jne 0x4b83a1
mov ebp, dword [esp + 0xc8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esp + 0x1c]
push esi
call fcn.004be17b
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0xc0], 0xffffffff
push 1
call fcn.00406ad6
mov edi, str.SubDeviceIDs
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
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, [esp + 0x10]
push ecx
push 0
push 0
push 0
push edx
push ebp
call ebx
test eax, eax
jne 0x4b84fc
mov eax, dword [esp + 0x10]
push eax
call fcn.004bf598
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
lea edx, [esp + 0x34]
push ecx
push ebx
push 0
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4b8474
push ebx
call fcn.004be17b
add esp, 4
xor eax, eax
jmp 0x4b8669
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00406ad6
mov ebp, dword [esp + 0x10]
mov dword [esp + 0xc0], 1
shr ebp, 1
je 0x4b84c4
mov ecx, dword [esp + 0x18]
mov esi, ebx
lea edi, [ecx + 0x30]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x1c]
xor edx, edx
push ecx
mov dx, word [esi]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x28], edx
call fcn.0042c590
add esi, 2
dec ebp
jne 0x4b84a3
push ebx
call fcn.004be17b
mov ecx, dword [esp + 0x2c]
add esp, 4
test ecx, ecx
mov dword [esp + 0xc0], 0xffffffff
je 0x4b84fc
mov al, byte [ecx - 1]
test al, al
je 0x4b84f2
cmp al, 0xff
je 0x4b84f2
dec al
mov byte [ecx - 1], al
jmp 0x4b84fc
dec ecx
push ecx
call fcn.004be17b
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x34]
lea edi, [esi + 0x30]
test eax, eax
jne 0x4b850e
xor ebx, ebx
jmp 0x4b8516
mov ebx, dword [edi + 8]
sub ebx, eax
sar ebx, 2
mov eax, dword [esi + 0x24]
add esi, 0x20
test eax, eax
jne 0x4b8524
xor ebp, ebp
jmp 0x4b852c
mov ebp, dword [esi + 8]
sub ebp, eax
sar ebp, 2
cmp ebp, ebx
je 0x4b8664
jae 0x4b85cc
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x4b854d
xor ecx, ecx
jmp 0x4b8555
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, ebx
jae 0x4b8580
test eax, eax
jne 0x4b8561
xor ecx, ecx
jmp 0x4b8569
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
mov eax, ebx
lea edx, [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0042c590
jmp 0x4b85b1
test eax, eax
je 0x4b85b1
mov ecx, dword [esi + 8]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp ebx, edx
jae 0x4b85b1
lea eax, [eax + ebx*4]
push eax
push ecx
push ecx
call fcn.004baeb0
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
call fcn.0045a920
mov dword [esi + 8], edi
mov eax, ebp
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ebx
mov edx, dword [ecx + 0x24]
mov dword [edx + eax*4 - 4], 0
jb 0x4b85b3
jmp 0x4b8664
mov eax, dword [edi + 4]
mov dword [esp + 0x20], 0
test eax, eax
jne 0x4b85df
xor ecx, ecx
jmp 0x4b85e7
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, ebp
jae 0x4b8612
test eax, eax
jne 0x4b85f3
xor ecx, ecx
jmp 0x4b85fb
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
lea eax, [esp + 0x20]
mov edx, ebp
push eax
mov eax, dword [edi + 8]
sub edx, ecx
mov ecx, edi
push edx
push eax
call fcn.0042c590
jmp 0x4b864a
test eax, eax
je 0x4b864a
mov ecx, dword [edi + 8]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp ebp, edx
jae 0x4b864a
lea esi, [eax + ebp*4]
mov eax, ecx
cmp eax, ecx
je 0x4b863b
mov edx, dword [eax]
add eax, 4
mov dword [esi], edx
add esi, 4
cmp eax, ecx
jne 0x4b862d
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push esi
call fcn.0045a920
mov dword [edi + 8], esi
cmp ebx, ebp
mov eax, ebx
jae 0x4b8664
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ebp
mov edx, dword [ecx + 0x34]
mov dword [edx + eax*4 - 4], 0
jb 0x4b8650
mov eax, 1
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret 4