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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x11c
mov esi, eax
mov eax, dword [0x4f195c]
lea edi, [ebp - 0x118]
xor eax, ebp
mov ebx, edx
push 0x105
push edi
mov dword [ebp - 0x10], eax
push str.FOR_DIAGNOSTIC_LOG_FILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4676e5
cmp eax, 0x105
jae 0x4676e5
movsx eax, byte [ebp - 0x118]
jmp 0x4676ee
mov byte [ebp - 0x118], 0
xor eax, eax
test eax, eax
je 0x467757
cmp ebx, 0xaa
je 0x467a25
cmp dword [0x4f1980], 0
je 0x467a1b
mov eax, dword [0x4f19b0]
push 0x4cd9dc
push edi
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x467757
cmp dword [0x4f1980], 0
je 0x467a11
mov eax, dword [0x4f19c0]
push esi
push 0x4caba0
push edi
call eax
add esp, 0xc
cmp dword [0x4f1980], 0
je 0x467a07
mov eax, dword [0x4f19a0]
push edi
call eax
add esp, 4
push str.FOR_DISABLE_DIAGNOSTIC_DISPLAY
call fcn.0046f7a0
add esp, 4
test eax, eax
jne 0x467811
cmp dword [0x508060], 0
je 0x46778a
push 0x2010
push str.Intel_r__Visual_Fortran_run_time_error
push esi
call fcn.004a89d0
add esp, 0xc
jmp 0x4677fa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov edx, dword [edi + 0x3c]
movzx eax, word [edx + edi + 0x18]
cmp eax, 0x10b
je 0x4678a6
cmp ebx, 0xaa
je 0x46786a
cmp dword [0x4f1980], 0
je 0x467848
mov edi, dword [0x4f19c0]
mov ebx, 0x4f1998
mov eax, dword [ebx]
call eax
push esi
push 0x4caba0
add eax, 0x40
push eax
call edi
add esp, 0xc
cmp dword [0x4f1980], 0
je 0x46782d
mov esi, dword [0x4f19a8]
mov eax, dword [ebx]
call eax
add eax, 0x40
push eax
call esi
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x467828
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x467828
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.004a91cc
call fcn.004a0af0
mov esi, dword [0x4f19a8]
cmp dword [0x4f1980], 0
jne 0x4677ed
call fcn.004a0af0
jmp 0x4677ed
call fcn.004a0af0
mov edi, dword [0x4f19c0]
cmp dword [0x4f1980], 0
jne 0x4677c6
call fcn.004a0af0
jmp 0x4677c6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x46788d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x467878
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x11c]
push eax
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4677fa
movzx eax, word [edx + edi + 0x5c]
cmp eax, 2
jne 0x4677a7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x46791c
push str.MessageBoxA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46791c
push 0x12010
push str.Intel_r__Visual_Fortran_run_time_error
push esi
push 0
call eax
test eax, eax
jne 0x4677fa
cmp ebx, 0xaa
je 0x46796d
cmp dword [0x4f1980], 0
je 0x467952
mov ebx, dword [0x4f19c0]
mov eax, dword [0x4f1998]
call eax
push esi
push 0x4caba0
add eax, 0x40
push eax
call ebx
add esp, 0xc
jmp 0x4677fa
cmp ebx, 0xaa
je 0x4679cb
cmp dword [0x4f1980], 0
je 0x4679a9
mov ebx, dword [0x4f19c0]
mov eax, dword [0x4f1998]
call eax
push esi
push 0x4caba0
add eax, 0x40
push eax
call ebx
add esp, 0xc
jmp 0x4677fa
call fcn.004a0af0
mov ebx, dword [0x4f19c0]
cmp dword [0x4f1980], 0
jne 0x467901
call fcn.004a0af0
jmp 0x467901
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x467990
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x46797b
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x128]
push eax
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4677fa
call fcn.004a0af0
mov ebx, dword [0x4f19c0]
cmp dword [0x4f1980], 0
jne 0x467937
call fcn.004a0af0
jmp 0x467937
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4679ee
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4679d9
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x124]
push eax
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4677fa
call fcn.004a0af0
jmp 0x46774c
call fcn.004a0af0
jmp 0x46772e
call fcn.004a0af0
jmp 0x46770b
xor eax, eax
push eax
push 0x80
push 4
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x467757
push 2
xor eax, eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x467a6e
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x467a59
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x120]
push eax
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x467757