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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1064
call fcn.0043da10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov ebx, dword [esi + 0x238]
mov eax, dword [esi + 0x23c]
mov dword [esp + 0x44], ebx
fild dword [esp + 0x44]
sar eax, 1
mov dword [esp + 0x1c], eax
fst qword [esp + 0x20]
fldln2
fxch st(1)
fyl2x
fstp qword [esp + 0x30]
fldln2
fld qword [0x49c420]
fyl2x
fstp qword [esp + 0x28]
fld qword [0x49c420]
fsqrt
fld qword [esp + 0x30]
fdiv qword [esp + 0x28]
fsubr qword [0x49c418]
call fcn.0043dff0
fld qword [esp + 0x20]
fadd st(0), st(0)
xor edx, edx
test ebx, ebx
fsqrt
mov dword [esp + 0xc], edx
fdiv qword [esp + 0x20]
fmulp st(1)
fstp qword [esp + 0x68]
jle 0x411784
mov esi, dword [esi + 0x1258]
mov ecx, ebx
fild dword [esp + 0x1c]
and ecx, 0x1fffffff
dec esi
shl ecx, 1
xor eax, eax
lea edi, [esp + 0x870]
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
fild dword [esp + 0x14]
cmp eax, 3
fmul qword [0x49c410]
fdiv st(1)
fst qword [esp + edx*8 + 0x70]
ja case.default.0x411747
jmp dword [eax*4 + 0x411aa4]
fild dword [esp + 0xc]
fmul qword [0x49c408]
fdiv qword [esp + 0x20]
fcos
fmul qword [0x49c400]
fsubr qword [0x49c400]
fmul st(1)
fstp qword [esp + edx*8 + 0x70]
fstp st(0)
inc edx
add esi, 4
cmp edx, ebx
mov dword [esp + 0xc], edx
jl 0x411721
mov esi, dword [esp + 0x18]
fstp st(0)
fld qword [esp + 0x30]
fdiv qword [esp + 0x28]
call fcn.0043dcc4
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, ebx
sub eax, edx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fabs
fcomp qword [0x49c3f8]
fnstsw ax
test ah, 0x41
jne 0x41182a
mov dword [esi + 0x250], 0x6d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fild dword [esp + 0xc]
fmul qword [0x49c408]
fdiv qword [esp + 0x20]
fcos
fmul qword [0x49c3f0]
fsubr qword [0x49c3e8]
jmp 0x41176a
fild dword [esp + 0xc]
fld st(0)
fmul qword [0x49c408]
fdiv qword [esp + 0x20]
fcos
fmul qword [0x49c400]
fsubr qword [0x49c3e0]
fxch st(1)
fmul qword [0x49c3d8]
fdiv qword [esp + 0x20]
fcos
fmul qword [0x49c3d0]
faddp st(1)
jmp 0x41176a
fstp qword [esp + edx*8 + 0x70]
jmp 0x411772
test ecx, ecx
mov eax, ebx
jle 0x411984
mov dword [esp + 0x14], ecx
mov esi, eax
xor ecx, ecx
cdq
sub eax, edx
mov dword [esp + 0x20], esi
sar eax, 1
mov dword [esp + 0x10], eax
cmp eax, ecx
fild dword [esp + 0x10]
mov dword [esp + 0xc], ecx
fdivr qword [0x49c3c8]
fstp qword [esp + 0x60]
jle 0x411971
lea edx, [esi*8]
mov dword [esp + 0x10], ecx
fild dword [esp + 0xc]
sub ecx, edx
cmp esi, ebx
mov dword [esp + 0x1c], esi
fmul qword [esp + 0x60]
fld st(0)
fcos
fstp qword [esp + 0x58]
fsin
fmul qword [0x49c3c0]
fstp qword [esp + 0x48]
jg 0x411955
add ecx, edx
fld qword [esp + ecx + 0x70]
lea edx, [ecx + eax*8]
mov edi, dword [esp + ecx + 0x874]
mov dword [esp + 0x34], edi
fld qword [esp + edx + 0x70]
lea esi, [esp + edx + 0x70]
mov edx, dword [esp + ecx + 0x870]
mov dword [esp + 0x30], edx
lea edx, [ecx + eax*8]
fld st(1)
mov edi, dword [esp + edx + 0x870]
mov ebx, dword [esp + edx + 0x874]
fsub st(1)
lea edx, [esp + edx + 0x870]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
fstp qword [esp + 0x50]
fld qword [esp + 0x30]
fsub qword [esp + 0x28]
fstp qword [esp + 0x38]
fadd st(1)
fstp qword [esp + ecx + 0x70]
fstp st(0)
fld qword [esp + 0x28]
fadd qword [esp + 0x30]
fstp qword [esp + ecx + 0x870]
fld qword [esp + 0x50]
fmul qword [esp + 0x58]
fld qword [esp + 0x38]
fmul qword [esp + 0x48]
fsubp st(1)
fstp qword [esi]
fld qword [esp + 0x50]
fmul qword [esp + 0x48]
fld qword [esp + 0x38]
fmul qword [esp + 0x58]
mov esi, dword [esp + 0x20]
add edi, esi
faddp st(1)
mov dword [esp + 0x1c], edi
fstp qword [edx]
lea edx, [esi*8]
add ecx, edx
cmp edi, ebx
jle 0x41189a
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc edi
add ecx, 8
cmp edi, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
jl 0x41186e
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
jne 0x411838
mov esi, dword [esp + 0x18]
mov eax, ebx
mov ecx, 1
cdq
sub eax, edx
mov edx, eax
lea eax, [ebx - 1]
sar edx, 1
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov ebx, ecx
jl 0x411a38
xor edi, edi
cmp ebx, ecx
jge 0x411a11
mov eax, dword [esp + ecx*8 + 0x868]
mov edx, dword [esp + ecx*8 + 0x86c]
fld qword [esp + ecx*8 + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [esp + edi + 0x70]
mov dword [esp + 0x3c], edx
mov dword [esp + ecx*8 + 0x68], eax
mov edx, dword [esp + edi + 0x74]
mov eax, dword [esp + edi + 0x870]
mov dword [esp + ecx*8 + 0x6c], edx
mov dword [esp + ecx*8 + 0x868], eax
mov edx, dword [esp + edi + 0x874]
mov eax, dword [esp + 0x38]
fstp qword [esp + edi + 0x70]
mov dword [esp + ecx*8 + 0x86c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + edi + 0x870], eax
mov dword [esp + edi + 0x874], edx
mov edx, dword [esp + 0x18]
cmp edx, ecx
mov eax, edx
jge 0x411a26
sub ecx, eax
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jl 0x411a17
mov edx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x20]
inc ebx
add edi, 8
cmp ebx, eax
jle 0x4119a9
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov edx, 1
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov eax, dword [esi + 0x238]
and al, 0xfe
cmp eax, 2
jle 0x411a8e
add ecx, 8
xor eax, eax
fld qword [esp + eax + 0x878]
fld qword [esp + eax + 0x78]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
inc edx
add eax, 8
faddp st(1)
add ecx, 8
fsqrt
fmul qword [esp + 0x68]
fstp qword [ecx - 8]
mov ebx, dword [esi + 0x238]
sar ebx, 1
fstp st(0)
cmp edx, ebx
fstp st(0)
jl 0x411a59
mov dword [esi + 0x250], edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8