Function at 0x408330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x388
push esi
push edi
mov dword [ebp - 0x37c], ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x37c]
mov esi, dword [eax + 0x284]
mov ecx, 0x40
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
push 0x67
push 0x65
push 0x72
push 0x2e
push 0x64
push 0x79
push 0x63
push 0x74
push 0x77
push 0x471398
lea ecx, [ebp - 0x26c]
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x2c
push 3
lea ecx, [ebp - 0x26c]
call fcn.00405d30
push eax
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ebp + ecx - 0x36d]
cmp edx, 0x5c
jne 0x408455
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x370]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x384], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x384]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x370]
call sub.MFC42.DLL_CString::CString
jmp 0x4084f5
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push 0x5c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x374]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x388]
mov dword [ebp - 0x38c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38c]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x374]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x378]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x390], eax
mov edx, dword [ebp - 0x390]
mov dword [ebp - 0x394], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x394]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x378]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x150]
call fcn.0045ecce
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x14]
call fcn.00405d30
push eax
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x408550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x4085d1
lea ecx, [ebp - 0x24]
call fcn.0045ec0e
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x268]
call fcn.00405db0
push 0
push 1
lea ecx, [ebp - 0x14]
call fcn.00405d30
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Open
push 0x100
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret