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

Disassembly:
mov eax, 0x3014
call fcn.1003b1e0
mov eax, dword [0x100be114]
xor eax, esp
mov dword [esp + 0x3010], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3024]
lea eax, [esp + 0x1c]
push edi
mov edi, 0x1000
xor ebx, ebx
push edi
push ebx
push eax
mov ebp, ebx
call fcn.1003d660
push edi
lea eax, [esp + 0x1030]
push ebx
push eax
call fcn.1003d660
add esp, 0x18
mov dword [esp + 0x10], 0x800
cmp dword [esp + 0x3030], ebx
lea eax, [esp + 0x14]
mov edi, 0x20019
push eax
push edi
push ebx
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
je 0x1001cf40
push 0x1008154c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001d061
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
push ecx
jmp 0x1001cf29
lea eax, [esp + 0x20]
push eax
push 0x1008158c
push 0x100815cc
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.10007104
add esp, 0x14
lea eax, [esp + 0x18]
xor edx, edx
push eax
push edi
push edx
lea eax, [esp + 0x102c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001cf0f
mov eax, dword [esp + 0x302c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x24]
push eax
xor eax, eax
push eax
push 0x100815d8
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001cf0f
push dword [esp + 0x302c]
push esi
call fcn.1002106f
pop ecx
pop ecx
inc ebp
mov dword [esp + 0x10], 0x800
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1001ce94
jmp 0x1001d061
push 0x100815f8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001d061
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
push ecx
jmp 0x1001d04f
lea eax, [esp + 0x20]
push eax
push 0x10081650
push 0x100815ec
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.10007104
add esp, 0x14
lea eax, [esp + 0x18]
push eax
push edi
xor eax, eax
push eax
lea eax, [esp + 0x102c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001d035
push 0x1000
push eax
lea eax, [esp + 0x2028]
push eax
call fcn.1003d660
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2024]
push eax
lea eax, [esp + 0x24]
push eax
xor eax, eax
push eax
push 0x100816a8
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d035
cmp dword [esp + 0x10], eax
jbe 0x1001d035
mov eax, dword [esp + 0x302c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x24]
push eax
xor eax, eax
push eax
push 0x100816c0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d035
push dword [esp + 0x302c]
push esi
call fcn.1002106f
pop ecx
pop ecx
inc ebp
mov dword [esp + 0x10], 0x800
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1001cf6a
lea ecx, [esi + 2]
xor edx, edx
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x1001d066
sub esi, ecx
xor eax, eax
mov ecx, dword [esp + 0x3020]
sar esi, 1
cmp eax, esi
pop edi
pop esi
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.1003b105
add esp, 0x3014
ret