Function at 0x407178
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa80
mov rbx, rdx
lea rcx, str._JAVA_OPTIONS
xor edx, edx
mov rdi, r9
movsxd r14, 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.00406f04
test rax, rax
jne 0x4071de
lea rcx, str._JNILaunch___ERROR__Unable_to_load_JRE_library__n
call fcn.0040b26c
mov eax, 1
jmp 0x407593
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.0040b26c
xor ebx, ebx
test r14d, r14d
jle 0x407223
mov r8, qword [rdi]
lea rcx, str._JNILaunch__JVM_Argument__d___s_n
mov edx, ebx
call fcn.0040b26c
add ebx, 1
add rdi, 8
cmp ebx, r14d
jl 0x407206
movsxd r12, dword [rsp + 0xae0]
mov r13, qword [rsp + 0xae8]
xor ebx, ebx
test r12d, r12d
jle 0x40725a
mov rdi, r13
mov r8, qword [rdi]
lea rcx, str._JNILaunch__CP_Argument__d___s_n
mov edx, ebx
call fcn.0040b26c
add ebx, 1
add rdi, 8
cmp ebx, r12d
jl 0x40723d
mov r15d, dword [rsp + 0xaf0]
xor ebx, ebx
test r15d, r15d
jle 0x40728e
mov rdi, qword [rsp + 0xaf8]
mov r8, qword [rdi]
lea rcx, str._JNILaunch__App_Argument__d___s_n
mov edx, ebx
call fcn.0040b26c
add ebx, 1
add rdi, 8
cmp ebx, r15d
jl 0x407271
mov ecx, 0xc350
xor ebp, ebp
call fcn.00416460
xor edi, edi
test r12, r12
mov byte [rax], bpl
mov rbx, rax
jle 0x4072d8
test rdi, rdi
mov rcx, rbx
lea rdx, str._Djava.class.path
je 0x4072bd
lea rdx, [0x0044b974]
call fcn.00416730
mov rdx, qword [r13 + rdi*8]
mov rcx, rbx
call fcn.00416730
add rdi, 1
cmp rdi, r12
jl 0x4072a7
mov rcx, rbx
call fcn.00416670
test rax, rax
je 0x4072f2
mov qword [rsp + 0x440], rbx
mov ebp, 1
xor r13d, r13d
test r14d, r14d
movsxd rax, ebp
mov r12, r14
jle 0x407354
mov r15, qword [rsp + 0xad8]
add rax, rax
add ebp, r12d
lea r14, [rsp + rax*8 + 0x440]
mov rdi, qword [r15 + r13*8]
mov rcx, rdi
call fcn.00416670
lea rcx, [rax + 1]
call fcn.00416460
mov rdx, rdi
mov rcx, rax
mov rbx, rax
mov byte [rax], 0
call fcn.00416730
add r13, 1
mov qword [r14], rbx
add r14, 0x10
cmp r13, r12
jl 0x407316
mov r15d, dword [rsp + 0xaf0]
lea rax, [rsp + 0x440]
xor r12d, r12d
test ebp, ebp
mov dword [rsp + 0x38], 0x10004
mov dword [rsp + 0x3c], ebp
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
movsxd rbx, ebp
jle 0x4073a4
lea rdi, [rsp + 0x440]
mov r8, qword [rdi]
lea rcx, str._JNILaunch__JNI_Option__d_s_n
mov edx, r12d
call fcn.0040b26c
add r12d, 1
add rdi, 0x10
sub rbx, 1
jne 0x407384
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [rsp + 0x30]
test eax, eax
je 0x4073c7
lea rcx, str._JNILauncher__Create_Java_VM_Failed__n
jmp 0x4071cf
mov rdx, qword [rsp + 0xac0]
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x50], 0
call fcn.00416730
lea rcx, [rsp + 0x50]
xor edi, edi
call fcn.00416670
test eax, eax
jle 0x407410
lea rbx, [rsp + 0x50]
cmp byte [rbx], 0x2e
jne 0x4073fb
mov byte [rbx], 0x2f
lea rcx, [rsp + 0x50]
add edi, 1
add rbx, 1
call fcn.00416670
cmp edi, eax
jl 0x4073f3
lea rdx, [rsp + 0x50]
lea rcx, str._JNILauncher__Searching_for_clazz__s_n
call fcn.0040b26c
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x30]
test rax, rax
mov rbx, rax
jne 0x407445
lea rcx, str._JNILauncher__Searching_for_clazz_failed__n
jmp 0x4071cf
lea rdx, [rsp + 0x50]
lea rcx, str._JNILauncher__Searching_for_main_method__s_n
call fcn.0040b26c
mov rcx, qword [rsp + 0x20]
lea r9, str.__Ljava_lang_String__V
mov rax, qword [rcx]
lea r8, str.main
mov rdx, rbx
call qword [rax + 0x388]
mov rcx, qword [rsp + 0x20]
lea rdx, str.java_lang_String
mov r8, qword [rcx]
mov r13, rax
call qword [r8 + 0x30]
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
mov r10, qword [rcx]
mov r8, rax
mov edx, r15d
call qword [r10 + 0x560]
xor edi, edi
test r15d, r15d
mov rbp, rax
jle 0x4074fd
mov r12, qword [rsp + 0xaf8]
mov r8, qword [r12]
lea rcx, str._JNILauncher__Set_argument__d_to__s_n
mov edx, edi
call fcn.0040b26c
mov rcx, qword [rsp + 0x20]
mov rdx, qword [r12]
mov rax, qword [rcx]
call qword [rax + 0x538]
mov rcx, qword [rsp + 0x20]
mov r8d, edi
mov r10, qword [rcx]
mov r9, rax
mov rdx, rbp
call qword [r10 + 0x570]
add edi, 1
add r12, 8
cmp edi, r15d
jl 0x4074b5
lea rcx, str._JNILauncher__About_to_execute_static_void_method._n
call fcn.0040b26c
lea rcx, str._Utils__Closing_logging_file._n
call fcn.0040b26c
mov rcx, qword [0x00468170]
test rcx, rcx
je 0x407531
call fcn.0041a7d0
mov qword [0x00468170], 0
mov rcx, qword [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov rdx, rbx
call fcn.00406ee0
lea rcx, str._JNILauncher__Run_complete._n
call fcn.0040b26c
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x78]
test rax, rax
je 0x40756e
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x80]
lea rcx, str._JNILauncher__Destroying_runtime._n
call fcn.0040b26c
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rcx, str._JNILauncher__Done__n
call fcn.0040b26c
xor eax, eax
add rsp, 0xa80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret