Function at 0x405960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x418e27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x18]
add edi, ecx
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCRT.dll_localtime]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
mov ebp, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x3c]
add esi, 0x76c
push ecx
lea ecx, [esp + 0x14]
inc edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.004048f8
push esi
lea edx, [esp + 0x44]
mov ebx, 1
push str._04d
push edx
mov dword [esp + 0x3c], ebx
call fcn.00402d40
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x422788
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
push edi
lea eax, [esp + 0x44]
push str._02d
push eax
call fcn.00402d40
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x42277c
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push ecx
push str._02d
push edx
call fcn.00402d40
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x422778
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::Replace
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString
push ebp
lea eax, [esp + 0x44]
push str._02d
push eax
call fcn.00402d40
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x422774
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
cmp ebp, 0xc
jle 0x405aca
add ebp, 0xfffffff4
push ebp
lea ecx, [esp + 0x44]
push str._02d
push ecx
call fcn.00402d40
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x422770
mov byte [esp + 0x38], 6
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push edx
push str._02d
push eax
call fcn.00402d40
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x42276c
mov byte [esp + 0x38], 7
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x40]
push ecx
push str._02d
push edx
call fcn.00402d40
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x42254c
mov byte [esp + 0x38], 8
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret