Function at 0x10006560
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ad5f
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100272d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
push 0x80000002
push str.Start_:_hRoot0x_X__wKey_s
push str.CSetupRegW::GetRegDirectoryKeyNames
push 8
call fcn.10007390
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push 8
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100065ef
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegOpenKeyExW_returned_ox_X_
push str.CSetupRegW::GetRegDirectoryKeyNames
add ecx, 2
push ecx
call fcn.10007390
add esp, 0x10
xor eax, eax
jmp 0x100067d9
xor esi, esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x234], esi
call fcn.10010460
add esp, 0xc
lea eax, [ebp - 0x238]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x230]
mov dword [ebp - 0x238], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100067b4
mov dword [ebp - 4], eax
lea esi, [ebp - 0x21c]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10006672
sub esi, ecx
sar esi, 1
je 0x100066b8
push esi
lea ecx, [ebp - 0x22c]
call fcn.10004f50
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call fcn.1000a730
add esp, 0x10
mov dword [ebp - 0x228], esi
inc esi
mov dword [ebp - 0x224], esi
push 0x10
mov dword [ebp - 4], 1
call fcn.10009fa4
mov edi, eax
add esp, 4
mov dword [ebp - 0x23c], edi
test edi, edi
je 0x10006709
mov byte [ebp - 4], 3
push dword [ebp - 0x228]
mov ecx, edi
push dword [ebp - 0x220]
mov dword [edi], vtable.CStringBufferW.0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
call fcn.10004b40
jmp 0x1000670b
xor edi, edi
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
inc ecx
cmp ecx, edx
jb 0x1000675a
mov eax, dword [ebx + 0x10]
add eax, edx
add eax, ecx
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000924d
mov ecx, dword [ebx + 8]
shl ecx, 2
push ecx
push dword [ebx + 0x14]
mov esi, eax
push esi
call fcn.1000dd90
push dword [ebx + 0x14]
call fcn.10009ff3
add esp, 0x14
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4], edi
inc dword [ebx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10006780
push eax
call fcn.10009ff3
add esp, 4
mov esi, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
inc esi
jmp 0x100065f1
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::GetRegDirectoryKeyNames
push 8
call fcn.10007390
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10009545
mov esp, ebp
pop ebp
ret 0xc