Function at 0x1400255b0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push r12
push r13
push rbp
sub rsp, 0x160
mov ebp, edx
mov r12, rcx
lea rcx, str.FOR_DIAGNOSTIC_LOG_FILE
mov r8d, 0x105
lea rdx, [rsp + 0x50]
mov rax, qword [0x14016fb98]
xor rax, rsp
mov qword [rdx + 0x108], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, eax
test rax, rax
jbe 0x1400255ff
cmp rax, 0x105
jae 0x1400255ff
mov al, byte [rsp + 0x50]
jmp 0x140025606
mov byte [rsp + 0x50], 0
xor al, al
test al, al
je 0x14002567f
cmp ebp, 0xaa
je 0x140025a0d
cmp qword [0x14016fbe0], 0
je 0x140025a03
mov rax, qword [0x14016fc40]
lea rdx, [0x140149420]
lea rcx, [rsp + 0x50]
call rax
mov r13, rax
test r13, r13
je 0x14002567f
cmp qword [0x14016fbe0], 0
je 0x1400259f9
mov rax, qword [0x14016fc60]
mov rcx, r13
lea rdx, [0x140145ad4]
mov r8, r12
call rax
cmp qword [0x14016fbe0], 0
je 0x1400259ef
mov rax, qword [0x14016fc20]
mov rcx, r13
call rax
lea rcx, str.FOR_DISABLE_DIAGNOSTIC_DISPLAY
call fcn.140002a3b
test eax, eax
jne 0x14002575c
cmp dword [0x140191994], 0
je 0x1400256b6
mov rcx, r12
lea rdx, str.Intel_r__Visual_Fortran_run_time_error
mov r8d, 0x2010
call fcn.140003c4c
jmp 0x140025739
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
movsxd r9, dword [r10 + 0x3c]
movzx eax, word [r9 + r10 + 0x18]
cmp eax, 0x20b
je 0x140025822
cmp ebp, 0xaa
je 0x1400257c5
cmp qword [0x14016fbe0], 0
je 0x1400257a1
mov r13, qword [0x14016fc60]
lea rbp, [0x14016fc10]
mov rax, qword [rbp]
call rax
add rax, 0x60
lea rdx, [0x140145ad4]
mov rcx, rax
mov r8, r12
call r13
cmp qword [0x14016fbe0], 0
je 0x140025784
mov r12, qword [0x14016fc30]
mov rax, qword [rbp]
call rax
add rax, 0x60
mov rcx, rax
call r12
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
cmp rcx, qword [0x14016fb98]
jne 0x14002577f
xor eax, eax
add rsp, 0x160
pop rbp
pop r13
pop r12
ret
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
cmp rcx, qword [0x14016fb98]
jne 0x14002577f
xor eax, eax
add rsp, 0x160
pop rbp
pop r13
pop r12
ret
call fcn.140003bcf
call fcn.140002eb4
mov r12, qword [0x14016fc30]
cmp qword [0x14016fbe0], 0
jne 0x140025729
call fcn.140002eb4
jmp 0x140025729
call fcn.140002eb4
mov r13, qword [0x14016fc60]
cmp qword [0x14016fbe0], 0
jne 0x1400256f7
call fcn.140002eb4
jmp 0x1400256f7
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r9, rax
mov rdx, r12
mov rcx, rdx
and rdx, 0xfffffffffffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x1400257fe
mov rax, rdx
add rdx, rcx
call fcn.1400023c9
mov rbp, rsp
mov rcx, r9
mov rdx, r12
mov r8d, eax
lea r9, [rsp + 0x4c]
mov qword [rbp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140025739
movzx eax, word [r9 + r10 + 0x5c]
cmp eax, 2
jne 0x1400256d6
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400258b2
mov rcx, rax
lea rdx, [0x140149424]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400258b2
xor ecx, ecx
mov rdx, r12
lea r8, str.Intel_r__Visual_Fortran_run_time_error
mov r9d, 0x12010
call rax
test eax, eax
jne 0x140025739
cmp ebp, 0xaa
je 0x140025911
cmp qword [0x14016fbe0], 0
je 0x1400258f4
mov rbp, qword [0x14016fc60]
mov rax, qword [0x14016fc10]
call rax
add rax, 0x60
lea rdx, [0x140145ad4]
mov rcx, rax
mov r8, r12
call rbp
jmp 0x140025739
cmp ebp, 0xaa
je 0x140025992
cmp qword [0x14016fbe0], 0
je 0x14002596e
mov rbp, qword [0x14016fc60]
mov rax, qword [0x14016fc10]
call rax
add rax, 0x60
lea rdx, [0x140145ad4]
mov rcx, rax
mov r8, r12
call rbp
jmp 0x140025739
call fcn.140002eb4
mov rbp, qword [0x14016fc60]
cmp qword [0x14016fbe0], 0
jne 0x140025891
call fcn.140002eb4
jmp 0x140025891
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r9, rax
mov rdx, r12
mov rcx, rdx
and rdx, 0xfffffffffffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x14002594a
mov rax, rdx
add rdx, rcx
call fcn.1400023c9
mov rbp, rsp
mov rcx, r9
mov rdx, r12
mov r8d, eax
lea r9, [rsp + 0x40]
mov qword [rbp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140025739
call fcn.140002eb4
mov rbp, qword [0x14016fc60]
cmp qword [0x14016fbe0], 0
jne 0x1400258d3
call fcn.140002eb4
jmp 0x1400258d3
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r9, rax
mov rdx, r12
mov rcx, rdx
and rdx, 0xfffffffffffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x1400259cb
mov rax, rdx
add rdx, rcx
call fcn.1400023c9
mov rbp, rsp
mov rcx, r9
mov rdx, r12
mov r8d, eax
lea r9, [rsp + 0x44]
mov qword [rbp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140025739
call fcn.140002eb4
jmp 0x140025673
call fcn.140002eb4
jmp 0x14002564f
call fcn.140002eb4
jmp 0x140025624
mov rax, rsp
lea rcx, [rsp + 0x50]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
mov dword [rax + 0x20], 4
mov dword [rax + 0x28], 0x80
mov qword [rax + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp r13, 0xffffffffffffffff
je 0x14002567f
mov rcx, r13
xor edx, edx
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, r12
mov rcx, rdx
and rdx, 0xfffffffffffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x140025a88
mov rax, rdx
add rdx, rcx
call fcn.1400023c9
mov r10, rsp
mov rcx, r13
mov rdx, r12
mov r8d, eax
lea r9, [rsp + 0x48]
mov qword [r10 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002567f