Function at 0x40380f
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x12c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
je 0x403b91
cmp eax, 0x104
jg 0x403b91
cmp byte [0x40804a], bl
mov edi, dword [ebp + 8]
je 0x40386d
mov esi, dword [sym.imp.MSVCR71.dll_printf]
lea eax, [ebp - 0x12c]
push eax
push str.ExecJRE:_old:__s_n
call esi
push edi
push str.ExecJRE:_new:__s_n
call esi
add esp, 0x10
push edi
call sub.MSVCR71.dll_strlen
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0x10
test eax, eax
je 0x403bae
push str.java
push str._bin_
lea eax, [ebp - 0x12c]
push edi
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 0x12c]
push str..exe
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_StringDup
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040370d
push dword [ebp - 4]
call sub.MSVCR71.dll_strlen
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCR71.dll_strlen
lea eax, [esi + eax + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
mov edi, eax
lea eax, [ebp - 0x12c]
push 0x20
push eax
call esi
add esp, 0x1c
test eax, eax
jne 0x40393d
lea eax, [ebp - 0x12c]
push 9
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x40393d
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.MSVCR71.dll_strcpy
jmp 0x403961
mov eax, 0x406a38
push eax
lea ecx, [ebp - 0x12c]
push ecx
push eax
push edi
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
mov edi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
pop ecx
pop ecx
je 0x403a82
mov esi, 0x4056a4
lea eax, [ebp - 4]
push eax
call fcn.0040370d
cmp byte [eax], bl
pop ecx
mov dword [ebp - 0x10], eax
je 0x403a42
call fcn.004037a7
cmp byte [eax], 0x2d
mov dword [ebp - 8], eax
jne 0x403a4f
push str._classpath
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x403a01
push 0x405334
push dword [ebp - 8]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x403a01
push 9
push str._version:
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x403a39
push str._jre_restrict_search
push dword [ebp - 8]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x403a39
push str._no_jre_restrict_search
push dword [ebp - 8]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x403a39
push dword [ebp - 0x10]
jmp 0x403a26
push dword [ebp - 0x10]
push esi
push edi
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.0040370d
add esp, 0xc
cmp byte [eax], bl
je 0x403a39
push eax
push esi
push edi
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
mov edi, eax
push dword [ebp - 8]
call sub.jli.dll_JLI_MemFree
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax], bl
jne 0x403975
jmp 0x403a82
push dword [ebp - 0x10]
push esi
push edi
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
push dword [ebp - 4]
push esi
push eax
call sub.MSVCR71.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcat
push dword [ebp - 8]
mov edi, eax
call sub.jli.dll_JLI_MemFree
add esp, 0xc
push dword [ebp - 0xc]
call sub.jli.dll_JLI_MemFree
cmp byte [0x40804a], bl
pop ecx
je 0x403ad2
push edi
call sub.jli.dll_JLI_StringDup
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040370d
mov esi, dword [sym.imp.MSVCR71.dll_printf]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.ReExec_Command:__s___s__n
call esi
push dword [ebp - 4]
push str.ReExec_Args:__s_n
call esi
push dword [ebp - 0xc]
call sub.jli.dll_JLI_MemFree
add esp, 0x20
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_fflush]
add eax, 0x20
push eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push eax
call esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x170]
push ebx
push eax
call sub.MSVCR71.dll_memset
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x170], esi
call sub.MSVCR71.dll_memset
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x170]
push eax
push ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
push ebx
push ebx
push edi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403b49
push esi
lea eax, [ebp - 0x12c]
push eax
push str.CreateProcess__s__...__failed:__s
jmp 0x403b9f
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x403b6c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x403b7c
jmp 0x403b79
push esi
push str.WaitForSingleObject___failed.
call fcn.0040346b
pop ecx
pop ecx
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x14]
jmp 0x403ba8
xor esi, esi
inc esi
push esi
push str.java
push str.Unable_to_resolve_path_to_current__s_executable:__s
call fcn.004034c4
add esp, 0xc
push esi
call dword [sym.imp.MSVCR71.dll_exit]
pop edi
pop esi
pop ebx
leave
ret