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

Disassembly:
sub esp, 0x24
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
xor eax, eax
mov ecx, 0xd
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
mov dword [esi + 0x24], eax
sub esp, 8
fild dword [edi]
mov dword [esp + 0x14], 0xffffff9d
mov dword [esp + 0x18], 1
fmul dword [0x4b195c]
fldln2
fxch st(1)
fyl2x
fldln2
fld qword [0x4a4aa8]
fyl2x
fdivp st(1)
fadd qword [0x4a4708]
fstp qword [esp]
call fcn.0044dcf7
fsub qword [0x4a4548]
call fcn.004082c0
fild dword [esp + 0x4c]
fild dword [esp + 0x48]
lea ecx, [eax + 1]
mov edx, 1
shl edx, cl
fst qword [esp + 0x28]
mov dword [esi + 0x20], eax
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fld st(2)
fmul dword [0x4b1958]
fmul qword [0x4a4708]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4b1950]
fsub qword [0x4b1948]
fmul st(1)
fisub dword [edi]
call fcn.004082c0
fild dword [esp + 0x48]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd dword [0x4b1958]
fmul st(3)
fmul qword [0x4a4708]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4b1950]
fsub qword [0x4b1948]
fmul st(1)
fadd qword [0x4a4708]
call fcn.004082c0
fstp st(0)
mov ebp, dword [esp + 0x48]
fstp st(0)
sub eax, edi
fstp st(0)
inc eax
lea edi, [ebp*4]
push edi
mov dword [esi + 0x28], eax
call fcn.0044d3a4
mov dword [esi + 0x10], eax
push edi
call fcn.0044d3a4
push edi
mov dword [esi + 0x14], eax
call fcn.0044d3a4
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x58]
add esp, 0x14
cmp eax, 0x6590
mov dword [esi], ebp
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x3f800000
jge 0x4915d4
mov dword [esi + 0x30], 0
jmp 0x4915f2
cmp eax, 0x9470
jge 0x4915e4
mov dword [esi + 0x30], 0x3f70a3d7
jmp 0x4915f2
cmp eax, 0xb3b0
jle 0x4915f2
mov dword [esi + 0x30], 0x3fa33333
fild dword [esp + 0x44]
push ebx
xor eax, eax
xor edi, edi
fstp qword [esp + 0x2c]
mov ebx, 0x4abddc
inc eax
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
sub esp, 8
fmul qword [0x4b1940]
fsub qword [0x4a4aa8]
fadd qword [0x4b1948]
fmul qword [0x4b1938]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fmul qword [esp + 0x2c]
fadd st(0), st(0)
fdiv qword [esp + 0x34]
fadd qword [0x4a4708]
fstp qword [esp]
call fcn.0044dcf7
add esp, 8
call fcn.004082c0
fld dword [ebx - 4]
cmp edi, eax
jge 0x491695
fld dword [ebx]
mov ecx, eax
sub ecx, edi
fsub st(1)
mov dword [esp + 0x40], ecx
fidiv dword [esp + 0x40]
fstp dword [esp + 0x40]
cmp edi, ebp
jge 0x491695
mov edx, dword [esi + 0x10]
fld st(0)
fadd qword [0x4b1930]
inc edi
cmp edi, eax
fstp dword [edx + edi*4 - 4]
fadd dword [esp + 0x40]
jl 0x491679
mov eax, dword [esp + 0x38]
fstp st(0)
add ebx, 4
cmp ebx, 0x4abf38
jl 0x491604
cmp edi, ebp
jge 0x4916bf
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + edi*4 - 4]
lea eax, [eax + edi*4]
inc edi
cmp edi, ebp
mov dword [eax], ecx
jl 0x4916ae
xor eax, eax
xor ebx, ebx
cmp ebp, eax
jle 0x4918a1
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
lea ecx, [ebp + ebp]
cdq
idiv ecx
mov ecx, eax
mov edx, ecx
imul edx, ecx
mov eax, dword [esp + 0x38]
fild dword [esp + 0x40]
imul eax, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x78]
fild dword [esp + 0x48]
mov edi, dword [esp + 0x10]
add eax, edi
cmp eax, ebx
fmul dword [0x4b1928]
fld1
fpatan
fmul qword [0x4b1920]
fld st(1)
fmul dword [0x4b1918]
fld1
fpatan
fmul qword [0x4b1910]
faddp st(1)
fxch st(1)
fmul dword [0x4b190c]
faddp st(1)
fstp dword [esp + 0x1c]
jge 0x4917cf
mov edi, dword [esp + 0x3c]
fld dword [esp + 0x1c]
fsub dword [edi + 0x70]
mov ebp, ecx
imul ebp, dword [esp + 0x10]
fstp dword [esp + 0x20]
mov edi, edx
imul edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ebp
fild dword [esp + 0x48]
mov eax, edi
imul eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fmul dword [0x4b1928]
fld1
fpatan
fmul qword [0x4b1920]
fld st(1)
fmul dword [0x4b1918]
fld1
fpatan
fmul qword [0x4b1910]
faddp st(1)
fxch st(1)
fmul dword [0x4b190c]
faddp st(1)
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4917cb
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ebp, ecx
add edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x18], eax
jl 0x491764
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jg 0x491870
mov edi, dword [esp + 0x3c]
mov edi, dword [edi + 0x7c]
add edi, ebx
mov dword [esp + 0x20], edi
mov edi, ecx
imul edi, eax
mov dword [esp + 0x48], edi
mov edi, edx
imul edi, eax
cmp eax, dword [esp + 0x20]
jl 0x491857
fild dword [esp + 0x48]
mov ebp, edi
imul ebp, eax
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x18]
fmul dword [0x4b1928]
fld1
fpatan
fmul qword [0x4b1920]
fld st(1)
fmul dword [0x4b1918]
fld1
fpatan
fmul qword [0x4b1910]
faddp st(1)
fxch st(1)
fmul dword [0x4b190c]
faddp st(1)
fld dword [esp + 0x1c]
fadd dword [eax + 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4919ac
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x48]
add ebp, ecx
inc eax
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x44]
add edi, edx
cmp eax, ebp
mov dword [esp + 0x14], eax
jle 0x4917f6
mov edi, dword [esp + 0x10]
shl edi, 0x10
lea eax, [edi + eax - 0x10001]
mov edi, dword [esi + 0x18]
mov dword [edi + ebx*4], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
inc ebx
add eax, edx
add edi, ecx
cmp ebx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edi
jl 0x4916e5
xor edi, edi
test ebp, ebp
mov dword [esp + 0x44], edi
pop ebx
jle 0x491905
fild dword [esp + 0x40]
mov ecx, dword [esi + 0x20]
inc ecx
mov edx, 1
fadd dword [0x4b1958]
shl edx, cl
fmul qword [esp + 0x28]
mov dword [esp + 0x40], edx
fmul qword [0x4a4708]
fdiv qword [esp + 0x20]
fldln2
fxch st(1)
fyl2x
fmul qword [0x4b1950]
fsub qword [0x4b1948]
fild dword [esp + 0x40]
fmulp st(1)
fadd qword [0x4a4708]
call fcn.004082c0
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebp
mov dword [esp + 0x40], edi
jl 0x4918ac
fld qword [esp + 0x28]
mov eax, dword [esp + 0x38]
fmul qword [0x4a4708]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
push edx
fdiv qword [esp + 0x24]
push ecx
push ebp
push ecx
add eax, 0x24
fstp dword [esp]
push eax
call fcn.00491a30
push 0xc
mov dword [esi + 8], eax
call fcn.0044d3a4
add esp, 0x18
mov dword [esi + 0xc], eax
xor edi, edi
lea eax, [ebp*4]
push eax
call fcn.0044d3a4
mov edx, dword [esi + 0xc]
mov dword [edi + edx], eax
add edi, 4
add esp, 4
cmp edi, 0xc
jl 0x49193f
xor edi, edi
test ebp, ebp
mov dword [esp + 0x40], edi
jle 0x491a27
fld qword [esp + 0x20]
fadd st(0), st(0)
fild dword [esp + 0x40]
fadd qword [0x4a4708]
fmul qword [esp + 0x28]
fdiv st(1)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4b1950]
fsub qword [0x4b1948]
fadd st(0), st(0)
fcom dword [0x4a46f8]
fnstsw ax
test ah, 1
je 0x4919b9
fstp st(0)
fld dword [0x4a46f8]
jmp 0x4919ce
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
jmp 0x491870
fcom dword [0x4b1908]
fnstsw ax
test ah, 1
jne 0x4919ce
fstp st(0)
fld dword [0x4b1908]
fld st(0)
call fcn.004082c0
mov dword [esp + 0x40], eax
fisub dword [esp + 0x40]
xor ecx, ecx
lea eax, [eax*4 + 0x88]
fld st(0)
fsubr qword [0x4a4548]
mov edx, dword [esi + 4]
fld dword [edx + eax - 4]
add ecx, 4
fmul st(1)
add eax, 0x44
cmp ecx, 0xc
fld st(2)
fmul dword [edx + eax - 0x44]
mov edx, dword [esi + 0xc]
mov edx, dword [ecx + edx - 4]
faddp st(1)
fstp dword [edx + edi*4]
jl 0x4919ee
inc edi
fstp st(0)
cmp edi, ebp
fstp st(0)
mov dword [esp + 0x40], edi
jl 0x491971
fstp st(0)
pop edi
pop esi
pop ebp
add esp, 0x24
ret