Function at 0x4057c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440a39
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 eax, dword [ebp + 8]
mov ebx, dword [esp + 0x28]
xor edi, edi
cmp ebx, eax
mov dword [esp + 0x20], edi
jl 0x405993
inc ebx
cmp ebx, edi
jne 0x405831
mov esi, dword [ebp + 4]
cmp esi, edi
je 0x405826
mov ecx, eax
dec eax
test ecx, ecx
je 0x405817
lea ebx, [eax + 1]
push edi
mov ecx, esi
call fcn.00405aa0
add esi, 0x1c
dec ebx
jne 0x405809
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x405993
mov ecx, dword [ebp + 4]
cmp ecx, edi
jne 0x40589a
lea edi, [ebx*8]
sub edi, ebx
shl edi, 2
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 0x405880
mov ecx, esi
call fcn.00405a10
add esi, 0x1c
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x40586c
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x405993
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x4058e3
cmp eax, ebx
jge 0x4058c4
mov edx, ebx
sub edx, eax
push edx
lea edx, [eax*8]
sub edx, eax
lea eax, [ecx + edx*4]
push eax
call fcn.00405ac0
mov dword [ebp + 8], ebx
jmp 0x405993
jle 0x4058db
lea edx, [ebx*8]
sub eax, ebx
sub edx, ebx
push eax
lea eax, [ecx + edx*4]
push eax
call fcn.00405a70
mov dword [ebp + 8], ebx
jmp 0x405993
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
jne 0x40590e
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x405901
mov ecx, 4
jmp 0x40590e
cmp ecx, 0x400
jle 0x40590e
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
jge 0x40591b
mov dword [esp + 0x10], eax
jmp 0x405921
mov dword [esp + 0x10], ebx
mov eax, ebx
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
add esp, 4
lea ecx, [edx*8]
mov dword [esp + 0x14], eax
sub ecx, edx
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub edx, ecx
push edx
lea edx, [ecx*8]
sub edx, ecx
lea eax, [eax + edx*4]
push eax
call fcn.00405ac0
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 4]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x44]
mov dword [eax + 0x14], edx
push ecx
lea ecx, [eax + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x20