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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [ebp + 8]
fld dword [0x69c53c]
mov ecx, dword [0x85ff50]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
lea eax, [eax + eax*2]
shl eax, 2
push ebx
push esi
mov esi, dword [edx + eax + 8]
mov ecx, dword [esi]
and ecx, 0xffff
shl ecx, 5
mov dword [ebp - 0xd0], eax
mov eax, dword [0x87b7b4]
mov edx, dword [ecx + eax + 0x14]
mov ecx, dword [edx + 0x8c]
and ecx, 0xffff
shl ecx, 5
mov ebx, dword [ecx + eax + 0x14]
fmul dword [ebx + 0x1c]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0xa4]
fstp dword [ebp - 0xa8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [esi + 0x80]
lea ecx, [esi + 0x74]
push edx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0xc], ebx
call fcn.004cb9b0
fld dword [ebp - 0xa8]
add esi, 0x5c
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x78], ecx
mov edx, dword [esi + 8]
mov dword [ebp - 0x74], edx
fmul dword [ebx + 8]
add esp, 4
test edi, edi
fchs
mov dword [ebp - 0x18], 0
fstp dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
je 0x50a170
mov eax, dword [ebx + 0x68]
xor esi, esi
test eax, eax
jle 0x50a170
xor eax, eax
lea eax, [eax + eax*2]
shl eax, 5
add eax, edi
lea edx, [eax + 0x2c]
lea ecx, [eax + 0x1c]
call fcn.004cbb10
fld dword [edx + 0x10]
mov eax, dword [edx + 8]
fstp dword [edx + 8]
fld dword [edx + 0x1c]
mov ecx, dword [edx + 0xc]
mov dword [edx + 0x10], eax
fstp dword [edx + 0xc]
mov eax, dword [edx + 0x18]
fld dword [edx + 0x20]
inc esi
fstp dword [edx + 0x18]
mov dword [edx + 0x20], eax
movsx eax, si
mov dword [edx + 0x1c], ecx
cmp eax, dword [ebx + 0x68]
jl 0x50a130
mov ecx, dword [ebx + 0x74]
mov edi, dword [ebp + 0x10]
imul ecx, ecx, 0x130
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50a1a7
fld dword [ebp - 0x10]
mov ecx, dword [eax]
fadd dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
fstp dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x50a1bf
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebp - 0x6c], 0
jle 0x50af23
xor esi, esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x78]
mov ebx, dword [ebp + 0x10]
mov edi, esi
imul esi, esi, 0x130
shl edi, 7
add edi, ecx
mov cx, word [edi + 0x20]
add esi, ebx
cmp cx, 0xffff
mov dword [ebp + 0x18], edi
je 0x50a21b
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x50a21b
movsx edx, cx
mov ecx, edx
shl ecx, 7
add ecx, dword [eax + 0x6c]
test ecx, ecx
mov dword [ebp + 0x14], ecx
je 0x50a222
lea ecx, [edx + edx*2]
shl ecx, 5
add ecx, ebx
jmp 0x50a224
mov dword [ebp + 0x14], 0
xor ecx, ecx
mov dword [esi], 0
fld dword [edi + 0x38]
fsub dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
lea ebx, [esi + 4]
fst dword [ebp - 0x40]
fld dword [edi + 0x3c]
fsub dword [eax + 0x10]
fstp dword [ebp - 0x3c]
fld dword [edi + 0x40]
fsub dword [eax + 0x14]
fstp dword [ebp - 0x38]
fld dword [ebp - 0x3c]
fld dword [ebp - 0x38]
fld dword [0x672afc]
fld dword [ebp - 0xa4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50a287
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [ebp - 0xa4]
fmul dword [ebp - 0x40]
fld dword [ebp - 0x3c]
fmul dword [ebp - 0xa4]
fld dword [ebp - 0x38]
fmul dword [ebp - 0xa4]
test ecx, ecx
fld dword [ebp - 0x88]
fmul st(1)
fld dword [ebp - 0x94]
fmul st(3)
faddp st(1)
fld dword [ebp - 0xa0]
fmul st(4)
faddp st(1)
fadd dword [ebp - 0x7c]
fstp dword [ebx]
fld dword [ebp - 0x84]
fmul st(1)
fld dword [ebp - 0x90]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x9c]
fmul st(4)
faddp st(1)
fadd dword [ebp - 0x78]
fstp dword [ebx + 4]
fld dword [ebp - 0x80]
fmul st(1)
fld dword [ebp - 0x8c]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x98]
fmul st(4)
faddp st(1)
fadd dword [ebp - 0x74]
fstp dword [ebx + 8]
fstp st(0)
fstp st(0)
fstp st(0)
je 0x50a3e2
lea edx, [ebp - 0x10c]
push edx
add ecx, 0x2c
push ecx
lea eax, [ebp - 0xa4]
push eax
call dword [0x696664]
fld dword [edi + 0x44]
fld dword [edi + 0x48]
add esp, 0xc
fld dword [edi + 0x4c]
fld dword [ebp - 0xf0]
fmul st(1)
fld dword [ebp - 0xfc]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x108]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x10]
fld dword [ebp - 0xec]
fmul st(1)
fld dword [ebp - 0xf8]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x104]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x14]
fld dword [ebp - 0xe8]
fmul st(1)
fld dword [ebp - 0xf4]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x100]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [edi + 0x50]
fld dword [edi + 0x54]
fld dword [edi + 0x58]
fld dword [ebp - 0xf0]
fmul st(1)
fld dword [ebp - 0xfc]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x108]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x28]
fld dword [ebp - 0xec]
fmul st(1)
fld dword [ebp - 0xf8]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x104]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x2c]
fld dword [ebp - 0xe8]
fmul st(1)
fld dword [ebp - 0xf4]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x100]
jmp 0x50a4a7
fld dword [edi + 0x44]
fld dword [edi + 0x48]
fld dword [edi + 0x4c]
fld dword [ebp - 0x88]
fmul st(1)
fld dword [ebp - 0x94]
fmul st(3)
faddp st(1)
fld dword [ebp - 0xa0]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x10]
fld dword [ebp - 0x84]
fmul st(1)
fld dword [ebp - 0x90]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x9c]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x14]
fld dword [ebp - 0x80]
fmul st(1)
fld dword [ebp - 0x8c]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x98]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [edi + 0x50]
fld dword [edi + 0x54]
fld dword [edi + 0x58]
fld dword [ebp - 0x88]
fmul st(1)
fld dword [ebp - 0x94]
fmul st(3)
faddp st(1)
fld dword [ebp - 0xa0]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x28]
fld dword [ebp - 0x84]
fmul st(1)
fld dword [ebp - 0x90]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x9c]
fmul st(4)
faddp st(1)
fstp dword [esi + 0x2c]
fld dword [ebp - 0x80]
fmul st(1)
fld dword [ebp - 0x8c]
fmul st(3)
faddp st(1)
fld dword [ebp - 0x98]
mov ecx, dword [0x746eb0]
fmul st(4)
mov edx, ebx
xor eax, eax
faddp st(1)
fstp dword [esi + 0x30]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00501540
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
jne 0x50a4cf
or eax, eax
jmp 0x50a4e8
mov ecx, dword [0x746ebc]
mov edx, dword [ecx + 0xe4]
and eax, 0x7fffffff
shl eax, 4
movsx eax, word [eax + edx + 8]
mov word [esi + 0x38], ax
fld dword [esi + 4]
mov eax, dword [ebp - 0x64]
fsub dword [eax + 0x5c]
lea edi, [esi + 4]
lea ebx, [esi + 0x48]
mov ecx, ebx
fstp dword [esi + 0x3c]
fld dword [edi + 4]
fsub dword [eax + 0x60]
fstp dword [esi + 0x40]
fld dword [edi + 8]
fsub dword [eax + 0x64]
fstp dword [esi + 0x44]
fld dword [esi + 0x44]
fmul dword [eax + 0x90]
fld dword [eax + 0x94]
fmul dword [esi + 0x40]
fsubp st(1)
fstp dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb4]
fld dword [eax + 0x94]
fmul dword [esi + 0x3c]
fld dword [eax + 0x8c]
fmul dword [esi + 0x44]
fsubp st(1)
fstp dword [ebp - 0xb0]
fld dword [eax + 0x8c]
fmul dword [esi + 0x40]
fld dword [esi + 0x3c]
fmul dword [eax + 0x90]
mov dword [ecx], edx
mov edx, dword [ebp - 0xb0]
mov dword [ecx + 4], edx
fsubp st(1)
fstp dword [ebp - 0xac]
mov edx, dword [ebp - 0xac]
mov dword [ecx + 8], edx
fld dword [eax + 0x68]
fadd dword [ebx]
mov ecx, dword [ebp + 8]
fstp dword [ebx]
fld dword [ebx + 4]
fadd dword [eax + 0x6c]
fstp dword [ebx + 4]
fld dword [ebx + 8]
fadd dword [eax + 0x70]
mov eax, dword [ebp + 0x18]
push eax
push esi
push ecx
fstp dword [ebx + 8]
call fcn.00507c60
add esp, 0xc
lea eax, [esi + 0x34]
call fcn.0053ef00
fstp dword [esi + 0x7c]
fld dword [esi + 0x74]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x50a7ef
mov ecx, dword [ebp - 0xc]
fld dword [ecx + 0x24]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x50a7ef
fld dword [ebx + 8]
mov edx, dword [ebp + 0x18]
fmul dword [esi + 0x68]
mov eax, dword [ebp + 0x14]
test eax, eax
fld dword [ebx + 4]
fmul dword [esi + 0x64]
lea edi, [esi + 0x90]
faddp st(1)
fld dword [ebx]
fmul dword [esi + 0x60]
faddp st(1)
fld dword [esi + 0x74]
fdiv dword [ecx + 0x24]
fmul dword [0x69c53c]
fld st(1)
fmul dword [ecx + 0x28]
fsubp st(1)
fmul dword [ecx + 8]
fst dword [esi + 0x80]
fld st(0)
fmul dword [esi + 0x60]
fstp dword [esi + 0x84]
fld st(0)
fmul dword [esi + 0x64]
fstp dword [esi + 0x88]
fmul dword [esi + 0x68]
fstp dword [esi + 0x8c]
fld dword [edx + 0x2c]
fmul dword [ecx + 0x20]
fchs
fstp dword [ebp - 8]
fchs
fld st(0)
fmul dword [esi + 0x60]
fadd dword [ebx]
fstp dword [esi + 0x54]
fld st(0)
fmul dword [esi + 0x64]
fadd dword [ebx + 4]
fstp dword [esi + 0x58]
fmul dword [esi + 0x68]
fadd dword [ebx + 8]
fstp dword [esi + 0x5c]
fld dword [ebp - 8]
fmul dword [esi + 0x54]
fstp dword [edi]
fld dword [ebp - 8]
fmul dword [esi + 0x58]
fstp dword [edi + 4]
fld dword [ebp - 8]
fmul dword [esi + 0x5c]
fstp dword [edi + 8]
je 0x50a7a5
test byte [eax + 0x20], 1
je 0x50a7a5
mov eax, dword [ebp - 0x28]
fld dword [0x672af8]
fld dword [eax]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50a7a5
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x30]
mov ecx, dword [esi + 0x68]
push edx
push eax
push ecx
call fcn.005075d0
fld dword [esi + 0x30]
fmul dword [esi + 0x68]
add esp, 0xc
fld dword [esi + 0x2c]
fmul dword [esi + 0x64]
faddp st(1)
fld dword [esi + 0x28]
fmul dword [esi + 0x60]
faddp st(1)
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x50a6e6
fstp st(0)
fld dword [0x672af8]
jmp 0x50a6fb
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x50a6fb
fstp st(0)
fld dword [0x672afc]
fld st(0)
mov edx, dword [ebp - 0x28]
fmul st(1)
fmul st(2)
fmulp st(2)
fxch st(1)
fmul dword [ebp - 8]
fstp st(1)
fld dword [edx]
fchs
fld st(0)
fmul dword [esi + 0x10]
fld st(1)
fmul dword [esi + 0x14]
fstp dword [ebp - 0xc8]
fxch st(1)
fmul dword [esi + 0x18]
fst dword [ebp - 0xc4]
fmul dword [esi + 0x68]
fld dword [ebp - 0xc8]
fmul dword [esi + 0x64]
faddp st(1)
fld st(1)
fmul dword [esi + 0x60]
faddp st(1)
fchs
fst dword [ebp - 8]
fmul dword [esi + 0x60]
faddp st(1)
fld dword [ebp - 8]
fmul dword [esi + 0x64]
fadd dword [ebp - 0xc8]
fld dword [ebp - 8]
fmul dword [esi + 0x68]
fadd dword [ebp - 0xc4]
fstp dword [ebp - 0x140]
fld st(1)
fadd dword [esi + 0x54]
fstp dword [esi + 0x54]
fld st(0)
fadd dword [esi + 0x58]
fstp dword [esi + 0x58]
fld dword [ebp - 0x140]
fadd dword [esi + 0x5c]
fstp dword [esi + 0x5c]
fxch st(1)
fmul st(2)
fadd dword [edi]
fstp dword [edi]
fmul st(1)
fadd dword [edi + 4]
fstp dword [edi + 4]
fld dword [ebp - 0x140]
fmul st(1)
fadd dword [edi + 8]
fstp dword [edi + 8]
fstp st(0)
cmp word [esi + 0x70], 0x1f
mov eax, dword [ebp + 0x18]
je 0x50a7be
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x60]
movsx eax, word [eax + 0x5c]
push ecx
push edx
push eax
jmp 0x50a7e1
fld dword [eax + 0x64]
sub esp, 8
fmul dword [0x672cec]
xor ecx, ecx
mov cx, word [eax + 0x5c]
fstp dword [esp + 4]
fld dword [eax + 0x60]
fmul dword [0x672cec]
fstp dword [esp]
push ecx
lea ecx, [esi + 0x10]
lea edx, [esi + 0x28]
call fcn.00507da0
add esp, 0xc
fld dword [esi + 0x7c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x50a9a8
fld dword [esi + 0x7c]
mov edx, dword [ebp - 0xc]
fcomp dword [edx + 0x3c]
fnstsw ax
test ah, 5
jp 0x50a81e
fld dword [esi + 0x7c]
fdiv dword [edx + 0x3c]
fstp dword [ebp - 0x60]
jmp 0x50a825
mov dword [ebp - 0x60], 0x3f800000
mov ecx, dword [ebp + 0x18]
fld dword [ecx + 0x34]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x50a874
fld dword [edx + 0x3c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x50a874
fld dword [edx + 0x40]
xor eax, eax
fdiv dword [ecx + 0x34]
fmul dword [ecx + 0x2c]
fmul dword [ebp - 0x60]
fmul dword [ebp - 0xa8]
fst dword [esi + 0xb4]
mov dword [esi + 0xb8], eax
fstp dword [esi + 0xc0]
mov dword [esi + 0xbc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50a8ec
test byte [eax + 0x20], 2
je 0x50a8ec
fld dword [0x672af8]
mov edi, dword [ebp - 0x28]
fld dword [edi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50a8ec
fld dword [edi + 4]
lea edi, [esi + 0xc4]
fchs
fld st(0)
fmul dword [esi + 0x10]
fadd dword [ebx]
fld st(1)
fmul dword [esi + 0x14]
fadd dword [ebx + 4]
fstp dword [ebp - 0x138]
fxch st(1)
fmul dword [esi + 0x18]
fadd dword [ebx + 8]
fstp dword [ebp - 0x134]
fld dword [ecx + 0x2c]
fmul dword [edx + 0x38]
fchs
fst dword [ebp - 8]
fmul st(1)
fstp dword [edi]
fstp st(0)
fld dword [ebp - 0x138]
fmul dword [ebp - 8]
fstp dword [edi + 4]
fld dword [ebp - 0x134]
fmul dword [ebp - 8]
jmp 0x50a90b
fld dword [ecx + 0x2c]
lea edi, [esi + 0xc4]
fmul dword [edx + 0x38]
fchs
fld st(0)
fmul dword [ebx]
fstp dword [edi]
fld st(0)
fmul dword [ebx + 4]
fstp dword [edi + 4]
fmul dword [ebx + 8]
mov eax, dword [ebp + 0x18]
fstp dword [edi + 8]
mov edx, dword [eax + 0x64]
mov ecx, dword [eax + 0x60]
push edx
xor edx, edx
mov dx, word [eax + 0x5c]
push ecx
lea ecx, [esi + 0x10]
push edx
lea edx, [esi + 0x28]
call fcn.00507da0
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x50aa26
test byte [eax + 0x20], 8
je 0x50a9a8
fld dword [0x672af8]
mov ecx, dword [ebp - 0x28]
fld dword [ecx + 0xc]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50a9a8
fld dword [esi + 0x18]
fmul dword [ebx + 8]
fld dword [esi + 0x14]
fmul dword [ebx + 4]
faddp st(1)
fld dword [esi + 0x10]
fmul dword [ebx]
faddp st(1)
fabs
fmul dword [ecx + 0xc]
mov ecx, dword [ebp - 0xc]
fmul dword [ecx + 8]
fmul dword [ebp - 0x60]
fld st(0)
fmul dword [esi + 0x28]
fadd dword [esi + 0x10c]
fstp dword [esi + 0x10c]
fld st(0)
fmul dword [esi + 0x2c]
fadd dword [esi + 0x110]
fstp dword [esi + 0x110]
fmul dword [esi + 0x30]
fadd dword [esi + 0x114]
fstp dword [esi + 0x114]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50aa26
test byte [eax + 0x20], 4
je 0x50aa26
fld dword [0x672af8]
mov ecx, dword [ebp - 0x28]
fld dword [ecx + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50aa26
fld dword [ecx + 8]
mov edx, dword [ebp + 0x18]
fchs
mov eax, dword [ebp - 0xc]
fld st(0)
fmul dword [esi + 0x10]
lea edi, [esi + 0xe8]
fadd dword [ebx]
fld st(1)
fmul dword [esi + 0x14]
fadd dword [ebx + 4]
fstp dword [ebp - 0x120]
fxch st(1)
fmul dword [esi + 0x18]
fadd dword [ebx + 8]
fstp dword [ebp - 0x11c]
fld dword [edx + 0x2c]
fmul dword [eax + 0x48]
fchs
fst dword [ebp - 8]
fmul st(1)
fstp dword [edi]
fstp st(0)
fld dword [ebp - 0x120]
fmul dword [ebp - 8]
fstp dword [edi + 4]
fld dword [ebp - 0x11c]
fmul dword [ebp - 8]
jmp 0x50aa4b
mov ecx, dword [ebp + 0x18]
fld dword [ecx + 0x2c]
mov edx, dword [ebp - 0xc]
fmul dword [edx + 0x48]
lea edi, [esi + 0xe8]
fchs
fld st(0)
fmul dword [ebx]
fstp dword [edi]
fld st(0)
fmul dword [ebx + 4]
fstp dword [edi + 4]
fmul dword [ebx + 8]
mov eax, dword [ebp + 0x18]
fstp dword [edi + 8]
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x60]
movsx eax, word [eax + 0x5c]
push ecx
push edx
push eax
lea edx, [esi + 0x28]
lea ecx, [esi + 0x10]
call fcn.00507da0
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x50aae1
mov ecx, eax
test byte [ecx + 0x20], 0x10
je 0x50aae1
fld dword [0x672af8]
mov ecx, dword [ebp - 0x28]
fld dword [ecx + 0x10]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50aae1
fld dword [esi + 0x18]
mov edx, dword [ebp - 0xc]
fmul dword [ebx + 8]
fld dword [esi + 0x14]
fmul dword [ebx + 4]
faddp st(1)
fld dword [esi + 0x10]
fmul dword [ebx]
faddp st(1)
fabs
fmul dword [edx + 8]
fmul dword [ecx + 0x10]
fld st(0)
fmul dword [esi + 0x28]
fadd dword [esi + 0x10c]
fstp dword [esi + 0x10c]
fld st(0)
fmul dword [esi + 0x2c]
fadd dword [esi + 0x110]
fstp dword [esi + 0x110]
fmul dword [esi + 0x30]
fadd dword [esi + 0x114]
fstp dword [esi + 0x114]
fld dword [ebx + 8]
fmul dword [ebx + 8]
fld dword [ebx + 4]
fmul dword [ebx + 4]
faddp st(1)
fld dword [ebx]
fmul dword [ebx]
faddp st(1)
fcomp dword [0x672f3c]
fnstsw ax
test ah, 5
mov eax, dword [esi]
jp 0x50ab09
or eax, 1
jmp 0x50ab0c
and eax, 0xfffffffe
fld dword [esi + 0x74]
mov dword [esi], eax
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
mov eax, dword [esi]
jne 0x50ab25
or eax, 2
jmp 0x50ab28
and eax, 0xfffffffd
fld dword [esi + 0x7c]
mov dword [esi], eax
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
mov eax, dword [esi]
jne 0x50ab41
or eax, 8
jmp 0x50ab44
and eax, 0xfffffff7
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [esi], eax
xor eax, eax
mov al, byte [esi]
and eax, 1
add ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0x54], ecx
mov ecx, eax
shr ecx, 1
and ecx, 1
add edx, ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edx
mov edx, eax
shr edx, 2
and edx, 1
add ecx, edx
mov edx, dword [ebp - 0x58]
shr eax, 3
and eax, 1
add edx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
je 0x50ad25
test byte [eax + 0x20], 0x20
je 0x50abd2
mov ecx, dword [ebp - 0x28]
fld dword [ecx + 0x14]
mov edx, dword [ebp - 0xc]
fmul dword [edx + 8]
fld st(0)
fmul dword [esi + 0x10]
fadd dword [esi + 0x10c]
fstp dword [esi + 0x10c]
fld st(0)
fmul dword [esi + 0x14]
fadd dword [esi + 0x110]
fstp dword [esi + 0x110]
fmul dword [esi + 0x18]
fadd dword [esi + 0x114]
fstp dword [esi + 0x114]
test byte [eax + 0x20], 0x40
je 0x50ad25
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x14]
fld dword [eax + 0x2c]
mov eax, dword [0x69672c]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp + 0x18]
fadd dword [ecx + 0x68]
mov dword [ebp - 0x128], edx
lea edx, [ebp - 0x19c]
push edx
fld st(0)
lea ecx, [ebp - 0x118]
fmul dword [eax]
lea edx, [ebp - 0x130]
fstp dword [ebp - 0x118]
fld st(0)
fmul dword [eax + 4]
fstp dword [ebp - 0x114]
fmul dword [eax + 8]
mov eax, dword [ebp + 8]
push eax
push ecx
push edx
fstp dword [ebp - 0x110]
push 0xc0a0
call fcn.00505a20
add esp, 0x14
test al, al
je 0x50ad25
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
fld dword [eax + 0x2c]
fadd dword [ecx + 0x68]
mov edx, dword [eax + 0x38]
fmul dword [ebp - 0x188]
fsub dword [ecx + 0x68]
mov ecx, dword [eax + 0x34]
mov eax, dword [esi + 0x30]
push ecx
push edx
fstp dword [ebp + 0x18]
push eax
call fcn.005075d0
fld dword [ebp + 0x18]
fcomp dword [0x672af8]
add esp, 0xc
fnstsw ax
test ah, 0x41
mov eax, dword [ebp + 0x14]
jne 0x50aca1
fld dword [ebp + 0x18]
fdiv dword [eax + 0x2c]
fsubr dword [0x672afc]
jmp 0x50aca7
fld dword [0x672afc]
fld st(0)
mov ecx, dword [ebp - 0x28]
fmul st(1)
mov edx, dword [ebp - 0xc]
fmul dword [0x69c53c]
fld dword [ebp - 0x174]
fmul dword [ebx + 4]
fld dword [ebp - 0x170]
fmul dword [ebx + 8]
faddp st(1)
fld dword [ebp - 0x178]
fmul dword [ebx]
faddp st(1)
fmul dword [eax + 0x30]
fsubp st(1)
fmul dword [ecx + 0x18]
fmul dword [eax + 0x24]
fmul dword [edx + 8]
fmulp st(2)
fstp st(0)
fld dword [ebp - 0x178]
fmul st(1)
fadd dword [esi + 0x10c]
fstp dword [esi + 0x10c]
fld dword [ebp - 0x174]
fmul st(1)
fadd dword [esi + 0x110]
fstp dword [esi + 0x110]
fld dword [ebp - 0x170]
fmul st(1)
fadd dword [esi + 0x114]
fstp dword [esi + 0x114]
fstp st(0)
fld dword [esi + 0x84]
lea eax, [esi + 0x124]
fadd dword [esi + 0x118]
mov ecx, eax
fstp dword [esi + 0x118]
fld dword [esi + 0x11c]
fadd dword [esi + 0x88]
fstp dword [esi + 0x11c]
fld dword [esi + 0x120]
fadd dword [esi + 0x8c]
fstp dword [esi + 0x120]
fld dword [esi + 0x90]
fadd dword [esi + 0x118]
fstp dword [esi + 0x118]
fld dword [esi + 0x11c]
fadd dword [esi + 0x94]
fstp dword [esi + 0x11c]
fld dword [esi + 0x120]
fadd dword [esi + 0x98]
fstp dword [esi + 0x120]
fld dword [esi + 0x118]
fadd dword [esi + 0xb8]
fstp dword [esi + 0x118]
fld dword [esi + 0x11c]
fadd dword [esi + 0xbc]
fstp dword [esi + 0x11c]
fld dword [esi + 0x120]
fadd dword [esi + 0xc0]
fstp dword [esi + 0x120]
fld dword [esi + 0x118]
fadd dword [esi + 0xc4]
fstp dword [esi + 0x118]
fld dword [esi + 0x11c]
fadd dword [esi + 0xc8]
fstp dword [esi + 0x11c]
fld dword [esi + 0x120]
fadd dword [esi + 0xcc]
fstp dword [esi + 0x120]
fld dword [esi + 0x118]
fadd dword [edi]
fstp dword [esi + 0x118]
fld dword [esi + 0x11c]
fadd dword [edi + 4]
fstp dword [esi + 0x11c]
fld dword [esi + 0x120]
fadd dword [edi + 8]
fstp dword [esi + 0x120]
fld dword [esi + 0x118]
fadd dword [esi + 0x10c]
fstp dword [esi + 0x118]
fld dword [esi + 0x11c]
fadd dword [esi + 0x110]
fstp dword [esi + 0x11c]
fld dword [esi + 0x120]
fadd dword [esi + 0x114]
fstp dword [esi + 0x120]
fld dword [esi + 0x40]
fmul dword [esi + 0x120]
fld dword [esi + 0x11c]
fmul dword [esi + 0x44]
fsubp st(1)
fstp dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc0]
fld dword [esi + 0x118]
fmul dword [esi + 0x44]
fld dword [esi + 0x3c]
fmul dword [esi + 0x120]
fsubp st(1)
fstp dword [ebp - 0xbc]
fld dword [esi + 0x3c]
fmul dword [esi + 0x11c]
fld dword [esi + 0x40]
fmul dword [esi + 0x118]
mov dword [ecx], edx
mov edx, dword [ebp - 0xbc]
mov dword [ecx + 4], edx
fsubp st(1)
fstp dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb8]
fld dword [ebp - 0x18]
mov dword [ecx + 8], edx
fadd dword [esi + 0x118]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x14]
fadd dword [esi + 0x11c]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x10]
fadd dword [esi + 0x120]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x24]
fadd dword [eax]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x20]
fadd dword [eax + 4]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x1c]
fadd dword [eax + 8]
mov eax, dword [ebp - 0x6c]
inc eax
movsx esi, ax
mov dword [ebp - 0x6c], eax
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
cmp esi, dword [eax + 0x74]
jl 0x50a1d3
fld dword [0x672af8]
mov edi, dword [ebp - 0xc]
fld dword [edi + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50af5b
fld dword [0x672afc]
fdiv dword [edi + 8]
fld dword [ebp - 0x18]
fmul st(1)
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x14]
fmul st(1)
fstp dword [ebp - 0x48]
fld dword [ebp - 0x10]
fmul st(1)
fstp dword [ebp - 0x44]
fstp st(0)
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
fld dword [ebp - 0x10]
fmul dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
fld dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
fmul dword [ebp - 0x14]
faddp st(1)
fld dword [ebp - 0x18]
fmul dword [ebp - 0x18]
faddp st(1)
fsqrt
fld st(0)
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jnp 0x50b098
fld dword [0x672afc]
fdiv st(1)
fld dword [ebp - 0x18]
fmul st(1)
fstp dword [ebp - 0x18]
fld dword [ebp - 0x14]
fmul st(1)
fstp dword [ebp - 0x14]
fld dword [ebp - 0x10]
fmul st(1)
fstp dword [ebp - 0x10]
fstp st(0)
fld dword [0x672af8]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50b09a
mov esi, dword [edi + 0x74]
fld dword [0x672af8]
xor edx, edx
test esi, esi
jle 0x50b098
mov ebx, dword [edi + 0x78]
xor eax, eax
lea esp, [esp]
fld dword [ebp - 0x10]
mov ecx, eax
imul eax, eax, 0x130
add eax, dword [ebp + 0x10]
shl ecx, 7
add ecx, ebx
inc edx
fmul dword [eax + 0x44]
fld dword [ebp - 0x14]
fmul dword [eax + 0x40]
faddp st(1)
fld dword [ebp - 0x18]
fmul dword [eax + 0x3c]
faddp st(1)
fchs
fld dword [ebp - 0x18]
fmul st(1)
fadd dword [eax + 0x3c]
fld dword [ebp - 0x14]
fmul st(2)
fadd dword [eax + 0x40]
fld dword [ebp - 0x10]
fmul st(3)
fadd dword [eax + 0x44]
movsx eax, dx
cmp eax, esi
fld dword [ecx + 0x68]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(1)
fmul st(2)
fmul dword [0x672c00]
faddp st(1)
fld st(4)
fmul st(5)
faddp st(1)
fmul dword [ecx + 0x2c]
fmul dword [edi + 4]
faddp st(6)
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
jl 0x50aff0
fld dword [0x672af8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50b098
fdivr dword [0x672afc]
fld dword [ebp - 0x24]
fmul st(1)
fstp dword [ebp - 0x34]
fld dword [ebp - 0x20]
fmul st(1)
fstp dword [ebp - 0x30]
fld dword [ebp - 0x1c]
fmul st(1)
fstp dword [ebp - 0x2c]
fstp st(0)
mov esi, dword [ebp - 0x64]
fld dword [ebp - 0x4c]
fadd dword [esi + 0x68]
lea ebx, [esi + 0x8c]
mov ecx, dword [0x746eb0]
lea edx, [ebp - 0x40]
fstp dword [esi + 0x68]
xor eax, eax
fld dword [ebp - 0x48]
fadd dword [esi + 0x6c]
fstp dword [esi + 0x6c]
fld dword [ebp - 0x44]
fadd dword [esi + 0x70]
fstp dword [esi + 0x70]
fld dword [ebp - 0x34]
fadd dword [ebx]
fstp dword [ebx]
fld dword [ebp - 0x30]
fadd dword [ebx + 4]
fstp dword [ebx + 4]
fld dword [ebp - 0x2c]
fadd dword [ebx + 8]
fstp dword [ebx + 8]
fld dword [esi + 0x5c]
fadd dword [esi + 0x68]
fstp dword [ebp - 0x40]
fld dword [esi + 0x60]
fadd dword [esi + 0x6c]
fstp dword [ebp - 0x3c]
fld dword [esi + 0x64]
fadd dword [esi + 0x70]
fstp dword [ebp - 0x38]
call fcn.00501540
cmp eax, 0xffffffff
mov dword [ebp - 0x68], eax
jne 0x50b110
mov word [ebp - 0x64], ax
jmp 0x50b12d
mov ecx, dword [0x746ebc]
mov edx, dword [ecx + 0xe4]
and eax, 0x7fffffff
shl eax, 4
mov ax, word [eax + edx + 8]
mov word [ebp - 0x64], ax
mov ecx, dword [0x85ff50]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [edx + eax + 8]
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], ecx
call fcn.004f5f80
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
add edx, 0x5c
mov dword [edx], eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x68]
mov dword [edx + 8], eax
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004f5dd0
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
fld dword [ebp - 0x1c]
fmul dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
fld dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
fmul dword [ebp - 0x20]
add esp, 8
faddp st(1)
fld dword [ebp - 0x24]
fmul dword [ebp - 0x24]
faddp st(1)
fsqrt
fst dword [ebp + 8]
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jnp 0x50b2fc
fld dword [0x672afc]
fdiv dword [ebp + 8]
fld dword [ebp - 0x24]
fmul st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x20]
fmul st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x1c]
fmul st(1)
fstp dword [ebp - 0x1c]
fstp st(0)
fld dword [0x672af8]
fld dword [ebp + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50b2fc
fld dword [ebp + 8]
lea edx, [esi + 0x74]
fsin
mov eax, edx
fstp dword [ebp + 0xc]
fld dword [ebp + 8]
fcos
mov ecx, dword [ebp + 0xc]
fstp dword [ebp + 8]
mov edi, dword [ebp + 8]
push edi
push ecx
lea ecx, [ebp - 0x24]
call fcn.004cd860
mov eax, dword [ebp + 0xc]
push edi
push eax
lea edi, [esi + 0x80]
lea ecx, [ebp - 0x24]
mov eax, edi
call fcn.004cd860
fld dword [edx + 8]
fld dword [edx + 4]
add esp, 0x10
fld dword [edx]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fld st(0)
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jnp 0x50b276
fdivr dword [0x672afc]
fld st(0)
fmul dword [edx]
fstp dword [edx]
fld st(0)
fmul dword [edx + 4]
fstp dword [edx + 4]
fmul dword [edx + 8]
fstp dword [edx + 8]
jmp 0x50b278
fstp st(0)
fld dword [edx + 8]
fmul dword [edi + 8]
fld dword [edx + 4]
fmul dword [edi + 4]
faddp st(1)
fld dword [edi]
fmul dword [edx]
faddp st(1)
fchs
fld st(0)
fmul dword [edx]
fadd dword [edi]
fstp dword [edi]
fld st(0)
fmul dword [edx + 4]
fadd dword [edi + 4]
fstp dword [edi + 4]
fmul dword [edx + 8]
fadd dword [edi + 8]
fstp dword [edi + 8]
fld dword [edi + 8]
fld dword [edi + 4]
fld dword [edi]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fld st(0)
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jnp 0x50b2f7
fdivr dword [0x672afc]
fld st(0)
fmul dword [edi]
fstp dword [edi]
fld st(0)
fmul dword [edi + 4]
fstp dword [edi + 4]
fmul dword [edi + 8]
fstp dword [edi + 8]
jmp 0x50b2f9
fstp st(0)
mov edi, dword [ebp - 0xc]
movsx ecx, word [ebp - 0x54]
cmp ecx, dword [edi + 0x74]
jne 0x50b3c4
cmp word [ebp - 0x50], 3
jl 0x50b3c4
cmp word [ebp - 0x5c], 0
jne 0x50b3c4
fld dword [esi + 0x70]
fld dword [esi + 0x6c]
fld dword [esi + 0x68]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x672f3c]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
jp 0x50b3c4
fld dword [ebx + 8]
fld dword [ebx + 4]
fld dword [ebx]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x6730e8]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
jp 0x50b3c4
fld dword [ebp - 0x44]
fmul dword [ebp - 0x44]
fld dword [ebp - 0x48]
fmul dword [ebp - 0x48]
faddp st(1)
fld dword [ebp - 0x4c]
fmul dword [ebp - 0x4c]
faddp st(1)
fcomp dword [0x6730e4]
fnstsw ax
test ah, 0x41
jp 0x50b3c4
fld dword [ebp - 0x2c]
fmul dword [ebp - 0x2c]
fld dword [ebp - 0x30]
fmul dword [ebp - 0x30]
faddp st(1)
fld dword [ebp - 0x34]
fmul dword [ebp - 0x34]
faddp st(1)
fcomp dword [0x6730e0]
fnstsw ax
test ah, 0x41
jp 0x50b3c4
mov eax, dword [esi + 0x10]
or eax, 0x20
jmp 0x50b3ca
mov eax, dword [esi + 0x10]
and eax, 0xffffffdf
cmp word [ebp - 0x50], 0
mov dword [esi + 0x10], eax
jle 0x50b3d9
or eax, 2
jmp 0x50b3dc
and eax, 0xfffffffd
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x58]
test ax, ax
mov ecx, dword [esi + 0x10]
jle 0x50b3ef
or ecx, 4
jmp 0x50b3f2
and ecx, 0xfffffffb
test ax, ax
mov dword [esi + 0x10], ecx
jle 0x50b3ff
or ecx, 8
jmp 0x50b402
and ecx, 0xfffffff7
movsx edx, ax
mov dword [esi + 0x10], ecx
cmp edx, dword [edi + 0x74]
mov eax, ecx
jne 0x50b41c
or eax, 0x10
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and eax, 0xffffffef
pop edi
mov dword [esi + 0x10], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret