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

Disassembly:
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor bl, bl
test al, al
push esi
mov esi, ecx
mov byte [esp + 0xb], 0
je 0x5ff9b3
mov dword [esp + 0x3c], 0x3f800000
jmp 0x5ffa8b
mov eax, dword [esi + 0x1964]
sub eax, 0
je 0x5ffa5a
sub eax, 2
jne 0x5ffcad
fld dword [esi + 0x449c]
fadd dword [0x89096c]
fmul dword [0x8933d4]
fst dword [esp + 0x3c]
fcomp dword [0x89096c]
fnstsw ax
test ah, 5
jp 0x5ffa52
fld dword [esp + 0x3c]
fld dword [0x890968]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x5ffa0b
fstp st(0)
fld dword [0x890968]
mov ecx, dword [esi + 0x1968]
fst dword [esp + 0xc]
test ecx, ecx
fstp dword [esp + 0x3c]
je 0x5ffa8b
call fcn.005fc800
test al, al
je 0x5ffa28
mov bl, 1
mov ecx, dword [esi + 0x1968]
call fcn.005fbd90
test al, al
je 0x5ffa8b
fld dword [0x89096c]
mov byte [esp + 0xb], 1
fsub dword [esp + 0xc]
fmul dword [0x8933d4]
fadd dword [esp + 0xc]
jmp 0x5ffa87
fld dword [0x89096c]
jmp 0x5ffa0b
mov ecx, dword [esi + 0x1968]
test ecx, ecx
je 0x5ffcad
call fcn.005fc7a0
test al, al
je 0x5ffcad
mov ecx, dword [esi + 0x1968]
call fcn.005fac10
fld dword [eax*4 + 0x8a37d8]
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x18]
push edi
mov edi, dword [esp + 0x34]
mov al, byte [edi + 0x2e]
test al, al
mov dword [esp + 0x10], ecx
je 0x5ffabe
movzx edx, al
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fmul dword [edi + 0x30]
fld dword [edi + 0x78]
fmul dword [edi + 8]
fdivp st(1)
fstp dword [esp + 0x30]
jmp 0x5ffac6
mov dword [esp + 0x30], 0
test bl, bl
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x14], eax
jne 0x5ffb5c
mov esi, dword [esp + 0x10]
push esi
mov ecx, 0x8f5b6c
call fcn.006533b0
fstp dword [esp + 0x34]
push esi
mov ecx, 0x8f5b58
call fcn.006533b0
fld dword [esp + 0x34]
fsub st(1)
push esi
mov ecx, 0x8f5b94
fmul dword [esp + 0x44]
fadd st(1)
fstp dword [esp + 0x38]
fstp st(0)
call fcn.006533b0
push esi
fstp dword [esp + 0x14]
mov ecx, 0x8f5b80
call fcn.006533b0
fld dword [esp + 0x10]
fsub st(1)
fmul dword [esp + 0x40]
fadd st(1)
fstp dword [esp + 0x10]
fstp st(0)
fld dword [esp + 0x40]
fmul dword [0x890968]
fst dword [esp + 0x40]
fadd dword [0x8a37c8]
fmul dword [esp + 0x30]
fld dword [esp + 0x40]
fadd dword [0x890dc4]
fmul dword [esp + 0x14]
jmp 0x5ffc00
mov eax, dword [esi + 0x44a4]
mov dword [esp + 0x18], eax
dec eax
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x14]
lea ecx, [esi + 0x44a8]
fmul dword [0x890dc4]
mov dword [esp + 0x2c], ecx
push ebp
lea ecx, [esp + 0x20]
fstp dword [esp + 0x2c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x42c80000
call fcn.006533b0
fstp dword [esp + 0x14]
mov eax, dword [esi + 0x44d4]
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
lea edx, [esi + 0x44d8]
push ebp
lea ecx, [esp + 0x20]
fmul dword [0x890dc4]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x42c80000
fstp dword [esp + 0x2c]
mov dword [esp + 0x30], edx
call fcn.006533b0
fstp dword [esp + 0x38]
fld dword [esp + 0x34]
pop ebp
fmul dword [esi + 0x4494]
fld dword [esp + 0x14]
fmul dword [esi + 0x4498]
fld dword [0x8a3720]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x5ffc19
fld dword [0x8a3720]
jmp 0x5ffc1d
fld dword [esp + 0x34]
fld dword [0x890d3c]
fdiv st(1)
fmul dword [edi + 0x7c]
pop edi
fadd st(2)
fadd st(3)
fstp dword [esp + 0x3c]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x3c]
fcomp dword [0x890da8]
fnstsw ax
test ah, 0x41
jne 0x5ffc91
fld dword [esp + 0x3c]
fld dword [0x89096c]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x5ffc65
fstp st(0)
fld dword [0x89096c]
mov eax, dword [esp + 0x38]
fst dword [esp + 0x3c]
fmul dword [esp + 0xc]
fstp dword [eax]
mov al, byte [esp + 0xb]
test al, al
je 0x5ffc99
fld dword [0x89096c]
mov ecx, dword [esp + 0x34]
pop esi
fstp dword [ecx]
mov al, 1
pop ebx
add esp, 0x20
ret 0x14
fld dword [0x890da8]
jmp 0x5ffc65
fld dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
pop esi
fstp dword [ecx]
mov al, 1
pop ebx
add esp, 0x20
ret 0x14
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 0x14