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

Disassembly:
push 0x2c
push 0x100ce78
call fcn.01005f43
xor esi, esi
mov dword [ebp - 0x28], esi
push 0x5b
call fcn.0100c38e
push dword [ebp + 0xc]
call fcn.0100c6bd
push 0x100ce70
call fcn.0100c6bd
mov dword [ebp - 0x20], esi
mov ebx, 0x100f4a0
mov dword [ebp - 0x30], 0x100
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push ecx
push esi
lea ecx, [ebp - 0x24]
push ecx
push esi
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
je 0x100cd80
push 0xa
call fcn.0100c38e
cmp edi, 0x103
je 0x100cc45
mov dword [0x100f6a4], 0x1e
cmp dword [ebp - 0x28], 1
jne 0x100cc51
inc dword [0x100f488]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edi, [ebx + 0x100]
mov dword [ebp - 4], esi
lea eax, [edi + edi]
call fcn.01005f9a
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0xfffffffe
push dword [ebp + 0xc]
push edi
push esi
call fcn.010022fa
lea esi, [esi + ebx*2]
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x20], 1
mov ebx, 0xff
push ebx
push esi
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call edi
test eax, eax
jne 0x100cd48
mov eax, dword [ebp + 0x10]
or eax, 9
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100cd28
and dword [0x100f6a4], eax
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call fcn.0100cbca
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], 0
jne 0x100cd11
cmp dword [0x100f6a4], 0
jne 0x100cd11
inc dword [0x100f488]
mov dword [ebp - 0x28], 1
cmp dword [0x100f6a4], 0x322
jne 0x100cd32
lea esp, [ebp - 0x4c]
call fcn.01005f8b
ret 0xc
mov dword [0x100f6a4], 0x6e
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x20]
push ebx
push esi
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x100ccc1
cmp eax, 0x103
je 0x100cd1d
mov dword [0x100f6a4], 0x1e
jmp 0x100cd1d
mov dword [0x100f6a4], esi
cmp dword [ebp - 0x24], 1
je 0x100cd9c
cmp dword [ebp - 0x24], 2
je 0x100cd9c
cmp dword [ebp - 0x24], 7
je 0x100cd9c
xor eax, eax
jmp 0x100cd9f
push 2
pop eax
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x100ce40
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100cddb
mov dword [0x100f6a4], 0x322
jmp 0x100ce37
cmp dword [ebp - 0x30], esi
je 0x100cde8
push ebx
call fcn.0100c6e5
jmp 0x100cdef
push 0x40
call fcn.0100c38e
push 0x3d
call fcn.0100c38e
mov eax, dword [ebp - 0x24]
dec eax
je 0x100ce2a
sub eax, 3
jne 0x100ce1c
cmp dword [ebp - 0x2c], 4
jne 0x100ce1c
push 0x10083c8
call fcn.0100c6bd
push 1
push dword [edi]
call fcn.0100c72e
jmp 0x100ce30
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push edi
call fcn.0100c812
jmp 0x100ce30
push edi
call fcn.0100c6e5
push 0xa
call fcn.0100c38e
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100ce4a
mov dword [0x100f6a4], 0x322
mov eax, dword [0x100f6a4]
cmp eax, 0x322
je 0x100cd1d
cmp eax, esi
jne 0x100cbfc
mov dword [ebp - 0x28], 1
jmp 0x100cbfc