Function at 0x412c30
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x90b4]
mov eax, 0x90b4
call fcn.00414690
push 0xffffffffffffffff
push 0x432068
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x90b0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x90c0]
xor ebx, ebx
mov byte [0x44bce0], bl
cmp edi, ebx
je 0x412d3f
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
xor esi, esi
sar eax, 2
inc esi
cmp eax, esi
jbe 0x412d30
push esi
mov ecx, edi
call fcn.00407f5c
push str._create_i4j_log
push dword [eax]
call fcn.00414945
pop ecx
pop ecx
test eax, eax
je 0x412cff
push esi
mov ecx, edi
call fcn.00407f5c
push str._create_e4j_log
push dword [eax]
call fcn.00414945
pop ecx
pop ecx
test eax, eax
je 0x412cff
push esi
mov ecx, edi
call fcn.00407f5c
push 0x4381a0
push dword [eax]
call fcn.00414945
pop ecx
pop ecx
test eax, eax
je 0x412cff
push esi
mov ecx, edi
call fcn.00407f5c
push 0x438180
push dword [eax]
call fcn.00414945
pop ecx
pop ecx
test eax, eax
jne 0x412d30
mov eax, dword [edi + 0xc]
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.00406e61
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bc56
push dword [eax + 4]
mov ecx, edi
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00408471
mov byte [0x44d463], 1
cmp byte [ebp + 0x90c4], bl
je 0x412d3f
mov esi, edi
call fcn.00412780
push edi
call fcn.0040394a
pop ecx
cmp byte [ebp + 0x90c4], bl
je 0x412e13
cmp dword [0x44bc64], ebx
jne 0x412e13
push 0x1f40
call fcn.0041375e
mov esi, eax
mov dword [esp], 0xfa0
push esi
push 0x7c
mov dword [ebp - 0x10], esi
call fcn.00403810
push str._temp
push esi
call fcn.004152ea
add esp, 0x14
test eax, eax
jne 0x412d9f
push 0x437ebc
push esi
call fcn.004152ea
pop ecx
pop ecx
test eax, eax
je 0x412e0c
lea ecx, [ebp - 0x2c]
call fcn.0040c918
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0040796d
push ebx
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00412ba8
add esp, 0x14
lea esi, [ebp - 0x2c]
call fcn.00412780
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x412df4
push esi
mov ecx, edi
call fcn.00407f5c
push dword [eax]
call fcn.00416040
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc esi
sar eax, 2
pop ecx
cmp esi, eax
jb 0x412dd6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040827c
push dword [ebp - 0x2c]
call fcn.00414445
mov esi, dword [ebp - 0x10]
pop ecx
push esi
call fcn.00416040
pop ecx
mov eax, dword [ebp + 0x90bc]
mov dword [0x44d45c], eax
push 2
lea eax, [ebp - 0x10]
push eax
push 0x7d1
call fcn.00403846
mov al, byte [ebp - 0x10]
add esp, 0xc
mov byte [0x44d450], al
cmp al, 0x65
jne 0x412e53
mov dword [0x44d458], str.exe4j
mov dword [0x44d454], 0x437c90
jmp 0x412e67
mov dword [0x44d458], str.install4j
mov dword [0x44d454], 0x437c70
call fcn.004129fd
push 0x271c
call fcn.004038fd
pop ecx
test eax, eax
je 0x412e8b
push str.ignoring_java_options_environment_variables
call fcn.0040ff78
pop ecx
call fcn.00412181
cmp byte [0x44d460], bl
je 0x412e9b
cmp byte [0x44d461], bl
je 0x412f05
push 0x1770
lea eax, [ebp]
push eax
push 0x92
call fcn.00403810
add esp, 0xc
cmp word [ebp], bx
je 0x412efa
lea eax, [ebp]
push 1
push eax
call fcn.0040796d
push 1
push 1
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2ee0]
push eax
call fcn.00406263
add esp, 0x18
lea eax, [ebp + 0x2ee0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp + 0x2ee0]
push eax
push str.change_working_directory_to__s
call fcn.0040ff78
pop ecx
jmp 0x412f04
push str.working_directory_unchanged
call fcn.0040ff78
pop ecx
cmp byte [0x44d463], bl
je 0x412ff6
call fcn.0040ff02
push eax
lea eax, [ebp + 0x5dc0]
push str.The_following_log_file_will_be_created:_n_n_s_n_nDo_you_want_to_open_an_Explorer_window_
push eax
call fcn.00414eb9
add esp, 0xc
push 4
push dword [0x44d454]
lea eax, [ebp + 0x5dc0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x412ff6
mov esi, 0x104
lea eax, [ebp + 0x8ea8]
push esi
push eax
call fcn.0040ff02
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push esi
lea eax, [ebp + 0x8ca0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp + 0x8ea8]
push eax
lea eax, [ebp + 0x8ca0]
push eax
lea eax, [ebp + 0x5dc0]
push str._sexplorer.exe__select__s
push eax
call fcn.00414eb9
lea eax, [ebp + 0x5dc0]
push eax
push str.calling__s
call fcn.0040ff78
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00415e40
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00415e40
add esp, 0x30
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp + 0x5dc0]
push eax
push ebx
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_open_explorer_window__d
call fcn.0040ff78
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90b0]
xor ecx, ebp
call fcn.00414678
add ebp, 0x90b4
leave
ret