Function at 0x40af40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44077b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x460], edi
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x34]
mov byte [esp + 0x460], 1
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x254]
mov ebx, 4
cmp eax, edi
mov byte [esp + 0x460], bl
mov dword [esp + 0x14], 0xffffffff
jle 0x40b016
lea esi, [ebp + 0x988]
mov eax, dword [esi - 0x198]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fadd qword [0x442de0]
add esp, 4
call sub.MSVCRT.dll__ftol
cmp dword [ebp + 0xbe4], eax
jne 0x40b003
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [ebp + 0xbe8]
add esp, 4
cmp ecx, eax
je 0x40b012
mov eax, dword [ebp + 0x254]
inc edi
add esi, ebx
cmp edi, eax
jl 0x40afca
jmp 0x40b016
mov dword [esp + 0x14], edi
lea esi, [ebp + 0x200]
push str.profileCurve_s__s_d.CRV
lea eax, [esp + 0x34]
push esi
push eax
call sub.MFC42.DLL_operator
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xbe4]
mov eax, dword [eax]
push ecx
mov edx, dword [ebp + edi*4 + 0x724]
mov ecx, dword [ebp + edi*4 + 0xa54]
push edx
push ecx
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x474], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x460], bl
call fcn.00422b90
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b29e
push str.profileCurve_s_d.GRA
lea ecx, [esp + 0x18]
push esi
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [ebp + 0xbe4]
mov ecx, dword [ebp + edi*4 + 0x724]
mov eax, dword [eax]
push edx
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x470], 6
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x460], bl
call fcn.00422b90
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b29e
mov eax, dword [esp + 0x468]
cmp byte [eax], 0x5a
jne 0x40b120
push str.profileCurveZCurve.GRA
lea ecx, [esp + 0x18]
push esi
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x468], 7
call sub.MFC42.DLL_CString::Format
add esp, 8
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b299
mov cl, byte [eax + 1]
cmp cl, 0x30
mov byte [esp + 0x23], cl
jb 0x40b179
cmp cl, 0x39
ja 0x40b179
mov al, byte [eax]
push str.profileCurve_CCurve_H_d.GRA
lea ecx, [esp + 0x18]
push esi
push ecx
mov byte [esp + 0x2e], al
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x22]
mov edx, dword [ebp + 0xbe4]
mov eax, dword [eax]
push edx
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x470], 8
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b1cc
mov cl, byte [eax + 1]
mov dl, byte [eax]
push str.profileCurve_C_CCurve_H_d.GRA
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x2e], cl
mov byte [esp + 0x1f], dl
call sub.MFC42.DLL_operator
mov ecx, dword [ebp + 0xbe4]
mov eax, dword [eax]
movsx edx, byte [esp + 0x22]
push ecx
push edx
movsx ecx, byte [esp + 0x1b]
push ecx
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x474], 9
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
call fcn.00422b90
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b29e
mov al, byte [esp + 0x23]
cmp al, 0x30
jb 0x40b23f
cmp al, 0x39
ja 0x40b23f
mov ecx, dword [esp + 0x468]
push str.profileCurve_CCurve_J_d.GRA
lea eax, [esp + 0x18]
push esi
mov dl, byte [ecx]
push eax
mov byte [esp + 0x1f], dl
call sub.MFC42.DLL_operator
movsx edx, byte [esp + 0x13]
mov ecx, dword [ebp + 0xbe4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x470], 0xa
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b299
mov eax, dword [esp + 0x468]
push str.profileCurve_C_CCurve_J_d.GRA
push esi
mov cl, byte [eax + 1]
mov dl, byte [eax]
lea eax, [esp + 0x1c]
mov byte [esp + 0x1b], cl
push eax
mov byte [esp + 0x2e], dl
call sub.MFC42.DLL_operator
mov ecx, dword [ebp + 0xbe4]
mov eax, dword [eax]
movsx edx, byte [esp + 0x13]
push ecx
push edx
movsx ecx, byte [esp + 0x2a]
push ecx
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x474], 0xb
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
call fcn.00422b90
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b448
mov al, byte [esp + 0x23]
cmp al, 0x30
jb 0x40b448
cmp al, 0x39
ja 0x40b448
mov eax, dword [ebp + 0xbe4]
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
je 0x40b3fd
cmp edx, 1
je 0x40b3fd
cmp edx, 5
je 0x40b3fd
cmp edx, 2
je 0x40b3b5
cmp edx, 6
je 0x40b3b5
cmp edx, 8
je 0x40b3b5
cmp edx, 3
je 0x40b36a
cmp edx, 7
je 0x40b36a
cmp edx, ebx
je 0x40b31f
cmp edx, 9
jne 0x40b448
mov edx, dword [esp + 0x468]
push str.profileCurve_CCurve_J49.GRA
lea ecx, [esp + 0x18]
push esi
mov al, byte [edx]
push ecx
mov byte [esp + 0x1f], al
call sub.MFC42.DLL_operator
movsx edx, byte [esp + 0x13]
mov eax, dword [eax]
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x46c], 0xf
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b443
mov ecx, dword [esp + 0x468]
push str.profileCurve_CCurve_J37.GRA
lea eax, [esp + 0x18]
push esi
mov dl, byte [ecx]
push eax
mov byte [esp + 0x1f], dl
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x13]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x46c], 0xe
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b443
mov eax, dword [esp + 0x468]
push str.profileCurve_CCurve_J268.GRA
lea edx, [esp + 0x18]
push esi
mov cl, byte [eax]
push edx
mov byte [esp + 0x1f], cl
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x13]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x46c], 0xd
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b443
mov eax, dword [esp + 0x468]
push str.profileCurve_CCurve_J015.GRA
lea edx, [esp + 0x18]
push esi
mov cl, byte [eax]
push edx
mov byte [esp + 0x1f], cl
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x13]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x46c], 0xc
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
call fcn.00422b90
mov eax, dword [esp + 0x18]
push 0
push 0x20
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40b71c
lea ecx, [esp + 0x58]
push 0x30
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::Read
cmp eax, 0x30
jne 0x40b50b
mov ecx, 5
mov edi, str.IIIID
lea esi, [esp + 0x58]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40b50b
mov ecx, 9
mov edi, str.Gradation
lea esi, [esp + 0x60]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40b50b
lea edx, [esp + 0x80]
mov ecx, str.1.00
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x40b50b
push 0
push 0x244
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::Seek
lea ecx, [esp + 0x58]
push 0x400
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::Read
cmp eax, 0x400
jne 0x40b4fd
lea eax, [esp + 0x58]
lea ecx, [ebp + 0x136b]
mov esi, 0x100
or dl, 0xff
sub dl, byte [eax]
add eax, ebx
mov byte [ecx], dl
dec ecx
dec esi
jne 0x40b4f0
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Close
jmp 0x40be2f
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x18]
push 0
push 0x20
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40b6a9
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov edx, dword [esp + 0x1c]
push str.Angle:
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40b587
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov edx, dword [esp + 0x1c]
add edx, 3
push edx
call dword [sym.imp.MSVCRT.dll_atol]
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
fstp dword [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
add esp, 4
jmp 0x40b5cc
fstp st(0)
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
fstp dword [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov ecx, dword [esp + 0x1c]
add ecx, 3
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
push edx
fstp dword [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fld st(0)
fsub dword [esp + 0x28]
fld dword [esp + 0x2c]
fsub dword [esp + 0x30]
add esp, 4
fdivp st(1)
fst dword [esp + 0x30]
fmul dword [esp + 0x2c]
fsubr dword [esp + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
mov esi, eax
mov dword [esp + 0x24], esi
fild dword [esp + 0x24]
fcom dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x40b5ca
fmul dword [esp + 0x30]
fadd dword [esp + 0x14]
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
or cl, 0xff
sub cl, al
mov byte [esi + ebp + 0x126c], cl
inc esi
mov dword [esp + 0x24], esi
fild dword [esp + 0x24]
fcom dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x40b671
jmp 0x40b5ca
push 0
push 0x1000
push 0x46353c
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 3
call fcn.00422b90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.00422b90
lea ecx, [esp + 0x34]
mov byte [esp + 0x460], 1
call fcn.00422d28
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 0
call fcn.00422b78
lea ecx, [esp + 0x468]
mov dword [esp + 0x460], 0xffffffff
call fcn.00422b90
xor al, al
jmp 0x40be8c
push str.profileCurve_s__s_d.CRV
lea edx, [esp + 0x18]
push esi
push edx
call sub.MFC42.DLL_operator
mov ecx, dword [ebp + 0xbe4]
mov edx, dword [ebp + edi*4 + 0x724]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + edi*4 + 0xa54]
push edx
push ecx
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x474], 0x10
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x460], bl
call fcn.00422b90
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b8cd
push str.profileCurve_s_d.CRV
lea ecx, [esp + 0x18]
push esi
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [ebp + 0xbe4]
mov ecx, dword [ebp + edi*4 + 0x724]
mov eax, dword [eax]
push edx
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x470], 0x11
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x460], bl
call fcn.00422b90
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b8cd
mov eax, dword [esp + 0x468]
cmp byte [eax], 0x5a
jne 0x40b81c
push str.profileCurveZCurve.CRV
lea ecx, [esp + 0x18]
push esi
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x468], 0x12
call sub.MFC42.DLL_CString::Format
add esp, 8
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b8c8
mov cl, byte [eax + 1]
cmp cl, 0x30
mov byte [esp + 0x23], cl
jb 0x40b875
cmp cl, 0x39
ja 0x40b875
mov al, byte [eax]
push str.profileCurve_CCurve_J_d.CRV
lea ecx, [esp + 0x18]
push esi
push ecx
mov byte [esp + 0x1f], al
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x13]
mov edx, dword [ebp + 0xbe4]
mov eax, dword [eax]
push edx
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x470], 0x13
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40b8c8
mov cl, byte [eax + 1]
mov dl, byte [eax]
push str.profileCurve_C_CCurve_J_d.CRV
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x1f], cl
mov byte [esp + 0x2e], dl
call sub.MFC42.DLL_operator
mov ecx, dword [ebp + 0xbe4]
mov eax, dword [eax]
movsx edx, byte [esp + 0x13]
push ecx
push edx
movsx ecx, byte [esp + 0x2a]
push ecx
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x474], 0x14
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
call fcn.00422b90
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call edi
test eax, eax
jne 0x40bb55
mov al, byte [esp + 0x23]
cmp al, 0x30
jb 0x40b94c
cmp al, 0x39
ja 0x40b94c
mov eax, dword [ebp + 0xbe4]
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
je 0x40ba9d
cmp edx, 1
je 0x40ba9d
cmp edx, 5
je 0x40ba9d
cmp edx, 2
je 0x40ba55
cmp edx, 6
je 0x40ba55
cmp edx, 8
je 0x40ba55
cmp edx, 3
je 0x40ba0a
cmp edx, 7
je 0x40ba0a
cmp edx, ebx
je 0x40b9bf
cmp edx, 9
je 0x40b9bf
push 0
push 0x1000
push 0x463528
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 3
call fcn.00422b90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.00422b90
lea ecx, [esp + 0x34]
mov byte [esp + 0x460], 1
call fcn.00422d28
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 0
call fcn.00422b78
lea ecx, [esp + 0x468]
mov dword [esp + 0x460], 0xffffffff
call fcn.00422b90
xor al, al
jmp 0x40be8c
mov edx, dword [esp + 0x468]
push str.profileCurve_CCurve_J49.CRV
lea ecx, [esp + 0x18]
push esi
mov al, byte [edx]
push ecx
mov byte [esp + 0x1f], al
call sub.MFC42.DLL_operator
movsx edx, byte [esp + 0x13]
mov eax, dword [eax]
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x46c], 0x18
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40bae3
mov ecx, dword [esp + 0x468]
push str.profileCurve_CCurve_J37.CRV
lea eax, [esp + 0x18]
push esi
mov dl, byte [ecx]
push eax
mov byte [esp + 0x1f], dl
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x13]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x46c], 0x17
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40bae3
mov eax, dword [esp + 0x468]
push str.profileCurve_CCurve_J268.CRV
lea edx, [esp + 0x18]
push esi
mov cl, byte [eax]
push edx
mov byte [esp + 0x1f], cl
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x13]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x46c], 0x16
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
jmp 0x40bae3
mov eax, dword [esp + 0x468]
push str.profileCurve_CCurve_J015.CRV
lea edx, [esp + 0x18]
push esi
mov cl, byte [eax]
push edx
mov byte [esp + 0x1f], cl
call sub.MFC42.DLL_operator
movsx ecx, byte [esp + 0x13]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x46c], 0x15
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x14]
call fcn.00422b90
mov eax, dword [esp + 0x18]
push eax
call edi
test eax, eax
jne 0x40bb55
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 3
call fcn.00422b90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.00422b90
lea ecx, [esp + 0x34]
mov byte [esp + 0x460], 1
call fcn.00422d28
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 0
call fcn.00422b78
lea ecx, [esp + 0x468]
mov dword [esp + 0x460], 0xffffffff
call fcn.00422b90
xor al, al
jmp 0x40be8c
mov ecx, dword [esp + 0x18]
push 0
push 0x20
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x40bc0c
lea edx, [esp + 0x18]
push 0x463518
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0x1000
push eax
mov byte [esp + 0x46c], 0x19
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x14]
mov byte [esp + 0x460], bl
call fcn.00422b90
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 3
call fcn.00422b90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.00422b90
lea ecx, [esp + 0x34]
mov byte [esp + 0x460], 1
call fcn.00422d28
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 0
call fcn.00422b78
lea ecx, [esp + 0x468]
mov dword [esp + 0x460], 0xffffffff
call fcn.00422b90
xor al, al
jmp 0x40be8c
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov edx, dword [esp + 0x1c]
push str.Angle:
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40bc65
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov edx, dword [esp + 0x1c]
add edx, 3
push edx
call dword [sym.imp.MSVCRT.dll_atol]
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
fmul qword [0x442e30]
fsubr qword [0x442e28]
fstp dword [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
fmul qword [0x442e30]
add esp, 4
fsubr qword [0x442e28]
fcom qword [0x442e28]
fnstsw ax
test ah, 0x41
je 0x40bdc5
mov edi, dword [sym.imp.MSVCRT.dll_atol]
jmp 0x40bcd9
fstp st(0)
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
fstp dword [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov ecx, dword [esp + 0x1c]
add ecx, 3
push ecx
call edi
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
push edx
fmul qword [0x442e30]
fsubr qword [0x442e28]
fstp dword [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40be26
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fmul qword [0x442e30]
add esp, 4
fsubr qword [0x442e28]
fld st(0)
fsub dword [esp + 0x24]
fld dword [esp + 0x28]
fsub dword [esp + 0x2c]
fdivp st(1)
fst dword [esp + 0x30]
fmul dword [esp + 0x2c]
fsubr dword [esp + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
mov esi, eax
mov dword [esp + 0x24], esi
fild dword [esp + 0x24]
fcom dword [esp + 0x28]
fnstsw ax
test ah, 1
jne 0x40bcd7
fmul dword [esp + 0x30]
fadd dword [esp + 0x14]
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
mov byte [esi + ebp + 0x126c], al
dec esi
mov dword [esp + 0x24], esi
fild dword [esp + 0x24]
fcom dword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x40bd92
jmp 0x40bcd7
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 3
fstp st(0)
call fcn.00422b90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.00422b90
lea ecx, [esp + 0x34]
mov byte [esp + 0x460], 1
call fcn.00422d28
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 0
call fcn.00422b78
lea ecx, [esp + 0x468]
mov dword [esp + 0x460], 0xffffffff
call fcn.00422b90
xor al, al
jmp 0x40be8c
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 3
call fcn.00422b90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 2
call fcn.00422b90
lea ecx, [esp + 0x34]
mov byte [esp + 0x460], 1
call fcn.00422d28
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 0
call fcn.00422b78
lea ecx, [esp + 0x468]
mov dword [esp + 0x460], 0xffffffff
call fcn.00422b90
mov al, 1
mov ecx, dword [esp + 0x458]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x454
ret 4