Function at 0x10017ff5
Capabilities:
Check if file exists
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x10d4]
mov eax, 0x1154
call fcn.1001e5c0
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x10d0], eax
mov eax, dword [ebp + 0x10dc]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, 0x20019
push edi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10e0]
push 0x1003b9b0
mov esi, 0x80004005
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.10023b19
test eax, eax
je 0x100180ad
lea ecx, [ebp - 0x70]
call fcn.1000135a
lea ecx, [ebp - 0x58]
call fcn.1000135a
lea ecx, [ebp - 0x64]
call fcn.1000135a
lea ecx, [ebp - 0x7c]
call fcn.1000135a
mov ecx, dword [ebp + 0x10d0]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d742
add ebp, 0x10d4
leave
ret
push edi
push 0x1003b9bc
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x64]
call fcn.10023b19
test eax, eax
jne 0x10018073
push edi
push str.Java_Runtime_Environment
push dword [ebp - 0x64]
lea ecx, [ebp - 0x58]
call fcn.10023b19
test eax, eax
jne 0x1001836c
mov esi, 0x400
lea edi, [esi - 1]
push edi
lea eax, [ebp + 0xbcd]
push ebx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], esi
mov byte [ebp + 0xbcc], bl
call fcn.1001d760
push dword [ebp - 0x44]
push dword [ebp + 0x10e4]
push dword [ebp - 0x4c]
call fcn.10023b19
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0xbcc]
push eax
push ebx
jmp 0x1001835b
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x38], ebx
jbe 0x10018343
cmp byte [ebp + eax + 0xbcc], 0x2e
jne 0x10018143
inc ecx
cmp ecx, 1
jg 0x10018152
inc eax
cmp eax, dword [ebp - 0x38]
jb 0x10018133
cmp ecx, 1
jle 0x10018343
push 3
lea eax, [ebp + 0xbcc]
push 0x1003b9e4
push eax
call fcn.10023b19
add esp, 0xc
test eax, eax
js 0x10018343
push 0x20019
lea eax, [ebp + 0xbcc]
push eax
push dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.10023b19
test eax, eax
jne 0x1001836c
push 5
push dword [ebp - 0x44]
lea eax, [ebp + 0xbcc]
push eax
call fcn.10023b19
add esp, 0xc
test eax, eax
jne 0x10018343
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0xbcc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100181d4
cmp dl, bl
je 0x100181d0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100181d4
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x100181b4
xor eax, eax
jmp 0x100181d9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jl 0x10018343
push 0x103
lea eax, [ebp + 0xfcd]
push ebx
push eax
mov dword [ebp - 0x3c], 0x104
mov byte [ebp + 0xfcc], bl
call fcn.1001d760
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0xfcc]
push eax
push 0x1003b9e8
lea ecx, [ebp - 0x70]
call fcn.10023b19
test eax, eax
jne 0x10018343
push edi
lea eax, [ebp + 0x3cd]
push ebx
push eax
mov byte [ebp + 0x3cc], bl
call fcn.1001d760
add esp, 0xc
push esi
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0xfcc]
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameA]
push edi
lea eax, [ebp - 0x33]
push ebx
push eax
mov byte [ebp - 0x34], bl
call fcn.1001d760
lea eax, [ebp + 0xbcc]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10018269
sub eax, ecx
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x34]
mov eax, ebx
mov cl, byte [ebp + eax + 0xbcc]
cmp cl, 0x2e
je 0x10018289
mov byte [edx], cl
inc edx
inc eax
cmp eax, dword [ebp - 0x80]
jbe 0x1001827a
push edi
lea eax, [ebp + 0x7cd]
push ebx
push eax
mov byte [ebp + 0x7cc], bl
call fcn.1001d760
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x7cc]
push esi
push eax
call fcn.10023b19
push str._bin_
lea eax, [ebp + 0x7cc]
push esi
push eax
call fcn.10023b19
mov eax, dword [ebp - 0x44]
add esp, 0x24
cmp byte [eax + 2], 0x33
lea eax, [ebp + 0x7cc]
jne 0x100182e2
push str.npjava
jmp 0x100182e7
push str.npjpi
push esi
push eax
call fcn.10023b19
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x7cc]
push esi
push eax
call fcn.10023b19
push str..dll
lea eax, [ebp + 0x7cc]
push esi
push eax
call fcn.10023b19
add esp, 0x18
lea eax, [ebp + 0x7cc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10018343
lea eax, [ebp + 0xbcc]
push eax
push dword [ebp + 0x10e4]
push dword [ebp - 0x4c]
call fcn.10023b19
add esp, 0xc
mov dword [ebp - 0x40], ebx
inc dword [ebp - 0x48]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0xbcc]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x38], esi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10018126
mov esi, dword [ebp - 0x40]
jmp 0x10018073