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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
xor eax, eax
mov ecx, 0xc
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov dword [esi + 0x24], eax
sub esp, 8
fild dword [edi]
mov dword [esp + 0x18], 0xffffff9d
mov ebp, 1
fmul dword [0x4ab2b0]
fldln2
fxch st(1)
fyl2x
fldln2
fld qword [0x4ab2a8]
fyl2x
fdivp st(1)
fadd qword [0x4a5450]
fstp qword [esp]
call fcn.004a0b85
fsub qword [0x4a5440]
call fcn.004682e4
fild dword [esp + 0x50]
fild dword [esp + 0x4c]
lea ecx, [eax + 1]
mov edx, ebp
shl edx, cl
fst qword [esp + 0x2c]
mov dword [esi + 0x20], eax
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fld st(2)
fmul dword [0x4ab2a0]
fmul qword [0x4a5450]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4ab298]
fsub qword [0x4ab290]
fmul st(1)
fisub dword [edi]
call fcn.004682e4
fild dword [esp + 0x4c]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd dword [0x4ab2a0]
fmul st(3)
fmul qword [0x4a5450]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4ab298]
fsub qword [0x4ab290]
fmul st(1)
fadd qword [0x4a5450]
call fcn.004682e4
fstp st(0)
sub eax, edi
fstp st(0)
mov edi, dword [esp + 0x4c]
fstp st(0)
inc eax
lea ebx, [edi*4]
push ebx
mov dword [esi + 0x28], eax
call fcn.00468ecd
mov dword [esi + 0x10], eax
push ebx
call fcn.00468ecd
push ebx
mov dword [esi + 0x14], eax
call fcn.00468ecd
fild dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x50]
fstp qword [esp + 0x40]
mov dword [esi + 4], eax
add esp, 0x14
xor eax, eax
mov dword [esi], edi
mov dword [esi + 0x2c], ecx
xor ebx, ebx
mov dword [esp + 0x40], 0x4ba34c
inc eax
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
sub esp, 8
fmul qword [0x4ab288]
fsub qword [0x4ab2a8]
fadd qword [0x4ab290]
fmul qword [0x4ab280]
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 [0x4a5450]
fstp qword [esp]
call fcn.004a0b85
add esp, 8
call fcn.004682e4
cmp ebx, eax
mov ecx, dword [esp + 0x40]
fld dword [ecx - 4]
jge 0x4953f1
fld dword [ecx]
mov edx, eax
sub edx, ebx
fsub st(1)
mov dword [esp + 0x40], edx
fidiv dword [esp + 0x40]
fstp dword [esp + 0x40]
cmp ebx, edi
jge 0x4953f1
mov edx, dword [esi + 0x10]
fld st(0)
fadd qword [0x4a5650]
inc ebx
cmp ebx, eax
fstp dword [edx + ebx*4 - 4]
fadd dword [esp + 0x40]
jl 0x4953d5
mov eax, dword [esp + 0x38]
fstp st(0)
add ecx, 4
cmp ecx, 0x4ba4a8
mov dword [esp + 0x40], ecx
jl 0x49535c
xor ebx, ebx
cmp edi, ebx
jle 0x4955d5
mov eax, dword [esp + 0x48]
lea ecx, [edi + edi]
cdq
idiv ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
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 [0x4ab278]
fld1
fpatan
fmul qword [0x4ab270]
fld st(1)
fmul dword [0x4ab268]
fld1
fpatan
fmul qword [0x4ab260]
faddp st(1)
fxch st(1)
fmul dword [0x4ab258]
faddp st(1)
fstp dword [esp + 0x18]
jge 0x495511
mov edi, dword [esp + 0x3c]
fld dword [esp + 0x18]
fsub dword [edi + 0x70]
mov dword [esp + 0x14], eax
mov eax, ecx
imul eax, dword [esp + 0x10]
fstp dword [esp + 0x20]
mov edi, edx
imul edi, dword [esp + 0x10]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
mov eax, edi
imul eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [0x4ab278]
fld1
fpatan
fmul qword [0x4ab270]
fld st(1)
fmul dword [0x4ab268]
fld1
fpatan
fmul qword [0x4ab260]
faddp st(1)
fxch st(1)
fmul dword [0x4ab258]
faddp st(1)
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x495511
inc dword [esp + 0x10]
add dword [esp + 0x48], ecx
mov eax, dword [esp + 0x14]
add edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x4954ac
cmp ebp, dword [esp + 0x44]
jg 0x49559e
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x7c]
add eax, ebx
mov dword [esp + 0x20], eax
mov eax, ecx
imul eax, ebp
mov edi, edx
mov dword [esp + 0x48], eax
imul edi, ebp
cmp ebp, dword [esp + 0x20]
jl 0x49558f
fild dword [esp + 0x48]
mov eax, edi
imul eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x1c]
fmul dword [0x4ab278]
fld1
fpatan
fmul qword [0x4ab270]
fld st(1)
fmul dword [0x4ab268]
fld1
fpatan
fmul qword [0x4ab260]
faddp st(1)
fxch st(1)
fmul dword [0x4ab258]
faddp st(1)
fld dword [esp + 0x18]
fadd dword [eax + 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x49559e
add dword [esp + 0x48], ecx
mov eax, dword [esp + 0x44]
inc ebp
add edi, edx
cmp ebp, eax
jle 0x495536
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x18]
shl eax, 0x10
lea eax, [eax + ebp - 0x10001]
mov dword [edi + ebx*4], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
inc ebx
add edi, ecx
cmp ebx, eax
mov dword [esp + 0x40], edi
jl 0x49542d
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [esp + 0x44], ebx
jle 0x495638
fild dword [esp + 0x44]
mov ecx, dword [esi + 0x20]
inc ecx
mov edx, 1
fadd dword [0x4ab2a0]
shl edx, cl
fmul qword [esp + 0x2c]
mov dword [esp + 0x44], edx
fmul qword [0x4a5450]
fdiv qword [esp + 0x24]
fldln2
fxch st(1)
fyl2x
fmul qword [0x4ab298]
fsub qword [0x4ab290]
fild dword [esp + 0x44]
fmulp st(1)
fadd qword [0x4a5450]
call fcn.004682e4
mov ecx, dword [esi + 0x14]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, edi
mov dword [esp + 0x44], ebx
jl 0x4955df
fld qword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
fmul qword [0x4a5450]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
push edx
fdiv qword [esp + 0x28]
push ecx
push edi
push ecx
add eax, 0x24
fstp dword [esp]
push eax
call fcn.00495760
push 0xc
mov dword [esi + 8], eax
call fcn.00468ecd
add esp, 0x18
mov dword [esi + 0xc], eax
xor ebx, ebx
lea eax, [edi*4]
push eax
call fcn.00468ecd
mov edx, dword [esi + 0xc]
mov dword [edx + ebx], eax
add ebx, 4
add esp, 4
cmp ebx, 0xc
jl 0x495672
xor ebx, ebx
test edi, edi
mov dword [esp + 0x44], ebx
jle 0x49574d
fld qword [esp + 0x24]
fadd st(0), st(0)
fild dword [esp + 0x44]
fadd qword [0x4a5450]
fmul qword [esp + 0x2c]
fdiv st(1)
fldln2
fxch st(1)
fyl2x
fmul qword [0x4ab298]
fsub qword [0x4ab290]
fadd st(0), st(0)
fcom dword [0x4a543c]
fnstsw ax
test ah, 1
je 0x4956df
fstp st(0)
fld dword [0x4a543c]
jmp 0x4956f4
fcom dword [0x4ab254]
fnstsw ax
test ah, 1
jne 0x4956f4
fstp st(0)
fld dword [0x4ab254]
fld st(0)
call fcn.004682e4
mov dword [esp + 0x44], eax
fisub dword [esp + 0x44]
xor ecx, ecx
lea eax, [eax*4 + 0x88]
fld st(0)
fsubr qword [0x4a5440]
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 [edx + ecx - 4]
faddp st(1)
fstp dword [edx + ebx*4]
jl 0x495714
inc ebx
fstp st(0)
cmp ebx, edi
fstp st(0)
mov dword [esp + 0x44], ebx
jl 0x4956a4
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret