Function at 0x401570
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41fd0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.0041f07a
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0
call fcn.0041f074
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
push 0x42b0b0
push ecx
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x28]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call sub.MFC42.DLL_operatornew
mov ebp, eax
or ecx, 0xffffffff
lea edi, [esp + 0x2c]
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.HCLog_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x42d3f8
lea ecx, [esp + 0x10]
xor esi, esi
call sub.MFC42.DLL_CString::CString_3
push 0x400
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x18]
push esi
push esi
push ebp
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4016ef
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
cmp esi, 0x400
jle 0x4016b7
mov esi, 0x400
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea ecx, [esp + 0x18]
push esi
push edi
call sub.MFC42.DLL_CFile::Read
push edi
lea eax, [esp + 0x10]
push 0x42b0b0
push eax
call sub.MFC42.DLL_CString::Format
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x10
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x10]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov byte [esp + 0x134], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x12c
ret 4