Function at 0x100257e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038eff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
lea ecx, [ebp - 0x3fc]
call fcn.10035eca
mov dword [ebp - 4], 0
call fcn.100134d0
mov eax, dword [eax + 0x90]
push eax
lea ecx, [ebp - 0x200]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x200]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
sub eax, 1
mov dword [ebp - 0x400], eax
jmp 0x1002585c
mov eax, dword [ebp - 0x400]
sub eax, 1
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jle 0x10025926
mov ecx, dword [ebp - 0x400]
movsx edx, byte [ebp + ecx - 0x200]
cmp edx, 0x5c
jne 0x10025921
mov eax, dword [ebp - 0x400]
lea ecx, [ebp + eax - 0x1ff]
push ecx
push 0x10055d20
lea edx, [ebp - 0x3fc]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x10055d24
lea ecx, [ebp - 0x3fc]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x5f8], eax
cmp dword [ebp - 0x5f8], 0xffffffff
je 0x10025911
mov eax, dword [ebp - 0x5f8]
push eax
lea ecx, [ebp - 0x7f4]
push ecx
lea ecx, [ebp - 0x3fc]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x808], eax
mov edx, dword [ebp - 0x808]
mov dword [ebp - 0x80c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x3fc]
call sub.MFC42.DLL_CString::operator_2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7f4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x400]
mov byte [ebp + ecx - 0x1ff], 0
jmp 0x10025926
jmp 0x1002584d
lea edx, [ebp - 0x200]
push edx
push 0x10055d28
mov eax, dword [sym.imp.JsTools3D.dll_class_CString_G_strExePath]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp + 8]
call sym.STools.dll_public:_int___thiscall_CRunCmd::LoadData_void_
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 1
jne 0x1002596e
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [sym.imp.JsTools3D.dll_class_CString_G_strWorkPath]
call sub.MFC42.DLL_CString::operator_2
jmp 0x10025a3f
lea edx, [ebp - 0x7ec]
push edx
push 0x1ea
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x7ec]
push eax
push 0x10055d2c
mov ecx, dword [sym.imp.JsTools3D.dll_class_CString_G_strWorkPath]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x10055d30
push 1
lea edx, [ebp - 0x7fc]
push edx
mov ecx, dword [sym.imp.JsTools3D.dll_class_CString_G_strWorkPath]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x810], eax
mov eax, dword [ebp - 0x810]
mov dword [ebp - 0x814], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x814]
push ecx
call fcn.10006030
mov byte [ebp - 0x7f8], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7fc]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x7f8]
and edx, 0xff
test edx, edx
je 0x10025a0b
push 0x10055d34
mov ecx, dword [sym.imp.JsTools3D.dll_class_CString_G_strWorkPath]
call fcn.10035f84
push 0x10055d38
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.10035f78
lea eax, [ebp - 0x3fc]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x3fc]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x14
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [sym.imp.JsTools3D.dll_class_CString_G_strExePath]
call sym.STools.dll_public:_int___thiscall_Cp_dbl2::get_ID_void_
push eax
push 0x10055d3c
lea edx, [ebp - 0x3f4]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x10055d40
lea eax, [ebp - 0x3f4]
push eax
mov ecx, dword [sym.imp.JsTools3D.dll_class_CShx_G_ShapeFont]
call sub.JsTools3D.dll_public:_int___thiscall_CShx::SetTxtFont_char_const___char_const__
push 0x10055d48
lea ecx, [ebp - 0x3f4]
push ecx
mov ecx, dword [sym.imp.JsTools3D.dll_class_CShx_G_ShapeFont]
call sub.JsTools3D.dll_public:_int___thiscall_CShx::SetHzFont_char___char__
mov edx, dword [sym.imp.JsTools3D.dll_float_G_HightText]
mov dword [edx], 0x3f800000
mov ecx, dword [sym.imp.JsTools3D.dll_class_CString_G_strWorkPath]
call sym.STools.dll_public:_int___thiscall_Cp_dbl2::get_ID_void_
push eax
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x10025b26
lea ecx, [ebp - 0x7f0]
call fcn.10035eca
mov byte [ebp - 4], 3
mov eax, dword [sym.imp.JsTools3D.dll_class_CString_G_strWorkPath]
mov ecx, dword [eax]
push ecx
push 0x10055d54
lea edx, [ebp - 0x7f0]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x7f0]
call sym.STools.dll_public:_int___thiscall_Cp_dbl2::get_ID_void_
push eax
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x800], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7f0]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x800]
jmp 0x10025ba1
mov eax, dword [sym.imp.JsTools3D.dll_class_CString_G_strExePath]
mov ecx, dword [eax]
push ecx
push str._sTb50.opt
lea edx, [ebp - 0x5f4]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x5f4]
push eax
mov ecx, dword [sym.imp.JsTools3D.dll_class_CTbEnv_G_TbEnv]
call sub.JsTools3D.dll_public:_int___thiscall_CTbEnv::LoadData_char_const__
test eax, eax
jne 0x10025b6d
lea ecx, [ebp - 0x5f4]
push ecx
mov ecx, dword [sym.imp.JsTools3D.dll_class_CTbEnv_G_TbEnv]
call sub.JsTools3D.dll_public:_int___thiscall_CTbEnv::SaveData_char_const__
jmp 0x10025b7f
lea edx, [ebp - 0x5f4]
push edx
mov ecx, dword [sym.imp.JsTools3D.dll_class_CTbEnv_G_TbEnv]
call sub.JsTools3D.dll_public:_int___thiscall_CTbEnv::LoadData_char_const__
mov dword [ebp - 0x804], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x804]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret