Function at 0x456fc3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xa6d4
call fcn.004a5250
mov dword [ebp - 0xa6c8], ecx
mov eax, dword [ebp - 0xa6c8]
cmp dword [eax + 0x260], 1
jne 0x4571fd
mov ecx, dword [ebp - 0xa6c8]
mov edx, dword [ebp - 0xa6c8]
fld dword [ecx + 0x23c]
fsub dword [edx + 0x24c]
fstp dword [ebp - 0xa5a8]
mov eax, dword [ebp - 0xa6c8]
mov ecx, dword [ebp - 0xa6c8]
fld dword [eax + 0x23c]
fsub dword [ecx + 0x240]
fstp dword [ebp - 0xa5ac]
fld dword [ebp + 0xc]
fdiv dword [ebp - 0xa5a8]
fstp dword [ebp - 0xa5a4]
fld dword [ebp - 0xa5ac]
fdiv dword [ebp - 0xa5a8]
fstp dword [ebp - 0xa6b4]
fld dword [ebp - 0xa5a4]
fcomp dword [0x4af4dc]
fnstsw ax
test ah, 1
jne 0x4570a7
fld dword [ebp - 0xa5a4]
fcomp dword [0x4af12c]
fnstsw ax
test ah, 0x41
je 0x4570a7
fld dword [ebp - 0xa6b4]
fcomp dword [0x4af0e4]
fnstsw ax
test ah, 1
jne 0x4570a7
fld dword [ebp - 0xa6b4]
fcomp dword [0x4af4d8]
fnstsw ax
test ah, 0x41
jne 0x4570b7
mov edx, dword [ebp + 8]
mov dword [edx], 0x3f800000
xor eax, eax
jmp 0x457213
lea ecx, [ebp - 0xa49c]
call dword [sym.imp.SLXJsTools.dll_public:_void___thiscall_CGetGrid::constructor_void_]
mov dword [ebp - 4], 0
push 0x4cfc28
lea ecx, [ebp - 0x10]
call fcn.004a4cf0
lea eax, [ebp - 0xa5a0]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0xa5a0]
push ecx
push 0x4cfc48
lea edx, [ebp - 0xa6b0]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xa6b8], esp
lea eax, [ebp - 0xa6b0]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0xa6cc], eax
mov ecx, dword [ebp - 0xa6cc]
mov dword [ebp - 0xa6d0], ecx
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0xa6bc], esp
push str.3_11_13
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0xa6d4], eax
mov edx, dword [ebp - 0xa6d4]
mov dword [ebp - 0xa6d8], edx
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0xa6c0], esp
push 0x4cfc68
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0xa6dc], eax
mov byte [ebp - 4], 0
call dword [sym.imp.JsTools3D.dll_int___cdecl_SaveResouceDataToFile_class_CString__class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0xa6e0], eax
cmp dword [ebp - 0xa6e0], 1
jne 0x4571a1
lea eax, [ebp - 0xa6b0]
push eax
lea ecx, [ebp - 0xa49c]
call dword [sym.imp.SLXJsTools.dll_public_virtual:_int___thiscall_CGetGrid::LoadData_char__]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xa5a4]
push edx
mov eax, dword [ebp - 0xa6b4]
push eax
lea ecx, [ebp - 0xa49c]
call dword [sym.imp.SLXJsTools.dll_public:_int___thiscall_CGetGrid::GetValue_float__float__float__]
test eax, eax
je 0x4571e8
mov dword [ebp - 0xa6c4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa49c]
call dword [sym.imp.SLXJsTools.dll_public_virtual:_void___thiscall_CGetGrid::destructor_void_]
mov eax, dword [ebp - 0xa6c4]
jmp 0x457213
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa49c]
call dword [sym.imp.SLXJsTools.dll_public_virtual:_void___thiscall_CGetGrid::destructor_void_]
jmp 0x45720e
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xa6c8]
mov eax, dword [edx + 0x264]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8