Function at 0x401519
Capabilities:
Get common file path

Disassembly:
jmp 0x40f870
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467e10
push eax
mov eax, dword [0x4775f0]
mov dword fs:[0], esp
sub esp, 0x20
test eax, eax
je 0x40faf6
mov al, byte [0x47b68c]
test al, 1
jne 0x40f8c1
or al, 1
push 0x47b1f4
mov ecx, 0x47b688
mov byte [0x47b68c], al
call sub.MFC42u.DLL_CString::CString_2
push 0x40fbc0
call fcn.0041c46c
add esp, 4
mov eax, dword [0x47b6dc]
test eax, eax
jne 0x40fa65
mov dword [0x47b6dc], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x47b690
lea ecx, [esp + 4]
mov dword [0x47b6e0], eax
mov dword [0x47b7c0], 3
mov dword [0x47b7bc], 1
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp]
mov dword [esp + 0x28], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f96e
push 0x104
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x4757dc
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::TrimRight_2
mov ecx, dword [esp]
push 0x477654
push 0x4757bc
push ecx
push 0x47763c
push 0x47b688
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
jmp 0x40f998
push 0x4757dc
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::TrimRight_2
mov edx, dword [esp]
push 0x477654
push edx
push 0x476784
push 0x47b688
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov eax, dword [0x47b688]
push eax
call fcn.0040170d
add esp, 4
mov ecx, 0x47b688
push 0x4757dc
call sub.MFC42u.DLL_CString::TrimRight_2
mov ecx, dword [0x47b688]
push ecx
call fcn.0040114f
add esp, 4
cmp eax, 0x100000
jbe 0x40f9da
mov edx, dword [0x47b688]
push edx
call fcn.004011d6
add esp, 4
mov eax, dword [0x47b688]
push eax
call fcn.00401721
add esp, 4
test eax, eax
jne 0x40fa44
lea ecx, [esp + 0x10]
call fcn.0041c142
mov ecx, dword [0x47b688]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x40fa36
lea edx, [esp + 8]
push 2
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xfeff
call sub.MFC42u.DLL_CFile::Write
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CFile::CFile
mov eax, dword [0x47b688]
mov ecx, 0x47b7b8
push eax
call fcn.00401640
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
push ecx
call sub.MFC42u.DLL_CTime::GetTickCount
push 0x47b1f4
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
lea edx, [esp + 8]
push 0x477610
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 2
call sub.MFC42u.DLL_CTime::Format
mov ecx, dword [esp + 0x30]
mov edx, dword [0x47b6e0]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x10]
push 0x4775f4
push ecx
mov byte [esp + 0x3c], 3
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, 0x47b7b8
call fcn.004015e6
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret