Function at 0x402d50
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 0x402d71
mov eax, dword [0x408090]
test eax, eax
jne 0x402fa0
lea ebx, [esi - 2]
cmp ebx, 1
ja 0x402ea0
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402b80
cmp esi, 3
je 0x402db0
mov dword [esp], str.SOFTWAREJavaSoftJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402b80
lea esi, [esi]
cmp ebx, 1
ja 0x402ed7
mov dword [esp], str.SOFTWAREJavaSoftJDK
mov eax, 2
mov dword [esp + 4], eax
call fcn.00402b80
cmp esi, 3
je 0x402de8
mov dword [esp], str.SOFTWAREJavaSoftJRE
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402b80
mov edx, dword [0x4102d4]
test edx, edx
jne 0x402e40
cmp ebx, 1
ja 0x402f10
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402b80
cmp esi, 3
je 0x402f2d
mov dword [esp], str.SOFTWAREIBMJava_Runtime_Environment
mov eax, 1
mov dword [esp + 4], eax
call fcn.00402b80
mov eax, dword [0x4102d4]
test eax, eax
je 0x402f3a
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 0x402e8e
test byte [0x4102d5], 1
mov edx, 0x407211
jne 0x402e70
mov edx, 0x407214
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.00402b80
test esi, esi
je 0x402db0
mov dword [esp], str.SOFTWAREJavaSoftJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402b80
jmp 0x402db0
mov dword [esp], str.SOFTWAREJavaSoftJRE
mov ecx, 1
mov dword [esp + 4], ecx
call fcn.00402b80
test esi, esi
je 0x402de8
mov dword [esp], str.SOFTWAREJavaSoftJDK
mov eax, 2
mov dword [esp + 4], eax
jmp 0x402de3
mov dword [esp], str.SOFTWAREIBMJava_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402b80
test esi, esi
jne 0x402fc7
mov eax, dword [0x4102d4]
test eax, eax
jne 0x402e40
cmp ebx, 1
ja 0x402f70
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ebx, 2
mov dword [esp + 4], ebx
call fcn.00402b80
cmp esi, 3
je 0x402f89
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov esi, 1
mov dword [esp + 4], esi
call fcn.00402b80
jmp 0x402f89
mov dword [esp], str.SOFTWAREIBMJava2_Runtime_Environment
mov edx, 1
mov dword [esp + 4], edx
call fcn.00402b80
test esi, esi
jne 0x402fe1
mov ebx, dword [0x4102d4]
xor eax, eax
test ebx, ebx
jne 0x402e40
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 0x402d71
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402b80
jmp 0x402e2e
mov dword [esp], str.SOFTWAREIBMJava_Development_Kit
mov ecx, 2
mov dword [esp + 4], ecx
call fcn.00402b80
jmp 0x402f89