Function at 0x407710
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x2038
call fcn.0040d260
sub rsp, rax
mov rax, qword [0x00413830]
mov qword [rsp + 0x2020], rax
mov r12, rcx
lea rcx, str.launching_program
mov r13b, dl
call fcn.0040a860
mov ecx, 0x60
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
xor esi, esi
mov edi, 0x2000
cmp qword [0x00419928], rsi
mov rbp, rax
je 0x407793
mov rcx, rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r8, str.exe4j.semaphoreName
lea rdx, str._D_s_s
mov qword [rbp], rax
mov r9, qword [0x00419928]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_sprintf]
mov esi, 1
cmp byte [0x00419900], 0
lea rbx, str._D_strue
je 0x4077c8
mov rcx, rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
movsxd rcx, esi
lea r8, str.exe4j.manualJre
mov qword [rbp + rcx*8], rax
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_sprintf]
inc esi
cmp byte [0x0041fa08], 0
je 0x4077f6
mov rcx, rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
movsxd rcx, esi
lea r8, str.exe4j.jev
mov qword [rbp + rcx*8], rax
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_sprintf]
inc esi
cmp byte [0x0041f9f0], 0x69
jne 0x407824
mov rcx, rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
movsxd rcx, esi
lea r8, str.exe4j.isInstall4j
mov qword [rbp + rcx*8], rax
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_sprintf]
inc esi
mov rcx, rdi
movsxd rbx, esi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbp + rbx*8], rax
call fcn.00404cf4
mov rcx, qword [rbp + rbx*8]
lea r8, str.exe4j.moduleName
lea rdx, str._D_s_s
mov r9, rax
call qword [sym.imp.msvcrt.dll_sprintf]
inc esi
mov rcx, rdi
movsxd rbx, esi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbp + rbx*8], rax
call fcn.00404cf4
mov rcx, qword [rbp + rbx*8]
lea r8, str.sun.java.command
lea rdx, str._D_s_s
mov r9, rax
call qword [sym.imp.msvcrt.dll_sprintf]
mov ecx, 0x2715
inc esi
call fcn.00403e8c
test eax, eax
je 0x4078d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x20]
mov edx, eax
call fcn.00405388
mov rcx, rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
movsxd rcx, esi
lea r9, [rsp + 0x20]
mov qword [rbp + rcx*8], rax
lea r8, str.exe4j.processCommFile
lea rdx, str._D_s_s
mov rcx, rax
call qword [sym.imp.msvcrt.dll_sprintf]
inc esi
mov rcx, rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
movsxd rcx, esi
lea r9, [0x0041d9f0]
mov qword [rbp + rcx*8], rax
lea r8, str.exe4j.tempDir
lea rdx, str._D_s_s
mov rcx, rax
call qword [sym.imp.msvcrt.dll_sprintf]
inc esi
mov rcx, rdi
movsxd rbx, esi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbp + rbx*8], rax
cmp byte [0x0041fa09], 0
je 0x407928
mov eax, 0xffffffff
jmp 0x40792d
call fcn.00401000
mov rcx, qword [rbp + rbx*8]
lea r8, str.exe4j.unextractedPosition
lea rdx, str._D_s_d
mov r9d, eax
call qword [sym.imp.msvcrt.dll_sprintf]
mov rcx, rdi
inc esi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
movsxd rdi, esi
lea rdx, str._Djava.library.path
mov rcx, rax
mov qword [rbp + rdi*8], rax
call qword [sym.imp.msvcrt.dll_sprintf]
mov rcx, qword [rbp + rdi*8]
call sub.msvcrt.dll_strlen
mov rcx, qword [rbp + rdi*8]
mov ebx, 0x2000
sub ebx, eax
call sub.msvcrt.dll_strlen
lea rcx, str.PATH
add rax, qword [rbp + rdi*8]
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rcx, str.MANPATH
inc esi
call qword [sym.imp.msvcrt.dll_getenv]
test rax, rax
jne 0x4079e8
mov ecx, 0x2000
movsxd rbx, esi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbp + rbx*8], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov rcx, qword [rbp + rbx*8]
lea r8, str.exe4j.consoleCodepage
lea rdx, str._D_scp_d
mov r9d, eax
call qword [sym.imp.msvcrt.dll_sprintf]
inc esi
movsxd rax, esi
mov rdx, rbp
mov rcx, r12
mov qword [rbp + rax*8], 0
call fcn.004076cc
test al, al
jne 0x407a0c
lea rcx, str.could_not_initialize_JVM
jmp 0x407a32
lea rcx, str.JVM_created
call fcn.0040a860
mov rcx, r12
mov byte [0x00419901], 1
call fcn.0040696c
test al, al
jne 0x407a3b
lea rcx, str.could_not_call_main
call fcn.0040a7dc
xor al, al
jmp 0x407a67
test r13b, r13b
je 0x407a59
lea rcx, str.dest_JVM
call fcn.0040a860
mov rcx, qword [0x004178f0]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
lea rcx, str.launch_done
call fcn.0040a860
mov al, 1
mov rcx, qword [rsp + 0x2020]
call fcn.0040d230
add rsp, 0x2038
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret