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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x20
mov esi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001
call fcn.004875a0
add esp, 0xc
test eax, eax
je 0x4823bc
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0x105
mov edi, dword [ebp - 0x10]
push edi
push str.FOR_DIAGNOSTIC_LOG_FILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4823db
cmp eax, 0x105
jb 0x4823e2
test edi, edi
je 0x4823e2
mov byte [edi], 0
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0
je 0x48243d
cmp ebx, 0xaa
je 0x48265c
push 0x50849c
push edx
call fcn.004dc3f1
mov edi, eax
add esp, 8
test edi, edi
je 0x48243a
mov dword [ebp - 0x1c], 0x505200
mov dword [ebp - 0x18], esi
call fcn.0045a3e0
mov edx, eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x505200
push edi
push dword [edx + 4]
push dword [edx]
call fcn.004db804
push edi
call fcn.004dc55d
add esp, 0x1c
mov edx, dword [ebp - 0x10]
push edx
call fcn.00487660
add esp, 4
test eax, eax
jne 0x4823b4
push str.FOR_DISABLE_DIAGNOSTIC_DISPLAY
call fcn.00487460
add esp, 4
test eax, eax
jne 0x4824ea
cmp dword [0x2e00b58], 0
je 0x482481
push 0x2010
push str.Intel_r__Visual_Fortran_run_time_error
push esi
call fcn.004cf410
add esp, 0xc
jmp 0x4824ea
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x4824a2
mov edx, dword [edi + 0x3c]
movzx eax, word [edx + edi + 0x18]
cmp eax, 0x10b
je 0x48252a
cmp ebx, 0xaa
je 0x4824f4
push 2
call fcn.004dc144
mov edi, eax
add esp, 4
mov ebx, 0x505200
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
call fcn.0045a3e0
mov edx, eax
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
push edi
push dword [edx + 4]
push dword [edx]
call fcn.004db804
push 2
call fcn.004dc144
push eax
call fcn.004dc8a1
add esp, 0x20
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
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 0x482517
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x482502
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x2c]
push eax
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4824ea
movzx eax, word [edx + edi + 0x5c]
cmp eax, 2
jne 0x4824a2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4825aa
push 0x5084a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4825aa
push 0x12010
push str.Intel_r__Visual_Fortran_run_time_error
push esi
push 0
call eax
test eax, eax
jne 0x4824ea
cmp ebx, 0xaa
je 0x4825ea
push 2
call fcn.004dc144
mov edi, eax
add esp, 4
mov ebx, 0x505200
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
call fcn.0045a3e0
mov edx, eax
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
push edi
push dword [edx + 4]
push dword [edx]
call fcn.004db804
add esp, 0x18
jmp 0x4824ea
cmp ebx, 0xaa
je 0x482623
push 2
call fcn.004dc144
mov edi, eax
add esp, 4
mov ebx, 0x505200
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
call fcn.0045a3e0
mov edx, eax
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
push edi
push dword [edx + 4]
push dword [edx]
call fcn.004db804
add esp, 0x18
jmp 0x4824ea
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 0x48260d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4825f8
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x2c]
push eax
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4824ea
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 0x482646
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x482631
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x2c]
push eax
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4824ea
xor eax, eax
push eax
push 0x80
push 4
push eax
push eax
push 0x40000000
mov dword [ebp - 0x2c], edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x2c]
mov edi, eax
cmp edi, 0xffffffff
je 0x48243d
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 0x4826ab
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x482696
dec eax
push 0
mov edx, eax
lea eax, [ebp - 0x20]
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 0x48243a