Function at 0x401528
Capabilities:
Get common file path

Disassembly:
jmp 0x412260
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470ff0
push eax
mov eax, dword [0x482fac]
mov dword fs:[0], esp
sub esp, 0x20
test eax, eax
je 0x4124f3
mov al, byte [0x4873e8]
test al, 1
jne 0x4122b1
or al, 1
push 0x486f38
mov ecx, 0x4873e4
mov byte [0x4873e8], al
call sub.MFC42u.DLL_CString::CString_3
push 0x4125c0
call fcn.0041f55c
add esp, 4
mov eax, dword [0x487438]
test eax, eax
jne 0x412455
mov dword [0x487438], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x4873ec
lea ecx, [esp + 4]
mov dword [0x48743c], eax
mov dword [0x487518], 3
mov dword [0x487514], 1
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp]
mov dword [esp + 0x28], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41235e
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 0x4809cc
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::TrimRight_2
mov ecx, dword [esp]
push str.Installation.log
push str.AgentInstall
push ecx
push str._s_s_s
push 0x4873e4
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
jmp 0x412388
push 0x4809cc
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::TrimRight_2
mov edx, dword [esp]
push str.Installation.log
push edx
push 0x481838
push 0x4873e4
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov eax, dword [0x4873e4]
push eax
call fcn.0040174e
add esp, 4
mov ecx, 0x4873e4
push 0x4809cc
call sub.MFC42u.DLL_CString::TrimRight_2
mov ecx, dword [0x4873e4]
push ecx
call fcn.00401104
add esp, 4
cmp eax, 0x100000
jbe 0x4123ca
mov edx, dword [0x4873e4]
push edx
call fcn.00401195
add esp, 4
mov eax, dword [0x4873e4]
push eax
call fcn.00401762
add esp, 4
test eax, eax
jne 0x412434
lea ecx, [esp + 0x10]
call fcn.0041f212
mov ecx, dword [0x4873e4]
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 0x412426
lea edx, [esp + 0xc]
push 2
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 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 [0x4873e4]
mov ecx, 0x487510
push eax
call fcn.00401663
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
push ecx
call sub.MFC42u.DLL_CTime::GetTickCount
lea edx, [esp + 8]
push edx
call fcn.00458c90
add esp, 4
lea ecx, [esp + 4]
push 0x486f38
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 0xc]
push str._Y__m__d__H:_M:_S
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 2
call sub.MFC42u.DLL_CTime::Format
mov ecx, dword [esp + 0x30]
mov edx, dword [0x48743c]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x10]
push str._s___4d___s
push ecx
mov byte [esp + 0x3c], 3
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0xc]
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, 0x487510
call fcn.00401604
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