Function at 0x14000213c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], rcx
mov eax, edx
mov byte [rbp + 0x118], al
lea rax, str..jre
mov rcx, rax
call sym.strdup
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0x110], 0
je 0x14000220e
mov edx, 0x5c
mov rcx, qword [rbp + 0x110]
call sym.strchr
test rax, rax
je 0x14000220e
mov edx, 0x5c
mov rcx, qword [rbp + 0x110]
call sym.strrchr
sub rax, qword [rbp + 0x110]
mov dword [rbp + 0xdc], eax
mov eax, dword [rbp + 0xdc]
add eax, 5
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xe8], rax
mov eax, dword [rbp + 0xdc]
movsxd rdx, eax
mov rax, qword [rbp + 0xe8]
mov r8, rdx
mov rdx, qword [rbp + 0x110]
mov rcx, rax
call sym.strncpy
mov eax, dword [rbp + 0xdc]
movsxd rdx, eax
mov rax, qword [rbp + 0xe8]
add rax, rdx
mov dword [rax], 0x65726a5c
mov byte [rax + 4], 0
cmp byte [rbp + 0x118], 0
je 0x140002248
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0xe8]
mov r9, rax
mov r8, qword [rbp + 0x110]
lea rax, str.argv0_s_nTry__s_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov rax, qword [rbp + 0xe8]
mov edx, 0
mov rcx, rax
call sym.access
test eax, eax
sete al
test al, al
je 0x140002271
mov rax, qword [rbp + 0xe8]
jmp 0x1400026cb
lea rax, str.C:Program_FilesSquare_BoxCatDV_Worker_7.0jre
mov qword [rbp + 0xe8], rax
cmp byte [rbp + 0x118], 0
je 0x1400022b2
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0xe8]
mov r8, rax
lea rax, str.Not_found_nTry__s_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov rax, qword [rbp + 0xe8]
mov edx, 0
mov rcx, rax
call sym.access
test eax, eax
sete al
test al, al
je 0x1400022db
mov rax, qword [rbp + 0xe8]
jmp 0x1400026cb
cmp byte [rbp + 0x118], 0
je 0x14000230e
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0xe8]
mov r8, rax
lea rax, str.Not_found_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
lea rax, str.CATDV_JAVA_HOME
mov rcx, rax
call sym.getenv
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0
je 0x140002363
cmp byte [rbp + 0x118], 0
je 0x140002357
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.Using_CATDV_JAVA_HOME_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov rax, qword [rbp + 0xd0]
jmp 0x1400026cb
mov dword [rbp + 0xc8], 0xff
lea rax, str.SoftwareJavaSoftJava_Runtime_Environment
mov qword [rbp + 0xe0], rax
lea rdx, [rbp + 0xc0]
mov rax, qword [rbp + 0xe0]
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
mov dword [rbp + 0xcc], eax
cmp byte [rbp + 0x118], 0
je 0x1400023ed
mov rbx, qword [rbp + 0xc0]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov edx, dword [rbp + 0xcc]
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x20], rbx
mov r9d, edx
mov r8, rax
lea rax, str.RegOpenKey__s_____d___p__n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
cmp dword [rbp + 0xcc], 0
je 0x14000248d
lea rax, str.SoftwareJavaSoftJava_Development_Kit
mov qword [rbp + 0xe0], rax
lea rdx, [rbp + 0xc0]
mov rax, qword [rbp + 0xe0]
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
mov dword [rbp + 0xcc], eax
cmp byte [rbp + 0x118], 0
je 0x14000247a
mov rbx, qword [rbp + 0xc0]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov edx, dword [rbp + 0xcc]
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x20], rbx
mov r9d, edx
mov r8, rax
lea rax, str.RegOpenKey__s_____d___p__n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
cmp dword [rbp + 0xcc], 0
je 0x14000248d
mov eax, 0
jmp 0x1400026cb
mov rax, qword [rbp + 0xc0]
lea rcx, [rbp + 0xbc]
lea rdx, [rbp + 0xc8]
mov qword [rsp + 0x28], rdx
lea rdx, [0x1400ba040]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
lea rdx, str.CurrentVersion
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
mov dword [rbp + 0xcc], eax
cmp byte [rbp + 0x118], 0
je 0x140002541
mov ebx, dword [rbp + 0xc8]
mov esi, dword [rbp + 0xbc]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov eax, dword [rbp + 0xcc]
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, eax
lea rax, str.RegQueryValueEx_CurrentVersion_res_ld_type_ld_len_ld_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
lea r8, [0x1400ba040]
lea rax, str.CurrentVersion_s_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov rax, qword [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
cmp dword [rbp + 0xcc], 0
je 0x140002567
mov eax, 0
jmp 0x1400026cb
mov rdx, qword [rbp + 0xe0]
lea rax, [rbp - 0x50]
lea r9, [0x1400ba040]
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
call sym.sprintf_char__char_const__::_
lea rdx, [rbp + 0xc0]
lea rax, [rbp - 0x50]
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
mov dword [rbp + 0xcc], eax
cmp byte [rbp + 0x118], 0
je 0x1400025f7
mov rbx, qword [rbp + 0xc0]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov edx, dword [rbp + 0xcc]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rbx
mov r9d, edx
mov r8, rax
lea rax, str.RegOpenKey__s_____d___p__n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
cmp dword [rbp + 0xcc], 0
je 0x14000260a
mov eax, 0
jmp 0x1400026cb
mov dword [rbp + 0xc8], 0xff
mov rax, qword [rbp + 0xc0]
lea rcx, [rbp + 0xbc]
lea rdx, [rbp + 0xc8]
mov qword [rsp + 0x28], rdx
lea rdx, [0x1400ba040]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
lea rdx, str.JavaHome
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
mov dword [rbp + 0xcc], eax
cmp byte [rbp + 0x118], 0
je 0x1400026a1
mov ebx, dword [rbp + 0xc8]
mov esi, dword [rbp + 0xbc]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov eax, dword [rbp + 0xcc]
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, eax
lea rax, str.RegQueryValueEx_JavaHome_res_ld_type_ld_len_ld_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov rax, qword [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
cmp dword [rbp + 0xcc], 0
je 0x1400026c4
mov eax, 0
jmp 0x1400026cb
lea rax, [0x1400ba040]
add rsp, 0x170
pop rbx
pop rsi
pop rbp
ret