Function at 0x40c860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bc41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
push 0x2c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x40c8ce
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_2
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], 1
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1c], bl
jmp 0x40c8d0
xor esi, esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], esi
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov edx, dword [esi]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx - 8]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
mov dword [edx + 0x18], eax
mov ecx, dword [esp + 0xc]
mov byte [ecx + 0x10], 1
mov eax, dword [esp + 0xc]
mov esi, dword [esi]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov edx, ecx
mov eax, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x48]
lea esi, [eax + 0x3c]
mov eax, dword [eax + 0x44]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x40ca24
mov edx, dword [esi + 4]
cmp edx, ebx
je 0x40c97b
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x40c980
mov ecx, 1
cmp edx, ebx
jne 0x40c988
xor eax, eax
jmp 0x40c98d
sub eax, edx
sar eax, 2
add eax, ecx
cmp eax, ebx
mov dword [esp + 0x28], eax
jge 0x40c999
xor eax, eax
lea edx, [eax*4]
push ebp
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004104e0
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00417b00
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004104e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040dbd0
mov edx, dword [esi + 4]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x30]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0040dbb0
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
pop ebp
mov dword [esi + 8], edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x40ca74
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.004104e0
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00417b00
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x40cab0
mov edx, dword [esp + 0xc]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x40ca65
jmp 0x40cab0
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004104e0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x40ca9a
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x40ca8b
lea ecx, [edi + 4]
mov eax, edi
cmp edi, ecx
je 0x40cab0
mov edx, dword [esp + 0xc]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x40caa3
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
add eax, 4
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret