Function at 0x405ec4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x748
mov eax, dword [0x445504]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push edi
mov dword [ebp - 0x404], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3fc], eax
mov eax, dword [ebp + 0x20]
push 0
push str._JAVA_OPTIONS
mov edi, ecx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x408], eax
call esi
push 0
push str.JAVA_TOOL_OPTIONS
call esi
push edi
call fcn.00405c7b
xor edi, edi
cmp eax, edi
pop ecx
jne 0x405f37
push str._JNILaunch___ERROR__Unable_to_load_JRE_library__n
call fcn.00409516
xor eax, eax
inc eax
jmp 0x40626c
push str.JNI_CreateJavaVM
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._JNILaunch__________JNI_Launch_call_________n
mov dword [ebp - 0x400], eax
call fcn.00409516
xor esi, esi
cmp dword [ebp + 0xc], edi
pop ecx
jle 0x405f72
push dword [ebx + esi*4]
push esi
push str._JNILaunch__JVM_Argument__d___s_n
call fcn.00409516
add esp, 0xc
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x405f5b
xor esi, esi
cmp dword [ebp + 0x14], edi
jle 0x405f96
mov eax, dword [ebp - 0x3fc]
push dword [eax + esi*4]
push esi
push str._JNILaunch__CP_Argument__d___s_n
call fcn.00409516
add esp, 0xc
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x405f79
xor esi, esi
cmp dword [ebp + 0x1c], edi
jle 0x405fba
mov eax, dword [ebp - 0x408]
push dword [eax + esi*4]
push esi
push str._JNILaunch__App_Argument__d___s_n
call fcn.00409516
add esp, 0xc
inc esi
cmp esi, dword [ebp + 0x1c]
jl 0x405f9d
push 0xc350
call fcn.004181b0
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
mov esi, eax
pop ecx
mov byte [esi], 0
jle 0x406000
test ebx, ebx
jne 0x405fdc
push str._Djava.class.path
jmp 0x405fe1
push 0x43e148
push esi
call fcn.004183e0
mov eax, dword [ebp - 0x3fc]
pop ecx
pop ecx
push dword [eax + ebx*4]
push esi
call fcn.004183e0
inc ebx
cmp ebx, dword [ebp + 0x14]
pop ecx
pop ecx
jl 0x405fd1
push esi
call fcn.00418340
test eax, eax
pop ecx
jbe 0x406014
xor edi, edi
mov dword [ebp - 0x744], esi
inc edi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jle 0x40605a
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + ebx*4]
push eax
mov dword [ebp - 0x3fc], eax
call fcn.00418340
pop ecx
inc eax
push eax
call fcn.004181b0
pop ecx
push dword [ebp - 0x3fc]
mov esi, eax
push esi
mov byte [esi], 0
call fcn.004183e0
mov dword [ebp + edi*8 - 0x744], esi
inc edi
inc ebx
cmp ebx, dword [ebp + 0xc]
pop ecx
pop ecx
jl 0x40601b
lea eax, [ebp - 0x744]
xor esi, esi
test edi, edi
mov dword [ebp - 0x420], 0x10004
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], edi
mov byte [ebp - 0x414], 1
jle 0x40609d
push dword [ebp + esi*8 - 0x744]
push esi
push str._JNILaunch__JNI_Option__d_s_n
call fcn.00409516
add esp, 0xc
inc esi
cmp esi, edi
jl 0x406083
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x40c]
push eax
call dword [ebp - 0x400]
test eax, eax
je 0x4060c6
push str._JNILauncher__Create_Java_VM_Failed__n
jmp 0x405f2a
push dword [ebp - 0x404]
lea eax, [ebp - 0x3f4]
push eax
mov byte [ebp - 0x3f4], 0
call fcn.004183e0
lea eax, [ebp - 0x3f4]
push eax
xor esi, esi
call fcn.00418340
add esp, 0xc
test eax, eax
jle 0x406115
lea eax, [ebp + esi - 0x3f4]
cmp byte [eax], 0x2e
jne 0x406103
mov byte [eax], 0x2f
lea eax, [ebp - 0x3f4]
push eax
inc esi
call fcn.00418340
cmp esi, eax
pop ecx
jl 0x4060f4
lea eax, [ebp - 0x3f4]
push eax
push str._JNILauncher__Searching_for_clazz__s_n
call fcn.00409516
mov eax, dword [ebp - 0x3f8]
pop ecx
pop ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x3f4]
push edx
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x40614b
push str._JNILauncher__Searching_for_clazz_failed__n
jmp 0x405f2a
lea eax, [ebp - 0x3f4]
push eax
push str._JNILauncher__Searching_for_main_method__s_n
call fcn.00409516
mov eax, dword [ebp - 0x3f8]
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 - 0x400], eax
mov eax, dword [ebp - 0x3f8]
mov ecx, dword [eax]
push str.java_lang_String
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x3f8]
mov edx, dword [ecx]
push 0
push eax
push dword [ebp + 0x1c]
push ecx
call dword [edx + 0x2b0]
xor esi, esi
cmp dword [ebp + 0x1c], esi
mov edi, eax
jle 0x4061fc
mov eax, dword [ebp - 0x408]
lea eax, [eax + esi*4]
push dword [eax]
mov dword [ebp - 0x404], eax
push esi
push str._JNILauncher__Set_argument__d_to__s_n
call fcn.00409516
mov eax, dword [ebp - 0x404]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3f8]
mov edx, dword [ecx]
add esp, 0xc
push eax
push ecx
call dword [edx + 0x29c]
mov ecx, dword [ebp - 0x3f8]
mov edx, dword [ecx]
push eax
push esi
push edi
push ecx
call dword [edx + 0x2b8]
inc esi
cmp esi, dword [ebp + 0x1c]
jl 0x4061ad
push str._JNILauncher__About_to_execute_static_void_method._n
call fcn.00409516
pop ecx
call fcn.00409714
mov eax, dword [ebp - 0x3f8]
push edi
push dword [ebp - 0x400]
push ebx
call fcn.00405c64
add esp, 0xc
push str._JNILauncher__Run_complete._n
call fcn.00409516
mov eax, dword [ebp - 0x3f8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
je 0x406249
mov eax, dword [ebp - 0x3f8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
push str._JNILauncher__Destroying_runtime._n
call fcn.00409516
mov eax, dword [ebp - 0x40c]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push str._JNILauncher__Done__n
call fcn.00409516
xor eax, eax
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c4
leave
ret