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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
mov ebx, dword [ebp + 0x10]
push esi
cmp ebx, 2
push edi
mov dword [esp + 0x14], 0
jg 0x4cecc9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x98]
lea ecx, [esp + 0x88]
mov esi, dword [ebp + 0xc]
push eax
lea edx, [esp + 0x5c]
mov edi, dword [ebp + 8]
push ecx
lea eax, [esp + 0x80]
push edx
lea ecx, [esp + 0x7c]
push eax
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0xac]
push ecx
push edx
push esi
push edi
call fcn.004cf110
add esp, 0x2c
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4cf01a
dec ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x18]
fild dword [esp + 0x20]
mov edi, dword [ebx + 8]
push 0xffffffffffffffff
shl esi, 4
fdivr qword [0x4f6830]
mov ecx, dword [esi + eax - 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, ebx
mov edx, dword [esi + eax - 0xc]
lea eax, [edi + 1]
push eax
mov dword [esp + 0x24], edx
fstp qword [esp + 0x48]
call fcn.00425190
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [ecx + edi*8], edx
mov edx, dword [ebp + 8]
fld qword [esp + 0x40]
mov dword [ecx + edi*8 + 4], eax
mov ecx, dword [ebp + 0x14]
fst qword [esp + 0x20]
mov dword [ecx], 1
mov eax, dword [edx + 4]
mov edx, dword [ebp + 0x10]
mov edi, dword [esi + eax - 0x10]
mov ecx, dword [esi + eax - 0xc]
lea eax, [edx - 2]
test eax, eax
mov dword [esp + 0x4c], ecx
jle 0x4ceeba
mov dword [esp + 0x10], eax
fld st(0)
fmul qword [esp + 0x90]
lea eax, [esp + 0x38]
push eax
fadd qword [esp + 0x84]
fmul st(1)
fadd qword [esp + 0x74]
fmul st(1)
fadd qword [esp + 0x5c]
fstp qword [esp + 0x54]
mov eax, dword [esp + 0x58]
fld st(0)
fmul qword [esp + 0x64]
fadd qword [esp + 0x6c]
fmul st(1)
fadd qword [esp + 0x7c]
fmul st(1)
fadd qword [esp + 0x8c]
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
push ecx
fstp st(0)
call fcn.004cea30
mov ecx, dword [esp + 0x28]
add esp, 0x14
add ecx, eax
mov eax, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4cee34
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x4cee76
mov edi, dword [ebx + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
push 0xffffffffffffffff
lea eax, [edi + 1]
mov ecx, ebx
push eax
mov dword [esp + 0x24], edx
call fcn.00425190
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [ecx + edi*8], edx
mov dword [ecx + edi*8 + 4], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x38]
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
fld qword [esp + 0x20]
fadd qword [esp + 0x40]
fcom qword [0x4f6830]
fst qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4cee9b
fstp st(0)
fld qword [0x4f6830]
fst qword [esp + 0x20]
mov eax, dword [esp + 0x14]
test eax, eax
jge 0x4ceeab
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x4ceda4
mov edx, dword [ebp + 8]
fstp st(0)
add esi, dword [edx + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 8]
mov edi, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], edi
lea esi, [edi + 1]
test esi, esi
jne 0x4cef03
test eax, eax
je 0x4ceef6
push eax
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 0x4ceff0
test eax, eax
jne 0x4cef2c
lea edx, [esi*8]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00425400
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x4ceff0
cmp esi, dword [ebx + 0xc]
jg 0x4cef4b
cmp esi, ecx
jle 0x4cef43
mov edx, esi
lea eax, [eax + ecx*8]
sub edx, ecx
push edx
push eax
call fcn.00425400
mov dword [ebx + 8], esi
jmp 0x4ceff0
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4cef75
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4cef69
mov eax, 4
jmp 0x4cef75
cmp eax, 0x400
jle 0x4cef75
mov eax, 0x400
mov ecx, dword [ebx + 0xc]
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x4cef86
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
lea edx, [ecx*8]
push edx
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 + 0x24]
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 + 0x18], eax
sub edx, ecx
lea eax, [eax + ecx*8]
push edx
push eax
call fcn.00425400
mov ecx, dword [ebx + 4]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
add esp, 4
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [ecx + edi*8], edx
mov dword [ecx + edi*8 + 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jge 0x4cf01a
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret