Function at 0x4069b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42bc81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x28]
cmp esi, ecx
mov dword [esp + 0x20], 0
jl 0x406b64
lea ebx, [esi + 1]
test ebx, ebx
jne 0x406a2c
mov edi, dword [ebp + 4]
test edi, edi
je 0x406a1f
mov eax, ecx
dec ecx
test eax, eax
je 0x406a0c
lea ebx, [ecx + 1]
push 0
mov ecx, edi
call fcn.00406d00
add edi, 0x20
dec ebx
jne 0x4069fd
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x406b64
mov eax, dword [ebp + 4]
test eax, eax
jne 0x406a8e
mov edi, ebx
shl edi, 5
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x406a74
mov ecx, esi
call fcn.00406c10
add esi, 0x20
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x406a60
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x406b60
mov edi, dword [ebp + 0xc]
cmp ebx, edi
jg 0x406acb
cmp ecx, ebx
jge 0x406ab1
mov edx, ebx
sub edx, ecx
shl ecx, 5
add ecx, eax
push edx
push ecx
call fcn.00407630
mov dword [ebp + 8], ebx
jmp 0x406b64
jle 0x406ac3
sub ecx, ebx
push ecx
mov ecx, ebx
shl ecx, 5
add ecx, eax
push ecx
call fcn.00406cd0
mov dword [ebp + 8], ebx
jmp 0x406b64
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x406af5
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x406ae9
mov eax, 4
jmp 0x406af5
cmp eax, 0x400
jle 0x406af5
mov eax, 0x400
add eax, edi
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x406b03
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x10]
shl edx, 5
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 5
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], eax
sub edx, ecx
shl ecx, 5
add ecx, eax
push edx
push ecx
call fcn.00407630
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov esi, dword [esp + 0x28]
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x2c]
shl esi, 5
add esi, eax
mov dword [esi], edx
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x38]
mov dword [esi + 8], ecx
push edx
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x3c]
lea ecx, [esi + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x44]
mov dword [esi + 0x14], ecx
push edx
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x48]
lea ecx, [esi + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], 4
call fcn.0042a4f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x20], 3
call fcn.0042a4f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x20], 2
call fcn.0042a4f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042a4f0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x24