Function at 0x40766c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rbx, rdx
lea rcx, str._JAVA_OPTIONS
xor edx, edx
mov rdi, r9
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rcx, str.JAVA_TOOL_OPTIONS
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rbx
call fcn.0040afe0
test rax, rax
jne 0x4076d4
lea rcx, str._JNILaunch___ERROR__Unable_to_load_JRE_library__n
call fcn.0040bfd4
mov eax, 1
jmp 0x407aca
lea rdx, str.JNI_CreateJavaVM
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str._JNILaunch__________JNI_Launch_call_________n
mov qword [rsp + 0x30], rax
call fcn.0040bfd4
xor ebx, ebx
test ebp, ebp
jle 0x407717
mov r8, qword [rdi]
lea rcx, str._JNILaunch__JVM_Argument__d___s_n
mov edx, ebx
call fcn.0040bfd4
add ebx, 1
add rdi, 8
cmp ebx, ebp
jl 0x4076fb
movsxd rbx, dword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
xor edi, edi
test ebx, ebx
jle 0x40774d
mov rbp, r14
mov r8, qword [rbp]
lea rcx, str._JNILaunch__CP_Argument__d___s_n
mov edx, edi
call fcn.0040bfd4
add edi, 1
add rbp, 8
cmp edi, ebx
jl 0x407730
mov r12d, dword [rsp + 0xd0]
xor edi, edi
test r12d, r12d
jle 0x407782
mov rbp, qword [rsp + 0xd8]
mov r8, qword [rbp]
lea rcx, str._JNILaunch__App_Argument__d___s_n
mov edx, edi
call fcn.0040bfd4
add edi, 1
add rbp, 8
cmp edi, r12d
jl 0x407764
lea rcx, str._JNILaunch__Trimming...
call fcn.0040bfd4
test ebx, ebx
jle 0x4077a8
lea rax, [r14 + rbx*8 - 8]
cmp qword [rax], 0
jne 0x4077a8
sub ebx, 1
sub rax, 8
test ebx, ebx
jg 0x407797
mov ecx, 0x640
call fcn.00417210
mov ecx, 0xc350
xor r12d, r12d
mov r13, rax
mov qword [rsp + 0x28], rax
call fcn.00417210
movsxd rbx, ebx
xor ebp, ebp
mov byte [rax], r12b
test rbx, rbx
mov rdi, rax
jle 0x407807
test rbp, rbp
mov rcx, rdi
lea rdx, str._Djava.class.path
je 0x4077ed
lea rdx, [0x0044cb9c]
call fcn.004174e0
mov rdx, qword [r14 + rbp*8]
mov rcx, rdi
call fcn.004174e0
add rbp, 1
cmp rbp, rbx
jl 0x4077d7
mov rcx, rdi
call fcn.00417420
test rax, rax
je 0x40781e
mov qword [r13], rdi
mov r12d, 1
movsxd r14, dword [rsp + 0xb0]
xor r15d, r15d
movsxd rbp, r12d
test r14, r14
jle 0x407880
shl rbp, 4
add rbp, r13
mov r13, qword [rsp + 0xb8]
add r12d, r14d
mov rdi, qword [r13 + r15*8]
mov rcx, rdi
call fcn.00417420
lea rcx, [rax + 1]
call fcn.00417210
mov rdx, rdi
mov rcx, rax
mov rbx, rax
mov byte [rax], 0
call fcn.004174e0
add r15, 1
mov qword [rbp], rbx
add rbp, 0x10
cmp r15, r14
jl 0x407843
mov r13, qword [rsp + 0x28]
xor edi, edi
test r12d, r12d
mov dword [rsp + 0x40], 0x10004
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x44], r12d
mov byte [rsp + 0x50], 1
movsxd rbx, r12d
jle 0x4078c0
mov r8, qword [r13]
lea rcx, str._JNILaunch__JNI_Option__d_s_n
mov edx, edi
call fcn.0040bfd4
add edi, 1
add r13, 0x10
sub rbx, 1
jne 0x4078a1
lea rcx, str._JNILaunch__Creating_VM..._n
call fcn.0040bfd4
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call qword [rsp + 0x30]
test eax, eax
je 0x4078ef
lea rcx, str._JNILauncher__Create_Java_VM_Failed__n
jmp 0x4076c5
lea rcx, str._JNILaunch__Created_VM._n
call fcn.0040bfd4
mov ecx, 0x3e8
call fcn.00417210
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
mov rbx, rax
mov byte [rax], 0
call fcn.004174e0
mov rcx, rbx
xor ebp, ebp
call fcn.00417420
test eax, eax
jle 0x407947
mov rdi, rbx
cmp byte [rdi], 0x2e
jne 0x407934
mov byte [rdi], 0x2f
mov rcx, rbx
add ebp, 1
add rdi, 1
call fcn.00417420
cmp ebp, eax
jl 0x40792c
lea rcx, str._JNILauncher__Searching_for_clazz__s_n
mov rdx, rbx
call fcn.0040bfd4
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x30]
test rax, rax
mov rdi, rax
jne 0x407978
lea rcx, str._JNILauncher__Searching_for_clazz_failed__n
jmp 0x4076c5
lea rcx, str._JNILauncher__Searching_for_main_method__s_n
mov rdx, rbx
call fcn.0040bfd4
mov rcx, qword [rsp + 0x20]
lea r9, str.__Ljava_lang_String__V
mov rax, qword [rcx]
lea r8, str.main
mov rdx, rdi
call qword [rax + 0x388]
mov rcx, qword [rsp + 0x20]
lea rdx, str.java_lang_String
mov r8, qword [rcx]
mov r12, rax
call qword [r8 + 0x30]
mov rcx, qword [rsp + 0x20]
mov r13d, dword [rsp + 0xd0]
mov r10, qword [rcx]
xor r9d, r9d
mov r8, rax
mov edx, r13d
call qword [r10 + 0x560]
xor ebx, ebx
test r13d, r13d
mov rbp, rax
jle 0x407a34
mov r14, qword [rsp + 0xd8]
mov r8, qword [r14]
lea rcx, str._JNILauncher__Set_argument__d_to__s_n
mov edx, ebx
call fcn.0040bfd4
mov rcx, qword [rsp + 0x20]
mov rdx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x538]
mov rcx, qword [rsp + 0x20]
mov r8d, ebx
mov r10, qword [rcx]
mov r9, rax
mov rdx, rbp
call qword [r10 + 0x570]
add ebx, 1
add r14, 8
cmp ebx, r13d
jl 0x4079ee
lea rcx, str._JNILauncher__About_to_execute_static_void_method._n
call fcn.0040bfd4
lea rcx, str._Utils__Closing_logging_file._n
call fcn.0040bfd4
mov rcx, qword [0x0046a170]
test rcx, rcx
je 0x407a68
call fcn.0041b8c0
mov qword [0x0046a170], 0
mov rcx, qword [rsp + 0x20]
mov r9, rbp
mov r8, r12
mov rdx, rdi
call fcn.00407648
lea rcx, str._JNILauncher__Run_complete._n
call fcn.0040bfd4
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x78]
test rax, rax
je 0x407aa5
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x80]
lea rcx, str._JNILauncher__Destroying_runtime._n
call fcn.0040bfd4
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rcx, str._JNILauncher__Done__n
call fcn.0040bfd4
xor eax, eax
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret