Function at 0x548850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ba9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov ebx, ecx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebx + 0x4070]
mov dword [esp + 0x30], 0
test eax, eax
mov dword [esp + 0x14], 0x62fc5c
je 0x54889f
mov dword [esp + 0x14], eax
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
push 0xd
push ecx
push esi
inc eax
push ebp
push edi
push eax
lea edx, [esp + 0x30]
push str.CT:__02d_02d__02d_02d__s__c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004ea7d0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x4064]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
lea ebp, [esi + 1]
test ebp, ebp
jne 0x548950
mov eax, dword [ebx + 0x4060]
test eax, eax
je 0x54893d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x4060], ebp
xor eax, eax
mov dword [ebx + 0x4068], eax
mov dword [ebx + 0x4064], eax
jmp 0x548a6a
mov edx, dword [ebx + 0x4060]
test edx, edx
jne 0x548997
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x4060], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x4068], ebp
mov dword [ebx + 0x4064], ebp
jmp 0x548a6a
mov edi, dword [ebx + 0x4068]
cmp ebp, edi
jg 0x5489bb
cmp ebp, eax
jle 0x5489b0
mov ecx, ebp
lea edi, [edx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0x4064], ebp
jmp 0x548a6a
mov ecx, dword [ebx + 0x406c]
test ecx, ecx
jne 0x5489e9
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x5489dc
mov ecx, 4
jmp 0x5489e9
cmp ecx, 0x400
jle 0x5489e9
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
mov dword [esp + 0x14], eax
jl 0x5489f8
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x4064]
mov esi, dword [ebx + 0x4060]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x4064]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x4060]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
add esp, 8
mov dword [ebx + 0x4060], eax
mov dword [ebx + 0x4064], ebp
mov dword [ebx + 0x4068], ecx
mov edx, dword [ebx + 0x4060]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
mov dword [edx + esi*4], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret