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

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x24]
fld dword [ebp]
push edi
mov edi, dword [esp + 0x2c]
fsub dword [edi]
mov ebx, ecx
fld dword [ebp + 4]
mov dword [esp + 0xc], ebx
fsub dword [edi + 4]
fld dword [ebp + 8]
fsub dword [edi + 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)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [0x8ccd08]
fnstsw ax
test ah, 0x41
jne 0x516b9f
fld dword [0x8ccd04]
mov ecx, dword [0xc1703c]
fmul dword [0x8ccb84]
fst dword [esp + 0x28]
fld dword [ecx + 0x80]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x516b9f
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.007ee1d0
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x516cac
mov ecx, dword [eax + 0x594]
cmp ecx, 4
je 0x516bbf
cmp ecx, 3
jne 0x5170f5
fld dword [0x8ccb84]
fcomp dword [0x8ccd00]
fnstsw ax
test ah, 0x41
jne 0x516c89
push 0
mov ecx, ebx
call fcn.00514b80
movzx ecx, byte [ebx + 0x59]
imul ecx, ecx, 0x238
fld dword [ecx + ebx + 0x318]
fsub st(1)
fcomp dword [0x8cccfc]
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x5170f5
mov ecx, dword [0xc1703c]
fld dword [ecx + 0x80]
fld dword [ebp]
fsub dword [edi]
fld dword [ebp + 4]
fsub dword [edi + 4]
fld dword [ebp + 8]
fsub dword [edi + 8]
fld dword [0x8cccf8]
fmul dword [0x8ccb84]
fstp dword [esp + 0x28]
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)
fmul dword [0x8cccf4]
fcom dword [esp + 0x28]
fnstsw ax
test ah, 5
jp 0x516c61
fstp dword [esp + 0x28]
jmp 0x516c63
fstp st(0)
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x5170f5
mov edx, dword [esp + 0x28]
push edx
push ecx
call fcn.007ee1d0
add esp, 8
jmp 0x5170f5
cmp ecx, 3
jne 0x5170f5
mov eax, dword [0x8cccf0]
mov ecx, dword [0xc1703c]
push eax
push ecx
call fcn.007ee1d0
add esp, 8
jmp 0x5170f5
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x5170f4
test byte [esi + 0x46c], 1
jne 0x516dfd
mov ecx, dword [esi + 0x47c]
call fcn.006011b0
mov ecx, dword [esi + 0x47c]
mov bl, al
call fcn.00601070
test eax, eax
je 0x516d6b
cmp word [eax + 0xa], 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push 0
push 0
lea edx, [esp + 0x34]
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
sete bl
mov dword [esp + 0x44], 0
call fcn.006eb690
fld dword [esp + 0x44]
fsub dword [ebp + 8]
mov cl, al
add esp, 0x18
fabs
fcomp dword [0x8cccec]
fnstsw ax
test ah, 5
jp 0x516d2f
mov al, 1
jmp 0x516d31
xor al, al
test cl, cl
je 0x516d44
test al, al
je 0x516d44
mov eax, dword [0x8ccce8]
push eax
jmp 0x5170e1
test bl, bl
je 0x5170f0
cmp dword [0xb6f0f0], 1
jne 0x5170f0
mov edx, dword [0x8ccce4]
mov eax, dword [0xc1703c]
push edx
push eax
jmp 0x5170e8
test bl, bl
jne 0x516d82
mov ecx, dword [esi + 0x47c]
call fcn.00601110
test eax, eax
je 0x5170f0
mov ecx, dword [esp + 0x10]
call fcn.00516b00
fcomp dword [0x8cccfc]
fnstsw ax
test ah, 0x41
jne 0x5170f0
fld dword [0x8ccce0]
push ecx
fmul dword [0x8ccb84]
lea ecx, [esp + 0x18]
fstp dword [esp]
push edi
push ebp
push ecx
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
fmul dword [0x8cccdc]
push ecx
fstp dword [esp]
call fcn.00404330
fst dword [esp + 0x34]
mov ecx, dword [0xc1703c]
fld dword [ecx + 0x80]
add esp, 8
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x5170f0
mov edx, dword [esp + 0x2c]
push edx
jmp 0x5170e7
movzx eax, byte [0xb6f081]
imul eax, eax, 0x238
movsx ecx, word [esi + 0x22]
fld dword [eax + 0xb6f250]
fmul dword [0x858b8c]
mov edi, dword [ecx*4 + 0xa9b0c8]
mov edx, dword [esi + 0x18]
fsubr dword [0x85991c]
push edx
mov ecx, edi
fmul dword [0x8595ec]
mov dword [esp + 0x30], 0x497423f0
fsin
fmul dword [0xb6ec6c]
fstp dword [esp + 0x28]
call fcn.004c7170
movzx ecx, byte [ebx + 0x59]
mov eax, dword [edi + 0x34]
imul ecx, ecx, 0x238
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
add ecx, 0xb6f19c
lea esi, [eax + 4]
lea edx, [eax + 0x18]
fld dword [ecx + 0x198]
mov edi, 2
fmul dword [ecx + 0x1a4]
mov bl, 9
fld dword [ecx + 0x194]
fmul dword [ecx + 0x1a0]
faddp st(1)
fld dword [ecx + 0x19c]
fmul dword [ecx + 0x190]
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x2c]
fld dword [esi - 4]
mov al, byte [esi + 0xd]
cmp al, bl
fmul dword [ecx + 0x190]
fld dword [esi + 4]
fmul dword [ecx + 0x198]
faddp st(1)
fld dword [esi]
fmul dword [ecx + 0x194]
faddp st(1)
fsub dword [esp + 0x30]
fsub dword [esi + 8]
fst dword [esp + 0x2c]
jne 0x516ee1
fld dword [0x8cccd8]
fmul dword [esi + 8]
fsubp st(1)
fst dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x516ef0
fstp st(0)
fld dword [esp + 0x2c]
fld dword [edx + 4]
mov al, byte [edx + 0xd]
cmp al, bl
fmul dword [ecx + 0x198]
fld dword [esi + 0x10]
fmul dword [ecx + 0x190]
faddp st(1)
fld dword [ecx + 0x194]
fmul dword [edx]
faddp st(1)
fsub dword [esp + 0x30]
fsub dword [edx + 8]
fst dword [esp + 0x2c]
jne 0x516f2f
fld dword [0x8cccd8]
fmul dword [edx + 8]
fsubp st(1)
fst dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x516f3e
fstp st(0)
fld dword [esp + 0x2c]
fld dword [edx + 0x18]
mov al, byte [edx + 0x21]
cmp al, bl
fmul dword [ecx + 0x198]
fld dword [esi + 0x24]
fmul dword [ecx + 0x190]
faddp st(1)
fld dword [edx + 0x14]
fmul dword [ecx + 0x194]
faddp st(1)
fsub dword [esp + 0x30]
fsub dword [edx + 0x1c]
fst dword [esp + 0x2c]
jne 0x516f7e
fld dword [0x8cccd8]
fmul dword [edx + 0x1c]
fsubp st(1)
fst dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x516f8d
fstp st(0)
fld dword [esp + 0x2c]
fld dword [edx + 0x2c]
mov al, byte [edx + 0x35]
cmp al, bl
fmul dword [ecx + 0x198]
fld dword [esi + 0x38]
fmul dword [ecx + 0x190]
faddp st(1)
fld dword [edx + 0x28]
fmul dword [ecx + 0x194]
faddp st(1)
fsub dword [esp + 0x30]
fsub dword [edx + 0x30]
fst dword [esp + 0x2c]
jne 0x516fcd
fld dword [0x8cccd8]
fmul dword [edx + 0x30]
fsubp st(1)
fst dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x516fdc
fstp st(0)
fld dword [esp + 0x2c]
fld dword [edx + 0x40]
mov al, byte [edx + 0x49]
cmp al, bl
fmul dword [ecx + 0x198]
fld dword [esi + 0x4c]
fmul dword [ecx + 0x190]
faddp st(1)
fld dword [edx + 0x3c]
fmul dword [ecx + 0x194]
faddp st(1)
fsub dword [esp + 0x30]
fsub dword [edx + 0x44]
fst dword [esp + 0x2c]
jne 0x51701c
fld dword [0x8cccd8]
fmul dword [edx + 0x44]
fsubp st(1)
fst dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x51702b
fstp st(0)
fld dword [esp + 0x2c]
fld dword [edx + 0x54]
mov al, byte [edx + 0x5d]
cmp al, bl
fmul dword [ecx + 0x198]
fld dword [esi + 0x60]
fmul dword [ecx + 0x190]
faddp st(1)
fld dword [edx + 0x50]
fmul dword [ecx + 0x194]
faddp st(1)
fsub dword [esp + 0x30]
fsub dword [edx + 0x58]
fst dword [esp + 0x2c]
jne 0x51706b
fld dword [0x8cccd8]
fmul dword [edx + 0x58]
fsubp st(1)
fst dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x51707a
fstp st(0)
fld dword [esp + 0x2c]
add esi, 0x78
add edx, 0x78
dec edi
jne 0x516ea2
fcom dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x51709a
fstp st(0)
fld dword [esp + 0x24]
jmp 0x5170af
fcom dword [0x8cccd4]
fnstsw ax
test ah, 5
jp 0x5170af
fstp st(0)
fld dword [0x8cccd4]
fcom dword [0x8cccd0]
fnstsw ax
test ah, 0x41
jne 0x5170c4
fstp st(0)
fld dword [0x8cccd0]
fmul dword [0x858628]
call fcn.00821b40
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
push ecx
fmul dword [0x858c58]
fstp dword [esp]
mov ecx, dword [0xc1703c]
push ecx
call fcn.007ee1d0
add esp, 8
mov ebx, dword [esp + 0x10]
pop esi
movzx eax, byte [ebx + 0x59]
imul eax, eax, 0x238
lea edx, [esp + 0x28]
push edx
lea ecx, [eax + ebx + 0x304]
push ecx
push ebp
mov dword [esp + 0x34], 0x497423f0
call fcn.004154a0
add esp, 0xc
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0x10