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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov dword [esp + 0x54], ecx
push ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ecx + 4]
test eax, eax
je 0x4aa999
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
cmp edi, 2
mov dword [esp + 0x44], edi
jl 0x4aa999
lea eax, [edi + 0x1ffffffe]
lea ebx, [eax*8]
push ebx
call sub.MFC42.DLL_operatornew
push ebx
mov dword [esp + 0x70], eax
call sub.MFC42.DLL_operatornew
mov esi, eax
push ebx
mov dword [esp + 0x84], esi
call sub.MFC42.DLL_operatornew
mov ebx, dword [ebp + 0xc]
lea ecx, [edi - 2]
add esp, 0xc
cmp ecx, 1
mov dword [esp + 0x88], eax
jl 0x4a9a7e
lea edx, [edi + edi*2]
sub eax, esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x50], eax
mov eax, 8
sub edx, esi
sub eax, esi
mov ebx, 0xc
mov dword [esp + 0x4c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
push 3
mov dword [esp + 0xd4], 0
mov eax, dword [ecx + 0x74]
lea edi, [edx + esi]
mov edx, dword [ebp + 0xc]
dec edx
push edx
mov edx, dword [edi + eax + 4]
mov eax, dword [edi + eax]
push edx
push eax
call fcn.004a8df0
mov ecx, dword [esp + 0x60]
push 3
fstp qword [esp + 0x80]
mov eax, dword [ecx + 0x74]
push 0
mov edx, dword [edi + eax + 4]
mov eax, dword [edi + eax]
push edx
push eax
call fcn.004a8df0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x7c]
fstp qword [esp + 0x24]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
push edx
lea edx, [eax + ecx*4 - 0xc]
lea eax, [esp + 0xb4]
push edx
push eax
call fcn.004732f0
mov edi, eax
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0xe0], 1
mov eax, dword [ecx + 4]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.004732f0
add esp, 0x18
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xbc]
push eax
push edx
mov ecx, dword [ecx + 4]
mov byte [esp + 0xd8], 2
add ecx, ebx
call fcn.00405230
lea ecx, [esp + 0x98]
push edi
push ecx
mov ecx, eax
mov byte [esp + 0xd8], 3
call fcn.00405230
lea edx, [esp + 0x8c]
push eax
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0xd8], 4
call fcn.004051b0
fld dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
fstp qword [eax + esi]
fld dword [esp + 0x70]
fstp qword [esi]
fld dword [esp + 0x74]
fstp qword [ecx + esi]
mov eax, dword [esp + 0x48]
add ebx, 0xc
add esi, 8
dec eax
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x48], eax
jne 0x4a993a
mov edi, dword [esp + 0x44]
mov ebx, dword [ebp + 0xc]
lea eax, [ebx - 2]
mov dword [esp + 0x14], eax
mov edx, eax
lea eax, [edi + 0x1ffffffe]
imul edx, eax
shl edx, 3
push edx
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x80], eax
lea eax, [ebx + 0x1ffffffe]
lea ecx, [edi - 2]
mov dword [esp + 0x1c], eax
imul ecx, eax
shl ecx, 3
push ecx
call sub.MFC42.DLL_operatornew
mov esi, 1
add edi, 0xfffffffe
add esp, 8
cmp edi, esi
mov dword [esp + 0x58], eax
jl 0x4a9b8f
mov edx, dword [esp + 0x7c]
lea ecx, [ebx - 2]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
mov edi, 1
cmp ecx, edi
jl 0x4a9b6e
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
add eax, 0xfffffffe
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x2c], edx
lea ecx, [eax*8]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], ecx
lea ecx, [eax + esi*8 - 8]
mov dword [esp + 0x48], ecx
mov eax, dword [ebx + 0x74]
push 3
push edi
mov ecx, ebx
mov edx, dword [eax + esi*8 + 4]
mov eax, dword [eax + esi*8]
push edx
push eax
call fcn.004a8df0
mov ecx, dword [esp + 0x2c]
push 3
push edi
fstp qword [ecx]
mov eax, dword [ebx + 0x74]
mov ecx, ebx
mov edx, dword [eax + esi*8 + 4]
mov eax, dword [eax + esi*8]
push edx
push eax
call fcn.004a8df0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
inc edi
fstp qword [eax]
add eax, ecx
add edx, 8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
cmp edi, eax
mov dword [esp + 0x2c], edx
jle 0x4a9b16
mov ecx, eax
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
lea eax, [ecx*8]
inc esi
add edi, eax
lea eax, [edx - 2]
cmp esi, eax
mov dword [esp + 0x54], edi
jle 0x4a9adf
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x14]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [esp + 0x64], eax
lea esi, [ecx - 2]
test esi, esi
jle 0x4a9c4f
mov edx, dword [esp + 0x44]
lea ebx, [esi*8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], esi
lea ecx, [edx - 2]
mov edx, dword [esp + 0x58]
shl ecx, 3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x44]
mov dword [eax], 0
mov dword [eax + 4], 0
lea edi, [ecx - 2]
test edi, edi
jle 0x4a9c13
mov ecx, dword [esp + 0x2c]
fld qword [ecx]
fmul qword [edx]
add ecx, 8
add edx, ebx
dec edi
fadd qword [eax]
fstp qword [eax]
jne 0x4a9c03
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add eax, 8
add edx, 8
dec ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
jne 0x4a9be7
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add eax, ebx
add edi, edx
dec ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ecx
jne 0x4a9bdb
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
lea edi, [eax*8]
push edi
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_operatornew
push edi
mov dword [esp + 0x58], eax
call sub.MFC42.DLL_operatornew
push edi
mov dword [esp + 0x58], eax
call sub.MFC42.DLL_operatornew
add esp, 0xc
cmp esi, 1
mov dword [esp + 0x48], eax
jl 0x4a9ddd
mov edx, dword [esp + 0x58]
lea eax, [ebx - 2]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], esi
lea ecx, [eax*8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x50]
lea eax, [ebx - 2]
mov dword [ecx], 0
cmp eax, 1
mov dword [ecx + 4], 0
jl 0x4a9cd8
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
fld qword [edi]
fmul qword [edx]
add edx, 8
add edi, 8
dec eax
fadd qword [ecx]
fstp qword [ecx]
jne 0x4a9cc7
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
add edi, eax
mov eax, dword [esp + 0x24]
add ecx, 8
dec eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
jne 0x4a9caa
cmp esi, 1
jl 0x4a9ddd
mov edx, dword [esp + 0x58]
lea eax, [ebx - 2]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], esi
lea ecx, [eax*8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x4c]
lea eax, [ebx - 2]
mov dword [ecx], 0
cmp eax, 1
mov dword [ecx + 4], 0
jl 0x4a9d4d
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
fld qword [edx]
fmul qword [edi]
add edx, 8
add edi, 8
dec eax
fadd qword [ecx]
fstp qword [ecx]
jne 0x4a9d3c
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
add edi, eax
mov eax, dword [esp + 0x24]
add ecx, 8
dec eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
jne 0x4a9d1f
cmp esi, 1
jl 0x4a9ddd
mov edx, dword [esp + 0x58]
lea eax, [ebx - 2]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], esi
lea ecx, [eax*8]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
lea edi, [ebx - 2]
mov dword [eax], 0
cmp edi, 1
mov dword [eax + 4], 0
jl 0x4a9dc1
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x2c]
fld qword [ecx]
fmul qword [edx]
add ecx, 8
add edx, 8
dec edi
fadd qword [eax]
fstp qword [eax]
jne 0x4a9db0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
add edi, ecx
mov ecx, dword [esp + 0x24]
add eax, 8
dec ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ecx
jne 0x4a9d90
mov edi, dword [esp + 0x14]
push edi
call sub.MFC42.DLL_operatornew
push edi
mov dword [esp + 0x64], eax
call sub.MFC42.DLL_operatornew
push edi
mov dword [esp + 0x60], eax
call sub.MFC42.DLL_operatornew
mov edi, esi
mov dword [esp + 0x38], eax
imul edi, esi
shl edi, 3
push edi
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
lea eax, [esi*8]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x20], eax
test esi, esi
jle 0x4a9e9c
mov ecx, eax
mov eax, dword [esp + 0x50]
sub eax, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
jmp 0x4a9e45
mov eax, dword [esp + 0x10]
mov edx, dword [eax + ecx]
mov dword [esp + 0x24], esi
mov dword [ecx], edx
mov eax, dword [eax + ecx + 4]
mov edx, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
sub edx, ebx
mov edi, dword [edx + eax]
mov dword [eax], edi
mov edi, dword [edx + eax + 4]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x24]
add eax, 8
dec edi
mov dword [esp + 0x24], edi
jne 0x4a9e5f
mov edx, dword [esp + 0x30]
lea eax, [esi*8]
add edx, eax
mov eax, dword [esp + 0x18]
add ecx, 8
dec eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
jne 0x4a9e41
mov edi, dword [esp + 0x14]
lea eax, [esi - 1]
xor ecx, ecx
test eax, eax
jle 0x4aa062
mov edx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], eax
jmp 0x4a9ec5
mov eax, dword [esp + 0x34]
fld qword [eax]
cmp ecx, esi
mov dword [esp + 0x3c], ecx
mov edi, ecx
jge 0x4a9f7d
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
fld st(0)
fabs
fld qword [eax]
fabs
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a9efa
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], edi
fstp st(0)
fld qword [eax]
inc edi
lea eax, [esi*8]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x38]
add edi, eax
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x10]
cmp edi, esi
jl 0x4a9ed9
mov eax, dword [esp + 0x3c]
cmp eax, ecx
fstp st(0)
je 0x4a9f7f
imul eax, esi
add eax, ecx
mov edi, esi
sub edi, ecx
lea edx, [ebx + eax*8]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], edi
mov edi, dword [edx]
add edx, 8
fld qword [eax]
mov dword [eax], edi
mov edi, dword [edx - 4]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x24]
fstp qword [edx - 8]
add eax, 8
dec edi
mov dword [esp + 0x24], edi
jne 0x4a9f36
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov edi, dword [edi + eax*8]
fld qword [edx]
mov dword [edx], edi
mov edi, dword [esp + 0x20]
mov edi, dword [edi + eax*8 + 4]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x20]
fstp qword [edi + eax*8]
jmp 0x4a9f7f
fstp st(0)
lea eax, [ecx + 1]
cmp eax, esi
jge 0x4aa025
mov edi, dword [esp + 0x40]
add edx, 8
add ecx, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], edx
lea ecx, [ebx + ecx*8]
mov dword [esp + 0x38], ecx
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp eax, esi
fld qword [ecx]
mov ecx, dword [esp + 0x34]
fdiv qword [ecx]
jge 0x4a9fe8
mov edx, dword [esp + 0x3c]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x1c]
add edx, eax
lea ecx, [ebx + ecx*8]
lea edi, [ebx + edx*8]
mov edx, esi
sub edx, eax
fld st(0)
fmul qword [edi]
add edi, 8
add ecx, 8
dec edx
fsubr qword [ecx - 8]
fstp qword [ecx - 8]
jne 0x4a9fd1
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
add edx, 8
fmul qword [ecx]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
add ecx, esi
fsubr qword [edx - 8]
mov dword [esp + 0x3c], ecx
lea ecx, [esi*8]
add edi, ecx
mov ecx, dword [esp + 0x18]
fstp qword [edx - 8]
dec ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ecx
jne 0x4a9faa
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, eax
lea eax, [esi*8 + 8]
add edx, 8
add edi, eax
mov eax, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
lea eax, [esi - 1]
add edi, esi
cmp ecx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edx
jl 0x4a9ec1
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
fld qword [edx + esi*8 - 8]
fdiv qword [edi + ebx - 8]
fstp qword [eax + esi*8 - 8]
lea eax, [esi - 2]
cmp eax, 0xffffffff
jle 0x4aa132
mov edx, eax
mov edi, dword [esp + 0x20]
imul edx, esi
lea ecx, [eax + 1]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
mov ecx, esi
neg ecx
sub edi, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], edi
lea ecx, [ecx + eax*8]
mov edi, dword [esp + 0x30]
fld qword [0x4e00c0]
cmp edi, esi
jge 0x4aa0fa
lea edi, [ecx + 8]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x30]
add edx, edi
lea edx, [ebx + edx*8]
mov dword [esp + 0x14], edx
mov edx, esi
sub edx, edi
mov edi, dword [esp + 0x1c]
fld qword [edi]
mov edi, dword [esp + 0x14]
fmul qword [edi]
add edi, 8
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
add edi, 8
dec edx
faddp st(1)
mov dword [esp + 0x1c], edi
jne 0x4aa0d3
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
sub ecx, 8
fld qword [edi + ecx + 8]
lea edi, [esi + 1]
imul edi, eax
fsub st(1)
fdiv qword [ebx + edi*8]
mov edi, dword [esp + 0x30]
dec eax
dec edi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x18]
add edx, edi
cmp eax, 0xffffffff
mov dword [esp + 0x24], edx
fstp qword [ecx + 8]
fstp st(0)
jg 0x4aa0ad
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
mov edi, esi
imul edi, esi
shl edi, 3
push edi
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
lea eax, [esi*8]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov edx, eax
test esi, esi
mov dword [esp + 0x20], edx
jle 0x4aa1e3
mov edi, dword [esp + 0x4c]
mov eax, ebx
sub edi, edx
mov ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
jmp 0x4aa18c
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + ecx]
mov dword [esp + 0x14], esi
mov dword [ecx], edx
mov edx, dword [edi + ecx + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x64]
sub edx, ebx
mov edi, dword [edx + eax]
mov dword [eax], edi
mov edi, dword [edx + eax + 4]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x14]
add eax, 8
dec edi
mov dword [esp + 0x14], edi
jne 0x4aa1a2
mov eax, dword [esp + 0x24]
lea edx, [esi*8]
add eax, edx
mov edx, dword [esp + 0x18]
add ecx, 8
dec edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
jne 0x4aa188
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea eax, [esi - 1]
xor ecx, ecx
test eax, eax
jle 0x4aa3aa
mov eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], eax
jmp 0x4aa208
mov eax, dword [esp + 0x34]
fld qword [eax]
cmp ecx, esi
mov dword [esp + 0x1c], ecx
mov edi, ecx
jge 0x4aa2c0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
fld st(0)
fabs
fld qword [eax]
fabs
fcompp
fnstsw ax
test ah, 0x41
jne 0x4aa23d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
fstp st(0)
fld qword [eax]
inc edi
lea eax, [esi*8]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
add edi, eax
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x14]
cmp edi, esi
jl 0x4aa21c
mov eax, dword [esp + 0x1c]
cmp eax, ecx
fstp st(0)
je 0x4aa2c2
imul eax, esi
add eax, ecx
mov edi, esi
sub edi, ecx
lea edx, [ebx + eax*8]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov edi, dword [edx]
add edx, 8
fld qword [eax]
mov dword [eax], edi
mov edi, dword [edx - 4]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x14]
fstp qword [edx - 8]
add eax, 8
dec edi
mov dword [esp + 0x14], edi
jne 0x4aa279
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [edi + eax*8]
fld qword [edx]
mov dword [edx], edi
mov edi, dword [esp + 0x20]
mov edi, dword [edi + eax*8 + 4]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x20]
fstp qword [edi + eax*8]
jmp 0x4aa2c2
fstp st(0)
lea eax, [ecx + 1]
cmp eax, esi
jge 0x4aa369
mov edi, dword [esp + 0x38]
mov dword [esp + 0x1c], edi
lea edi, [edx + 8]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x38]
add ecx, edi
lea ecx, [ebx + ecx*8]
mov dword [esp + 0x40], ecx
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
cmp eax, esi
fld qword [ecx]
mov ecx, dword [esp + 0x34]
fdiv qword [ecx]
jge 0x4aa32e
mov edx, dword [esp + 0x1c]
add edx, eax
lea ecx, [ebx + edx*8]
mov edx, dword [esp + 0x18]
add edx, eax
lea edi, [ebx + edx*8]
mov edx, esi
sub edx, eax
fld st(0)
fmul qword [edi]
add edi, 8
add ecx, 8
dec edx
fsubr qword [ecx - 8]
fstp qword [ecx - 8]
jne 0x4aa317
mov edx, dword [esp + 0x24]
fmul qword [edx]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
fsubr qword [ecx]
fstp qword [ecx]
mov ecx, dword [esp + 0x1c]
add ecx, esi
mov dword [esp + 0x1c], ecx
lea ecx, [esi*8]
add edi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x3c]
add edi, 8
dec ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], ecx
jne 0x4aa2f1
mov edi, dword [esp + 0x34]
mov ecx, eax
lea eax, [esi*8 + 8]
add edx, 8
add edi, eax
mov eax, dword [esp + 0x38]
add eax, esi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esi - 1]
add edi, esi
cmp ecx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jl 0x4aa204
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
fld qword [edx + esi*8 - 8]
fdiv qword [edi + ebx - 8]
mov eax, dword [esp + 0x54]
fstp qword [eax + esi*8 - 8]
lea eax, [esi - 2]
cmp eax, 0xffffffff
jle 0x4aa478
mov ecx, eax
mov edx, dword [esp + 0x54]
imul ecx, esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
lea ecx, [eax + 1]
mov dword [esp + 0x1c], ecx
mov ecx, esi
neg ecx
sub edi, edx
mov dword [esp + 0x14], ecx
lea ecx, [edx + eax*8]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
fld qword [0x4e00c0]
cmp edi, esi
jge 0x4aa440
lea edx, [ecx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
add edx, edi
lea edx, [ebx + edx*8]
mov dword [esp + 0x24], edx
mov edx, esi
sub edx, edi
mov edi, dword [esp + 0x24]
fld qword [edi]
mov edi, dword [esp + 0x18]
fmul qword [edi]
mov edi, dword [esp + 0x24]
add edi, 8
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x18]
add edi, 8
dec edx
faddp st(1)
mov dword [esp + 0x18], edi
jne 0x4aa415
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
sub ecx, 8
fld qword [edx + ecx + 8]
lea edx, [esi + 1]
imul edx, eax
fsub st(1)
fdiv qword [ebx + edx*8]
mov edx, dword [esp + 0x14]
dec eax
dec edi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x40]
add edi, edx
cmp eax, 0xffffffff
mov dword [esp + 0x40], edi
fstp qword [ecx + 8]
fstp st(0)
jg 0x4aa3ef
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, esi
imul eax, esi
shl eax, 3
push eax
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x2c], eax
lea eax, [esi*8]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov edi, eax
test esi, esi
mov dword [esp + 0x30], edi
jle 0x4aa52d
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x20]