Function at 0x140001ed4
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2ce0]
mov eax, 0x2de0
call fcn.140007fa0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2e20], rbx
mov rax, qword [0x14000ed68]
xor rax, rsp
mov qword [rbp + 0x2cd0], rax
mov r12, rdx
mov rbx, rcx
mov byte [rbp + 0x14d0], 0
xor edx, edx
mov r8d, 0xfff
lea rcx, [rbp + 0x14d1]
call sub.MSVCR100.dll_memset
mov byte [rbp + 0x24d0], 0
xor edx, edx
mov r8d, 0x7ff
lea rcx, [rbp + 0x24d1]
call sub.MSVCR100.dll_memset
mov edi, 0x800
mov r8d, edi
lea rdx, [rbp + 0x24d0]
lea rcx, str._JPI_VM_OPTIONS
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001f89
cmp eax, edi
jae 0x140001f89
lea rdx, [rbp + 0x24d0]
lea rcx, [rbp + 0x14d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140001fb6
lea rcx, [rbp + 0x80]
call fcn.14000719c
nop
lea rdx, [rbp + 0x14d0]
lea rcx, [rbp + 0x80]
call fcn.140007b8c
nop
lea rcx, [rbp + 0x80]
call fcn.1400071bc
lea rdx, str._Djava.ext.dirs
lea rcx, [rbp + 0x14d0]
call qword [sym.imp.MSVCR100.dll__mbsstr]
test rax, rax
jne 0x140002172
mov byte [rbp + 0x13c0], al
mov r13d, 0x103
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x13c1]
call sub.MSVCR100.dll_memset
mov byte [rbp + 0x11a0], 0
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x11a1]
call sub.MSVCR100.dll_memset
lea edi, [r13 + 1]
mov edx, edi
lea rcx, [rbp + 0x13c0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r8, [rbp + 0x13c0]
lea rdx, str._sSunJavaDeploymentLibTrusted
lea rcx, [rbp + 0x11a0]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x11a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
mov byte [rbp + 0x12b0], 0
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x12b1]
call sub.MSVCR100.dll_memset
mov byte [rbp + 0x1090], 0
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x1091]
call sub.MSVCR100.dll_memset
mov r8d, edi
lea rdx, [rbp + 0x12b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0x12b0]
call qword [sym.imp.MSVCR100.dll_strrchr]
test rax, rax
je 0x1400020a7
mov byte [rax], 0
lea r8, [rbp + 0x12b0]
lea rdx, str._sjss
lea rcx, [rbp + 0x1090]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1090]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rsi, 0xffffffffffffffff
jne 0x14000210c
cmp rax, rsi
je 0x140002172
lea r9, [rbp + 0x1090]
mov r8, rbx
lea rdx, str._Djava.ext.dirs__slibext__s_
lea rbx, [0x14000f0f0]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rdi
jmp 0x14000215a
lea r9, [rbp + 0x11a0]
mov r8, rbx
lea rbx, [0x14000f0f0]
mov rcx, rbx
cmp rax, 0xffffffffffffffff
je 0x14000214a
lea rax, [rbp + 0x1090]
mov qword [rsp + 0x20], rax
lea rdx, str._Djava.ext.dirs__slibext__s__s_
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140002107
lea rdx, [0x14000a6c8]
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140002f58
mov rcx, qword [rbp + 0x2cd0]
xor rcx, rsp
call fcn.140007e30
mov rbx, qword [rsp + 0x2e20]
add rsp, 0x2de0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret