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

Disassembly:
mov eax, 0x3014
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
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.100621d0
push edi
lea eax, [esp + 0x1030]
push ebx
push eax
call fcn.100621d0
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 0x1001e4a6
push 0x100e4edc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001e5c7
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 0x1001e48f
lea eax, [esp + 0x20]
push eax
push 0x100e4f1c
push 0x100e4f5c
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.1000af1e
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 0x1001e475
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 0x100e4f68
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001e475
push dword [esp + 0x302c]
push esi
call fcn.10026654
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 0x1001e3fa
jmp 0x1001e5c7
push 0x100e4f88
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001e5c7
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 0x1001e5b5
lea eax, [esp + 0x20]
push eax
push 0x100e4fe0
push 0x100e4f7c
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.1000af1e
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 0x1001e59b
push 0x1000
push eax
lea eax, [esp + 0x2028]
push eax
call fcn.100621d0
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 0x100e5038
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001e59b
cmp dword [esp + 0x10], eax
jbe 0x1001e59b
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 0x100e5050
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001e59b
push dword [esp + 0x302c]
push esi
call fcn.10026654
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 0x1001e4d0
lea ecx, [esi + 2]
xor edx, edx
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x1001e5cc
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.1005e187
add esp, 0x3014
ret