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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
xor eax, eax
pop ecx
lea edi, [ebp - 0x287]
mov byte [ebp - 0x288], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
pop ecx
lea edi, [ebp - 0x187]
mov byte [ebp - 0x188], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x5f]
mov byte [ebp - 0x60], bl
mov byte [ebp - 0x88], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x87]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x73]
mov byte [ebp - 0x74], bl
mov byte [ebp - 0x38], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x37]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x4b]
mov byte [ebp - 0x4c], bl
push 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop esi
lea eax, [ebp - 0x60]
push esi
mov edi, str.BC939E8C8C
push eax
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call fcn.100171d0
pop ecx
push eax
push edi
call fcn.1000b902
add esp, 0x10
lea eax, [ebp - 0x88]
mov edi, str.BB968C8F939E86
push esi
push eax
push edi
call fcn.100171d0
pop ecx
push eax
push edi
call fcn.1000b902
add esp, 0x10
lea eax, [ebp - 0x74]
mov edi, str.B29998
push esi
push eax
push edi
call fcn.100171d0
pop ecx
push eax
push edi
call fcn.1000b902
add esp, 0x10
lea eax, [ebp - 0x38]
mov edi, str.B1A9B6BBB6BE
push esi
push eax
push edi
call fcn.100171d0
pop ecx
push eax
push edi
call fcn.1000b902
add esp, 0x10
lea eax, [ebp - 0x4c]
mov edi, str.BEABB6
push esi
push eax
push edi
call fcn.100171d0
pop ecx
push eax
push edi
call fcn.1000b902
lea eax, [ebp - 0x38]
push eax
call fcn.10016f99
lea eax, [ebp - 0x4c]
push eax
call fcn.10016f99
add esp, 0x18
cmp dword [0x10035524], ebx
lea eax, [ebp - 8]
push eax
je 0x1000a0dd
push str.EnumPCI
jmp 0x1000a0e2
push str.SYSTEMControlSet001EnumPCI
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x1000a0f8
xor eax, eax
jmp 0x1000a2bc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x1c], ebx
mov edi, 0xff
push edi
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.10017a10
add esp, 0xc
lea eax, [ebp - 0x288]
push edi
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1000a2ab
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000a2a3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1000a2a3
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
jbe 0x1000a29a
push edi
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.10017a10
add esp, 0xc
lea eax, [ebp - 0x288]
push edi
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1000a29a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000a28b
push edi
lea eax, [ebp - 0x188]
push ebx
push eax
mov dword [ebp - 0x14], edi
call fcn.10017a10
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a282
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.1001cf30
pop ecx
test eax, eax
pop ecx
jne 0x1000a282
push edi
lea eax, [ebp - 0x188]
push ebx
push eax
mov dword [ebp - 0x14], edi
call fcn.10017a10
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x74]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a282
lea eax, [ebp - 0x188]
push eax
call fcn.10016f99
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.10017250
add esp, 0xc
test eax, eax
jne 0x1000a27b
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.10017250
pop ecx
test eax, eax
pop ecx
je 0x1000a282
mov dword [ebp - 0x24], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x1000a176
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x1c]
jmp 0x1000a106
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov dword [0x100365b0], eax
pop edi
pop esi
pop ebx
leave
ret