Function at 0x10121cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.FOR_DIAGNOSTIC_LOG_FILE
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], edi
mov edi, edx
mov dword [ebp - 4], esi
call fcn.1010f6f6
add esp, 4
test eax, eax
je 0x10121d04
cmp edi, 0xaa
je 0x10121e6c
push 0x1018918c
push eax
call fcn.1013b1a3
add esp, 8
mov esi, eax
test esi, esi
je 0x10121d04
push esi
push ebx
call fcn.100fd19a
push esi
call fcn.100fcbfa
add esp, 0xc
push str.FOR_DISABLE_DIAGNOSTIC_DISPLAY
call fcn.10130260
add esp, 4
test eax, eax
jne 0x10121d65
cmp dword [0x1034450c], 0
je 0x10121d33
push 0x2010
push str.Intel_r__Visual_Fortran_run_time_error
push ebx
call fcn.1013cd60
add esp, 0xc
jmp 0x10121d65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 0x18]
cmp edx, 0x10b
je 0x10121da8
cmp edi, 0xaa
je 0x10121d74
call fcn.10109161
add eax, 0x40
push eax
push ebx
call fcn.100fd19a
add esp, 8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10121d97
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10121d82
dec eax
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10121d65
movzx eax, word [ecx + eax + 0x5c]
cmp eax, 2
jne 0x10121d4b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10121df1
push 0x10189190
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10121df1
push 0x12010
push str.Intel_r__Visual_Fortran_run_time_error
push ebx
push 0
call eax
test eax, eax
jne 0x10121d65
cmp edi, 0xaa
je 0x10121dfe
jmp 0x10121d53
cmp edi, 0xaa
je 0x10121e35
jmp 0x10121d53
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10121e21
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10121e0c
dec eax
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10121d65
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10121e58
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10121e43
dec eax
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10121d65
xor edx, edx
push edx
push 0x80
push 4
push edx
push edx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10121d04
push 2
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10121eb5
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10121ea0
dec eax
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10121d04