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

Disassembly:
mov eax, 0x3014
call fcn.1003baf0
mov eax, dword [0x100530a0]
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
push 0x1000
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x1000
lea eax, [esp + 0x1030]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
cmp dword [esp + 0x303c], edi
je 0x10017304
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x10042150
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x10017436
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10017436
mov ebx, dword [esp + 0x302c]
nop dword [eax]
lea eax, [esp + 0x20]
push eax
push 0x10042150
push str._s_s
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.10005d50
add esp, 0x14
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
lea eax, [esp + 0x102c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x100172d1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push esi
lea eax, [esp + 0x24]
push eax
push 0
push str.JavaHome
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100172d1
push ebx
push esi
call fcn.100263b0
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x800
push eax
lea eax, [esp + 0x34]
inc edi
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10017260
jmp 0x10017436
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017436
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10017436
mov ebx, dword [esp + 0x302c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.10005d50
add esp, 0x14
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
lea eax, [esp + 0x102c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017408
push 0x1000
push eax
lea eax, [esp + 0x2028]
push eax
call sub.VCRUNTIME140.dll_memset
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
push 0
push str.RuntimeLib
push dword [esp + 0x2c]
call ebp
test eax, eax
jne 0x10017408
cmp dword [esp + 0x10], eax
jbe 0x10017408
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push esi
lea eax, [esp + 0x24]
push eax
push 0
push str.JavaHome
push dword [esp + 0x2c]
call ebp
test eax, eax
jne 0x10017408
push ebx
push esi
call fcn.100263b0
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x800
push eax
lea eax, [esp + 0x34]
inc edi
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10017350
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10017440
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.1003b4ee
add esp, 0x3014
ret