Function at 0x10008ce8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push edx
push ecx
push edi
push esi
mov dword [ebp - 0x18], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SYSTEMMountedDevices
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10008e39
push dword [ebp + 8]
call fcn.100021b2
add eax, 0xd
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10008e31
mov dword [ebp - 0x14], eax
push str.DosDevices_
push dword [ebp - 0x14]
call sub.kernel32.dll_lstrcpyA
push dword [ebp + 8]
push dword [ebp - 0x14]
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10003961
cmp eax, 1
jne 0x10008e29
lea eax, [ebp - 0x18]
push eax
call fcn.10003856
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edx
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x10008e20
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.1000405f
lea eax, [ebp - 0x18]
push eax
call fcn.10003856
mov edi, eax
add edi, edx
mov esi, edx
mov ecx, 2
mov edx, edi
sub edx, esi
push 0x23
push edx
push esi
call fcn.1000212c
cmp eax, 0
je 0x10008e20
mov esi, eax
inc esi
loop 0x10008dc7
lea eax, [ebp - 0x18]
push eax
call fcn.10003856
sub esi, edx
push 0
push esi
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.10003e6c
lea eax, [ebp - 0x18]
push eax
call fcn.10003856
mov edi, edx
mov edx, eax
push 0x23
push edx
push edi
call fcn.1000212c
cmp eax, 0
je 0x10008e20
sub eax, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10003961
jmp 0x10008e29
lea eax, [ebp - 0x18]
push eax
call fcn.10004239
push dword [ebp - 0x14]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x18]
pop esi
pop edi
pop ecx
pop edx
pop ebx
leave
ret 4

Function at 0x10008e45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push edx
push ecx
push edi
push esi
push 0
pop dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.10003856
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push str.ParentIdPrefix
push dword [ebp + 8]
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10008ed8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push 0
push 0
push str.ParentIdPrefix
push dword [ebp + 8]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x10008ed0
push dword [ebp - 0x10]
call fcn.100021b2
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.100024bc
or eax, eax
je 0x10008ed0
push 1
pop dword [ebp - 8]
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ecx
pop edx
pop ebx
leave
ret 8