Function at 0x40ce70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9e4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d19f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40d19f
lea ecx, [esp + 0x40]
call fcn.00425b00
lea ecx, [esp + 0x28]
call fcn.00425b00
lea ecx, [esp + 0x58]
call fcn.00425b00
mov eax, dword [esi]
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call dword [eax + 0x74]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
mov edx, dword [esi]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call dword [edx + 0x78]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x6d0]
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x3b0]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00418f10
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40d1a1
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edi
jle 0x40d1a1
mov ebx, dword [ebp + 0x14]
mov edx, dword [esp + edi*8 + 0x3b4]
mov eax, dword [esp + edi*8 + 0x3b0]
mov ecx, dword [esp + edi*8 + 0x94]
push 0
push 0
push edx
mov edx, dword [esp + edi*8 + 0x9c]
push eax
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.00425b20
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub esp, 0x18
mov dword [esp + 0x80], ecx
lea eax, [esp + 0x70]
mov ecx, esp
push eax
mov dword [esp + 0x88], edx
call fcn.00425b50
mov ecx, dword [ebp + 0x10]
call fcn.0040dd80
mov ecx, dword [ebp + 0x18]
push 0xffffffffffffffff
fld qword [esp + edi*8 + 0x6d4]
mov esi, dword [ecx + 8]
fstp qword [esp + 0x24]
lea edx, [esi + 1]
push edx
call fcn.0040df20
mov eax, dword [ebp + 0x18]
sub esp, 0x18
fld qword [esp + 0x38]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x70]
fstp qword [ecx + esi*8]
mov ecx, esp
push edx
call fcn.00425b50
mov ecx, dword [ebp + 8]
call fcn.0041b140
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
fstp qword [esp + 0x70]
mov esi, edx
mov dword [esp + 0x18], esi
inc esi
test esi, esi
jne 0x40d06e
test eax, eax
je 0x40d061
push eax
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x40d179
test eax, eax
jne 0x40d0a6
lea edi, [esi*8]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], 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 + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x40d175
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x40d0d7
cmp edx, esi
jge 0x40d0c7
mov ecx, esi
sub ecx, edx
lea edx, [eax + edx*8]
push ecx
push edx
call fcn.0040e100
mov dword [ebx + 8], esi
jmp 0x40d179
jle 0x40d0cf
sub edx, esi
mov dword [esp + 0x20], edx
mov dword [ebx + 8], esi
jmp 0x40d179
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x40d101
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x40d0f5
mov eax, 4
jmp 0x40d101
cmp eax, 0x400
jle 0x40d101
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x40d10f
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax*8]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x20], eax
sub edx, ecx
lea eax, [eax + ecx*8]
push edx
push eax
call fcn.0040e100
mov ecx, dword [ebx + 4]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
fld qword [esp + 0x70]
mov eax, dword [esp + 0x1c]
inc edi
fstp qword [ecx + edx*8]
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x40cf7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret