Function at 0x4060a1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x410830
call fcn.0040fdb0
sub esp, 0x730
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 1
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40640b
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov ebx, 0x41615c
mov edi, 0x104
lea eax, [ebp - 0x124]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x228]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov edi, dword [eax + 8]
mov ecx, dword [eax]
test edi, edi
mov dword [ebp - 0x18], ecx
je 0x40620b
mov eax, dword [edi + 0x2e0]
cmp eax, 0x7a
je 0x4063fe
cmp eax, 0x7d
je 0x4063fe
lea eax, [edi + 0x64]
push edi
push eax
lea eax, [ebp - 0x228]
push ebx
push eax
call esi
mov eax, dword [edi + 0x2dc]
add esp, 0x10
sub eax, 0x64
je 0x4061fa
dec eax
je 0x4061de
dec eax
dec eax
je 0x4061c3
dec eax
jne 0x40620b
cmp byte [edi + 0x168], 0x2e
lea eax, [edi + 0x168]
jne 0x4061af
lea eax, [edi + 0x169]
push edi
push eax
lea eax, [ebp - 0x124]
push dword [ebp + 0xc]
push 0x416a14
push eax
call esi
add esp, 0x14
lea eax, [edi + 0x169]
push eax
lea eax, [ebp - 0x430]
push dword [ebp + 0xc]
push str._s_s
push eax
call esi
lea eax, [ebp - 0x430]
push eax
call fcn.00404e77
add esp, 0x14
jmp 0x40620b
push edi
push eax
lea eax, [ebp - 0x124]
push ebx
push eax
call esi
lea eax, [edi + 0x168]
jmp 0x4061a4
lea eax, [ebp - 0x638]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea eax, [ebp - 0x638]
jmp 0x4061f7
lea eax, [ebp - 0x534]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x534]
push eax
jmp 0x4061fe
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x124]
push ebx
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
and dword [ebp - 4], 0
push 0x89
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [0x418594]
test ecx, ecx
je 0x40627e
push dword [ebp - 0x10]
push 0x3fc
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [0x418594]
lea eax, [ebp - 0x228]
push eax
push 0x3fd
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [0x418594]
lea eax, [ebp - 0x124]
push eax
push 0x3fe
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push str.File_Full_Path___s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push str._Message_File_Store__Message__LogData__s__LogData_
push eax
call sub.MFC42.DLL_CString::Format
push 0x1771
push dword [ebp - 0x1c]
call fcn.00403aec
lea eax, [ebp - 0x124]
push eax
call fcn.00403852
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040379d
add esp, 0x20
test eax, eax
je 0x406312
push dword [edi + 0x2f0]
lea eax, [ebp - 0x124]
push dword [edi + 0x2ec]
push eax
call fcn.00404322
add esp, 0xc
jmp 0x4063be
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 8]
push str.File_Name___s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push str._Message_FileCopy_Error__Message__LogData__s__LogData_
push eax
call sub.MFC42.DLL_CString::Format
push 0x1389
push dword [ebp - 0x14]
call fcn.00403aec
add esp, 0x14
lea eax, [ebp - 0x73c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x73c]
push edi
push eax
lea eax, [ebp - 0x32c]
push ebx
push eax
call esi
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040379d
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00407a95
and dword [ebp - 0x20], 0
add esp, 0x20
lea ecx, [ebp - 0x14]
mov dword [edi + 0x2d4], 1
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x418594]
test ecx, ecx
je 0x4063da
add dword [0x41859c], 3
push dword [0x41859c]
call fcn.00408a48
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x18], 0
jne 0x4060d7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov dword fs:[0], ecx
leave
ret