Function at 0x403070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [0x408028]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x403091
mov eax, dword [0x408090]
test eax, eax
jne 0x4032c0
lea ebx, [esi - 2]
cmp ebx, 1
ja 0x4031c0
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402ea0
cmp esi, 3
je 0x4030d0
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402ea0
lea esi, [esi]
cmp ebx, 1
ja 0x4031f7
mov dword [esp], str.SOFTWAREJavaSoftJDK
mov eax, 2
mov dword [esp + 4], eax
call fcn.00402ea0
cmp esi, 3
je 0x403108
mov dword [esp], str.SOFTWAREJavaSoftJRE
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402ea0
mov edx, dword [0x4102d4]
test edx, edx
jne 0x403160
cmp ebx, 1
ja 0x403230
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402ea0
cmp esi, 3
je 0x40324d
mov dword [esp], str.SOFTWAREIBMJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402ea0
mov eax, dword [0x4102d4]
test eax, eax
je 0x40325a
nop
lea esi, [esi]
mov esi, 0x410664
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [0x408090]
test eax, eax
je 0x4031ae
test byte [0x4102d5], 1
mov edx, 0x407244
jne 0x403190
mov edx, 0x407247
mov dword [esp + 0xc], edx
mov ecx, 0x4104e0
mov edx, str.Runtime_used:_t_s___s_bit__n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop ebp
ret
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402ea0
test esi, esi
je 0x4030d0
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402ea0
jmp 0x4030d0
mov dword [esp], str.SOFTWAREJavaSoftJRE
mov ecx, 1
mov dword [esp + 4], ecx
call fcn.00402ea0
test esi, esi
je 0x403108
mov dword [esp], str.SOFTWAREJavaSoftJDK
mov eax, 2
mov dword [esp + 4], eax
jmp 0x403103
mov dword [esp], str.SOFTWAREIBMJava_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402ea0
test esi, esi
jne 0x4032e7
mov eax, dword [0x4102d4]
test eax, eax
jne 0x403160
cmp ebx, 1
ja 0x403290
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ebx, 2
mov dword [esp + 4], ebx
call fcn.00402ea0
cmp esi, 3
je 0x4032a9
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov esi, 1
mov dword [esp + 4], esi
call fcn.00402ea0
jmp 0x4032a9
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402ea0
test esi, esi
jne 0x403301
mov ebx, dword [0x4102d4]
xor eax, eax
test ebx, ebx
jne 0x403160
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0xc], eax
mov edx, 0xf
mov ebx, 1
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], str.findJavaHome___n
call sub.msvcrt.dll_fwrite
jmp 0x403091
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402ea0
jmp 0x40314e
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402ea0
jmp 0x4032a9