Function at 0x406564
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push edi
xor ebx, ebx
push ebx
push str._JAVA_OPTIONS
call esi
push ebx
push str.JAVA_TOOL_OPTIONS
call esi
mov ecx, dword [ebp + 0xc]
call fcn.00409493
cmp eax, ebx
jne 0x4065a3
push str._JNILaunch___ERROR__Unable_to_load_JRE_library__n
call fcn.0040a1bf
xor eax, eax
inc eax
jmp 0x4068ab
push str.JNI_CreateJavaVM
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._JNILaunch__________JNI_Launch_call_________n
mov dword [ebp - 0x10], eax
call fcn.0040a1bf
xor esi, esi
cmp dword [ebp + 0x10], ebx
pop ecx
jle 0x4065de
mov eax, dword [ebp + 0x14]
push dword [eax + esi*4]
push esi
push str._JNILaunch__JVM_Argument__d___s_n
call fcn.0040a1bf
add esp, 0xc
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x4065c4
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp edi, ebx
jle 0x406600
mov eax, dword [ebp + 0x1c]
push dword [eax + esi*4]
push esi
push str._JNILaunch__CP_Argument__d___s_n
call fcn.0040a1bf
add esp, 0xc
inc esi
cmp esi, edi
jl 0x4065e7
xor esi, esi
cmp dword [ebp + 0x20], ebx
jle 0x406621
mov eax, dword [ebp + 0x24]
push dword [eax + esi*4]
push esi
push str._JNILaunch__App_Argument__d___s_n
call fcn.0040a1bf
add esp, 0xc
inc esi
cmp esi, dword [ebp + 0x20]
jl 0x406607
push str._JNILaunch__Trimming...
call fcn.0040a1bf
cmp edi, ebx
pop ecx
jle 0x406646
mov eax, dword [ebp + 0x1c]
lea eax, [eax + edi*4 - 4]
cmp dword [eax], ebx
jne 0x406646
dec edi
sub eax, 4
cmp edi, ebx
mov dword [ebp + 0x18], edi
jg 0x406637
push 0x320
call fcn.00418ea7
mov edi, eax
mov dword [esp], 0xc350
call fcn.00418ea7
and dword [ebp - 8], ebx
cmp dword [ebp + 0x18], ebx
mov esi, eax
pop ecx
mov byte [esi], bl
jle 0x4066a0
cmp dword [ebp - 8], ebx
jne 0x406677
push str._Djava.class.path
jmp 0x40667c
push 0x440344
push esi
call fcn.004190d0
mov eax, dword [ebp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
push esi
call fcn.004190d0
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
pop ecx
pop ecx
jl 0x40666b
push esi
call fcn.00419030
test eax, eax
pop ecx
jbe 0x4066b0
xor ebx, ebx
mov dword [edi], esi
inc ebx
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
jle 0x4066f4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
push eax
mov dword [ebp - 0xc], eax
call fcn.00419030
pop ecx
inc eax
push eax
call fcn.00418ea7
pop ecx
push dword [ebp - 0xc]
mov esi, eax
push esi
mov byte [esi], 0
call fcn.004190d0
mov dword [edi + ebx*8], esi
inc ebx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
pop ecx
pop ecx
jl 0x4066ba
xor esi, esi
test ebx, ebx
mov dword [ebp - 0x24], 0x10004
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x18], 1
jle 0x406721
push dword [edi + esi*8]
push esi
push str._JNILaunch__JNI_Option__d_s_n
call fcn.0040a1bf
add esp, 0xc
inc esi
cmp esi, ebx
jl 0x40670b
push str._JNILaunch__Creating_VM..._n
call fcn.0040a1bf
pop ecx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x406749
push str._JNILauncher__Create_Java_VM_Failed__n
jmp 0x406596
push str._JNILaunch__Created_VM._n
call fcn.0040a1bf
mov dword [esp], 0x3e8
call fcn.00418ea7
pop ecx
push dword [ebp + 8]
mov esi, eax
push esi
mov byte [esi], 0
call fcn.004190d0
push esi
xor edi, edi
call fcn.00419030
add esp, 0xc
test eax, eax
jle 0x406793
cmp byte [edi + esi], 0x2e
jne 0x406787
mov byte [edi + esi], 0x2f
push esi
inc edi
call fcn.00419030
cmp edi, eax
pop ecx
jl 0x40677d
push esi
push str._JNILauncher__Searching_for_clazz__s_n
call fcn.0040a1bf
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x4067ba
push str._JNILauncher__Searching_for_clazz_failed__n
jmp 0x406596
push esi
push str._JNILauncher__Searching_for_main_method__s_n
call fcn.0040a1bf
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [eax]
push str.__Ljava_lang_String__V
push str.main
push ebx
push eax
call dword [ecx + 0x1c4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push str.java_lang_String
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push 0
push eax
push dword [ebp + 0x20]
push ecx
call dword [edx + 0x2b0]
xor esi, esi
cmp dword [ebp + 0x20], esi
mov edi, eax
jle 0x40684a
mov eax, dword [ebp + 0x24]
lea eax, [eax + esi*4]
push dword [eax]
mov dword [ebp - 0x10], eax
push esi
push str._JNILauncher__Set_argument__d_to__s_n
call fcn.0040a1bf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
add esp, 0xc
push eax
push ecx
call dword [edx + 0x29c]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push esi
push edi
push ecx
call dword [edx + 0x2b8]
inc esi
cmp esi, dword [ebp + 0x20]
jl 0x40680a
push str._JNILauncher__About_to_execute_static_void_method._n
call fcn.0040a1bf
pop ecx
call fcn.0040a3bd
mov eax, dword [ebp - 4]
push edi
push dword [ebp - 0xc]
push ebx
call fcn.0040654d
add esp, 0xc
push str._JNILauncher__Run_complete._n
call fcn.0040a1bf
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
je 0x40688b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
push str._JNILauncher__Destroying_runtime._n
call fcn.0040a1bf
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push str._JNILauncher__Done__n
call fcn.0040a1bf
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret