Function at 0x4288ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a753a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x388
mov dword [ebp - 0x360], ecx
cmp dword [ebp + 8], 0
jne 0x428921
or eax, 0xffffffff
jmp 0x428b36
lea eax, [ebp - 0x110]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x110]
push ecx
push 0x4c5010
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x360]
mov ecx, dword [eax + 0x1fc]
mov dword [ebp - 0x364], ecx
cmp dword [ebp - 0x364], 0
je 0x428985
cmp dword [ebp - 0x364], 1
je 0x4289b0
cmp dword [ebp - 0x364], 2
je 0x428a54
jmp 0x428af3
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x360]
call fcn.0042954c
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4289ab
or eax, 0xffffffff
jmp 0x428b36
jmp 0x428af3
push ecx
mov ecx, esp
mov dword [ebp - 0x348], esp
lea eax, [ebp - 0x218]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x34c], esp
push str.WuYa
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x370], eax
mov edx, dword [ebp - 0x370]
mov dword [ebp - 0x374], edx
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x350], esp
push 0x4c5030
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x378], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.JsTools3D.dll_int___cdecl_SaveResouceDataToFile_class_CString__class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 1
jne 0x428a4f
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.JsTools3D.dll_public:_int___thiscall_DXF::Read_FileDxf_To_Mem_char__]
jmp 0x428af3
push ecx
mov ecx, esp
mov dword [ebp - 0x354], esp
lea edx, [ebp - 0x218]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x358], esp
push str.BanYouYa
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x38c], ecx
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x35c], esp
push 0x4c5040
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x390], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.JsTools3D.dll_int___cdecl_SaveResouceDataToFile_class_CString__class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x394], eax
cmp dword [ebp - 0x394], 1
jne 0x428af3
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.JsTools3D.dll_public:_int___thiscall_DXF::Read_FileDxf_To_Mem_char__]
mov eax, dword [ebp - 0x360]
mov ecx, dword [eax + 0x90]
push ecx
mov ecx, dword [sym.imp.JsTools3D.dll_class_CString_G_strWorkPath]
call fcn.00402330
push eax
push 0x4c5044
lea edx, [ebp - 0x344]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.JsTools3D.dll_public:_int___thiscall_DXF::Write_MemDxf_To_File_char__]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4