Function at 0x1004cf30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b70f
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100c90c0]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push esi
push edi
push str.Start_:_hRoot0x_X__wKey_s
push str.CSetupRegW::GetRegDirectoryKeyNames
push 8
call fcn.10041ef0
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push 8
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1004cfba
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.10041ef0
add esp, 0x10
xor eax, eax
jmp 0x1004d1a7
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.10074d40
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 0x1004d182
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]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004d040
sub esi, ecx
sar esi, 1
je 0x1004d086
push esi
lea ecx, [ebp - 0x22c]
call fcn.1003f120
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call fcn.1006fb74
add esp, 0x10
mov dword [ebp - 0x228], esi
inc esi
mov dword [ebp - 0x224], esi
push 0x10
mov dword [ebp - 4], 1
call fcn.1006dafd
mov edi, eax
add esp, 4
mov dword [ebp - 0x23c], edi
test edi, edi
je 0x1004d0d7
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.1003ea90
jmp 0x1004d0d9
xor edi, edi
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
inc ecx
cmp ecx, edx
jb 0x1004d128
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.1006dae0
mov ecx, dword [ebx + 8]
shl ecx, 2
push ecx
push dword [ebx + 0x14]
mov esi, eax
push esi
call fcn.10074e50
push dword [ebx + 0x14]
call fcn.1006eaef
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 0x1004d14e
push eax
call fcn.1006eaef
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 0x1004cfbc
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::GetRegDirectoryKeyNames
push 8
call fcn.10041ef0
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.1006daee
mov esp, ebp
pop ebp
ret 0xc