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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51d77e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xf0]
fld qword [esi + 0x78]
fmul qword [0x531170]
lea edi, [esi + 0x60]
fadd qword [edi]
fstp qword [esi + 0x298]
fld qword [edi + 0x20]
fmul qword [0x531170]
fadd qword [edi + 8]
fstp qword [esi + 0x2a0]
call fcn.00488210
lea eax, [esp + 0xf0]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [esp + 0x14c], ebx
call fcn.00488cd0
lea ecx, [esp + 0xa0]
call fcn.00488210
mov edx, dword [esi + 0xb0]
lea ecx, [esp + 0xf0]
add edx, 0x450
push ecx
push edx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x150], 1
call fcn.0048a870
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x4dc]
call fcn.0047ab90
mov ebp, eax
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x28], ebx
fld qword [eax + 0x180]
fadd qword [eax + 0x188]
cmp dword [ebp + 8], ebx
fst qword [esp + 0x3c]
fld st(0)
fchs
fst qword [esp + 0x34]
fstp qword [esp + 0x14]
fstp qword [esp + 0x2c]
jle 0x40d046
mov ecx, dword [ebp + 4]
sub esp, 8
sub esp, 8
lea eax, [ebx + ecx]
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax]
mov edx, dword [edx + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x60], edx
mov edx, dword [eax + 4]
fld dword [esp + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x80], edx
fstp qword [esp + 8]
fld dword [esp + 0x80]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x84], eax
fstp qword [esp]
call fcn.0048aa30
mov ecx, dword [ebp + 4]
sub esp, 8
fstp qword [esp + 0x24]
lea eax, [ebx + ecx]
sub esp, 8
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x70], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax]
mov edx, dword [edx + 8]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x78], edx
mov edx, dword [eax + 4]
fld dword [esp + 0x78]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], edx
fstp qword [esp + 8]
fld dword [esp + 0x68]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x6c], eax
fstp qword [esp]
call fcn.0048aa50
fld qword [esp + 0x14]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x40cfea
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fld qword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x40cffb
fst qword [esp + 0x34]
fld qword [esp + 0x2c]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x40d01a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
fld qword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x40d02d
fstp qword [esp + 0x3c]
jmp 0x40d02f
fstp st(0)
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x40cf1c
fld qword [esp + 0x2c]
fadd qword [esp + 0x14]
lea ecx, [esp + 0x78]
fmul qword [0x531170]
fdiv qword [esi + 0x70]
fstp qword [esp + 0x14]
call fcn.00488210
fld qword [esp + 0x34]
fmul qword [0x531170]
lea edx, [esp + 0x78]
mov ecx, edi
push edx
mov byte [esp + 0x14c], 2
sub esp, 8
fstp qword [esp]
call fcn.00489200
fld qword [esp + 0x90]
fmul qword [esp + 0x14]
lea eax, [esp + 0x78]
mov ecx, edi
push eax
fadd qword [esp + 0x7c]
sub esp, 8
fstp qword [esi + 0x278]
fld qword [esp + 0xa4]
fmul qword [esp + 0x20]
fadd qword [esp + 0x8c]
fstp qword [esi + 0x280]
fld qword [esp + 0x48]
fmul qword [0x531170]
fstp qword [esp]
call fcn.00489200
fld qword [esp + 0x90]
fmul qword [esp + 0x14]
lea ecx, [esp + 0x78]
mov byte [esp + 0x148], 1
fadd qword [esp + 0x78]
fstp qword [esi + 0x288]
fld qword [esp + 0x98]
fmul qword [esp + 0x14]
fadd qword [esp + 0x80]
fstp qword [esi + 0x290]
call fcn.00519440
lea ecx, [esp + 0xa0]
mov byte [esp + 0x148], 0
call fcn.00519440
lea ecx, [esp + 0xf0]
mov dword [esp + 0x148], 0xffffffff
call fcn.00519440
mov ecx, dword [esp + 0x140]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret