Function at 0x45e540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbf1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], esi
je 0x45ea47
lea eax, [ebp - 0xa4]
push eax
push 0xf
call fcn.005050b0
add esp, 8
test al, al
je 0x45e61d
lea ecx, [ebp - 0x94]
push ecx
push 0xa
call fcn.005050b0
add esp, 8
test al, al
je 0x45e61d
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x98]
add edx, 0xc8
cmp eax, edx
jle 0x45e61d
push ecx
mov ecx, dword [ebp - 0x94]
mov eax, esp
mov dword [ebp - 0x1c], esp
lea edx, [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa4]
push edx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00458090
mov ecx, eax
call fcn.00468e90
mov ecx, dword [ebp - 0x18]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x1e
jle 0x45e61d
push 1
push ebx
push ebx
push ebx
push 0x61bf50
push 0x61bf18
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c660
add esp, 0x18
call sub.etout.dll_bool___cdecl_mgOpenPlot_void_
test al, al
je 0x45ea47
mov edx, dword [esi + 0x1cc]
mov dword [ebp - 0x1c], edx
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::BeginWaitCursor
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], 0x5e2838
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x58], 0x5e76d8
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.004b6ca0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0045f330
mov ecx, esi
call fcn.004474f0
xor edi, edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], edi
cmp edi, dword [esi + 0x1dc]
jge 0x45e9a4
lea ecx, [esi + 0x190]
push edi
call fcn.004f8150
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x45e963
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x45e963
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x45e963
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
mov dword [esi + 0x1cc], edi
call fcn.004f46e0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e957
mov edx, dword [ebp - 0x14]
lea edi, [esi + 0x2e0]
push 1
push edx
mov ecx, edi
call fcn.004d96e0
mov ecx, edi
call fcn.004dfab0
push eax
push ebx
push 1
lea ecx, [esi + 0x190]
call fcn.004f8360
test eax, eax
jne 0x45e957
mov ecx, esi
call fcn.00432930
test al, al
jne 0x45e957
push 0
push ebx
mov ecx, edi
call fcn.004df060
push edi
lea ecx, [esi + 0x190]
call fcn.004fa9b0
mov ecx, esi
call fcn.0045f420
mov ecx, 0x626af0
call fcn.0042fc20
push 1
push 1
mov ecx, esi
call fcn.00437f20
test al, al
je 0x45e957
mov eax, 1
nop
nop
nop
nop
nop
nop
nop
nop
test eax, eax
jne 0x45e78c
push 1
call dword [sym.imp.msvcrt.dll__exit]
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x58]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
mov ecx, esi
call fcn.00438d00
push fcn.00438d00
call fcn.004cfc8c
add esp, 4
test eax, eax
jne 0x45e7b8
push 1
call dword [sym.imp.msvcrt.dll__exit]
mov ecx, edi
call fcn.004dfab0
mov ecx, eax
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x45e7f5
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x45e7f5
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x45e7f8
fld qword [ecx + 0x18]
fcomp qword [ebp - 0x68]
fnstsw ax
test ah, 1
jne 0x45e845
mov ecx, edi
call fcn.004dfab0
mov ecx, eax
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x45e83f
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x45e83f
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x45e842
fld qword [ecx + 0x18]
fstp qword [ebp - 0x68]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x45e957
mov ecx, edi
call fcn.004dfab0
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.004f6ec0
mov dword [ebp - 0x44], eax
mov ebx, dword [esi + 0x1ec]
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004dfab0
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx]
push ecx
push edx
lea edx, [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
push 0x61bef0
push edx
call sub.mfc42u.dll_CString::Format_1
add esp, 0x14
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call sub.mfc42u.dll_CString::CString
mov ecx, edi
call fcn.004dfab0
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, eax
call fcn.004f4cb0
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
fld qword [ebp - 0x70]
fadd qword [0x5e7ae8]
push edx
mov edx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
mov byte [ebp - 4], 7
mov edx, dword [ecx + 0x48]
sub esp, 8
fstp qword [esp]
push edx
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.etout.dll_void____cdecl_mgCalcuWindow_unsigned_short_int_const___class_CTMatrix_const___int__double__double__double__class_CSize__
add esp, 0x28
lea ecx, [ebp - 0xf4]
mov ebx, eax
mov byte [ebp - 4], 5
call fcn.0042bd50
test ebx, ebx
je 0x45e957
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov edx, dword [ecx + 0x48]
mov ecx, edi
add eax, edx
mov dword [ebp - 0x20], eax
call fcn.004dfab0
push 1
push 1
push eax
mov ecx, esi
call fcn.00430450
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
push 0
push eax
lea edx, [ebp - 0x80]
push ecx
lea eax, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x38]
push eax
push ecx
push ebx
mov ecx, esi
mov byte [0x6283c0], 1
call fcn.0045ed00
push ebx
call sub.etout.dll_void___cdecl_mgClosePlot_void__
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.mfc42u.dll_CString::CString
mov edi, dword [ebp - 0x18]
inc edi
xor ebx, ebx
mov dword [ebp - 0x18], edi
jmp 0x45e693
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edx
mov dword [ebp - 4], 3
jne 0x45e9be
mov ecx, esi
call fcn.0044fa90
jmp 0x45e9da
push ebx
push 0x617bcc
push 0x61c2d0
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c700
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push ebx
push eax
mov ecx, esi
call fcn.0043db90
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.0042bd50
mov dword [ebp - 0x58], 0x5e76d8
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x45ea0d
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
mov dword [ebp - 0x38], 0x5e2838
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x45ea30
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0xffffffff
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::EndWaitCursor
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4