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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov eax, dword [eax + 8]
add eax, 0x20
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x14]
fld dword [esp + 0x18]
fmul dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x1c]
push ebx
fmul dword [eax + 0x20]
push esi
push edi
mov dword [esp + 0xcc], ecx
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fld dword [esp + 0x24]
fmul dword [eax + 4]
fld dword [esp + 0x28]
fmul dword [eax + 0x24]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0xa4]
fld dword [esp + 0x24]
fmul dword [eax + 8]
fld dword [esp + 0x28]
fmul dword [eax + 0x28]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [esp + 0xa8]
fld dword [ecx + 0x20]
fld dword [ecx + 0x24]
fld dword [ecx + 0x28]
fld st(2)
fmul dword [eax]
fld st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0xb0]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0xb4]
fxch st(2)
fmul dword [eax + 8]
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [esp + 0xb8]
fld dword [esp + 0xb0]
fsub st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0xb4]
fsub dword [esp + 0xa4]
fstp dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
fld dword [esp + 0xb8]
fsub dword [esp + 0xa8]
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x38]
fld dword [edx + 0x10]
fsub dword [edx]
fstp dword [esp + 0x70]
fld dword [edx + 0x14]
fsub dword [edx + 4]
fstp dword [esp + 0x74]
fld dword [edx + 0x18]
fsub dword [edx + 8]
fstp dword [esp + 0x78]
fld dword [edx + 0x1c]
fsub dword [edx + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x70]
fmul dword [esp + 0x30]
fld dword [esp + 0x74]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x38]
faddp st(1)
fst dword [esp + 0x4c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x50e7c8
fld dword [esp + 0x4c]
mov eax, dword [esp + 0xa4]
fchs
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa8]
fstp dword [esp + 0x4c]
fld dword [esp + 0x30]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb4]
fchs
fstp dword [esp + 0x30]
mov dword [esp + 0xa4], eax
fld dword [esp + 0x34]
mov eax, dword [esp + 0xb8]
fchs
mov dword [esp + 0xa8], eax
fstp dword [esp + 0x34]
mov dword [esp + 0x3c], 0
fld dword [esp + 0x38]
fchs
fstp dword [esp + 0x38]
fstp dword [esp + 0x90]
mov eax, dword [esp + 0x90]
fld dword [esp + 0xb0]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xb8], eax
fld dword [edx]
fsub st(1)
fld dword [edx + 4]
fsub dword [esp + 0xa4]
fld dword [edx + 8]
fsub dword [esp + 0xa8]
fld st(2)
fmul dword [esp + 0x30]
fld st(2)
fmul dword [esp + 0x34]
faddp st(1)
fld st(1)
fmul dword [esp + 0x38]
faddp st(1)
fstp dword [esp + 0x88]
fxch st(2)
fmul dword [esp + 0x70]
fxch st(2)
fmul dword [esp + 0x78]
faddp st(2)
fmul dword [esp + 0x74]
faddp st(1)
fstp dword [esp + 0x8c]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x70]
fmul dword [esp + 0x70]
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fst dword [esp + 0x2c]
fmul dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fsub dword [esp + 0x20]
fabs
fld dword [esp + 0x2c]
fmul dword [esp + 0x88]
fld dword [esp + 0x8c]
fmul dword [esp + 0x4c]
fsubp st(1)
fst dword [esp + 0x1c]
fmul st(1)
fld st(1)
fmul st(2)
fcompp
fnstsw ax
test ah, 0x41
jnp 0x50e8ed
fld dword [esp + 0x1c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jp 0x50e8c2
fld dword [0x641de0]
mov dword [esp + 0x48], 2
jmp 0x50e8fb
fld dword [esp + 0x24]
fabs
fadd dword [esp + 0x20]
fmul dword [0x65c440]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x50e8ed
fld dword [esp + 0x1c]
mov dword [esp + 0x48], 0
fdiv st(1)
jmp 0x50e8fb
fld dword [0x6419bc]
mov dword [esp + 0x48], 1
fld dword [esp + 0x4c]
fmul st(1)
fsub dword [esp + 0x8c]
fst dword [esp + 0x18]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 1
jne 0x50e929
mov dword [esp + 0x18], 0x3f800000
mov dword [esp + 0x48], 4
jmp 0x50e94a
fld dword [esp + 0x18]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jp 0x50e9ab
mov dword [esp + 0x18], 0
mov dword [esp + 0x48], 8
fstp st(0)
fld dword [esp + 0x18]
fmul dword [esp + 0x4c]
fadd dword [esp + 0x88]
fst dword [esp + 0x1c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jp 0x50e97f
mov eax, dword [esp + 0x48]
fld dword [0x641de0]
or eax, 2
mov dword [esp + 0x48], eax
jmp 0x50e9b7
fld dword [esp + 0x1c]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 1
jne 0x50e9a1
mov eax, dword [esp + 0x48]
fld dword [0x6419bc]
or eax, 1
mov dword [esp + 0x48], eax
jmp 0x50e9b7
fld dword [esp + 0x1c]
fdiv dword [esp + 0x28]
jmp 0x50e9b7
fld dword [esp + 0x18]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x18]
fld dword [esp + 0x30]
mov eax, dword [edx + 8]
fmul st(1)
mov dword [esp + 0x98], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x9c], eax
fadd st(3)
mov esi, dword [ebp + 0x14]
fstp dword [esp + 0x60]
fld dword [esp + 0x34]
fmul st(1)
fadd dword [esp + 0xa4]
fstp dword [esp + 0x64]
fld dword [esp + 0x38]
fmul st(1)
fadd dword [esp + 0xa8]
fstp dword [esp + 0x68]
fmul dword [0x641de0]
fstp dword [esp + 0x6c]
fld dword [edx]
fld dword [edx + 4]
fld dword [esp + 0x70]
fmul dword [esp + 0x18]
fadd st(2)
fstp dword [esp + 0x90]
fld dword [esp + 0x74]
fmul dword [esp + 0x18]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x78]
fmul dword [esp + 0x18]
fadd dword [esp + 0x98]
fld dword [esp + 0x7c]
fmul dword [esp + 0x18]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x9c]
fld dword [esp + 0x60]
fsub dword [esp + 0x90]
fstp dword [esp + 0x50]
fld dword [esp + 0x64]
fsub st(2)
fstp dword [esp + 0x54]
fld dword [esp + 0x68]
fsub st(1)
fstp dword [esp + 0x58]
fstp st(0)
fstp st(0)
fld dword [esp + 0x6c]
fsub dword [esp + 0x9c]
fstp dword [esp + 0x5c]
fld dword [ebp + 0x10]
fadd dword [ecx + 0xc]
fstp dword [esp + 0x84]
fld dword [esp + 0x84]
fadd dword [esi + 0xc]
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fst dword [esp + 0x20]
fld st(1)
fmul st(2)
fxch st(1)
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x50f069
fld dword [esp + 0x20]
mov eax, dword [esp + 0x54]
fsqrt
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x18], ecx
fld dword [esp + 0x20]
fcomp dword [0x65c40c]
fnstsw ax
test ah, 5
jp 0x50eb76
fld dword [esp + 0x30]
xor ecx, ecx
fabs
mov edi, 1
fld dword [esp + 0x34]
fabs
mov ebx, 2
fst dword [esp + 0x80]
fld dword [esp + 0x38]
fabs
fstp dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x50eb46
fstp st(0)
xor edi, edi
fld dword [esp + 0x80]
mov ecx, 1
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x50eb5c
mov ebx, ecx
mov ecx, 2
fld dword [esp + edi*4 + 0x30]
mov dword [esi + ecx*4 + 0x10], 0
mov ecx, dword [esp + ebx*4 + 0x30]
fchs
mov dword [esi + edi*4 + 0x10], ecx
fstp dword [esi + ebx*4 + 0x10]
fld dword [esi + 0x18]
fld dword [esi + 0x14]
fld dword [esi + 0x10]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x20]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [0x641de0]
fld dword [esp + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50ebba
fld dword [esp + 0x20]
fsqrt
fdivr dword [0x6419bc]
jmp 0x50ebc0
fld dword [0x641de0]
fld st(0)
mov eax, dword [esp + 0x60]
fmul dword [esi + 0x10]
mov ecx, dword [esp + 0x64]
fstp dword [esi + 0x10]
fld st(0)
fmul dword [esi + 0x14]
fstp dword [esi + 0x14]
fld st(0)
fmul dword [esi + 0x18]
fstp dword [esi + 0x18]
fmul dword [esi + 0x1c]
fstp dword [esi + 0x1c]
mov dword [esi], eax
fld dword [ebp + 0x10]
mov eax, dword [esp + 0x68]
fsub st(1)
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esi + 8], eax
fld st(0)
mov dword [esi + 0xc], ecx
fmul dword [esi + 0x10]
fadd dword [esp + 0x60]
fstp dword [esi]
fld st(0)
fmul dword [esi + 0x14]
fadd dword [esp + 0x64]
fstp dword [esi + 4]
fld st(0)
fmul dword [esi + 0x18]
fadd dword [esp + 0x68]
fstp dword [esi + 8]
fmul dword [esi + 0x1c]
fadd dword [esp + 0x6c]
fstp dword [esi + 0xc]
fsub dword [esp + 0x84]
fstp dword [esi + 0xc]
fld dword [esp + 0x24]
fmul dword [0x643224]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x50f06b
fld dword [0x6419bc]
mov ecx, dword [esp + 0xa8]
fdiv dword [esp + 0x24]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0xc]
lea edi, [esi + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x6c], eax
xor ebx, ebx
mov dword [esp + 0x80], 0xa
lea ecx, [edi + 0x18]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x20]
fmul dword [esp + 0x28]
fstp dword [esp + 0x84]
fld dword [edx]
fld dword [esp + 0x8c]
fchs
fstp dword [esp + 0x1c]
lea ecx, [ecx]
mov eax, dword [esp + 0x48]
test dword [esp + 0x80], eax
jne 0x50ef98
fld dword [esp + 0x1c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jne 0x50ed90
fld dword [esp + 0x1c]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x50ef98
fld dword [esp + 0x18]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jne 0x50ed51
fld dword [esp + 0x18]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x50ef98
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x84]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fmul dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jnp 0x50edb4
fld dword [esp + 0x1c]
fmul dword [esp + 0x84]
fld dword [esp + 0x70]
fmul st(1)
faddp st(2)
fld dword [esp + 0x74]
fmul st(1)
fadd dword [esp + 0x64]
fstp dword [esp + 0x64]
fld dword [esp + 0x78]
fmul st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x68]
fld dword [esp + 0x7c]
fmul st(1)
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
jmp 0x50edea
fld dword [esp + 0x18]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jne 0x50edec
fld dword [esp + 0x18]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x50ef98
fld dword [esp + 0x18]
fmul dword [esp + 0x20]
fld dword [esp + 0x30]
fmul st(1)
faddp st(3)
fld dword [esp + 0x34]
fmul st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x38]
fmul st(1)
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x5c]
fstp st(0)
mov eax, dword [esp + 0xcc]
fld st(1)
fsubrp st(1)
fld dword [esp + 0x54]
fsub dword [esp + 0x64]
fstp dword [esp + 0x94]
fld dword [esp + 0x58]
fsub dword [esp + 0x68]
fstp dword [esp + 0x98]
fld dword [esp + 0x5c]
fsub dword [esp + 0x6c]
fstp dword [esp + 0x9c]
fld dword [ebp + 0x10]
fadd dword [eax + 0xc]
fst dword [esp + 0x80]
fadd dword [ecx - 0xc]
fld dword [esp + 0x98]
fmul dword [esp + 0x98]
fld dword [esp + 0x94]
fmul dword [esp + 0x94]
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fst dword [esp + 0x88]
fld st(1)
fmul st(2)
fxch st(1)
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x50ef98
fld dword [esp + 0x88]
mov eax, dword [esp + 0x94]
fsqrt
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x98]
mov dword [ecx], eax
mov eax, dword [esp + 0x9c]
mov dword [ecx + 4], eax
fstp dword [esp + 0x8c]
fstp dword [ecx - 8]
fld dword [esp + 0x88]
fcomp dword [0x65c40c]
fnstsw ax
test ah, 0x41
jne 0x50ef17
fld dword [ecx]
fld dword [ecx - 4]
fld dword [ecx - 8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50eef1
fsqrt
fdivr dword [0x6419bc]
jmp 0x50eef9
fstp st(0)
fld dword [0x641de0]
fld st(0)
fmul dword [ecx - 8]
fstp dword [ecx - 8]
fld st(0)
fmul dword [ecx - 4]
fstp dword [ecx - 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fmul dword [ecx + 4]
fstp dword [ecx + 4]
jmp 0x50ef2e
mov eax, dword [esi + 0x10]
mov dword [ecx - 8], eax
mov eax, dword [esi + 0x14]
mov dword [ecx - 4], eax
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x54]
fst dword [edi]
fld dword [ebp + 0x10]
mov dword [ecx - 0x14], eax
fsub dword [esp + 0x8c]
mov eax, dword [esp + 0x58]
mov dword [ecx - 0x10], eax
mov eax, dword [esp + 0x5c]
fst dword [esp + 0x24]
mov dword [ecx - 0xc], eax
fmul dword [ecx - 8]
fadd st(1)
fstp dword [edi]
fstp st(0)
fld dword [esp + 0x24]
fmul dword [ecx - 4]
fadd dword [esp + 0x54]
fstp dword [ecx - 0x14]
fld dword [esp + 0x24]
fmul dword [ecx]
fadd dword [esp + 0x58]
fstp dword [ecx - 0x10]
fld dword [esp + 0x24]
fmul dword [ecx + 4]
fadd dword [esp + 0x5c]
fstp dword [ecx - 0xc]
fld dword [esp + 0x8c]
fsub dword [esp + 0x80]
fstp dword [ecx - 0xc]
jmp 0x50ef9c
fstp st(0)
fstp st(0)
cmp ebx, 1
je 0x50f06d
fld dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
fld dword [edx + 0x10]
mov dword [esp + 0x54], eax
fld dword [esp + 0x2c]
mov eax, dword [esp + 0xb8]
fsub dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x64], eax
fsub dword [esp + 0x4c]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0x1c]
fstp dword [esp + 0x1c]
add edi, 0x30
fld dword [esp + 0x28]
add ecx, 0x30
fsub dword [esp + 0x18]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x6c], eax
inc ebx
fsub dword [esp + 0x4c]
mov dword [esp + 0x80], 5
fstp dword [esp + 0x18]
fld dword [esp + 0x30]
fchs
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fchs
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fchs
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fchs
fstp dword [esp + 0x3c]
fld dword [esp + 0x70]
fchs
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fchs
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fchs
fstp dword [esp + 0x7c]
jmp 0x50ecd0
fstp st(0)
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret