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

Disassembly:
push ebx
push esi
sub esp, 0x38
mov ebx, dword [esp + 0x6c]
fld dword [esp + 0x7c]
fld dword [esp + 0x50]
fld dword [esp + 0x44]
fldz
fld st(3)
fsin
fnstsw ax
mov dword [0x8f5fb0], 0
test eax, 0x400
je 0x51da15
call fcn.005a0cb0
fsin
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp st(1)
fld st(3)
fcos
fnstsw ax
test eax, 0x400
je 0x51da33
call fcn.005a0cb0
fcos
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp st(4)
fld st(3)
fchs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub st(1)
fstp dword [esp + 0x2c]
fld st(2)
fmul dword [esp + 0x2c]
fadd st(2)
fstp dword [esp + 0x20]
fld dword [esp + 0x10]
fadd st(1)
fstp dword [esp + 0x1c]
fld st(2)
fmul dword [esp + 0x1c]
fadd st(2)
fstp dword [esp + 0x24]
fld st(3)
fadd st(1)
fstp dword [esp + 0x28]
fld st(2)
fmul dword [esp + 0x28]
fadd st(2)
fstp dword [esp + 0x18]
fld st(3)
fsub st(1)
fstp dword [esp + 0x14]
fld st(2)
fmul dword [esp + 0x14]
fadd st(2)
fstp st(4)
fld dword [esp + 0x54]
fmul dword [esp + 0x1c]
fadd dword [esp + 0x48]
fstp st(3)
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
fadd dword [esp + 0x48]
fstp st(2)
fld dword [esp + 0x54]
fmul dword [esp + 0x14]
fadd dword [esp + 0x48]
fstp st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x48]
fstp dword [esp + 0xc]
fld dword [esp + 0x20]
fcomp dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db30
fld dword [esp + 0x24]
fcomp dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db30
fld dword [esp + 0x18]
fcomp dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db30
fld st(3)
fcomp dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db30
fcompp
fcompp
add esp, 0x38
pop esi
pop ebx
ret
fld st(2)
fcomp dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db82
fld st(1)
fcomp dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db82
fcom dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db82
fld dword [esp + 0xc]
fcomp dword [0x5ff288]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51db82
fcompp
fcompp
add esp, 0x38
pop esi
pop ebx
ret
mov ecx, dword [0x8f436c]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fcomp dword [esp + 0x20]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dbe8
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fcomp dword [esp + 0x24]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dbe8
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fcomp dword [esp + 0x18]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dbe8
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fcomp st(4)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dbe8
fcompp
fcompp
add esp, 0x38
pop esi
pop ebx
ret
mov edx, dword [0x8f4370]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fcomp st(3)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dc50
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fcomp st(2)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dc50
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fcomp st(1)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dc50
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fcomp dword [esp + 0xc]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dc50
fcompp
fcompp
add esp, 0x38
pop esi
pop ebx
ret
mov esi, dword [0x649a80]
imul esi, esi, 0xa8
fld dword [esp + 0x20]
add esi, 0x649a84
fstp dword [esi]
fld dword [esp + 0x24]
fstp dword [esi + 0x1c]
fld dword [esp + 0x18]
fstp dword [esi + 0x38]
fld st(3)
fstp dword [esi + 0x54]
fld dword [esp + 0x20]
fstp dword [esi + 0x70]
fld dword [esp + 0x18]
fstp dword [esi + 0x8c]
fld st(2)
fstp dword [esi + 4]
fld st(1)
fstp dword [esi + 0x20]
fst dword [esi + 0x3c]
fld dword [esp + 0xc]
fstp dword [esi + 0x58]
fld st(2)
fstp dword [esi + 0x74]
fst dword [esi + 0x90]
fld dword [0x9434f0]
fsub dword [0x8e2dc4]
mov eax, esi
fmul dword [esp + 0x4c]
fld dword [esp + 0x4c]
fsub dword [0x8e2dc4]
fld dword [0x8f2c94]
fsub dword [0x8f1abc]
fmulp st(1)
fmul dword [0x9434f0]
fdivrp st(1)
fadd dword [0x8f1abc]
fstp st(4)
fld st(3)
fstp dword [eax + 8]
fld dword [esp + 0x78]
fstp dword [eax + 0xc]
fld st(3)
lea eax, [esi + 0x1c]
fstp dword [eax + 8]
fld dword [esp + 0x78]
fstp dword [eax + 0xc]
fld st(3)
lea eax, [esi + 0x38]
fstp dword [eax + 8]
fld dword [esp + 0x78]
fstp dword [eax + 0xc]
fld st(3)
lea eax, [esi + 0x54]
fstp dword [eax + 8]
fld dword [esp + 0x78]
fstp dword [eax + 0xc]
fld st(3)
lea eax, [esi + 0x70]
fstp dword [eax + 8]
fld dword [esp + 0x78]
fstp dword [eax + 0xc]
fld st(3)
lea eax, [esi + 0x8c]
fstp dword [eax + 8]
fld dword [esp + 0x78]
fstp dword [eax + 0xc]
fld dword [esp + 0x74]
fmul dword [esp + 0x1c]
fld dword [esp + 0x70]
fmul dword [esp + 0x2c]
faddp st(1)
fmul dword [0x5ff290]
fadd dword [0x5ff290]
fstp st(4)
fld st(3)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51dd72
fld st(3)
jmp 0x51dd78
fld dword [0x5ff288]
fstp st(3)
fld dword [0x5ff27c]
fcomp st(3)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51dd94
fld dword [0x5ff27c]
jmp 0x51ddb1
fld st(3)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51dda7
fld st(3)
jmp 0x51ddad
fld dword [0x5ff288]
fstp st(4)
fld st(3)
fstp st(3)
mov al, byte [esp + 0x64]
and eax, 0xff
fld dword [0x5ff27c]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x58]
fsub st(3)
fstp st(4)
fild dword [esp + 0x30]
and eax, 0xff
mov dword [esp + 0x30], eax
fmul st(4)
fild dword [esp + 0x30]
fmul st(4)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx ecx, al
movzx eax, byte [esp + 0x80]
fldcw word [esp + 8]
shl ecx, 0x10
mov dword [esp + 4], eax
mov al, byte [esp + 0x68]
and eax, 0xff
shl dword [esp + 4], 0x18
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x5c]
fild dword [esp + 0x30]
and eax, 0xff
or ecx, dword [esp + 4]
mov dword [esp + 0x30], eax
fmul st(4)
fild dword [esp + 0x30]
fmul st(4)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx edx, al
mov al, bl
and eax, 0xff
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x60]
fldcw word [esp + 8]
fild dword [esp + 0x30]
and eax, 0xff
shl edx, 8
mov dword [esp + 0x30], eax
or ecx, edx
fmul st(4)
fild dword [esp + 0x30]
fmul st(4)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
fistp dword [esp + 0x30]
mov edx, dword [esp + 0x30]
mov dword [esp + 8], eax
movzx eax, dl
fldcw word [esp + 8]
or ecx, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x80], ecx
fld dword [esp + 0x74]
fmul dword [esp + 0x28]
fld dword [esp + 0x70]
fmul dword [esp + 0x1c]
faddp st(1)
fmul dword [0x5ff290]
fadd dword [0x5ff290]
fstp st(3)
fld st(2)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51df00
fld st(2)
jmp 0x51df06
fld dword [0x5ff288]
fstp st(4)
fld dword [0x5ff27c]
fcomp st(4)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51df22
fld dword [0x5ff27c]
jmp 0x51df3f
fld st(2)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51df35
fld st(2)
jmp 0x51df3b
fld dword [0x5ff288]
fstp st(4)
fld st(3)
fstp st(4)
mov al, byte [esp + 0x64]
and eax, 0xff
fld dword [0x5ff27c]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x58]
fsub st(4)
fstp st(3)
fild dword [esp + 0x30]
and eax, 0xff
mov dword [esp + 0x30], eax
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx edx, al
mov al, byte [esp + 0x68]
and eax, 0xff
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x5c]
fldcw word [esp + 8]
fild dword [esp + 0x30]
and eax, 0xff
shl edx, 0x10
mov dword [esp + 0x30], eax
or edx, dword [esp + 4]
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx ecx, al
mov al, bl
and eax, 0xff
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x60]
fldcw word [esp + 8]
fild dword [esp + 0x30]
and eax, 0xff
shl ecx, 8
mov dword [esp + 0x30], eax
or edx, ecx
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
fistp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], eax
movzx eax, cl
fldcw word [esp + 8]
or edx, eax
mov dword [esi + 0x2c], edx
fld dword [esp + 0x74]
fmul dword [esp + 0x14]
fld dword [esp + 0x70]
fmul dword [esp + 0x28]
faddp st(1)
fmul dword [0x5ff290]
fadd dword [0x5ff290]
fstp st(3)
fld st(2)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51e071
fld st(2)
jmp 0x51e077
fld dword [0x5ff288]
fstp st(4)
fld dword [0x5ff27c]
fcomp st(4)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51e093
fld dword [0x5ff27c]
jmp 0x51e0b0
fld st(2)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51e0a6
fld st(2)
jmp 0x51e0ac
fld dword [0x5ff288]
fstp st(4)
fld st(3)
fstp st(4)
mov al, byte [esp + 0x64]
and eax, 0xff
fld dword [0x5ff27c]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x58]
fsub st(4)
fstp st(3)
fild dword [esp + 0x30]
and eax, 0xff
mov dword [esp + 0x30], eax
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx edx, al
mov al, byte [esp + 0x68]
and eax, 0xff
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x5c]
fldcw word [esp + 8]
fild dword [esp + 0x30]
and eax, 0xff
shl edx, 0x10
mov dword [esp + 0x30], eax
or edx, dword [esp + 4]
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx ecx, al
mov al, bl
and eax, 0xff
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x60]
fldcw word [esp + 8]
fild dword [esp + 0x30]
and eax, 0xff
shl ecx, 8
mov dword [esp + 0x30], eax
or edx, ecx
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
fistp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], eax
movzx eax, cl
fldcw word [esp + 8]
or edx, eax
mov dword [esi + 0x48], edx
mov dword [esi + 0x9c], edx
fld dword [esp + 0x74]
fmul dword [esp + 0x2c]
fld dword [esp + 0x70]
fmul dword [esp + 0x14]
faddp st(1)
fmul dword [0x5ff290]
fadd dword [0x5ff290]
fstp st(3)
fld st(2)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51e1e8
fld st(2)
jmp 0x51e1ee
fld dword [0x5ff288]
fstp st(4)
fld dword [0x5ff27c]
fcomp st(4)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x51e210
fld dword [0x5ff27c]
jmp 0x51e22d
fld st(2)
fcomp dword [0x5ff288]
fnstsw ax
test ah, 0x45
jne 0x51e223
fld st(2)
jmp 0x51e229
fld dword [0x5ff288]
fstp st(4)
fld st(3)
fstp st(4)
mov al, byte [esp + 0x64]
and eax, 0xff
fld dword [0x5ff27c]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x58]
fsub st(4)
fstp st(3)
fild dword [esp + 0x30]
and eax, 0xff
mov dword [esp + 0x30], eax
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx ecx, al
mov al, byte [esp + 0x68]
and eax, 0xff
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x5c]
fldcw word [esp + 8]
fild dword [esp + 0x30]
and eax, 0xff
shl ecx, 0x10
mov dword [esp + 0x30], eax
or ecx, dword [esp + 4]
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx edx, al
mov al, bl
and eax, 0xff
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x60]
fldcw word [esp + 8]
fild dword [esp + 0x30]
and eax, 0xff
shl edx, 8
mov dword [esp + 0x30], eax
or ecx, edx
fmul st(3)
fild dword [esp + 0x30]
fmul st(5)
faddp st(1)
fnstcw word [esp + 8]
mov eax, dword [esp + 8]
or byte [esp + 9], 0xc
fldcw word [esp + 8]
mov dword [esp + 8], eax
fistp dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fldcw word [esp + 8]
movzx eax, dl
or ecx, eax
mov dword [esi + 0x64], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0x3f800000
mov dword [esi + 0x4c], 0x3f800000
mov dword [esi + 0x50], 0x3f800000
mov dword [esi + 0x68], 0x3f800000
mov dword [esi + 0x6c], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0xa0], 0x3f800000
mov dword [esi + 0xa4], 0x3f800000
inc dword [0x649a80]
cmp dword [0x649a80], 0x40
jl 0x51e3b0
fcompp
fcompp
call fcn.0051c520
add esp, 0x38
pop esi
pop ebx
ret
fcompp
fcompp
jmp 0x51e3a4