Function at 0x401528
Capabilities:
Get common file path

Disassembly:
jmp 0x40f430
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449ed0
push eax
mov eax, dword [0x457558]
mov dword fs:[0], esp
sub esp, 0x20
test eax, eax
je 0x40f6b6
mov al, byte [0x45a3cc]
test al, 1
jne 0x40f481
or al, 1
push 0x459f34
mov ecx, 0x45a3c8
mov byte [0x45a3cc], al
call sub.MFC42u.DLL_CString::CString_2
push 0x40f780
call fcn.0041c02c
add esp, 4
mov eax, dword [0x45a41c]
test eax, eax
jne 0x40f625
mov dword [0x45a41c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x45a3d0
lea ecx, [esp + 4]
mov dword [0x45a420], eax
mov dword [0x45a500], 3
mov dword [0x45a4fc], 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 0x40f52e
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 0x4557dc
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 0x45a3c8
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
jmp 0x40f558
push 0x4557dc
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::TrimRight_2
mov edx, dword [esp]
push str.Installation.log
push edx
push 0x4566ec
push 0x45a3c8
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov eax, dword [0x45a3c8]
push eax
call fcn.00401717
add esp, 4
mov ecx, 0x45a3c8
push 0x4557dc
call sub.MFC42u.DLL_CString::TrimRight_2
mov ecx, dword [0x45a3c8]
push ecx
call fcn.0040115e
add esp, 4
cmp eax, 0x100000
jbe 0x40f59a
mov edx, dword [0x45a3c8]
push edx
call fcn.004011e5
add esp, 4
mov eax, dword [0x45a3c8]
push eax
call fcn.0040172b
add esp, 4
test eax, eax
jne 0x40f604
lea ecx, [esp + 0x10]
call fcn.0041bcfc
mov ecx, dword [0x45a3c8]
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 0x40f5f6
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 [0x45a3c8]
mov ecx, 0x45a4f8
push eax
call fcn.0040164a
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 0x459f34
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
lea edx, [esp + 8]
push str._Y__m__d__H:_M:_S
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 [0x45a420]
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 + 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, 0x45a4f8
call fcn.004015f5
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