Function at 0x10002f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100154a6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov eax, 0x10018618
lea esi, [ebp - 0x64]
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10001750
lea eax, [ebp - 0xbc]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetEnumRootACPI_HAL0000
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000321b
push 0x104
mov dword [ebp - 0xcc], 0x104
call fcn.10008c1d
push 0x104
mov esi, eax
push ebx
push esi
mov dword [ebp - 0xc4], esi
call fcn.1000da00
mov edx, dword [ebp - 0xbc]
add esp, 0x10
lea ecx, [ebp - 0xcc]
push ecx
push esi
push ebx
push ebx
push str.Driver
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x10003212
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003013
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x64]
call fcn.10001750
cmp dword [ebp - 0x54], ebx
jbe 0x1000320c
mov edi, 0x27
mov eax, str.SYSTEMCurrentControlSetControlClass_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10001750
lea eax, [ebp - 0x64]
mov ecx, esi
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.10005df0
mov esi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], esi
jb 0x1000307e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10008c37
add esp, 4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0xbc], ebx
cmp dword [ebp - 0x88], esi
jae 0x100030a5
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0xbc]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100031f4
push 0x104
call fcn.10008c1d
push 0x104
mov edi, eax
push ebx
push edi
call fcn.1000da00
mov ecx, dword [ebp - 0xbc]
add esp, 0x10
lea eax, [ebp - 0xc8]
push eax
push edi
push ebx
push ebx
push str.DriverDesc
push ecx
mov dword [ebp - 0xc8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, edi
lea ecx, [ebp - 0x80]
call fcn.100028b0
lea edx, [ebp - 0xb8]
push edx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.10001940
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x6c], 0x10
jb 0x1000313c
mov eax, dword [ebp - 0x80]
push eax
call fcn.10008c37
add esp, 4
mov eax, str.Advanced
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.100028b0
lea ecx, [ebp - 0x48]
push ecx
mov esi, eax
mov byte [ebp - 4], 7
call fcn.10001940
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x1000317e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10008c37
add esp, 4
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x10003189
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
push ecx
push eax
lea edx, [ebp - 0xb8]
push edx
call fcn.100022e0
cmp eax, 0xffffffff
je 0x100031a9
mov dword [ebp - 0xc0], 1
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.100094bd
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x100031d0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10008c37
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0xa4], esi
jb 0x100031f4
mov edx, dword [ebp - 0xb8]
push edx
call fcn.10008c37
add esp, 4
cmp dword [ebp - 0x88], 0x10
jb 0x1000320c
mov eax, dword [ebp - 0x9c]
push eax
call fcn.10008c37
add esp, 4
mov esi, dword [ebp - 0xc4]
push esi
call fcn.100094bd
add esp, 4
cmp dword [ebp - 0x50], 0x10
jb 0x1000322d
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10008c37
add esp, 4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret