Function at 0x40beb0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4407b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 0x200]
push str.profileCurve_SB.CRV
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x54], 2
mov dword [esp + 0x18], 0xbf800000
mov dword [esp + 0x28], 0xbf800000
mov dword [esp + 0x20], 0xbf800000
mov dword [esp + 0x1c], 0xbf800000
mov dword [esp + 0x2c], 0xbf800000
mov dword [esp + 0x24], 0xbf800000
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 2
call fcn.00422b90
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c15e
mov ecx, dword [esp + 0x24]
push 0
push 0x20
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40c15e
lea edx, [esp + 8]
push esi
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
je 0x40c143
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [esp + 0xc]
push str.S_J015_P30:
push eax
call edi
add esp, 8
test eax, eax
jne 0x40bff0
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
je 0x40c143
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x14]
add esp, 4
jmp 0x40c127
mov eax, dword [esp + 0xc]
push str.S_J015_P60:
push eax
call edi
add esp, 8
test eax, eax
jne 0x40c032
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
je 0x40c143
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x24]
add esp, 4
jmp 0x40c127
mov eax, dword [esp + 0xc]
push str.S_J015_P90:
push eax
call edi
add esp, 8
test eax, eax
jne 0x40c074
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
je 0x40c143
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x1c]
add esp, 4
jmp 0x40c127
mov eax, dword [esp + 0xc]
push str.B_J015_P30:
push eax
call edi
add esp, 8
test eax, eax
jne 0x40c0b3
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
je 0x40c143
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x18]
add esp, 4
jmp 0x40c127
mov eax, dword [esp + 0xc]
push str.B_J015_P60:
push eax
call edi
add esp, 8
test eax, eax
jne 0x40c0ee
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
je 0x40c143
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x28]
add esp, 4
jmp 0x40c127
mov eax, dword [esp + 0xc]
push str.B_J015_P90:
push eax
call edi
add esp, 8
test eax, eax
jne 0x40c127
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
je 0x40c143
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x20]
add esp, 4
test esi, esi
je 0x40c143
lea eax, [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
mov esi, eax
test esi, esi
jne 0x40bfae
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStdioFile::Close
fld dword [esp + 0x10]
fcomp dword [0x442e5c]
pop esi
fnstsw ax
test ah, 1
je 0x40c19e
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call fcn.00422b90
lea ecx, [esp + 8]
mov byte [esp + 0x48], 0
call fcn.00422b90
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00422d28
pop edi
xor al, al
pop ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
fld dword [esp + 0x14]
fcomp dword [0x442e5c]
fnstsw ax
test ah, 1
je 0x40c1b7
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
fld dword [esp + 0x1c]
fcomp dword [0x442e5c]
fnstsw ax
test ah, 1
je 0x40c1da
fld dword [esp + 0x14]
fadd dword [esp + 0xc]
fmul qword [0x442de0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fcomp dword [0x442e5c]
fnstsw ax
test ah, 1
je 0x40c1fb
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
fld dword [esp + 0x18]
fcomp dword [0x442e5c]
fnstsw ax
test ah, 1
je 0x40c214
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
fld dword [esp + 0x20]
fcomp dword [0x442e5c]
fnstsw ax
test ah, 1
je 0x40c237
fld dword [esp + 0x18]
fadd dword [esp + 0x10]
fmul qword [0x442de0]
fstp dword [esp + 0x20]
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x40c27f
fld qword [ebp + 0x1c8]
fstp dword [esp + 0xc]
fld qword [ebp + 0x1d0]
fstp dword [esp + 0x1c]
fld qword [ebp + 0x1d8]
fstp dword [esp + 0x14]
fld qword [ebp + 0x1e0]
fstp dword [esp + 0x10]
fld qword [ebp + 0x1e8]
fstp dword [esp + 0x20]
fld qword [ebp + 0x1f0]
fstp dword [esp + 0x18]
jmp 0x40c2bb
fld dword [esp + 0xc]
fstp qword [ebp + 0x1c8]
fld dword [esp + 0x1c]
fstp qword [ebp + 0x1d0]
fld dword [esp + 0x14]
fstp qword [ebp + 0x1d8]
fld dword [esp + 0x10]
fstp qword [ebp + 0x1e0]
fld dword [esp + 0x20]
fstp qword [ebp + 0x1e8]
fld dword [esp + 0x18]
fstp qword [ebp + 0x1f0]
fld dword [esp + 0x1c]
fsub dword [esp + 0xc]
mov eax, dword [esp + 0xc]
lea edi, [ebp + 0xdb4]
mov ecx, 0x1f
fmul dword [0x442e58]
rep stosd dword es:[edi], eax
fld st(0)
fmul dword [0x442e54]
fsubr dword [esp + 0xc]
mov eax, 0x1e
lea ecx, [ebp + 0xe2c]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
inc eax
add ecx, 4
cmp eax, 0x3c
mov dword [esp + 0xc], eax
fmul st(2)
fadd st(1)
fstp dword [ecx - 4]
jle 0x40c2f5
fstp st(0)
fstp st(0)
fld dword [esp + 0x14]
fsub dword [esp + 0x1c]
mov eax, 0x3c
lea ecx, [ebp + 0xea4]
mov dword [esp + 0xc], eax
fmul dword [0x442e58]
fld st(0)
fmul dword [0x442e50]
fsubr dword [esp + 0x1c]
fild dword [esp + 0xc]
inc eax
add ecx, 4
cmp eax, 0x5a
mov dword [esp + 0xc], eax
fmul st(2)
fadd st(1)
fstp dword [ecx - 4]
jle 0x40c33a
fstp st(0)
fstp st(0)
fld dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edi, [ebp + 0xf1c]
fsub dword [esp + 0x10]
mov ecx, 0x3d
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea edi, [ebp + 0x1010]
fmul dword [0x442e58]
mov ecx, 0x1f
rep stosd dword es:[edi], eax
fld st(0)
fmul dword [0x442e54]
fsubr dword [esp + 0x10]
mov eax, 0x1e
lea ecx, [ebp + 0x1088]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
inc eax
add ecx, 4
cmp eax, 0x3c
mov dword [esp + 0xc], eax
fmul st(2)
fadd st(1)
fstp dword [ecx - 4]
jle 0x40c3a1
fstp st(0)
fstp st(0)
fld dword [esp + 0x18]
fsub dword [esp + 0x20]
mov eax, 0x3c
lea ecx, [ebp + 0x1100]
mov dword [esp + 0xc], eax
fmul dword [0x442e58]
fld st(0)
fmul dword [0x442e50]
fsubr dword [esp + 0x20]
fild dword [esp + 0xc]
inc eax
add ecx, 4
cmp eax, 0x5a
mov dword [esp + 0xc], eax
fmul st(2)
fadd st(1)
fstp dword [ecx - 4]
jle 0x40c3e6
mov eax, dword [esp + 0x18]
lea edi, [ebp + 0x1178]
mov ecx, 0x3d
mov byte [esp + 0x48], 1
rep stosd dword es:[edi], eax
fstp st(0)
fstp st(0)
lea ecx, [esp + 0x24]
call fcn.00422b90
lea ecx, [esp + 8]
mov byte [esp + 0x48], 0
call fcn.00422b90
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00422d28
mov ecx, dword [esp + 0x40]
pop edi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret