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

Disassembly:
sub esp, 0x598
mov ecx, dword [esp + 0x5a0]
mov eax, ecx
fld dword [ecx + 0xc]
fsub dword [ecx]
mov edx, dword [eax]
mov dword [esp + 0x258], edx
fstp dword [esp + 0x264]
fld dword [ecx + 0x10]
fsub dword [ecx + 4]
mov edx, dword [eax + 4]
mov dword [esp + 0x25c], edx
fstp dword [esp + 0x268]
fld dword [ecx + 0x14]
fsub dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x260], eax
fstp dword [esp + 0x26c]
fld dword [esp + 0x264]
fcomp dword [0x5a1414]
fnstsw ax
test ah, 0x44
jnp 0x50f00c
fld dword [0x5b5af8]
fdiv dword [esp + 0x264]
fstp dword [esp + 0x270]
jmp 0x50f017
mov dword [esp + 0x270], 0
fld dword [esp + 0x268]
fcomp dword [0x5a1414]
fnstsw ax
test ah, 0x44
jnp 0x50f041
fld dword [0x5b5af8]
fdiv dword [esp + 0x268]
fstp dword [esp + 0x274]
jmp 0x50f04c
mov dword [esp + 0x274], 0
fld dword [esp + 0x26c]
fcomp dword [0x5a1414]
fnstsw ax
test ah, 0x44
jnp 0x50f076
fld dword [0x5b5af8]
fdiv dword [esp + 0x26c]
fstp dword [esp + 0x278]
jmp 0x50f081
mov dword [esp + 0x278], 0
fld dword [ecx]
fcomp dword [0x5a1414]
fld dword [ecx]
fnstsw ax
and eax, 0x100
je 0x50f096
fchs
fld dword [ecx + 0xc]
fcomp dword [0x5a1414]
fld dword [ecx + 0xc]
fnstsw ax
and eax, 0x100
je 0x50f0ad
fchs
fxch st(1)
fcompp
fnstsw ax
and eax, 0x100
jne 0x50f0c6
fld dword [ecx]
fcomp dword [0x5a1414]
fld dword [ecx]
jmp 0x50f0d2
fld dword [ecx + 0xc]
fcomp dword [0x5a1414]
fld dword [ecx + 0xc]
fnstsw ax
and eax, 0x100
je 0x50f0dd
fchs
fld dword [ecx + 4]
fcomp dword [0x5a1414]
fld dword [ecx + 4]
fnstsw ax
and eax, 0x100
je 0x50f0f4
fchs
fld dword [ecx + 0x10]
fcomp dword [0x5a1414]
fld dword [ecx + 0x10]
fnstsw ax
and eax, 0x100
je 0x50f10b
fchs
fxch st(1)
fcompp
fnstsw ax
and eax, 0x100
jne 0x50f126
fld dword [ecx + 4]
fcomp dword [0x5a1414]
fld dword [ecx + 4]
jmp 0x50f132
fld dword [ecx + 0x10]
fcomp dword [0x5a1414]
fld dword [ecx + 0x10]
fnstsw ax
and eax, 0x100
je 0x50f13d
fchs
fld dword [ecx + 8]
fcomp dword [0x5a1414]
fld dword [ecx + 8]
fnstsw ax
and eax, 0x100
je 0x50f154
fchs
fld dword [ecx + 0x14]
fcomp dword [0x5a1414]
fld dword [ecx + 0x14]
fnstsw ax
and eax, 0x100
je 0x50f16b
fchs
fxch st(1)
fcompp
fnstsw ax
and eax, 0x100
jne 0x50f186
fld dword [ecx + 8]
fcomp dword [0x5a1414]
fld dword [ecx + 8]
jmp 0x50f192
fld dword [ecx + 0x14]
fcomp dword [0x5a1414]
fld dword [ecx + 0x14]
fnstsw ax
and eax, 0x100
je 0x50f19d
fchs
fxch st(2)
fmul dword [0x5ba0e0]
mov ecx, dword [esp + 0x59c]
push ebx
push ebp
push esi
fstp dword [esp + 0x288]
mov edx, dword [ecx + 0x1c]
push edi
fmul dword [0x5ba0e0]
mov dword [esp + 0x298], edx
mov dword [esp + 0x29c], 0
mov dword [esp + 0x2a0], 0x3f800000
lea ebx, [esp + 0x2a4]
fstp dword [esp + 0x290]
fmul dword [0x5ba0e0]
fstp dword [esp + 0x294]
sub ebx, 0xc
mov dword [esp + 0x5a4], ebx
mov ecx, dword [ebx]
cmp dword [ecx], 0
jl 0x50f3ef
mov eax, dword [ecx]
fld dword [esp + eax + 0x274]
fld dword [esp + eax + 0x268]
fld dword [esp + eax + 0x28c]
fld st(2)
fmul dword [ebx + 8]
fadd st(2)
fstp dword [esp + 0x18]
fld st(2)
fmul dword [ebx + 4]
fadd st(2)
fstp dword [esp + 0x10]
fld dword [ecx + 0x14]
fsub st(1)
fstp dword [esp + 0x1c]
fld dword [ecx + 0x10]
fadd st(1)
fstp dword [esp + 0x14]
fstp st(0)
fstp st(0)
fcomp dword [0x5a1414]
fnstsw ax
and eax, 0x4100
jne 0x50f31a
fld dword [esp + 0x1c]
fcomp dword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x50f27e
mov eax, dword [ecx + 8]
mov dword [ebx], eax
jmp 0x50f3dd
fld dword [esp + 0x14]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x50f297
mov ecx, dword [ecx + 0xc]
mov dword [ebx], ecx
jmp 0x50f3dd
add ebx, 0xc
mov dword [esp + 0x5a4], ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
fld dword [esp + edx + 0x280]
fld dword [esp + 0x14]
mov dword [ebx], eax
mov eax, dword [esp + 0x5a4]
fcomp dword [esp + 0x18]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x5a4]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
test ah, 5
jp 0x50f2ef
fld dword [esp + 0x14]
fsub dword [esp + 0x18]
mov eax, dword [esp + 0x5a4]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x5a4]
fcomp dword [esp + 0x10]
mov dword [ecx - 0xc], eax
fnstsw ax
and eax, 0x4100
jne 0x50f3db
fld dword [esp + 0x1c]
jmp 0x50f3c8
fld dword [esp + 0x14]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x50f333
mov edx, dword [ecx + 0xc]
mov dword [ebx], edx
jmp 0x50f3dd
fld dword [esp + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
and eax, 0x4100
jne 0x50f34e
mov eax, dword [ecx + 8]
mov dword [ebx], eax
jmp 0x50f3dd
add ebx, 0xc
mov dword [esp + 0x5a4], ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 0xc]
fld dword [esp + edx + 0x280]
fld dword [esp + 0x1c]
mov dword [ebx], eax
mov eax, dword [esp + 0x5a4]
fcomp dword [esp + 0x18]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x5a4]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
and eax, 0x4100
jne 0x50f3a8
fld dword [esp + 0x1c]
fsub dword [esp + 0x18]
mov eax, dword [esp + 0x5a4]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x5a4]
fcomp dword [esp + 0x10]
mov dword [ecx - 0xc], eax
fnstsw ax
test ah, 5
jp 0x50f3db
fld dword [esp + 0x14]
fsub dword [esp + 0x10]
mov eax, dword [esp + 0x5a4]
fmul st(1)
fadd dword [eax - 8]
fstp dword [eax - 8]
fstp st(0)
mov ebx, dword [esp + 0x5a4]
mov ecx, dword [ebx]
cmp dword [ecx], 0
jge 0x50f20d
mov ecx, dword [ebx]
mov edx, dword [0x60f0ac]
mov dword [esp + 0x80], ecx
mov eax, dword [ecx + edx]
test eax, eax
mov dword [esp + 0x90], eax
je 0x50fb07
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x9c], eax
mov word [esp + 0xd2], 0
mov byte [esp + 0xd1], 0xff
cmp word [eax + 0x1e], 0
mov dword [esp + 0x94], edx
mov dword [esp + 0x54], ecx
jne 0x50f44b
mov dl, byte [eax + 0x1c]
mov byte [esp + 0xd1], dl
mov eax, dword [esp + 0x268]
mov ecx, dword [esp + 0x26c]
mov edx, dword [esp + 0x270]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x274]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x278]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x27c]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x280]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x284]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x288]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28c]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x290]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x294]
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd8], eax
mov ecx, dword [ebx + 4]
lea ebp, [esp + 0xe4]
mov dword [esp + 0xdc], ecx
mov edx, dword [ebx + 8]
mov dword [esp + 0xe0], edx
sub ebp, 0xc
mov dword [esp + 0x264], ebp
mov eax, dword [ebp]
cmp byte [eax + 1], 0xff
jne 0x50f72a
xor ecx, ecx
mov cx, word [eax + 2]
mov eax, dword [esp + 0x9c]
shl ecx, 4
add ecx, dword [eax + 0x20]
mov dl, byte [ecx]
and edx, 0xc
fld dword [esp + edx + 0xac]
fld dword [esp + edx + 0xa0]
fld dword [esp + edx + 0xc4]
fld st(2)
fmul dword [ebp + 8]
fadd st(2)
fstp dword [esp + 0x14]
fld st(2)
fmul dword [ebp + 4]
fadd st(2)
fstp dword [esp + 0x1c]
fld dword [ecx + 0xc]
fsub st(1)
fstp dword [esp + 0x10]
fld dword [ecx + 4]
fadd st(1)
fstp dword [esp + 0x18]
fstp st(0)
fstp st(0)
fcomp dword [0x5a1414]
fnstsw ax
and eax, 0x4100
jne 0x50f651
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
and eax, 0x4100
jne 0x50f5b8
mov dword [ebp], ecx
jmp 0x50f70f
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x50f5d2
add ecx, 8
mov dword [ebp], ecx
jmp 0x50f70f
add ebp, 0xc
mov dword [esp + 0x264], ebp
fld dword [esp + edx + 0xb8]
fld dword [esp + 0x18]
mov dword [ebp], ecx
mov eax, dword [esp + 0x264]
fcomp dword [esp + 0x14]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x264]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
test ah, 5
jp 0x50f626
fld dword [esp + 0x18]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x264]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
add ecx, 8
mov dword [eax - 0xc], ecx
fnstsw ax
and eax, 0x4100
jne 0x50f70d
fld dword [esp + 0x10]
jmp 0x50f6fa
fld dword [esp + 0x18]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x50f66b
add ecx, 8
mov dword [ebp], ecx
jmp 0x50f70f
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
and eax, 0x4100
jne 0x50f684
mov dword [ebp], ecx
jmp 0x50f70f
add ebp, 0xc
mov dword [esp + 0x264], ebp
fld dword [esp + edx + 0xb8]
lea edx, [ecx + 8]
fld dword [esp + 0x10]
mov dword [ebp], edx
mov eax, dword [esp + 0x264]
fcomp dword [esp + 0x14]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x264]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
and eax, 0x4100
jne 0x50f6dd
fld dword [esp + 0x10]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x264]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
mov dword [eax - 0xc], ecx
fnstsw ax
test ah, 5
jp 0x50f70d
fld dword [esp + 0x18]
fsub dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
fmul st(1)
fadd dword [eax - 8]
fstp dword [eax - 8]
fstp st(0)
mov ebp, dword [esp + 0x264]
mov eax, dword [ebp]
cmp byte [eax + 1], 0xff
je 0x50f533
mov ebx, dword [esp + 0x5a4]
mov ecx, dword [ebp]
mov ax, word [ecx + 2]
movzx cx, byte [ecx + 1]
mov dword [esp + 0x44], eax
and eax, 0xffff
and ecx, 0xffff
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x98], ecx
jge 0x50faf8
mov ecx, dword [esp + 0x90]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x50f76c
xor edi, edi
mov di, word [ecx + eax*2]
jmp 0x50f76e
mov edi, eax
mov esi, dword [esp + 0x94]
mov edx, dword [esp + 0x54]
xor eax, eax
mov ax, word [esi + edi*8]
lea eax, [eax + eax*2]
lea ecx, [edx + eax*4]
xor eax, eax
mov ax, word [esi + edi*8 + 2]
lea eax, [eax + eax*2]
fld dword [edx + eax*4]
fsub dword [ecx]
lea edx, [edx + eax*4]
xor eax, eax
mov ax, word [esi + edi*8 + 4]
mov esi, dword [esp + 0x54]
fstp dword [esp + 0x38]
fld dword [edx + 4]
fsub dword [ecx + 4]
lea eax, [eax + eax*2]
fstp dword [esp + 0x3c]
fld dword [edx + 8]
fsub dword [ecx + 8]
lea esi, [esi + eax*4]
fstp dword [esp + 0x40]
fld dword [esi]
fsub dword [ecx]
fstp dword [esp + 0x20]
fld dword [esi + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x24]
fld dword [esi + 8]
fsub dword [ecx + 8]
fst dword [esp + 0x28]
fmul dword [esp + 0x278]
fld dword [esp + 0x24]
fmul dword [esp + 0x27c]
fsubp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x27c]
fld dword [esp + 0x28]
fmul dword [esp + 0x274]
fsubp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x274]
fld dword [esp + 0x20]
fmul dword [esp + 0x278]
fsubp st(1)
fld st(1)
fmul dword [esp + 0x3c]
fld st(3)
fmul dword [esp + 0x38]
faddp st(1)
fld st(1)
fmul dword [esp + 0x40]
faddp st(1)
fst dword [esp + 0x18]
fcomp dword [0x5ba0e8]
fnstsw ax
and eax, 0x4100
jne 0x50fad5
fld dword [esp + 0x18]
fmul dword [0x5ba0e4]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [esp + 0x14]
fstp dword [esp + 0x1c]
fld dword [esp + 0x268]
fsub dword [ecx]
fstp dword [esp + 0x2c]
fld dword [ecx + 4]
fsubr dword [esp + 0x26c]
fstp dword [esp + 0x30]
fld dword [ecx + 8]
fsubr dword [esp + 0x270]
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fmul st(2)
fld dword [esp + 0x2c]
fmul st(4)
faddp st(1)
fld dword [esp + 0x34]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
and eax, 0x100
jne 0x50fadb
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jp 0x50fadb
fld dword [esp + 0x30]
fmul dword [esp + 0x40]
fld dword [esp + 0x34]
fmul dword [esp + 0x3c]
fsubp st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fmul dword [esp + 0x38]
fld dword [esp + 0x2c]
fmul dword [esp + 0x40]
fsubp st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x2c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x30]
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x278]
fld dword [esp + 0x48]
fmul dword [esp + 0x274]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x27c]
faddp st(1)
fcom dword [esp + 0x14]
fnstsw ax
and eax, 0x100
jne 0x50fad9
fld dword [esp + 0x10]
fadd st(1)
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
fstp st(0)
jp 0x50fadb
fld dword [esp + 0x4c]
fmul dword [esp + 0x24]
fld dword [esp + 0x48]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x28]
faddp st(1)
fst dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
and eax, 0x100
jne 0x50fadb
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jp 0x50fadb
fld dword [esp + 0x10]
fdiv dword [esp + 0x18]
mov eax, ecx
mov ebx, dword [eax]
mov dword [esp + 0x64], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0x68], ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
fstp dword [esp + 0x10]
fld dword [edx]
fsub dword [ecx]
fld dword [edx + 4]
fsub dword [ecx + 4]
fld dword [edx + 8]
fsub dword [ecx + 8]
fld dword [esi]
fsub dword [ecx]
fstp dword [esp + 0x84]
fld dword [esi + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x88]
fld dword [esi + 8]
fsub dword [ecx + 8]
fld st(0)
fmul st(3)
fld dword [esp + 0x88]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x84]
fmul st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x5c]
fstp st(0)
fld dword [esp + 0x88]
fmul st(2)
fld dword [esp + 0x84]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x60]
fstp st(0)
fstp st(0)
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
faddp st(1)
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0056e180
fld dword [esp + 0x5c]
fmul st(1)
mov edx, dword [esp + 0x5bc]
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x88]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul st(1)
lea ecx, [esp + 0x60]
push eax
mov eax, dword [esp + 0x5bc]
push ecx
fstp dword [esp + 0x6c]
push edx
push eax
fmul dword [esp + 0x78]
fstp dword [esp + 0x78]
call dword [esp + 0x5cc]
add esp, 0x18
test eax, eax
je 0x50fb16
mov ebx, dword [esp + 0x5a4]
mov ebp, dword [esp + 0x264]
jmp 0x50fadb
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x98]
inc eax
mov dword [esp + 0x44], eax
and eax, 0xffff
cmp eax, ecx
jl 0x50f756
lea ecx, [esp + 0xd8]
cmp ebp, ecx
ja 0x50f51c
lea edx, [esp + 0x298]
cmp ebx, edx
ja 0x50f1f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret